]> _ Git - psq.git/commitdiff
new account page
authorLouis Jeckel <louis.jeckel@outlook.com>
Wed, 14 Oct 2020 16:20:22 +0000 (18:20 +0200)
committerLouis Jeckel <louis.jeckel@outlook.com>
Wed, 14 Oct 2020 16:20:22 +0000 (18:20 +0200)
app/Providers/AppServiceProvider.php
composer.json
composer.lock
package-lock.json
package.json
public/admin/js/admin.js
public/css/app.css
resources/js/components/Stripe/StripeModal.vue [new file with mode: 0644]
resources/sass/app.scss
resources/views/admin/polls/form.blade.php

index 3208bb6ff35467fdf4a3a29c2571a68c5d1722e7..11b2304e4ac6a5bde966ea80c97bc4c75893ac19 100644 (file)
@@ -15,6 +15,7 @@ use Illuminate\Support\Carbon;
 use Illuminate\Support\ServiceProvider;
 use League\HTMLToMarkdown\HtmlConverter;
 use Mailgun\Mailgun;
+use Stripe\Stripe;
 use Vaites\ApacheTika\Client;
 
 class AppServiceProvider extends ServiceProvider
@@ -41,6 +42,8 @@ class AppServiceProvider extends ServiceProvider
             return new HtmlConverter(['header_style'=>'atx']);
         });
 
+        Stripe::setApiKey(config('cashier.secret'));
+
     }
 
 
index b29e909805cec61e4a772c867c8d5a8ce367db68..4a34a45107108693386eaa9c0de1f527b235713d 100644 (file)
@@ -43,6 +43,7 @@
         "spatie/laravel-analytics": "^3.10",
         "spatie/pdf-to-image": "^2.0",
         "spatie/pdf-to-text": "^1.3",
+        "stripe/stripe-php": "^7.58",
         "vaites/php-apache-tika": "^0.9.1"
     },
     "require-dev": {
index e3b5740d82566cd86f0788002dfe6ef2d90a4c9a..99992a6af490a4fa05195bebf4e00cb68077ac59 100644 (file)
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
         "This file is @generated automatically"
     ],
-    "content-hash": "3a16aca0cab60a6ab491bc8a8516253e",
+    "content-hash": "d48521f562f0e300ac0313ea4875d488",
     "packages": [
         {
             "name": "algolia/algoliasearch-client-php",
         },
         {
             "name": "stripe/stripe-php",
-            "version": "v7.50.0",
+            "version": "v7.58.0",
             "source": {
                 "type": "git",
                 "url": "https://github.com/stripe/stripe-php.git",
-                "reference": "0195e3dcc34123df9a441069dbf08db17c3b025d"
+                "reference": "af383f8c707f841302ffceacfeffd2c7f74f362f"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/stripe/stripe-php/zipball/0195e3dcc34123df9a441069dbf08db17c3b025d",
-                "reference": "0195e3dcc34123df9a441069dbf08db17c3b025d",
+                "url": "https://api.github.com/repos/stripe/stripe-php/zipball/af383f8c707f841302ffceacfeffd2c7f74f362f",
+                "reference": "af383f8c707f841302ffceacfeffd2c7f74f362f",
                 "shasum": ""
             },
             "require": {
                 "payment processing",
                 "stripe"
             ],
-            "time": "2020-08-28T20:17:35+00:00"
+            "time": "2020-10-14T15:00:30+00:00"
         },
         {
             "name": "swiftmailer/swiftmailer",
index 5df3f2bf2f6747af79430d6347c5813e47026c07..d8b39219da872367ac95f047a3876896b05242a8 100644 (file)
         "@types/node": {
             "version": "14.6.4",
             "resolved": "https://registry.npmjs.org/@types/node/-/node-14.6.4.tgz",
-            "integrity": "sha512-Wk7nG1JSaMfMpoMJDKUsWYugliB2Vy55pdjLpmLixeyMi7HizW2I/9QoxsPCkXl3dO+ZOVqPumKaDUv5zJu2uQ==",
-            "dev": true
+            "integrity": "sha512-Wk7nG1JSaMfMpoMJDKUsWYugliB2Vy55pdjLpmLixeyMi7HizW2I/9QoxsPCkXl3dO+ZOVqPumKaDUv5zJu2uQ=="
         },
         "@types/q": {
             "version": "1.5.4",
             "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=",
             "dev": true
         },
+        "stripe": {
+            "version": "8.112.0",
+            "resolved": "https://registry.npmjs.org/stripe/-/stripe-8.112.0.tgz",
+            "integrity": "sha512-8rCW8b/IowG0ul2bkbj/qnZtQTpQrnJuKIwddo+gE/id+AVHFcA1w7RBFqmVdvACzuAV4LMb5FBh5RICCykq5w==",
+            "requires": {
+                "@types/node": ">=8.1.0",
+                "qs": "^6.6.0"
+            }
+        },
         "style-loader": {
             "version": "1.1.3",
             "resolved": "https://registry.npmjs.org/style-loader/-/style-loader-1.1.3.tgz",
index cff89769d575375ea844fb307d6265fb20431748..67aac8cb2bd4c8677b327358fabe2f65093f3e40 100644 (file)
@@ -50,6 +50,7 @@
         "laravel-echo": "^1.7.0",
         "pusher-js": "^5.1.1",
         "selectize": "^0.12.6",
+        "stripe": "^8.112.0",
         "vue-instantsearch": "^2.7.0",
         "vue-lodash": "^2.1.2",
         "vue-material": "^1.0.0-beta-11",
index 35e8b6d6ea72518f3c5be0b5da31a88cb608cb6c..40593511cdb4718bff192bd651355915d6eca491 100644 (file)
@@ -1,2 +1,2 @@
 /*! For license information please see admin.js.LICENSE.txt */
-!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=433)}([function(e,t,n){e.exports=n(183)},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],i=0;i<e.length;i++){var o=e[i],c=t.base?o[0]+t.base:o[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=s(u),f={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:u,updater:v(f,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=d(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function h(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var p=null,m=0;function v(e,t){var n,r,i;if(t.singleton){var o=m++;n=p||(p=l(t)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=l(t),r=h.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=i());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=c(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){"use strict";var r=n(53),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:c,isStream:function(e){return s(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"==typeof t[r]&&"object"==typeof n?t[r]=e(t[r],n):t[r]="object"==typeof n?e({},n):n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return t},extend:function(e,t,n){return l(t,(function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,function(e,t,n){"use strict";var r=n(78),i=n.n(r);t.a={data:function(){return{searchClient:i()(php_vars.algolia_app_id,php_vars.algolia_search_key),prefix:php_vars.algolia_prefix}},props:[]}},,,function(e,t,n){"use strict";n.r(t);var r=n(28),i={components:{ProgressBar:n.n(r).a},data:function(){return{email:this.$root.publishState.email,recipients_count:0,status:"En attente",counters:{delivered:0,opened:0,clicked:0},publishing:!1,done:!1,statusData:{status:null,current:0,total:0}}},computed:{progress:function(){return"init"===this.statusData.status||0==this.statusData.total?0:Math.ceil(100*this.statusData.current/this.statusData.total)}},methods:{processMailEvent:function(e){"delivered"===e.data.event&&this.counters.delivered++,"opened"===e.data.event&&this.counters.opened++,"clicked"===e.data.event&&this.counters.clicked++},processProgressEvent:function(e){if(!this.done)switch(this.statusData=e.data,e.data.status){case"init":this.status="Préparation en cours";break;case"processing":this.status="Traitement en cours : (".concat(e.data.current," / ").concat(e.data.total,")");break;case"done":this.status="Terminé, ".concat(e.data.total," emails envoyés"),this.done=!0,this.$emit("can-continue",{value:!0})}},publish:function(){var e=this;axios({method:"post",url:"/publish",data:{data:this.$root.publishState}}).then((function(t){Echo.private("emailBatch.".concat(t.data.data)).listen(".mailgun.event",e.processMailEvent).listen(".batch.status",e.processProgressEvent),e.publishing=!0}))}},mounted:function(){var e=this;void 0===this.$root.publishState.recipient_group?axios.get("publish/recipients").then((function(t){return e.recipients_count=t.data.data})):this.recipients_count=this.$root.publishState.recipient_group.count}},o=(n(187),n(1)),a=Object(o.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-step"},[n("div",{staticClass:"mb-3"},[n("h3",{staticClass:"text-center"},[e._v("\n            "+e._s(e.email.subject)+"\n        ")])]),e._v(" "),e.publishing?e._e():n("div",{staticClass:"alert alert-info my-2 mx-auto d-block mw-400"},[n("i",{staticClass:"far fa-check-circle"}),e._v("\n         Votre message est prêt à être envoyé !\n    ")]),e._v(" "),e.publishing?e._e():n("div",{staticClass:"mt-3"},[n("button",{staticClass:"btn btn-success d-block m-auto",on:{click:e.publish}},[n("i",{staticClass:"far fa-paper-plane"}),e._v("\n            Envoyer "+e._s(e.recipients_count)+" emails\n        ")])]),e._v(" "),e.publishing?n("div",[n("div",{staticClass:"alert alert-success my-3 mx-auto d-block mw-400"},[n("strong",[e._v("Statut : ")]),e._v(e._s(e.status)+"\n        ")]),e._v(" "),n("div",[n("progress-bar",{attrs:{size:"medium",val:e.progress,text:e.progress+"%"}})],1),e._v(" "),n("div",{staticClass:"row mt-4",attrs:{id:"counters"}},[e._m(0),e._v(" "),n("div",{staticClass:"col-md-4"},[n("mg-stats",{attrs:{icon:"delivered",current:e.counters.delivered,total:e.statusData.total,text:"reçus"}})],1),e._v(" "),n("div",{staticClass:"col-md-4"},[n("mg-stats",{attrs:{icon:"opened",current:e.counters.opened,total:e.statusData.total,text:"ouverts"}})],1),e._v(" "),n("div",{staticClass:"col-md-4"},[n("mg-stats",{attrs:{icon:"clicked",current:e.counters.clicked,total:e.statusData.total,text:"cliqués"}})],1)])]):e._e()])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"col-12 mb-2"},[t("h4",[this._v("Statistiques\n                    "),t("span",{staticClass:"badge badge-danger"},[t("span",{staticClass:"blink"},[this._v("•")]),this._v("\n                         en direct\n                    ")])])])}],!1,null,"1526165e",null);t.default=a.exports},,,,,function(e,t,n){var r=n(3),i=n(172);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(3),i=n(174);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(3),i=n(176);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(3),i=n(178);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(3),i=n(180);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(3),i=n(186);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(3),i=n(188);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(3),i=n(190);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(3),i=n(192);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){window,e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(1))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.r(t);var r=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},i=n(0),o="object"==typeof self&&self&&self.Object===Object&&self,a=i.a||o||Function("return this")(),s=function(){return a.Date.now()},c=a.Symbol,l=Object.prototype,u=l.hasOwnProperty,d=l.toString,f=c?c.toStringTag:void 0,h=Object.prototype.toString,p=c?c.toStringTag:void 0,m=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":p&&p in Object(e)?function(e){var t=u.call(e,f),n=e[f];try{e[f]=void 0;var r=!0}catch(e){}var i=d.call(e);return r&&(t?e[f]=n:delete e[f]),i}(e):function(e){return h.call(e)}(e)},v=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,y=/^0o[0-7]+$/i,_=parseInt,w=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==m(e)}(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(v,"");var n=b.test(e);return n||y.test(e)?_(e.slice(2),n?2:8):g.test(e)?NaN:+e},k=Math.max,x=Math.min,C={name:"ckeditor",render(e){return e(this.tagName)},props:{editor:{type:Function,default:null},value:{type:String,default:""},config:{type:Object,default:()=>({})},tagName:{type:String,default:"div"},disabled:{type:Boolean,default:!1}},data:()=>({instance:null,$_lastEditorData:{type:String,default:""}}),mounted(){const e=Object.assign({},this.config);this.value&&(e.initialData=this.value),this.editor.create(this.$el,e).then(e=>{this.instance=e,e.isReadOnly=this.disabled,this.$_setUpEditorEvents(),this.$emit("ready",e)}).catch(e=>{console.error(e)})},beforeDestroy(){this.instance&&(this.instance.destroy(),this.instance=null),this.$emit("destroy",this.instance)},watch:{value(e,t){e!==t&&e!==this.$_lastEditorData&&this.instance.setData(e)},disabled(e){this.instance.isReadOnly=e}},methods:{$_setUpEditorEvents(){const e=this.instance,t=function(e,t,n){var i,o,a,c,l,u,d=0,f=!1,h=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=i,r=o;return i=o=void 0,d=t,c=e.apply(r,n)}function v(e){var n=e-u;return void 0===u||n>=t||n<0||h&&e-d>=a}function g(){var e=s();if(v(e))return b(e);l=setTimeout(g,function(e){var n=t-(e-u);return h?x(n,a-(e-d)):n}(e))}function b(e){return l=void 0,p&&i?m(e):(i=o=void 0,c)}function y(){var e=s(),n=v(e);if(i=arguments,o=this,u=e,n){if(void 0===l)return function(e){return d=e,l=setTimeout(g,t),f?m(e):c}(u);if(h)return clearTimeout(l),l=setTimeout(g,t),m(u)}return void 0===l&&(l=setTimeout(g,t)),c}return t=w(t)||0,r(n)&&(f=!!n.leading,a=(h="maxWait"in n)?k(w(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==l&&clearTimeout(l),d=0,i=u=o=l=void 0},y.flush=function(){return void 0===l?c:b(s())},y}(t=>{const n=this.$_lastEditorData=e.getData();this.$emit("input",n,t,e)},300,{leading:!0});e.model.document.on("change:data",t),e.editing.view.document.on("focus",t=>{this.$emit("focus",t,e)}),e.editing.view.document.on("blur",t=>{this.$emit("blur",t,e)})}}};const S={install(e){e.component("ckeditor",C)},component:C};t.default=S}]).default},function(e,t,n){e.exports=n(193)},function(e,t,n){var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VueSimpleProgress=void 0;var r,i=n(1),o=(r=i)&&r.__esModule?r:{default:r};"undefined"!=typeof window&&window.Vue&&Vue.component("vue-simple-progress",o.default),t.VueSimpleProgress=o.default,t.default=o.default},function(e,t,n){var r=n(2)(n(3),n(4),null,null);e.exports=r.exports},function(e,t){e.exports=function(e,t,n,r){var i,o=e=e||{},a=typeof e.default;"object"!==a&&"function"!==a||(i=e,o=e.default);var s="function"==typeof o?o.options:o;if(t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns),n&&(s._scopeId=n),r){var c=Object.create(s.computed||null);Object.keys(r).forEach((function(e){var t=r[e];c[e]=function(){return t}})),s.computed=c}return{esModule:i,exports:o,options:s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};t.default={props:{val:{default:0},max:{default:100},size:{default:3},"bg-color":{type:String,default:"#eee"},"bar-color":{type:String,default:"#2196f3"},"bar-transition":{type:String,default:"all 0.5s ease"},"bar-border-radius":{type:Number,default:0},spacing:{type:Number,default:4},text:{type:String,default:""},"text-align":{type:String,default:"center"},"text-position":{type:String,default:"bottom"},"font-size":{type:Number,default:13},"text-fg-color":{type:String,default:"#222"}},computed:{pct:function(){var e=this.val/this.max*100;return e=e.toFixed(2),Math.min(e,this.max)},size_px:function(){switch(this.size){case"tiny":return 2;case"small":return 4;case"medium":return 8;case"large":return 12;case"big":return 16;case"huge":return 32;case"massive":return 64}return r(this.size)?this.size:32},text_padding:function(){switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":return Math.min(Math.max(Math.ceil(this.size_px/8),3),12)}return r(this.spacing)?this.spacing:4},text_font_size:function(){switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":return Math.min(Math.max(Math.ceil(1.4*this.size_px),11),32)}return r(this.fontSize)?this.fontSize:13},progress_style:function(){var e={background:this.bgColor};return"middle"!=this.textPosition&&"inside"!=this.textPosition||(e.position="relative",e["min-height"]=this.size_px+"px",e["z-index"]="-2"),this.barBorderRadius>0&&(e["border-radius"]=this.barBorderRadius+"px"),e},bar_style:function(){var e={background:this.barColor,width:this.pct+"%",height:this.size_px+"px",transition:this.barTransition};return this.barBorderRadius>0&&(e["border-radius"]=this.barBorderRadius+"px"),"middle"!=this.textPosition&&"inside"!=this.textPosition||(e.position="absolute",e.top="0",e.height="100%",e["min-height"]=this.size_px+"px",e["z-index"]="-1"),e},text_style:function(){var e={color:this.textFgColor,"font-size":this.text_font_size+"px","text-align":this.textAlign};return"top"!=this.textPosition&&"middle"!=this.textPosition&&"inside"!=this.textPosition||(e["padding-bottom"]=this.text_padding+"px"),"bottom"!=this.textPosition&&"middle"!=this.textPosition&&"inside"!=this.textPosition||(e["padding-top"]=this.text_padding+"px"),e}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.text.length>0&&"top"==e.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:e.text_style},[e._v(e._s(e.text))]):e._e(),e._v(" "),n("div",{staticClass:"vue-simple-progress",style:e.progress_style},[e.text.length>0&&"middle"==e.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:e.text_style},[e._v(e._s(e.text))]):e._e(),e._v(" "),e.text.length>0&&"inside"==e.textPosition?n("div",{staticStyle:{position:"relative",left:"-9999px"},style:e.text_style},[e._v(e._s(e.text))]):e._e(),e._v(" "),n("div",{staticClass:"vue-simple-progress-bar",style:e.bar_style},[e.text.length>0&&"inside"==e.textPosition?n("div",{style:e.text_style},[e._v(e._s(e.text))]):e._e()])]),e._v(" "),e.text.length>0&&"bottom"==e.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:e.text_style},[e._v(e._s(e.text))]):e._e()])},staticRenderFns:[]}}]).default},e.exports=r()},function(e,t,n){"use strict";var r=n(26),i=n.n(r);n(181);t.a={components:{ckeditor:i.a.component},data:function(){return{editor:ClassicEditor,editorConfig:{toolbar:{items:["heading","|","alignment","fontColor","fontSize","|","bold","italic","|","link","bulletedList","numberedList","|","indent","outdent","|","imageUpload","undo","redo"]},link:{addTargetToExternalLinks:!0,defaultProtocol:"http://"},mediaEmbed:{previewsInData:!0},fontSize:{options:[16,"default",18,22,24,28,34,38],supportAllValues:!0},language:"fr",image:{toolbar:["linkImage"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},fontColor:{colors:[{label:"psq_red",color:"#d04d4a"},{label:"psq_blue",color:"#074e9c"},{label:"psq_light_blue",color:"#cddceb"},{label:"psq_purple",color:"#AD5ED3"},{label:"psq_cyan",color:"#288ed7"},{label:"psq_magenta",color:"#ce317c"},{label:"psq_orange",color:"#e79817"},{label:"psq_grey",color:"#546983"},{label:"psq_denim",color:"#0c2c50"},{label:"psq_green",color:"#41BD53"},{label:"psq_mag_blue",color:"#2a6ba3"}]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Titre 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Titre 2",class:"ck-heading_heading2"}]},simpleUpload:{uploadUrl:"/ckeditor/upload",headers:{"X-CSRF-TOKEN":document.querySelectorAll('meta[name="csrf-token"]')[0].content}}}}}}},,,,function(e,t,n){e.exports=n(120)},function(e,t,n){(function(e,r){var i;(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",l="[object Array]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",g="[object Object]",b="[object RegExp]",y="[object Set]",_="[object String]",w="[object Symbol]",k="[object WeakMap]",x="[object ArrayBuffer]",C="[object DataView]",S="[object Float32Array]",T="[object Float64Array]",A="[object Int8Array]",M="[object Int16Array]",E="[object Int32Array]",O="[object Uint8Array]",P="[object Uint16Array]",I="[object Uint32Array]",D=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,z=RegExp(R.source),F=RegExp(L.source),B=/<%-([\s\S]+?)%>/g,$=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(W.source),G=/^\s+|\s+$/g,K=/^\s+/,Q=/\s+$/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ce=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",he="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",me="["+he+"]",ve="["+fe+"]",ge="\\d+",be="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",_e="[^\\ud800-\\udfff"+he+ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ce="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Te="(?:"+ye+"|"+_e+")",Ae="(?:"+Se+"|"+_e+")",Me="(?:"+ve+"|"+we+")"+"?",Ee="[\\ufe0e\\ufe0f]?"+Me+("(?:\\u200d(?:"+[ke,xe,Ce].join("|")+")[\\ufe0e\\ufe0f]?"+Me+")*"),Oe="(?:"+[be,xe,Ce].join("|")+")"+Ee,Pe="(?:"+[ke+ve+"?",ve,xe,Ce,pe].join("|")+")",Ie=RegExp("['’]","g"),De=RegExp(ve,"g"),je=RegExp(we+"(?="+we+")|"+Pe+Ee,"g"),Ne=RegExp([Se+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,Se,"$"].join("|")+")",Ae+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,Se+Te,"$"].join("|")+")",Se+"?"+Te+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ge,Oe].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Fe=-1,Be={};Be[S]=Be[T]=Be[A]=Be[M]=Be[E]=Be[O]=Be["[object Uint8ClampedArray]"]=Be[P]=Be[I]=!0,Be[c]=Be[l]=Be[x]=Be[u]=Be[C]=Be[d]=Be[f]=Be[h]=Be[m]=Be[v]=Be[g]=Be[b]=Be[y]=Be[_]=Be[k]=!1;var $e={};$e[c]=$e[l]=$e[x]=$e[C]=$e[u]=$e[d]=$e[S]=$e[T]=$e[A]=$e[M]=$e[E]=$e[m]=$e[v]=$e[g]=$e[b]=$e[y]=$e[_]=$e[w]=$e[O]=$e["[object Uint8ClampedArray]"]=$e[P]=$e[I]=!0,$e[f]=$e[h]=$e[k]=!1;var Ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,Ue=parseInt,qe="object"==typeof e&&e&&e.Object===Object&&e,We="object"==typeof self&&self&&self.Object===Object&&self,Ye=qe||We||Function("return this")(),Ge=t&&!t.nodeType&&t,Ke=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,Qe=Ke&&Ke.exports===Ge,Je=Qe&&qe.process,Xe=function(){try{var e=Ke&&Ke.require&&Ke.require("util").types;return e||Je&&Je.binding&&Je.binding("util")}catch(e){}}(),Ze=Xe&&Xe.isArrayBuffer,et=Xe&&Xe.isDate,tt=Xe&&Xe.isMap,nt=Xe&&Xe.isRegExp,rt=Xe&&Xe.isSet,it=Xe&&Xe.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ut(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function dt(e,t){return!!(null==e?0:e.length)&&wt(e,t,0)>-1}function ft(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ht(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function mt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function vt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var bt=St("length");function yt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function _t(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):_t(e,xt,n)}function kt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function xt(e){return e!=e}function Ct(e,t){var n=null==e?0:e.length;return n?Mt(e,t)/n:NaN}function St(e){return function(t){return null==t?void 0:t[e]}}function Tt(e){return function(t){return null==e?void 0:e[t]}}function At(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Mt(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Et(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ot(e){return function(t){return e(t)}}function Pt(e,t){return ht(t,(function(t){return e[t]}))}function It(e,t){return e.has(t)}function Dt(e,t){for(var n=-1,r=e.length;++n<r&&wt(t,e[n],0)>-1;);return n}function jt(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Rt=Tt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Lt=Tt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function zt(e){return"\\"+Ve[e]}function Ft(e){return Re.test(e)}function Bt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function $t(e,t){return function(n){return e(t(n))}}function Vt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function qt(e){return Ft(e)?function(e){var t=je.lastIndex=0;for(;je.test(e);)++t;return t}(e):bt(e)}function Wt(e){return Ft(e)?function(e){return e.match(je)||[]}(e):function(e){return e.split("")}(e)}var Yt=Tt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Gt=function e(t){var n,r=(t=null==t?Ye:Gt.defaults(Ye.Object(),t,Gt.pick(Ye,ze))).Array,i=t.Date,fe=t.Error,he=t.Function,pe=t.Math,me=t.Object,ve=t.RegExp,ge=t.String,be=t.TypeError,ye=r.prototype,_e=he.prototype,we=me.prototype,ke=t["__core-js_shared__"],xe=_e.toString,Ce=we.hasOwnProperty,Se=0,Te=(n=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ae=we.toString,Me=xe.call(me),Ee=Ye._,Oe=ve("^"+xe.call(Ce).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pe=Qe?t.Buffer:void 0,je=t.Symbol,Re=t.Uint8Array,Ve=Pe?Pe.allocUnsafe:void 0,qe=$t(me.getPrototypeOf,me),We=me.create,Ge=we.propertyIsEnumerable,Ke=ye.splice,Je=je?je.isConcatSpreadable:void 0,Xe=je?je.iterator:void 0,bt=je?je.toStringTag:void 0,Tt=function(){try{var e=Zi(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Kt=t.clearTimeout!==Ye.clearTimeout&&t.clearTimeout,Qt=i&&i.now!==Ye.Date.now&&i.now,Jt=t.setTimeout!==Ye.setTimeout&&t.setTimeout,Xt=pe.ceil,Zt=pe.floor,en=me.getOwnPropertySymbols,tn=Pe?Pe.isBuffer:void 0,nn=t.isFinite,rn=ye.join,on=$t(me.keys,me),an=pe.max,sn=pe.min,cn=i.now,ln=t.parseInt,un=pe.random,dn=ye.reverse,fn=Zi(t,"DataView"),hn=Zi(t,"Map"),pn=Zi(t,"Promise"),mn=Zi(t,"Set"),vn=Zi(t,"WeakMap"),gn=Zi(me,"create"),bn=vn&&new vn,yn={},_n=Ao(fn),wn=Ao(hn),kn=Ao(pn),xn=Ao(mn),Cn=Ao(vn),Sn=je?je.prototype:void 0,Tn=Sn?Sn.valueOf:void 0,An=Sn?Sn.toString:void 0;function Mn(e){if(Ua(e)&&!Da(e)&&!(e instanceof In)){if(e instanceof Pn)return e;if(Ce.call(e,"__wrapped__"))return Mo(e)}return new Pn(e)}var En=function(){function e(){}return function(t){if(!Ha(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function On(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function In(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Nn;++t<n;)this.add(e[t])}function Ln(e){var t=this.__data__=new jn(e);this.size=t.size}function zn(e,t){var n=Da(e),r=!n&&Ia(e),i=!n&&!r&&La(e),o=!n&&!r&&!i&&Xa(e),a=n||r||i||o,s=a?Et(e.length,ge):[],c=s.length;for(var l in e)!t&&!Ce.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ao(l,c))||s.push(l);return s}function Fn(e){var t=e.length;return t?e[Rr(0,t-1)]:void 0}function Bn(e,t){return Co(gi(e),Kn(t,0,e.length))}function $n(e){return Co(gi(e))}function Vn(e,t,n){(void 0!==n&&!Ea(e[t],n)||void 0===n&&!(t in e))&&Yn(e,t,n)}function Hn(e,t,n){var r=e[t];Ce.call(e,t)&&Ea(r,n)&&(void 0!==n||t in e)||Yn(e,t,n)}function Un(e,t){for(var n=e.length;n--;)if(Ea(e[n][0],t))return n;return-1}function qn(e,t,n,r){return er(e,(function(e,i,o){t(r,e,n(e),o)})),r}function Wn(e,t){return e&&bi(t,_s(t),e)}function Yn(e,t,n){"__proto__"==t&&Tt?Tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Gn(e,t){for(var n=-1,i=t.length,o=r(i),a=null==e;++n<i;)o[n]=a?void 0:ms(e,t[n]);return o}function Kn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Qn(e,t,n,r,i,o){var a,s=1&t,l=2&t,f=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ha(e))return e;var k=Da(e);if(k){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ce.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return gi(e,a)}else{var D=no(e),j=D==h||D==p;if(La(e))return di(e,s);if(D==g||D==c||j&&!i){if(a=l||j?{}:io(e),!s)return l?function(e,t){return bi(e,to(e),t)}(e,function(e,t){return e&&bi(t,ws(t),e)}(a,e)):function(e,t){return bi(e,eo(e),t)}(e,Wn(a,e))}else{if(!$e[D])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case x:return fi(e);case u:case d:return new r(+e);case C:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case T:case A:case M:case E:case O:case"[object Uint8ClampedArray]":case P:case I:return hi(e,n);case m:return new r;case v:case _:return new r(e);case b:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new r;case w:return i=e,Tn?me(Tn.call(i)):{}}var i}(e,D,s)}}o||(o=new Ln);var N=o.get(e);if(N)return N;o.set(e,a),Ka(e)?e.forEach((function(r){a.add(Qn(r,t,n,r,e,o))})):qa(e)&&e.forEach((function(r,i){a.set(i,Qn(r,t,n,i,e,o))}));var R=k?void 0:(f?l?Wi:qi:l?ws:_s)(e);return st(R||e,(function(r,i){R&&(r=e[i=r]),Hn(a,i,Qn(r,t,n,i,e,o))})),a}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=me(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Xn(e,t,n){if("function"!=typeof e)throw new be(o);return _o((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,r){var i=-1,o=dt,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=ht(t,Ot(n))),r?(o=ft,a=!1):t.length>=200&&(o=It,a=!1,t=new Rn(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=l;f--;)if(t[f]===d)continue e;c.push(u)}else o(t,d,r)||c.push(u)}return c}Mn.templateSettings={escape:B,evaluate:$,interpolate:V,variable:"",imports:{_:Mn}},Mn.prototype=On.prototype,Mn.prototype.constructor=Mn,Pn.prototype=En(On.prototype),Pn.prototype.constructor=Pn,In.prototype=En(On.prototype),In.prototype.constructor=In,Dn.prototype.clear=function(){this.__data__=gn?gn(null):{},this.size=0},Dn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Dn.prototype.get=function(e){var t=this.__data__;if(gn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ce.call(t,e)?t[e]:void 0},Dn.prototype.has=function(e){var t=this.__data__;return gn?void 0!==t[e]:Ce.call(t,e)},Dn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gn&&void 0===t?"__lodash_hash_undefined__":t,this},jn.prototype.clear=function(){this.__data__=[],this.size=0},jn.prototype.delete=function(e){var t=this.__data__,n=Un(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},jn.prototype.get=function(e){var t=this.__data__,n=Un(t,e);return n<0?void 0:t[n][1]},jn.prototype.has=function(e){return Un(this.__data__,e)>-1},jn.prototype.set=function(e,t){var n=this.__data__,r=Un(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new Dn,map:new(hn||jn),string:new Dn}},Nn.prototype.delete=function(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Ji(this,e).get(e)},Nn.prototype.has=function(e){return Ji(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Rn.prototype.add=Rn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.clear=function(){this.__data__=new jn,this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ln.prototype.get=function(e){return this.__data__.get(e)},Ln.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.set=function(e,t){var n=this.__data__;if(n instanceof jn){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var er=wi(cr),tr=wi(lr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function rr(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!Ja(a):n(a,s)))var s=a,c=o}return c}function ir(e,t){var n=[];return er(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function or(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=oo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?or(s,t-1,n,r,i):pt(i,s):r||(i[i.length]=s)}return i}var ar=ki(),sr=ki(!0);function cr(e,t){return e&&ar(e,t,_s)}function lr(e,t){return e&&sr(e,t,_s)}function ur(e,t){return ut(t,(function(t){return Ba(e[t])}))}function dr(e,t){for(var n=0,r=(t=si(t,e)).length;null!=e&&n<r;)e=e[To(t[n++])];return n&&n==r?e:void 0}function fr(e,t,n){var r=t(e);return Da(e)?r:pt(r,n(e))}function hr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bt&&bt in me(e)?function(e){var t=Ce.call(e,bt),n=e[bt];try{e[bt]=void 0;var r=!0}catch(e){}var i=Ae.call(e);r&&(t?e[bt]=n:delete e[bt]);return i}(e):function(e){return Ae.call(e)}(e)}function pr(e,t){return e>t}function mr(e,t){return null!=e&&Ce.call(e,t)}function vr(e,t){return null!=e&&t in me(e)}function gr(e,t,n){for(var i=n?ft:dt,o=e[0].length,a=e.length,s=a,c=r(a),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=ht(d,Ot(t))),l=sn(d.length,l),c[s]=!n&&(t||o>=120&&d.length>=120)?new Rn(s&&d):void 0}d=e[0];var f=-1,h=c[0];e:for(;++f<o&&u.length<l;){var p=d[f],m=t?t(p):p;if(p=n||0!==p?p:0,!(h?It(h,m):i(u,m,n))){for(s=a;--s;){var v=c[s];if(!(v?It(v,m):i(e[s],m,n)))continue e}h&&h.push(m),u.push(p)}}return u}function br(e,t,n){var r=null==(e=vo(e,t=si(t,e)))?e:e[To(Fo(t))];return null==r?void 0:ot(r,e,n)}function yr(e){return Ua(e)&&hr(e)==c}function _r(e,t,n,r,i){return e===t||(null==e||null==t||!Ua(e)&&!Ua(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=Da(e),s=Da(t),h=a?l:no(e),p=s?l:no(t),k=(h=h==c?g:h)==g,S=(p=p==c?g:p)==g,T=h==p;if(T&&La(e)){if(!La(t))return!1;a=!0,k=!1}if(T&&!k)return o||(o=new Ln),a||Xa(e)?Hi(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!o(new Re(e),new Re(t)));case u:case d:case v:return Ea(+e,+t);case f:return e.name==t.name&&e.message==t.message;case b:case _:return e==t+"";case m:var s=Bt;case y:var c=1&r;if(s||(s=Ht),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var h=Hi(s(e),s(t),r,i,o,a);return a.delete(e),h;case w:if(Tn)return Tn.call(e)==Tn.call(t)}return!1}(e,t,h,n,r,i,o);if(!(1&n)){var A=k&&Ce.call(e,"__wrapped__"),M=S&&Ce.call(t,"__wrapped__");if(A||M){var E=A?e.value():e,O=M?t.value():t;return o||(o=new Ln),i(E,O,n,r,o)}}if(!T)return!1;return o||(o=new Ln),function(e,t,n,r,i,o){var a=1&n,s=qi(e),c=s.length,l=qi(t).length;if(c!=l&&!a)return!1;var u=c;for(;u--;){var d=s[u];if(!(a?d in t:Ce.call(t,d)))return!1}var f=o.get(e),h=o.get(t);if(f&&h)return f==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);var m=a;for(;++u<c;){d=s[u];var v=e[d],g=t[d];if(r)var b=a?r(g,v,d,t,e,o):r(v,g,d,e,t,o);if(!(void 0===b?v===g||i(v,g,n,r,o):b)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var y=e.constructor,_=t.constructor;y==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof _&&_ instanceof _||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o)}(e,t,n,r,_r,i))}function wr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=me(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var c=(s=n[i])[0],l=e[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in e))return!1}else{var d=new Ln;if(r)var f=r(l,u,c,e,t,d);if(!(void 0===f?_r(u,l,3,r,d):f))return!1}}return!0}function kr(e){return!(!Ha(e)||(t=e,Te&&Te in t))&&(Ba(e)?Oe:ae).test(Ao(e));var t}function xr(e){return"function"==typeof e?e:null==e?Ws:"object"==typeof e?Da(e)?Er(e[0],e[1]):Mr(e):tc(e)}function Cr(e){if(!fo(e))return on(e);var t=[];for(var n in me(e))Ce.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Sr(e){if(!Ha(e))return function(e){var t=[];if(null!=e)for(var n in me(e))t.push(n);return t}(e);var t=fo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ce.call(e,r))&&n.push(r);return n}function Tr(e,t){return e<t}function Ar(e,t){var n=-1,i=Na(e)?r(e.length):[];return er(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Mr(e){var t=Xi(e);return 1==t.length&&t[0][2]?po(t[0][0],t[0][1]):function(n){return n===e||wr(n,e,t)}}function Er(e,t){return co(e)&&ho(t)?po(To(e),t):function(n){var r=ms(n,e);return void 0===r&&r===t?vs(n,e):_r(t,r,3)}}function Or(e,t,n,r,i){e!==t&&ar(t,(function(o,a){if(i||(i=new Ln),Ha(o))!function(e,t,n,r,i,o,a){var s=bo(e,n),c=bo(t,n),l=a.get(c);if(l)return void Vn(e,n,l);var u=o?o(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var f=Da(c),h=!f&&La(c),p=!f&&!h&&Xa(c);u=c,f||h||p?Da(s)?u=s:Ra(s)?u=gi(s):h?(d=!1,u=di(c,!0)):p?(d=!1,u=hi(c,!0)):u=[]:Ya(c)||Ia(c)?(u=s,Ia(s)?u=as(s):Ha(s)&&!Ba(s)||(u=io(c))):d=!1}d&&(a.set(c,u),i(u,c,r,o,a),a.delete(c));Vn(e,n,u)}(e,t,a,n,Or,r,i);else{var s=r?r(bo(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),Vn(e,a,s)}}),ws)}function Pr(e,t){var n=e.length;if(n)return ao(t+=t<0?n:0,n)?e[t]:void 0}function Ir(e,t,n){t=t.length?ht(t,(function(e){return Da(e)?function(t){return dr(t,1===e.length?e[0]:e)}:e})):[Ws];var r=-1;return t=ht(t,Ot(Qi())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Ar(e,(function(e,n,i){return{criteria:ht(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var c=pi(i[r],o[r]);if(c){if(r>=s)return c;var l=n[r];return c*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Dr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=dr(e,a);n(s,a)&&$r(o,si(a,e),s)}return o}function jr(e,t,n,r){var i=r?kt:wt,o=-1,a=t.length,s=e;for(e===t&&(t=gi(t)),n&&(s=ht(e,Ot(n)));++o<a;)for(var c=0,l=t[o],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Ke.call(s,c,1),Ke.call(e,c,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;ao(i)?Ke.call(e,i,1):Zr(e,i)}}return e}function Rr(e,t){return e+Zt(un()*(t-e+1))}function Lr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return wo(mo(e,t,Ws),e+"")}function Fr(e){return Fn(Es(e))}function Br(e,t){var n=Es(e);return Co(n,Kn(t,0,n.length))}function $r(e,t,n,r){if(!Ha(e))return e;for(var i=-1,o=(t=si(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var c=To(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=a){var u=s[c];void 0===(l=r?r(u,c,s):void 0)&&(l=Ha(u)?u:ao(t[i+1])?[]:{})}Hn(s,c,l),s=s[c]}return e}var Vr=bn?function(e,t){return bn.set(e,t),e}:Ws,Hr=Tt?function(e,t){return Tt(e,"toString",{configurable:!0,enumerable:!1,value:Hs(t),writable:!0})}:Ws;function Ur(e){return Co(Es(e))}function qr(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function Wr(e,t){var n;return er(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Yr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Ja(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Gr(e,t,Ws,n)}function Gr(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var a=(t=n(t))!=t,s=null===t,c=Ja(t),l=void 0===t;i<o;){var u=Zt((i+o)/2),d=n(e[u]),f=void 0!==d,h=null===d,p=d==d,m=Ja(d);if(a)var v=r||p;else v=l?p&&(r||f):s?p&&f&&(r||!h):c?p&&f&&!h&&(r||!m):!h&&!m&&(r?d<=t:d<t);v?i=u+1:o=u}return sn(o,4294967294)}function Kr(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ea(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function Qr(e){return"number"==typeof e?e:Ja(e)?NaN:+e}function Jr(e){if("string"==typeof e)return e;if(Da(e))return ht(e,Jr)+"";if(Ja(e))return An?An.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Xr(e,t,n){var r=-1,i=dt,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=ft;else if(o>=200){var l=t?null:Li(e);if(l)return Ht(l);a=!1,i=It,c=new Rn}else c=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Zr(e,t){return null==(e=vo(e,t=si(t,e)))||delete e[To(Fo(t))]}function ei(e,t,n,r){return $r(e,t,n(dr(e,t)),r)}function ti(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?qr(e,r?0:o,r?o+1:i):qr(e,r?o+1:0,r?i:o)}function ni(e,t){var n=e;return n instanceof In&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,pt([e],t.args))}),n)}function ri(e,t,n){var i=e.length;if(i<2)return i?Xr(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],c=-1;++c<i;)c!=o&&(a[o]=Zn(a[o]||s,e[c],t,n));return Xr(or(a,1),t,n)}function ii(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}function oi(e){return Ra(e)?e:[]}function ai(e){return"function"==typeof e?e:Ws}function si(e,t){return Da(e)?e:co(e,t)?[e]:So(ss(e))}var ci=zr;function li(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:qr(e,t,n)}var ui=Kt||function(e){return Ye.clearTimeout(e)};function di(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Re(t).set(new Re(e)),t}function hi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function pi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Ja(e),a=void 0!==t,s=null===t,c=t==t,l=Ja(t);if(!s&&!l&&!o&&e>t||o&&a&&c&&!s&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!c)return-1}return 0}function mi(e,t,n,i){for(var o=-1,a=e.length,s=n.length,c=-1,l=t.length,u=an(a-s,0),d=r(l+u),f=!i;++c<l;)d[c]=t[c];for(;++o<s;)(f||o<a)&&(d[n[o]]=e[o]);for(;u--;)d[c++]=e[o++];return d}function vi(e,t,n,i){for(var o=-1,a=e.length,s=-1,c=n.length,l=-1,u=t.length,d=an(a-c,0),f=r(d+u),h=!i;++o<d;)f[o]=e[o];for(var p=o;++l<u;)f[p+l]=t[l];for(;++s<c;)(h||o<a)&&(f[p+n[s]]=e[o++]);return f}function gi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function bi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?Yn(n,s,c):Hn(n,s,c)}return n}function yi(e,t){return function(n,r){var i=Da(n)?at:qn,o=t?t():{};return i(n,e,Qi(r,2),o)}}function _i(e){return zr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=me(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}function wi(e,t){return function(n,r){if(null==n)return n;if(!Na(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=me(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function ki(e){return function(t,n,r){for(var i=-1,o=me(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}function xi(e){return function(t){var n=Ft(t=ss(t))?Wt(t):void 0,r=n?n[0]:t.charAt(0),i=n?li(n,1).join(""):t.slice(1);return r[e]()+i}}function Ci(e){return function(t){return mt(Bs(Is(t).replace(Ie,"")),e,"")}}function Si(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=En(e.prototype),r=e.apply(n,t);return Ha(r)?r:n}}function Ti(e){return function(t,n,r){var i=me(t);if(!Na(t)){var o=Qi(n,3);t=_s(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}function Ai(e){return Ui((function(t){var n=t.length,r=n,i=Pn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new be(o);if(i&&!s&&"wrapper"==Gi(a))var s=new Pn([],!0)}for(r=s?r:n;++r<n;){var c=Gi(a=t[r]),l="wrapper"==c?Yi(a):void 0;s=l&&lo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[Gi(l[0])].apply(s,l[3]):1==a.length&&lo(a)?s[c]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Da(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Mi(e,t,n,i,o,a,s,c,l,u){var d=128&t,f=1&t,h=2&t,p=24&t,m=512&t,v=h?void 0:Si(e);return function g(){for(var b=arguments.length,y=r(b),_=b;_--;)y[_]=arguments[_];if(p)var w=Ki(g),k=Nt(y,w);if(i&&(y=mi(y,i,o,p)),a&&(y=vi(y,a,s,p)),b-=k,p&&b<u){var x=Vt(y,w);return Ni(e,t,Mi,g.placeholder,n,y,x,c,l,u-b)}var C=f?n:this,S=h?C[e]:e;return b=y.length,c?y=go(y,c):m&&b>1&&y.reverse(),d&&l<b&&(y.length=l),this&&this!==Ye&&this instanceof g&&(S=v||Si(S)),S.apply(C,y)}}function Ei(e,t){return function(n,r){return function(e,t,n,r){return cr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Oi(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Jr(n),r=Jr(r)):(n=Qr(n),r=Qr(r)),i=e(n,r)}return i}}function Pi(e){return Ui((function(t){return t=ht(t,Ot(Qi())),zr((function(n){var r=this;return e(t,(function(e){return ot(e,r,n)}))}))}))}function Ii(e,t){var n=(t=void 0===t?" ":Jr(t)).length;if(n<2)return n?Lr(t,e):t;var r=Lr(t,Xt(e/qt(t)));return Ft(t)?li(Wt(r),0,e).join(""):r.slice(0,e)}function Di(e){return function(t,n,i){return i&&"number"!=typeof i&&so(t,n,i)&&(n=i=void 0),t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n,i){for(var o=-1,a=an(Xt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,i=void 0===i?t<n?1:-1:ns(i),e)}}function ji(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=os(t),n=os(n)),e(t,n)}}function Ni(e,t,n,r,i,o,a,s,c,l){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,i,u?o:void 0,u?a:void 0,u?void 0:o,u?void 0:a,s,c,l],f=n.apply(void 0,d);return lo(e)&&yo(f,d),f.placeholder=r,ko(f,e,t)}function Ri(e){var t=pe[e];return function(e,n){if(e=os(e),(n=null==n?0:sn(rs(n),292))&&nn(e)){var r=(ss(e)+"e").split("e");return+((r=(ss(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Li=mn&&1/Ht(new mn([,-0]))[1]==1/0?function(e){return new mn(e)}:Js;function zi(e){return function(t){var n=no(t);return n==m?Bt(t):n==y?Ut(t):function(e,t){return ht(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Fi(e,t,n,i,s,c,l,u){var d=2&t;if(!d&&"function"!=typeof e)throw new be(o);var f=i?i.length:0;if(f||(t&=-97,i=s=void 0),l=void 0===l?l:an(rs(l),0),u=void 0===u?u:rs(u),f-=s?s.length:0,64&t){var h=i,p=s;i=s=void 0}var m=d?void 0:Yi(e),v=[e,t,n,i,s,h,p,c,l,u];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?mi(l,c,t[4]):c,e[4]=l?Vt(e[3],a):t[4]}(c=t[5])&&(l=e[5],e[5]=l?vi(l,c,t[6]):c,e[6]=l?Vt(e[5],a):t[6]);(c=t[7])&&(e[7]=c);128&r&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(v,m),e=v[0],t=v[1],n=v[2],i=v[3],s=v[4],!(u=v[9]=void 0===v[9]?d?0:e.length:an(v[9]-f,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,n){var i=Si(e);return function o(){for(var a=arguments.length,s=r(a),c=a,l=Ki(o);c--;)s[c]=arguments[c];var u=a<3&&s[0]!==l&&s[a-1]!==l?[]:Vt(s,l);if((a-=u.length)<n)return Ni(e,t,Mi,o.placeholder,void 0,s,u,void 0,void 0,n-a);var d=this&&this!==Ye&&this instanceof o?i:e;return ot(d,this,s)}}(e,t,u):32!=t&&33!=t||s.length?Mi.apply(void 0,v):function(e,t,n,i){var o=1&t,a=Si(e);return function t(){for(var s=-1,c=arguments.length,l=-1,u=i.length,d=r(u+c),f=this&&this!==Ye&&this instanceof t?a:e;++l<u;)d[l]=i[l];for(;c--;)d[l++]=arguments[++s];return ot(f,o?n:this,d)}}(e,t,n,i);else var g=function(e,t,n){var r=1&t,i=Si(e);return function t(){var o=this&&this!==Ye&&this instanceof t?i:e;return o.apply(r?n:this,arguments)}}(e,t,n);return ko((m?Vr:yo)(g,v),e,t)}function Bi(e,t,n,r){return void 0===e||Ea(e,we[n])&&!Ce.call(r,n)?t:e}function $i(e,t,n,r,i,o){return Ha(e)&&Ha(t)&&(o.set(t,e),Or(e,t,void 0,$i,o),o.delete(t)),e}function Vi(e){return Ya(e)?void 0:e}function Hi(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,h=2&n?new Rn:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var p=e[d],m=t[d];if(r)var v=a?r(m,p,d,t,e,o):r(p,m,d,e,t,o);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!gt(t,(function(e,t){if(!It(h,t)&&(p===e||i(p,e,n,r,o)))return h.push(t)}))){f=!1;break}}else if(p!==m&&!i(p,m,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function Ui(e){return wo(mo(e,void 0,jo),e+"")}function qi(e){return fr(e,_s,eo)}function Wi(e){return fr(e,ws,to)}var Yi=bn?function(e){return bn.get(e)}:Js;function Gi(e){for(var t=e.name+"",n=yn[t],r=Ce.call(yn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ki(e){return(Ce.call(Mn,"placeholder")?Mn:e).placeholder}function Qi(){var e=Mn.iteratee||Ys;return e=e===Ys?xr:e,arguments.length?e(arguments[0],arguments[1]):e}function Ji(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Xi(e){for(var t=_s(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ho(i)]}return t}function Zi(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return kr(n)?n:void 0}var eo=en?function(e){return null==e?[]:(e=me(e),ut(en(e),(function(t){return Ge.call(e,t)})))}:ic,to=en?function(e){for(var t=[];e;)pt(t,eo(e)),e=qe(e);return t}:ic,no=hr;function ro(e,t,n){for(var r=-1,i=(t=si(t,e)).length,o=!1;++r<i;){var a=To(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Va(i)&&ao(a,i)&&(Da(e)||Ia(e))}function io(e){return"function"!=typeof e.constructor||fo(e)?{}:En(qe(e))}function oo(e){return Da(e)||Ia(e)||!!(Je&&e&&e[Je])}function ao(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ce.test(e))&&e>-1&&e%1==0&&e<t}function so(e,t,n){if(!Ha(n))return!1;var r=typeof t;return!!("number"==r?Na(n)&&ao(t,n.length):"string"==r&&t in n)&&Ea(n[t],e)}function co(e,t){if(Da(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ja(e))||(U.test(e)||!H.test(e)||null!=t&&e in me(t))}function lo(e){var t=Gi(e),n=Mn[t];if("function"!=typeof n||!(t in In.prototype))return!1;if(e===n)return!0;var r=Yi(n);return!!r&&e===r[0]}(fn&&no(new fn(new ArrayBuffer(1)))!=C||hn&&no(new hn)!=m||pn&&"[object Promise]"!=no(pn.resolve())||mn&&no(new mn)!=y||vn&&no(new vn)!=k)&&(no=function(e){var t=hr(e),n=t==g?e.constructor:void 0,r=n?Ao(n):"";if(r)switch(r){case _n:return C;case wn:return m;case kn:return"[object Promise]";case xn:return y;case Cn:return k}return t});var uo=ke?Ba:oc;function fo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function ho(e){return e==e&&!Ha(e)}function po(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in me(n)))}}function mo(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=an(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var c=r(t+1);++o<t;)c[o]=i[o];return c[t]=n(s),ot(e,this,c)}}function vo(e,t){return t.length<2?e:dr(e,qr(t,0,-1))}function go(e,t){for(var n=e.length,r=sn(t.length,n),i=gi(e);r--;){var o=t[r];e[r]=ao(o,n)?i[o]:void 0}return e}function bo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var yo=xo(Vr),_o=Jt||function(e,t){return Ye.setTimeout(e,t)},wo=xo(Hr);function ko(e,t,n){var r=t+"";return wo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(J,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(Z):[]}(r),n)))}function xo(e){var t=0,n=0;return function(){var r=cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Co(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=Rr(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var So=function(e){var t=xa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(q,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function To(e){if("string"==typeof e||Ja(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ao(e){if(null!=e){try{return xe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Mo(e){if(e instanceof In)return e.clone();var t=new Pn(e.__wrapped__,e.__chain__);return t.__actions__=gi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Eo=zr((function(e,t){return Ra(e)?Zn(e,or(t,1,Ra,!0)):[]})),Oo=zr((function(e,t){var n=Fo(t);return Ra(n)&&(n=void 0),Ra(e)?Zn(e,or(t,1,Ra,!0),Qi(n,2)):[]})),Po=zr((function(e,t){var n=Fo(t);return Ra(n)&&(n=void 0),Ra(e)?Zn(e,or(t,1,Ra,!0),void 0,n):[]}));function Io(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),_t(e,Qi(t,3),i)}function Do(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rs(n),i=n<0?an(r+i,0):sn(i,r-1)),_t(e,Qi(t,3),i,!0)}function jo(e){return(null==e?0:e.length)?or(e,1):[]}function No(e){return e&&e.length?e[0]:void 0}var Ro=zr((function(e){var t=ht(e,oi);return t.length&&t[0]===e[0]?gr(t):[]})),Lo=zr((function(e){var t=Fo(e),n=ht(e,oi);return t===Fo(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?gr(n,Qi(t,2)):[]})),zo=zr((function(e){var t=Fo(e),n=ht(e,oi);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?gr(n,void 0,t):[]}));function Fo(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Bo=zr($o);function $o(e,t){return e&&e.length&&t&&t.length?jr(e,t):e}var Vo=Ui((function(e,t){var n=null==e?0:e.length,r=Gn(e,t);return Nr(e,ht(t,(function(e){return ao(e,n)?+e:e})).sort(pi)),r}));function Ho(e){return null==e?e:dn.call(e)}var Uo=zr((function(e){return Xr(or(e,1,Ra,!0))})),qo=zr((function(e){var t=Fo(e);return Ra(t)&&(t=void 0),Xr(or(e,1,Ra,!0),Qi(t,2))})),Wo=zr((function(e){var t=Fo(e);return t="function"==typeof t?t:void 0,Xr(or(e,1,Ra,!0),void 0,t)}));function Yo(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(Ra(e))return t=an(e.length,t),!0})),Et(t,(function(t){return ht(e,St(t))}))}function Go(e,t){if(!e||!e.length)return[];var n=Yo(e);return null==t?n:ht(n,(function(e){return ot(t,void 0,e)}))}var Ko=zr((function(e,t){return Ra(e)?Zn(e,t):[]})),Qo=zr((function(e){return ri(ut(e,Ra))})),Jo=zr((function(e){var t=Fo(e);return Ra(t)&&(t=void 0),ri(ut(e,Ra),Qi(t,2))})),Xo=zr((function(e){var t=Fo(e);return t="function"==typeof t?t:void 0,ri(ut(e,Ra),void 0,t)})),Zo=zr(Yo);var ea=zr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Go(e,n)}));function ta(e){var t=Mn(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var ra=Ui((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Gn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof In&&ao(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var ia=yi((function(e,t,n){Ce.call(e,n)?++e[n]:Yn(e,n,1)}));var oa=Ti(Io),aa=Ti(Do);function sa(e,t){return(Da(e)?st:er)(e,Qi(t,3))}function ca(e,t){return(Da(e)?ct:tr)(e,Qi(t,3))}var la=yi((function(e,t,n){Ce.call(e,n)?e[n].push(t):Yn(e,n,[t])}));var ua=zr((function(e,t,n){var i=-1,o="function"==typeof t,a=Na(e)?r(e.length):[];return er(e,(function(e){a[++i]=o?ot(t,e,n):br(e,t,n)})),a})),da=yi((function(e,t,n){Yn(e,n,t)}));function fa(e,t){return(Da(e)?ht:Ar)(e,Qi(t,3))}var ha=yi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var pa=zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&so(e,t[0],t[1])?t=[]:n>2&&so(t[0],t[1],t[2])&&(t=[t[0]]),Ir(e,or(t,1),[])})),ma=Qt||function(){return Ye.Date.now()};function va(e,t,n){return t=n?void 0:t,Fi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ga(e,t){var n;if("function"!=typeof t)throw new be(o);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=zr((function(e,t,n){var r=1;if(n.length){var i=Vt(n,Ki(ba));r|=32}return Fi(e,r,t,n,i)})),ya=zr((function(e,t,n){var r=3;if(n.length){var i=Vt(n,Ki(ya));r|=32}return Fi(t,r,e,n,i)}));function _a(e,t,n){var r,i,a,s,c,l,u=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw new be(o);function p(t){var n=r,o=i;return r=i=void 0,u=t,s=e.apply(o,n)}function m(e){return u=e,c=_o(g,t),d?p(e):s}function v(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-u>=a}function g(){var e=ma();if(v(e))return b(e);c=_o(g,function(e){var n=t-(e-l);return f?sn(n,a-(e-u)):n}(e))}function b(e){return c=void 0,h&&r?p(e):(r=i=void 0,s)}function y(){var e=ma(),n=v(e);if(r=arguments,i=this,l=e,n){if(void 0===c)return m(l);if(f)return ui(c),c=_o(g,t),p(l)}return void 0===c&&(c=_o(g,t)),s}return t=os(t)||0,Ha(n)&&(d=!!n.leading,a=(f="maxWait"in n)?an(os(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==c&&ui(c),u=0,r=l=i=c=void 0},y.flush=function(){return void 0===c?s:b(ma())},y}var wa=zr((function(e,t){return Xn(e,1,t)})),ka=zr((function(e,t,n){return Xn(e,os(t)||0,n)}));function xa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new be(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(xa.Cache||Nn),n}function Ca(e){if("function"!=typeof e)throw new be(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}xa.Cache=Nn;var Sa=ci((function(e,t){var n=(t=1==t.length&&Da(t[0])?ht(t[0],Ot(Qi())):ht(or(t,1),Ot(Qi()))).length;return zr((function(r){for(var i=-1,o=sn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ot(e,this,r)}))})),Ta=zr((function(e,t){return Fi(e,32,void 0,t,Vt(t,Ki(Ta)))})),Aa=zr((function(e,t){return Fi(e,64,void 0,t,Vt(t,Ki(Aa)))})),Ma=Ui((function(e,t){return Fi(e,256,void 0,void 0,void 0,t)}));function Ea(e,t){return e===t||e!=e&&t!=t}var Oa=ji(pr),Pa=ji((function(e,t){return e>=t})),Ia=yr(function(){return arguments}())?yr:function(e){return Ua(e)&&Ce.call(e,"callee")&&!Ge.call(e,"callee")},Da=r.isArray,ja=Ze?Ot(Ze):function(e){return Ua(e)&&hr(e)==x};function Na(e){return null!=e&&Va(e.length)&&!Ba(e)}function Ra(e){return Ua(e)&&Na(e)}var La=tn||oc,za=et?Ot(et):function(e){return Ua(e)&&hr(e)==d};function Fa(e){if(!Ua(e))return!1;var t=hr(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ya(e)}function Ba(e){if(!Ha(e))return!1;var t=hr(e);return t==h||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==rs(e)}function Va(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ha(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ua(e){return null!=e&&"object"==typeof e}var qa=tt?Ot(tt):function(e){return Ua(e)&&no(e)==m};function Wa(e){return"number"==typeof e||Ua(e)&&hr(e)==v}function Ya(e){if(!Ua(e)||hr(e)!=g)return!1;var t=qe(e);if(null===t)return!0;var n=Ce.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xe.call(n)==Me}var Ga=nt?Ot(nt):function(e){return Ua(e)&&hr(e)==b};var Ka=rt?Ot(rt):function(e){return Ua(e)&&no(e)==y};function Qa(e){return"string"==typeof e||!Da(e)&&Ua(e)&&hr(e)==_}function Ja(e){return"symbol"==typeof e||Ua(e)&&hr(e)==w}var Xa=it?Ot(it):function(e){return Ua(e)&&Va(e.length)&&!!Be[hr(e)]};var Za=ji(Tr),es=ji((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Na(e))return Qa(e)?Wt(e):gi(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=no(e);return(t==m?Bt:t==y?Ht:Es)(e)}function ns(e){return e?(e=os(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function is(e){return e?Kn(rs(e),0,4294967295):0}function os(e){if("number"==typeof e)return e;if(Ja(e))return NaN;if(Ha(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ha(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(G,"");var n=oe.test(e);return n||se.test(e)?Ue(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function as(e){return bi(e,ws(e))}function ss(e){return null==e?"":Jr(e)}var cs=_i((function(e,t){if(fo(t)||Na(t))bi(t,_s(t),e);else for(var n in t)Ce.call(t,n)&&Hn(e,n,t[n])})),ls=_i((function(e,t){bi(t,ws(t),e)})),us=_i((function(e,t,n,r){bi(t,ws(t),e,r)})),ds=_i((function(e,t,n,r){bi(t,_s(t),e,r)})),fs=Ui(Gn);var hs=zr((function(e,t){e=me(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&so(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=ws(o),s=-1,c=a.length;++s<c;){var l=a[s],u=e[l];(void 0===u||Ea(u,we[l])&&!Ce.call(e,l))&&(e[l]=o[l])}return e})),ps=zr((function(e){return e.push(void 0,$i),ot(xs,void 0,e)}));function ms(e,t,n){var r=null==e?void 0:dr(e,t);return void 0===r?n:r}function vs(e,t){return null!=e&&ro(e,t,vr)}var gs=Ei((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),e[t]=n}),Hs(Ws)),bs=Ei((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),Ce.call(e,t)?e[t].push(n):e[t]=[n]}),Qi),ys=zr(br);function _s(e){return Na(e)?zn(e):Cr(e)}function ws(e){return Na(e)?zn(e,!0):Sr(e)}var ks=_i((function(e,t,n){Or(e,t,n)})),xs=_i((function(e,t,n,r){Or(e,t,n,r)})),Cs=Ui((function(e,t){var n={};if(null==e)return n;var r=!1;t=ht(t,(function(t){return t=si(t,e),r||(r=t.length>1),t})),bi(e,Wi(e),n),r&&(n=Qn(n,7,Vi));for(var i=t.length;i--;)Zr(n,t[i]);return n}));var Ss=Ui((function(e,t){return null==e?{}:function(e,t){return Dr(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Ts(e,t){if(null==e)return{};var n=ht(Wi(e),(function(e){return[e]}));return t=Qi(t),Dr(e,n,(function(e,n){return t(e,n[0])}))}var As=zi(_s),Ms=zi(ws);function Es(e){return null==e?[]:Pt(e,_s(e))}var Os=Ci((function(e,t,n){return t=t.toLowerCase(),e+(n?Ps(t):t)}));function Ps(e){return Fs(ss(e).toLowerCase())}function Is(e){return(e=ss(e))&&e.replace(le,Rt).replace(De,"")}var Ds=Ci((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),js=Ci((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ns=xi("toLowerCase");var Rs=Ci((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ls=Ci((function(e,t,n){return e+(n?" ":"")+Fs(t)}));var zs=Ci((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Fs=xi("toUpperCase");function Bs(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var $s=zr((function(e,t){try{return ot(e,void 0,t)}catch(e){return Fa(e)?e:new fe(e)}})),Vs=Ui((function(e,t){return st(t,(function(t){t=To(t),Yn(e,t,ba(e[t],e))})),e}));function Hs(e){return function(){return e}}var Us=Ai(),qs=Ai(!0);function Ws(e){return e}function Ys(e){return xr("function"==typeof e?e:Qn(e,1))}var Gs=zr((function(e,t){return function(n){return br(n,e,t)}})),Ks=zr((function(e,t){return function(n){return br(e,n,t)}}));function Qs(e,t,n){var r=_s(t),i=ur(t,r);null!=n||Ha(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=ur(t,_s(t)));var o=!(Ha(n)&&"chain"in n&&!n.chain),a=Ba(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=gi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Js(){}var Xs=Pi(ht),Zs=Pi(lt),ec=Pi(gt);function tc(e){return co(e)?St(To(e)):function(e){return function(t){return dr(t,e)}}(e)}var nc=Di(),rc=Di(!0);function ic(){return[]}function oc(){return!1}var ac=Oi((function(e,t){return e+t}),0),sc=Ri("ceil"),cc=Oi((function(e,t){return e/t}),1),lc=Ri("floor");var uc,dc=Oi((function(e,t){return e*t}),1),fc=Ri("round"),hc=Oi((function(e,t){return e-t}),0);return Mn.after=function(e,t){if("function"!=typeof t)throw new be(o);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},Mn.ary=va,Mn.assign=cs,Mn.assignIn=ls,Mn.assignInWith=us,Mn.assignWith=ds,Mn.at=fs,Mn.before=ga,Mn.bind=ba,Mn.bindAll=Vs,Mn.bindKey=ya,Mn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Da(e)?e:[e]},Mn.chain=ta,Mn.chunk=function(e,t,n){t=(n?so(e,t,n):void 0===t)?1:an(rs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Xt(i/t));o<i;)s[a++]=qr(e,o,o+=t);return s},Mn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Mn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return pt(Da(n)?gi(n):[n],or(t,1))},Mn.cond=function(e){var t=null==e?0:e.length,n=Qi();return e=t?ht(e,(function(e){if("function"!=typeof e[1])throw new be(o);return[n(e[0]),e[1]]})):[],zr((function(n){for(var r=-1;++r<t;){var i=e[r];if(ot(i[0],this,n))return ot(i[1],this,n)}}))},Mn.conforms=function(e){return function(e){var t=_s(e);return function(n){return Jn(n,e,t)}}(Qn(e,1))},Mn.constant=Hs,Mn.countBy=ia,Mn.create=function(e,t){var n=En(e);return null==t?n:Wn(n,t)},Mn.curry=function e(t,n,r){var i=Fi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Mn.curryRight=function e(t,n,r){var i=Fi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Mn.debounce=_a,Mn.defaults=hs,Mn.defaultsDeep=ps,Mn.defer=wa,Mn.delay=ka,Mn.difference=Eo,Mn.differenceBy=Oo,Mn.differenceWith=Po,Mn.drop=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=n||void 0===t?1:rs(t))<0?0:t,r):[]},Mn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,0,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t):[]},Mn.dropRightWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3),!0,!0):[]},Mn.dropWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3),!0):[]},Mn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&so(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=rs(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Mn.filter=function(e,t){return(Da(e)?ut:ir)(e,Qi(t,3))},Mn.flatMap=function(e,t){return or(fa(e,t),1)},Mn.flatMapDeep=function(e,t){return or(fa(e,t),1/0)},Mn.flatMapDepth=function(e,t,n){return n=void 0===n?1:rs(n),or(fa(e,t),n)},Mn.flatten=jo,Mn.flattenDeep=function(e){return(null==e?0:e.length)?or(e,1/0):[]},Mn.flattenDepth=function(e,t){return(null==e?0:e.length)?or(e,t=void 0===t?1:rs(t)):[]},Mn.flip=function(e){return Fi(e,512)},Mn.flow=Us,Mn.flowRight=qs,Mn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Mn.functions=function(e){return null==e?[]:ur(e,_s(e))},Mn.functionsIn=function(e){return null==e?[]:ur(e,ws(e))},Mn.groupBy=la,Mn.initial=function(e){return(null==e?0:e.length)?qr(e,0,-1):[]},Mn.intersection=Ro,Mn.intersectionBy=Lo,Mn.intersectionWith=zo,Mn.invert=gs,Mn.invertBy=bs,Mn.invokeMap=ua,Mn.iteratee=Ys,Mn.keyBy=da,Mn.keys=_s,Mn.keysIn=ws,Mn.map=fa,Mn.mapKeys=function(e,t){var n={};return t=Qi(t,3),cr(e,(function(e,r,i){Yn(n,t(e,r,i),e)})),n},Mn.mapValues=function(e,t){var n={};return t=Qi(t,3),cr(e,(function(e,r,i){Yn(n,r,t(e,r,i))})),n},Mn.matches=function(e){return Mr(Qn(e,1))},Mn.matchesProperty=function(e,t){return Er(e,Qn(t,1))},Mn.memoize=xa,Mn.merge=ks,Mn.mergeWith=xs,Mn.method=Gs,Mn.methodOf=Ks,Mn.mixin=Qs,Mn.negate=Ca,Mn.nthArg=function(e){return e=rs(e),zr((function(t){return Pr(t,e)}))},Mn.omit=Cs,Mn.omitBy=function(e,t){return Ts(e,Ca(Qi(t)))},Mn.once=function(e){return ga(2,e)},Mn.orderBy=function(e,t,n,r){return null==e?[]:(Da(t)||(t=null==t?[]:[t]),Da(n=r?void 0:n)||(n=null==n?[]:[n]),Ir(e,t,n))},Mn.over=Xs,Mn.overArgs=Sa,Mn.overEvery=Zs,Mn.overSome=ec,Mn.partial=Ta,Mn.partialRight=Aa,Mn.partition=ha,Mn.pick=Ss,Mn.pickBy=Ts,Mn.property=tc,Mn.propertyOf=function(e){return function(t){return null==e?void 0:dr(e,t)}},Mn.pull=Bo,Mn.pullAll=$o,Mn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?jr(e,t,Qi(n,2)):e},Mn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?jr(e,t,void 0,n):e},Mn.pullAt=Vo,Mn.range=nc,Mn.rangeRight=rc,Mn.rearg=Ma,Mn.reject=function(e,t){return(Da(e)?ut:ir)(e,Ca(Qi(t,3)))},Mn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Qi(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Nr(e,i),n},Mn.rest=function(e,t){if("function"!=typeof e)throw new be(o);return zr(e,t=void 0===t?t:rs(t))},Mn.reverse=Ho,Mn.sampleSize=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),(Da(e)?Bn:Br)(e,t)},Mn.set=function(e,t,n){return null==e?e:$r(e,t,n)},Mn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:$r(e,t,n,r)},Mn.shuffle=function(e){return(Da(e)?$n:Ur)(e)},Mn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&so(e,t,n)?(t=0,n=r):(t=null==t?0:rs(t),n=void 0===n?r:rs(n)),qr(e,t,n)):[]},Mn.sortBy=pa,Mn.sortedUniq=function(e){return e&&e.length?Kr(e):[]},Mn.sortedUniqBy=function(e,t){return e&&e.length?Kr(e,Qi(t,2)):[]},Mn.split=function(e,t,n){return n&&"number"!=typeof n&&so(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Ga(t))&&!(t=Jr(t))&&Ft(e)?li(Wt(e),0,n):e.split(t,n):[]},Mn.spread=function(e,t){if("function"!=typeof e)throw new be(o);return t=null==t?0:an(rs(t),0),zr((function(n){var r=n[t],i=li(n,0,t);return r&&pt(i,r),ot(e,this,i)}))},Mn.tail=function(e){var t=null==e?0:e.length;return t?qr(e,1,t):[]},Mn.take=function(e,t,n){return e&&e.length?qr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},Mn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},Mn.takeRightWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3),!1,!0):[]},Mn.takeWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3)):[]},Mn.tap=function(e,t){return t(e),e},Mn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new be(o);return Ha(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_a(e,t,{leading:r,maxWait:t,trailing:i})},Mn.thru=na,Mn.toArray=ts,Mn.toPairs=As,Mn.toPairsIn=Ms,Mn.toPath=function(e){return Da(e)?ht(e,To):Ja(e)?[e]:gi(So(ss(e)))},Mn.toPlainObject=as,Mn.transform=function(e,t,n){var r=Da(e),i=r||La(e)||Xa(e);if(t=Qi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ha(e)&&Ba(o)?En(qe(e)):{}}return(i?st:cr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Mn.unary=function(e){return va(e,1)},Mn.union=Uo,Mn.unionBy=qo,Mn.unionWith=Wo,Mn.uniq=function(e){return e&&e.length?Xr(e):[]},Mn.uniqBy=function(e,t){return e&&e.length?Xr(e,Qi(t,2)):[]},Mn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Xr(e,void 0,t):[]},Mn.unset=function(e,t){return null==e||Zr(e,t)},Mn.unzip=Yo,Mn.unzipWith=Go,Mn.update=function(e,t,n){return null==e?e:ei(e,t,ai(n))},Mn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ei(e,t,ai(n),r)},Mn.values=Es,Mn.valuesIn=function(e){return null==e?[]:Pt(e,ws(e))},Mn.without=Ko,Mn.words=Bs,Mn.wrap=function(e,t){return Ta(ai(t),e)},Mn.xor=Qo,Mn.xorBy=Jo,Mn.xorWith=Xo,Mn.zip=Zo,Mn.zipObject=function(e,t){return ii(e||[],t||[],Hn)},Mn.zipObjectDeep=function(e,t){return ii(e||[],t||[],$r)},Mn.zipWith=ea,Mn.entries=As,Mn.entriesIn=Ms,Mn.extend=ls,Mn.extendWith=us,Qs(Mn,Mn),Mn.add=ac,Mn.attempt=$s,Mn.camelCase=Os,Mn.capitalize=Ps,Mn.ceil=sc,Mn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=os(n))==n?n:0),void 0!==t&&(t=(t=os(t))==t?t:0),Kn(os(e),t,n)},Mn.clone=function(e){return Qn(e,4)},Mn.cloneDeep=function(e){return Qn(e,5)},Mn.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},Mn.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},Mn.conformsTo=function(e,t){return null==t||Jn(e,t,_s(t))},Mn.deburr=Is,Mn.defaultTo=function(e,t){return null==e||e!=e?t:e},Mn.divide=cc,Mn.endsWith=function(e,t,n){e=ss(e),t=Jr(t);var r=e.length,i=n=void 0===n?r:Kn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Mn.eq=Ea,Mn.escape=function(e){return(e=ss(e))&&F.test(e)?e.replace(L,Lt):e},Mn.escapeRegExp=function(e){return(e=ss(e))&&Y.test(e)?e.replace(W,"\\$&"):e},Mn.every=function(e,t,n){var r=Da(e)?lt:nr;return n&&so(e,t,n)&&(t=void 0),r(e,Qi(t,3))},Mn.find=oa,Mn.findIndex=Io,Mn.findKey=function(e,t){return yt(e,Qi(t,3),cr)},Mn.findLast=aa,Mn.findLastIndex=Do,Mn.findLastKey=function(e,t){return yt(e,Qi(t,3),lr)},Mn.floor=lc,Mn.forEach=sa,Mn.forEachRight=ca,Mn.forIn=function(e,t){return null==e?e:ar(e,Qi(t,3),ws)},Mn.forInRight=function(e,t){return null==e?e:sr(e,Qi(t,3),ws)},Mn.forOwn=function(e,t){return e&&cr(e,Qi(t,3))},Mn.forOwnRight=function(e,t){return e&&lr(e,Qi(t,3))},Mn.get=ms,Mn.gt=Oa,Mn.gte=Pa,Mn.has=function(e,t){return null!=e&&ro(e,t,mr)},Mn.hasIn=vs,Mn.head=No,Mn.identity=Ws,Mn.includes=function(e,t,n,r){e=Na(e)?e:Es(e),n=n&&!r?rs(n):0;var i=e.length;return n<0&&(n=an(i+n,0)),Qa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},Mn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),wt(e,t,i)},Mn.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e<an(t,n)}(e=os(e),t,n)},Mn.invoke=ys,Mn.isArguments=Ia,Mn.isArray=Da,Mn.isArrayBuffer=ja,Mn.isArrayLike=Na,Mn.isArrayLikeObject=Ra,Mn.isBoolean=function(e){return!0===e||!1===e||Ua(e)&&hr(e)==u},Mn.isBuffer=La,Mn.isDate=za,Mn.isElement=function(e){return Ua(e)&&1===e.nodeType&&!Ya(e)},Mn.isEmpty=function(e){if(null==e)return!0;if(Na(e)&&(Da(e)||"string"==typeof e||"function"==typeof e.splice||La(e)||Xa(e)||Ia(e)))return!e.length;var t=no(e);if(t==m||t==y)return!e.size;if(fo(e))return!Cr(e).length;for(var n in e)if(Ce.call(e,n))return!1;return!0},Mn.isEqual=function(e,t){return _r(e,t)},Mn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?_r(e,t,void 0,n):!!r},Mn.isError=Fa,Mn.isFinite=function(e){return"number"==typeof e&&nn(e)},Mn.isFunction=Ba,Mn.isInteger=$a,Mn.isLength=Va,Mn.isMap=qa,Mn.isMatch=function(e,t){return e===t||wr(e,t,Xi(t))},Mn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,wr(e,t,Xi(t),n)},Mn.isNaN=function(e){return Wa(e)&&e!=+e},Mn.isNative=function(e){if(uo(e))throw new fe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(e)},Mn.isNil=function(e){return null==e},Mn.isNull=function(e){return null===e},Mn.isNumber=Wa,Mn.isObject=Ha,Mn.isObjectLike=Ua,Mn.isPlainObject=Ya,Mn.isRegExp=Ga,Mn.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=9007199254740991},Mn.isSet=Ka,Mn.isString=Qa,Mn.isSymbol=Ja,Mn.isTypedArray=Xa,Mn.isUndefined=function(e){return void 0===e},Mn.isWeakMap=function(e){return Ua(e)&&no(e)==k},Mn.isWeakSet=function(e){return Ua(e)&&"[object WeakSet]"==hr(e)},Mn.join=function(e,t){return null==e?"":rn.call(e,t)},Mn.kebabCase=Ds,Mn.last=Fo,Mn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?an(r+i,0):sn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):_t(e,xt,i,!0)},Mn.lowerCase=js,Mn.lowerFirst=Ns,Mn.lt=Za,Mn.lte=es,Mn.max=function(e){return e&&e.length?rr(e,Ws,pr):void 0},Mn.maxBy=function(e,t){return e&&e.length?rr(e,Qi(t,2),pr):void 0},Mn.mean=function(e){return Ct(e,Ws)},Mn.meanBy=function(e,t){return Ct(e,Qi(t,2))},Mn.min=function(e){return e&&e.length?rr(e,Ws,Tr):void 0},Mn.minBy=function(e,t){return e&&e.length?rr(e,Qi(t,2),Tr):void 0},Mn.stubArray=ic,Mn.stubFalse=oc,Mn.stubObject=function(){return{}},Mn.stubString=function(){return""},Mn.stubTrue=function(){return!0},Mn.multiply=dc,Mn.nth=function(e,t){return e&&e.length?Pr(e,rs(t)):void 0},Mn.noConflict=function(){return Ye._===this&&(Ye._=Ee),this},Mn.noop=Js,Mn.now=ma,Mn.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?qt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ii(Zt(i),n)+e+Ii(Xt(i),n)},Mn.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?qt(e):0;return t&&r<t?e+Ii(t-r,n):e},Mn.padStart=function(e,t,n){e=ss(e);var r=(t=rs(t))?qt(e):0;return t&&r<t?Ii(t-r,n)+e:e},Mn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ln(ss(e).replace(K,""),t||0)},Mn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&so(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ns(e),void 0===t?(t=e,e=0):t=ns(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=un();return sn(e+i*(t-e+He("1e-"+((i+"").length-1))),t)}return Rr(e,t)},Mn.reduce=function(e,t,n){var r=Da(e)?mt:At,i=arguments.length<3;return r(e,Qi(t,4),n,i,er)},Mn.reduceRight=function(e,t,n){var r=Da(e)?vt:At,i=arguments.length<3;return r(e,Qi(t,4),n,i,tr)},Mn.repeat=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),Lr(ss(e),t)},Mn.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Mn.result=function(e,t,n){var r=-1,i=(t=si(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[To(t[r])];void 0===o&&(r=i,o=n),e=Ba(o)?o.call(e):o}return e},Mn.round=fc,Mn.runInContext=e,Mn.sample=function(e){return(Da(e)?Fn:Fr)(e)},Mn.size=function(e){if(null==e)return 0;if(Na(e))return Qa(e)?qt(e):e.length;var t=no(e);return t==m||t==y?e.size:Cr(e).length},Mn.snakeCase=Rs,Mn.some=function(e,t,n){var r=Da(e)?gt:Wr;return n&&so(e,t,n)&&(t=void 0),r(e,Qi(t,3))},Mn.sortedIndex=function(e,t){return Yr(e,t)},Mn.sortedIndexBy=function(e,t,n){return Gr(e,t,Qi(n,2))},Mn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Yr(e,t);if(r<n&&Ea(e[r],t))return r}return-1},Mn.sortedLastIndex=function(e,t){return Yr(e,t,!0)},Mn.sortedLastIndexBy=function(e,t,n){return Gr(e,t,Qi(n,2),!0)},Mn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Yr(e,t,!0)-1;if(Ea(e[n],t))return n}return-1},Mn.startCase=Ls,Mn.startsWith=function(e,t,n){return e=ss(e),n=null==n?0:Kn(rs(n),0,e.length),t=Jr(t),e.slice(n,n+t.length)==t},Mn.subtract=hc,Mn.sum=function(e){return e&&e.length?Mt(e,Ws):0},Mn.sumBy=function(e,t){return e&&e.length?Mt(e,Qi(t,2)):0},Mn.template=function(e,t,n){var r=Mn.templateSettings;n&&so(e,t,n)&&(t=void 0),e=ss(e),t=us({},t,r,Bi);var i,o,a=us({},t.imports,r.imports,Bi),s=_s(a),c=Pt(a,s),l=0,u=t.interpolate||ue,d="__p += '",f=ve((t.escape||ue).source+"|"+u.source+"|"+(u===V?ne:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),h="//# sourceURL="+(Ce.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fe+"]")+"\n";e.replace(f,(function(t,n,r,a,s,c){return r||(r=a),d+=e.slice(l,c).replace(de,zt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),d+="';\n";var p=Ce.call(t,"variable")&&t.variable;p||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(D,""):d).replace(j,"$1").replace(N,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=$s((function(){return he(s,h+"return "+d).apply(void 0,c)}));if(m.source=d,Fa(m))throw m;return m},Mn.times=function(e,t){if((e=rs(e))<1||e>9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var i=Et(r,t=Qi(t));++n<e;)t(n);return i},Mn.toFinite=ns,Mn.toInteger=rs,Mn.toLength=is,Mn.toLower=function(e){return ss(e).toLowerCase()},Mn.toNumber=os,Mn.toSafeInteger=function(e){return e?Kn(rs(e),-9007199254740991,9007199254740991):0===e?e:0},Mn.toString=ss,Mn.toUpper=function(e){return ss(e).toUpperCase()},Mn.trim=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(G,"");if(!e||!(t=Jr(t)))return e;var r=Wt(e),i=Wt(t);return li(r,Dt(r,i),jt(r,i)+1).join("")},Mn.trimEnd=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(Q,"");if(!e||!(t=Jr(t)))return e;var r=Wt(e);return li(r,0,jt(r,Wt(t))+1).join("")},Mn.trimStart=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(K,"");if(!e||!(t=Jr(t)))return e;var r=Wt(e);return li(r,Dt(r,Wt(t))).join("")},Mn.truncate=function(e,t){var n=30,r="...";if(Ha(t)){var i="separator"in t?t.separator:i;n="length"in t?rs(t.length):n,r="omission"in t?Jr(t.omission):r}var o=(e=ss(e)).length;if(Ft(e)){var a=Wt(e);o=a.length}if(n>=o)return e;var s=n-qt(r);if(s<1)return r;var c=a?li(a,0,s).join(""):e.slice(0,s);if(void 0===i)return c+r;if(a&&(s+=c.length-s),Ga(i)){if(e.slice(s).search(i)){var l,u=c;for(i.global||(i=ve(i.source,ss(re.exec(i))+"g")),i.lastIndex=0;l=i.exec(u);)var d=l.index;c=c.slice(0,void 0===d?s:d)}}else if(e.indexOf(Jr(i),s)!=s){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+r},Mn.unescape=function(e){return(e=ss(e))&&z.test(e)?e.replace(R,Yt):e},Mn.uniqueId=function(e){var t=++Se;return ss(e)+t},Mn.upperCase=zs,Mn.upperFirst=Fs,Mn.each=sa,Mn.eachRight=ca,Mn.first=No,Qs(Mn,(uc={},cr(Mn,(function(e,t){Ce.call(Mn.prototype,t)||(uc[t]=e)})),uc),{chain:!1}),Mn.VERSION="4.17.20",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Mn[e].placeholder=Mn})),st(["drop","take"],(function(e,t){In.prototype[e]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!t?new In(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},In.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;In.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");In.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");In.prototype[e]=function(){return this.__filtered__?new In(this):this[n](1)}})),In.prototype.compact=function(){return this.filter(Ws)},In.prototype.find=function(e){return this.filter(e).head()},In.prototype.findLast=function(e){return this.reverse().find(e)},In.prototype.invokeMap=zr((function(e,t){return"function"==typeof e?new In(this):this.map((function(n){return br(n,e,t)}))})),In.prototype.reject=function(e){return this.filter(Ca(Qi(e)))},In.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new In(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},In.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},In.prototype.toArray=function(){return this.take(4294967295)},cr(In.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Mn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Mn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof In,c=a[0],l=s||Da(t),u=function(e){var t=i.apply(Mn,pt([e],a));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var d=this.__chain__,f=!!this.__actions__.length,h=o&&!d,p=s&&!f;if(!o&&l){t=p?t:new In(this);var m=e.apply(t,a);return m.__actions__.push({func:na,args:[u],thisArg:void 0}),new Pn(m,d)}return h&&p?e.apply(this,a):(m=this.thru(u),h?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Mn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Da(i)?i:[],e)}return this[n]((function(n){return t.apply(Da(n)?n:[],e)}))}})),cr(In.prototype,(function(e,t){var n=Mn[t];if(n){var r=n.name+"";Ce.call(yn,r)||(yn[r]=[]),yn[r].push({name:t,func:n})}})),yn[Mi(void 0,2).name]=[{name:"wrapper",func:void 0}],In.prototype.clone=function(){var e=new In(this.__wrapped__);return e.__actions__=gi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=gi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=gi(this.__views__),e},In.prototype.reverse=function(){if(this.__filtered__){var e=new In(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},In.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Da(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=sn(t,e+a);break;case"takeRight":e=an(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,c=s-a,l=r?s:a-1,u=this.__iteratees__,d=u.length,f=0,h=sn(c,this.__takeCount__);if(!n||!r&&i==c&&h==c)return ni(e,this.__actions__);var p=[];e:for(;c--&&f<h;){for(var m=-1,v=e[l+=t];++m<d;){var g=u[m],b=g.iteratee,y=g.type,_=b(v);if(2==y)v=_;else if(!_){if(1==y)continue e;break e}}p[f++]=v}return p},Mn.prototype.at=ra,Mn.prototype.chain=function(){return ta(this)},Mn.prototype.commit=function(){return new Pn(this.value(),this.__chain__)},Mn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ts(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Mn.prototype.plant=function(e){for(var t,n=this;n instanceof On;){var r=Mo(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Mn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof In){var t=e;return this.__actions__.length&&(t=new In(this)),(t=t.reverse()).__actions__.push({func:na,args:[Ho],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Ho)},Mn.prototype.toJSON=Mn.prototype.valueOf=Mn.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},Mn.prototype.first=Mn.prototype.head,Xe&&(Mn.prototype[Xe]=function(){return this}),Mn}();Ye._=Gt,void 0===(i=function(){return Gt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(7),n(41)(e))},function(e,t,n){var r;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,c=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},l=o.push,u=o.indexOf,d={},f=d.toString,h=d.hasOwnProperty,p=h.toString,m=p.call(Object),v={},g=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},y=n.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||y).createElement("script");if(o.text=e,t)for(r in _)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var x=function(e,t){return new x.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=k(e);return!g(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}x.fn=x.prototype={jquery:"3.5.1",constructor:x,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:o.sort,splice:o.splice},x.extend=x.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,c=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(x.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||x.isPlainObject(n)?n:{},i=!1,a[t]=x.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},x.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=a(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&p.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(C(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?x.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(C(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return c(a)},guid:1,support:v}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=o[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var S=function(e){var t,n,r,i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,_="sizzle"+1*new Date,w=e.document,k=0,x=0,C=ce(),S=ce(),T=ce(),A=ce(),M=function(e,t){return e===t&&(d=!0),0},E={}.hasOwnProperty,O=[],P=O.pop,I=O.push,D=O.push,j=O.slice,N=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\["+L+"*("+z+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+L+"*\\]",B=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",$=new RegExp(L+"+","g"),V=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),H=new RegExp("^"+L+"*,"+L+"*"),U=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),q=new RegExp(L+"|>"),W=new RegExp(B),Y=new RegExp("^"+z+"$"),G={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){f()},ae=_e((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{D.apply(O=j.call(w.childNodes),w.childNodes),O[w.childNodes.length].nodeType}catch(e){D={apply:O.length?function(e,t){I.apply(e,j.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function se(e,t,r,i){var o,s,l,u,d,p,g,b=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(f(t),t=t||h,m)){if(11!==w&&(d=Z.exec(e)))if(o=d[1]){if(9===w){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(b&&(l=b.getElementById(o))&&y(t,l)&&l.id===o)return r.push(l),r}else{if(d[2])return D.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return D.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!A[e+" "]&&(!v||!v.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(g=e,b=t,1===w&&(q.test(e)||U.test(e))){for((b=ee.test(e)&&ge(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(re,ie):t.setAttribute("id",u=_)),s=(p=a(e)).length;s--;)p[s]=(u?"#"+u:":scope")+" "+ye(p[s]);g=p.join(",")}try{return D.apply(r,b.querySelectorAll(g)),r}catch(t){A(e,!0)}finally{u===_&&t.removeAttribute("id")}}}return c(e.replace(V,"$1"),t,r,i)}function ce(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[_]=!0,e}function ue(e){var t=h.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function fe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ve(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!=h&&9===a.nodeType&&a.documentElement?(p=(h=a).documentElement,m=!o(h),w!=h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ue((function(e){return p.appendChild(e).appendChild(h.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(h.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(h.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=_,!h.getElementsByName||!h.getElementsByName(_).length})),n.getById?(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},g=[],v=[],(n.qsa=X.test(h.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+L+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+L+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+_+"-]").length||v.push("~="),(t=h.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=h.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+L+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=X.test(b=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),g.push("!=",B)})),v=v.length&&new RegExp(v.join("|")),g=g.length&&new RegExp(g.join("|")),t=X.test(p.compareDocumentPosition),y=t||X.test(p.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},M=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e==h||e.ownerDocument==w&&y(w,e)?-1:t==h||t.ownerDocument==w&&y(w,t)?1:u?N(u,e)-N(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==h?-1:t==h?1:i?-1:o?1:u?N(u,e)-N(u,t):0;if(i===o)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?fe(a[r],s[r]):a[r]==w?-1:s[r]==w?1:0},h):h},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&m&&!A[t+" "]&&(!g||!g.test(t))&&(!v||!v.test(t)))try{var r=b.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){A(t,!0)}return se(t,h,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=h&&f(e),y(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=h&&f(e);var i=r.attrHandle[t.toLowerCase()],o=i&&E.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(M),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return u=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=se.selectors={cacheLength:50,createPseudo:le,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,f,h,p,m=o!==a?"nextSibling":"previousSibling",v=t.parentNode,g=s&&t.nodeName.toLowerCase(),b=!c&&!s,y=!1;if(v){if(o){for(;m;){for(f=t;f=f[m];)if(s?f.nodeName.toLowerCase()===g:1===f.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&b){for(y=(h=(l=(u=(d=(f=v)[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===k&&l[1])&&l[2],f=h&&v.childNodes[h];f=++h&&f&&f[m]||(y=h=0)||p.pop();)if(1===f.nodeType&&++y&&f===t){u[e]=[k,h,y];break}}else if(b&&(y=h=(l=(u=(d=(f=t)[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===k&&l[1]),!1===y)for(;(f=++h&&f&&f[m]||(y=h=0)||p.pop())&&((s?f.nodeName.toLowerCase()!==g:1!==f.nodeType)||!++y||(b&&((u=(d=f[_]||(f[_]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[k,y]),f!==t)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[_]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=N(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace(V,"$1"));return r[_]?le((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return se(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||i(t)).indexOf(e)>-1}})),lang:le((function(e){return Y.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ve((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=he(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function be(){}function ye(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function _e(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=x++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,c){var l,u,d,f=[k,s];if(c){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,c))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(d=t[_]||(t[_]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=u[o])&&l[0]===k&&l[1]===s)return f[2]=l[2];if(u[o]=f,f[2]=e(t,n,c))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function ke(e,t,n,r,i){for(var o,a=[],s=0,c=e.length,l=null!=t;s<c;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function xe(e,t,n,r,i,o){return r&&!r[_]&&(r=xe(r)),i&&!i[_]&&(i=xe(i,o)),le((function(o,a,s,c){var l,u,d,f=[],h=[],p=a.length,m=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?m:ke(m,f,e,s,c),g=n?i||(o?e:p||r)?[]:a:v;if(n&&n(v,g,s,c),r)for(l=ke(g,h),r(l,[],s,c),u=l.length;u--;)(d=l[u])&&(g[h[u]]=!(v[h[u]]=d));if(o){if(i||e){if(i){for(l=[],u=g.length;u--;)(d=g[u])&&l.push(v[u]=d);i(null,g=[],l,c)}for(u=g.length;u--;)(d=g[u])&&(l=i?N(o,d):f[u])>-1&&(o[l]=!(a[l]=d))}}else g=ke(g===a?g.splice(p,g.length):g),i?i(null,a,g,c):D.apply(a,g)}))}function Ce(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],c=a?1:0,u=_e((function(e){return e===t}),s,!0),d=_e((function(e){return N(t,e)>-1}),s,!0),f=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,i}];c<o;c++)if(n=r.relative[e[c].type])f=[_e(we(f),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[_]){for(i=++c;i<o&&!r.relative[e[i].type];i++);return xe(c>1&&we(f),c>1&&ye(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(V,"$1"),n,c<i&&Ce(e.slice(c,i)),i<o&&Ce(e=e.slice(i)),i<o&&ye(e))}f.push(n)}return we(f)}return be.prototype=r.filters=r.pseudos,r.setFilters=new be,a=se.tokenize=function(e,t){var n,i,o,a,s,c,l,u=S[e+" "];if(u)return t?0:u.slice(0);for(s=e,c=[],l=r.preFilter;s;){for(a in n&&!(i=H.exec(s))||(i&&(s=s.slice(i[0].length)||s),c.push(o=[])),n=!1,(i=U.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(V," ")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):S(e,c).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=T[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Ce(t[n]))[_]?i.push(s):o.push(s);(s=T(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,c,u){var d,p,v,g=0,b="0",y=o&&[],_=[],w=l,x=o||i&&r.find.TAG("*",u),C=k+=null==w?1:Math.random()||.1,S=x.length;for(u&&(l=a==h||a||u);b!==S&&null!=(d=x[b]);b++){if(i&&d){for(p=0,a||d.ownerDocument==h||(f(d),s=!m);v=e[p++];)if(v(d,a||h,s)){c.push(d);break}u&&(k=C)}n&&((d=!v&&d)&&g--,o&&y.push(d))}if(g+=b,n&&b!==g){for(p=0;v=t[p++];)v(y,_,a,s);if(o){if(g>0)for(;b--;)y[b]||_[b]||(_[b]=P.call(c));_=ke(_)}D.apply(c,_),u&&!o&&_.length>0&&g+t.length>1&&se.uniqueSort(c)}return u&&(k=C,l=w),y};return n?le(o):o}(o,i))).selector=e}return s},c=se.select=function(e,t,n,i){var o,c,l,u,d,f="function"==typeof e&&e,h=!i&&a(e=f.selector||e);if(n=n||[],1===h.length){if((c=h[0]=h[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===t.nodeType&&m&&r.relative[c[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(o=G.needsContext.test(e)?0:c.length;o--&&(l=c[o],!r.relative[u=l.type]);)if((d=r.find[u])&&(i=d(l.matches[0].replace(te,ne),ee.test(c[0].type)&&ge(t.parentNode)||t))){if(c.splice(o,1),!(e=i.length&&ye(c)))return D.apply(n,i),n;break}}return(f||s(e,h))(i,t,!m,n,!t||ee.test(e)&&ge(t.parentNode)||t),n},n.sortStable=_.split("").sort(M).join("")===_,n.detectDuplicates=!!d,f(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(h.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(R,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),se}(n);x.find=S,x.expr=S.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=S.uniqueSort,x.text=S.getText,x.isXMLDoc=S.isXML,x.contains=S.contains,x.escapeSelector=S.escape;var T=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&x(e).is(n))break;r.push(e)}return r},A=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},M=x.expr.match.needsContext;function E(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,n){return g(t)?x.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?x.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?x.grep(e,(function(e){return u.call(t,e)>-1!==n})):x.filter(t,e,n)}x.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t<r;t++)if(x.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)x.find(e,i[t],n);return r>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,"string"==typeof e&&M.test(e)?x(e):e||[],!1).length}});var I,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||I,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:D.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),O.test(r[1])&&x.isPlainObject(t))for(r in t)g(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=y.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):g(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,I=x(y);var j=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function R(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&x(e);if(!M.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?u.call(x(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return R(e,"nextSibling")},prev:function(e){return R(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return A((e.parentNode||{}).firstChild,e)},children:function(e){return A(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(E(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(N[e]||x.uniqueSort(i),j.test(e)&&i.reverse()),this.pushStack(i)}}));var L=/[^\x20\t\r\n\f]+/g;function z(e){return e}function F(e){throw e}function B(e,t,n,r){var i;try{e&&g(i=e.promise)?i.call(e).done(t).fail(n):e&&g(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match(L)||[],(function(e,n){t[n]=!0})),t}(e):x.extend({},e);var t,n,r,i,o=[],a=[],s=-1,c=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){x.each(n,(function(n,r){g(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==k(r)&&t(r)}))}(arguments),n&&!t&&c()),this},remove:function(){return x.each(arguments,(function(e,t){for(var n;(n=x.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?x.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},x.extend({Deferred:function(e){var t=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return x.Deferred((function(n){x.each(t,(function(t,r){var i=g(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&g(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,r,i){var o=0;function a(e,t,r,i){return function(){var s=this,c=arguments,l=function(){var n,l;if(!(e<o)){if((n=r.apply(s,c))===t.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,g(l)?i?l.call(n,a(o,t,z,i),a(o,t,F,i)):(o++,l.call(n,a(o,t,z,i),a(o,t,F,i),a(o,t,z,t.notifyWith))):(r!==z&&(s=void 0,c=[n]),(i||t.resolveWith)(s,c))}},u=i?l:function(){try{l()}catch(n){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(n,u.stackTrace),e+1>=o&&(r!==F&&(s=void 0,c=[n]),t.rejectWith(s,c))}};e?u():(x.Deferred.getStackHook&&(u.stackTrace=x.Deferred.getStackHook()),n.setTimeout(u))}}return x.Deferred((function(n){t[0][3].add(a(0,n,g(i)?i:z,n.notifyWith)),t[1][3].add(a(0,n,g(e)?e:z)),t[2][3].add(a(0,n,g(r)?r:F))})).promise()},promise:function(e){return null!=e?x.extend(e,i):i}},o={};return x.each(t,(function(e,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add((function(){r=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=x.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(B(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||g(i[n]&&i[n].then)))return o.then();for(;n--;)B(i[n],a(n),o.reject);return o.promise()}});var $=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&$.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){n.setTimeout((function(){throw e}))};var V=x.Deferred();function H(){y.removeEventListener("DOMContentLoaded",H),n.removeEventListener("load",H),x.ready()}x.fn.ready=function(e){return V.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||V.resolveWith(y,[x]))}}),x.ready.then=V.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(x.ready):(y.addEventListener("DOMContentLoaded",H),n.addEventListener("load",H));var U=function(e,t,n,r,i,o,a){var s=0,c=e.length,l=null==n;if("object"===k(n))for(s in i=!0,n)U(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(x(e),n)})),t))for(;s<c;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):c?t(e[0],n):o},q=/^-ms-/,W=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function G(e){return e.replace(q,"ms-").replace(W,Y)}var K=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=x.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},K(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[G(t)]=n;else for(r in t)i[G(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(G):(t=G(t))in r?[t]:t.match(L)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||x.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var J=new Q,X=new Q,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Z.test(e)?JSON.parse(e):e)}(n)}catch(e){}X.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return X.hasData(e)||J.hasData(e)},data:function(e,t,n){return X.access(e,t,n)},removeData:function(e,t){X.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=X.get(o),1===o.nodeType&&!J.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=G(r.slice(5)),te(o,r,i[r]));J.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){X.set(this,e)})):U(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=X.get(o,e))||void 0!==(n=te(o,e))?n:void 0;this.each((function(){X.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){X.remove(this,e)}))}}),x.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=J.get(e,t),n&&(!r||Array.isArray(n)?r=J.access(e,t,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){x.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:x.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",n])}))})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each((function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){x.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=J.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],oe=y.documentElement,ae=function(e){return x.contains(e.ownerDocument,e)},se={composed:!0};oe.getRootNode&&(ae=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(se)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===x.css(e,"display")};function le(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return x.css(e,t,"")},c=s(),l=n&&n[3]||(x.cssNumber[t]?"":"px"),u=e.nodeType&&(x.cssNumber[t]||"px"!==l&&+c)&&re.exec(x.css(e,t));if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;a--;)x.style(e,t,u+l),(1-o)*(1-(o=s()/c||.5))<=0&&(a=0),u/=o;u*=2,x.style(e,t,u+l),n=n||[]}return n&&(u=+u||+c||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=i)),i}var ue={};function de(e){var t,n=e.ownerDocument,r=e.nodeName,i=ue[r];return i||(t=n.body.appendChild(n.createElement(r)),i=x.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),ue[r]=i,i)}function fe(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=J.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ce(r)&&(i[o]=de(r))):"none"!==n&&(i[o]="none",J.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}x.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?x(this).show():x(this).hide()}))}});var he,pe,me=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ge=/^$|^module$|\/(?:java|ecma)script/i;he=y.createDocumentFragment().appendChild(y.createElement("div")),(pe=y.createElement("input")).setAttribute("type","radio"),pe.setAttribute("checked","checked"),pe.setAttribute("name","t"),he.appendChild(pe),v.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",v.option=!!he.lastChild;var be={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ye(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&E(e,t)?x.merge([e],n):n}function _e(e,t){for(var n=0,r=e.length;n<r;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,v.option||(be.optgroup=be.option=[1,"<select multiple='multiple'>","</select>"]);var we=/<|&#?\w+;/;function ke(e,t,n,r,i){for(var o,a,s,c,l,u,d=t.createDocumentFragment(),f=[],h=0,p=e.length;h<p;h++)if((o=e[h])||0===o)if("object"===k(o))x.merge(f,o.nodeType?[o]:o);else if(we.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(ve.exec(o)||["",""])[1].toLowerCase(),c=be[s]||be._default,a.innerHTML=c[1]+x.htmlPrefilter(o)+c[2],u=c[0];u--;)a=a.lastChild;x.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(o));for(d.textContent="",h=0;o=f[h++];)if(r&&x.inArray(o,r)>-1)i&&i.push(o);else if(l=ae(o),a=ye(d.appendChild(o),"script"),l&&_e(a),n)for(u=0;o=a[u++];)ge.test(o.type||"")&&n.push(o);return d}var xe=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Se=/^([^.]*)(?:\.(.+)|)/;function Te(){return!0}function Ae(){return!1}function Me(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Ee(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Ee(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Ae;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return x().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=x.guid++)),e.each((function(){x.event.add(this,t,i,r,n)}))}function Oe(e,t,n){n?(J.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=J.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),J.set(this,t,o),r=n(this,t),this[t](),o!==(i=J.get(this,t))||r?J.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i.value}else o.length&&(J.set(this,t,{value:x.event.trigger(x.extend(o[0],x.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&x.event.add(e,t,Te)}x.event={global:{},add:function(e,t,n,r,i){var o,a,s,c,l,u,d,f,h,p,m,v=J.get(e);if(K(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&x.find.matchesSelector(oe,i),n.guid||(n.guid=x.guid++),(c=v.events)||(c=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(L)||[""]).length;l--;)h=m=(s=Se.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),h&&(d=x.event.special[h]||{},h=(i?d.delegateType:d.bindType)||h,d=x.event.special[h]||{},u=x.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:p.join(".")},o),(f=c[h])||((f=c[h]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,p,a)||e.addEventListener&&e.addEventListener(h,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u),x.event.global[h]=!0)},remove:function(e,t,n,r,i){var o,a,s,c,l,u,d,f,h,p,m,v=J.hasData(e)&&J.get(e);if(v&&(c=v.events)){for(l=(t=(t||"").match(L)||[""]).length;l--;)if(h=m=(s=Se.exec(t[l])||[])[1],p=(s[2]||"").split(".").sort(),h){for(d=x.event.special[h]||{},f=c[h=(r?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=f.length;o--;)u=f[o],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(f.splice(o,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,p,v.handle)||x.removeEvent(e,h,v.handle),delete c[h])}else for(h in c)x.event.remove(e,h+t[l],n,r,!0);x.isEmptyObject(c)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),c=x.event.fix(e),l=(J.get(this,"events")||Object.create(null))[c.type]||[],u=x.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,c)){for(a=x.event.handlers.call(this,c,l),t=0;(i=a[t++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==o.namespace&&!c.rnamespace.test(o.namespace)||(c.handleObj=o,c.data=o.data,void 0!==(r=((x.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(c.result=r)&&(c.preventDefault(),c.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,i,o,a,s=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<c;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?x(i,this).index(l)>-1:x.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:g(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&E(t,"input")&&Oe(t,"click",Te),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&E(t,"input")&&Oe(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&E(t,"input")&&J.get(t,"click")||E(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Te:Ae,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Ae,isPropagationStopped:Ae,isImmediatePropagationStopped:Ae,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Te,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Te,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Te,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&xe.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(e,t){x.event.special[e]={setup:function(){return Oe(this,e,Me),!1},trigger:function(){return Oe(this,e),!0},delegateType:t}})),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||x.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),x.fn.extend({on:function(e,t,n,r){return Ee(this,e,t,n,r)},one:function(e,t,n,r){return Ee(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ae),this.each((function(){x.event.remove(this,e,n,t)}))}});var Pe=/<script|<style|<link/i,Ie=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function je(e,t){return E(e,"table")&&E(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(J.hasData(e)&&(s=J.get(e).events))for(i in J.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)x.event.add(t,i,s[i][n]);X.hasData(e)&&(o=X.access(e),a=x.extend({},o),X.set(t,a))}}function ze(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Fe(e,t,n,r){t=c(t);var i,o,a,s,l,u,d=0,f=e.length,h=f-1,p=t[0],m=g(p);if(m||f>1&&"string"==typeof p&&!v.checkClone&&Ie.test(p))return e.each((function(i){var o=e.eq(i);m&&(t[0]=p.call(this,i,o.html())),Fe(o,t,n,r)}));if(f&&(o=(i=ke(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=x.map(ye(i,"script"),Ne)).length;d<f;d++)l=i,d!==h&&(l=x.clone(l,!0,!0),s&&x.merge(a,ye(l,"script"))),n.call(e[d],l,d);if(s)for(u=a[a.length-1].ownerDocument,x.map(a,Re),d=0;d<s;d++)l=a[d],ge.test(l.type||"")&&!J.access(l,"globalEval")&&x.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?x._evalUrl&&!l.noModule&&x._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):w(l.textContent.replace(De,""),l,u))}return e}function Be(e,t,n){for(var r,i=t?x.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||x.cleanData(ye(r)),r.parentNode&&(n&&ae(r)&&_e(ye(r,"script")),r.parentNode.removeChild(r));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),c=ae(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(a=ye(s),r=0,i=(o=ye(e)).length;r<i;r++)ze(o[r],a[r]);if(t)if(n)for(o=o||ye(e),a=a||ye(s),r=0,i=o.length;r<i;r++)Le(o[r],a[r]);else Le(e,s);return(a=ye(s,"script")).length>0&&_e(a,!c&&ye(e,"script")),s},cleanData:function(e){for(var t,n,r,i=x.event.special,o=0;void 0!==(n=e[o]);o++)if(K(n)){if(t=n[J.expando]){if(t.events)for(r in t.events)i[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[J.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return U(this,(function(e){return void 0===e?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Fe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||je(this,e).appendChild(e)}))},prepend:function(){return Fe(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=je(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Fe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.clone(this,e,t)}))},html:function(e){return U(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Pe.test(e)&&!be[(ve.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Fe(this,arguments,(function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(ye(this)),n&&n.replaceChild(t,this))}),e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){x.fn[e]=function(e){for(var n,r=[],i=x(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),x(i[a])[t](n),l.apply(r,n.get());return this.pushStack(r)}}));var $e=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),Ve=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},He=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ue=new RegExp(ie.join("|"),"i");function qe(e,t,n){var r,i,o,a,s=e.style;return(n=n||Ve(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||ae(e)||(a=x.style(e,t)),!v.pixelBoxStyles()&&$e.test(a)&&Ue.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",oe.appendChild(l).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,c=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),i=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),oe.removeChild(l),u=null}}function t(e){return Math.round(parseFloat(e))}var r,i,o,a,s,c,l=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(v,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,r,i;return null==s&&(e=y.createElement("table"),t=y.createElement("tr"),r=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",r.style.height="9px",oe.appendChild(e).appendChild(t).appendChild(r),i=n.getComputedStyle(t),s=parseInt(i.height)>3,oe.removeChild(e)),s}}))}();var Ye=["Webkit","Moz","ms"],Ge=y.createElement("div").style,Ke={};function Qe(e){var t=x.cssProps[e]||Ke[e];return t||(e in Ge?e:Ke[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ye.length;n--;)if((e=Ye[n]+t)in Ge)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,Ze={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var r=re.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function nt(e,t,n,r,i,o){var a="width"===t?1:0,s=0,c=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(c+=x.css(e,n+ie[a],!0,i)),r?("content"===n&&(c-=x.css(e,"padding"+ie[a],!0,i)),"margin"!==n&&(c-=x.css(e,"border"+ie[a]+"Width",!0,i))):(c+=x.css(e,"padding"+ie[a],!0,i),"padding"!==n?c+=x.css(e,"border"+ie[a]+"Width",!0,i):s+=x.css(e,"border"+ie[a]+"Width",!0,i));return!r&&o>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-c-s-.5))||0),c}function rt(e,t,n){var r=Ve(e),i=(!v.boxSizingReliable()||n)&&"border-box"===x.css(e,"boxSizing",!1,r),o=i,a=qe(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if($e.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&E(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===x.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===x.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+nt(e,t,n||(i?"border":"content"),o,r,a)+"px"}function it(e,t,n,r,i){return new it.prototype.init(e,t,n,r,i)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=G(t),c=Xe.test(t),l=e.style;if(c||(t=Qe(s)),a=x.cssHooks[t]||x.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=re.exec(n))&&i[1]&&(n=le(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||c||(n+=i&&i[3]||(x.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=G(t);return Xe.test(t)||(t=Qe(s)),(a=x.cssHooks[t]||x.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=qe(e,t,r)),"normal"===i&&t in et&&(i=et[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return!Je.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,r):He(e,Ze,(function(){return rt(e,t,r)}))},set:function(e,n,r){var i,o=Ve(e),a=!v.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===x.css(e,"boxSizing",!1,o),c=r?nt(e,t,r,s,o):0;return s&&a&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-nt(e,t,"border",!1,o)-.5)),c&&(i=re.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),tt(0,n,c)}}})),x.cssHooks.marginLeft=We(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(qe(e,"marginLeft"))||e.getBoundingClientRect().left-He(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+ie[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(x.cssHooks[e+t].set=tt)})),x.fn.extend({css:function(e,t){return U(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Ve(e),i=t.length;a<i;a++)o[t[a]]=x.css(e,t[a],!1,r);return o}return void 0!==n?x.style(e,t,n):x.css(e,t)}),e,t,arguments.length>1)}}),x.Tween=it,it.prototype={constructor:it,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(x.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Qe(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=it.prototype.init,x.fx.step={};var ot,at,st=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function lt(){at&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(lt):n.setTimeout(lt,x.fx.interval),x.fx.tick())}function ut(){return n.setTimeout((function(){ot=void 0})),ot=Date.now()}function dt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=ie[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ft(e,t,n){for(var r,i=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ht(e,t,n){var r,i,o=0,a=ht.prefilters.length,s=x.Deferred().always((function(){delete c.elem})),c=function(){if(i)return!1;for(var t=ot||ut(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(e,[l,r,n]),r<1&&a?n:(a||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:ot||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=x.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),u=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=G(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=x.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(u,l.opts.specialEasing);o<a;o++)if(r=ht.prefilters[o].call(l,e,u,l.opts))return g(r.stop)&&(x._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return x.map(u,ft,l),g(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),x.fx.timer(x.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}x.Animation=x.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){g(e)?(t=e,e=["*"]):e=e.match(L);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,c,l,u,d="width"in t||"height"in t,f=this,h={},p=e.style,m=e.nodeType&&ce(e),v=J.get(e,"fxshow");for(r in n.queue||(null==(a=x._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,x.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],st.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;m=!0}h[r]=v&&v[r]||x.style(e,r)}if((c=!x.isEmptyObject(t))||!x.isEmptyObject(h))for(r in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=v&&v.display)&&(l=J.get(e,"display")),"none"===(u=x.css(e,"display"))&&(l?u=l:(fe([e],!0),l=e.style.display||l,u=x.css(e,"display"),fe([e]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===x.css(e,"float")&&(c||(f.done((function(){p.display=l})),null==l&&(u=p.display,l="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",f.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),c=!1,h)c||(v?"hidden"in v&&(m=v.hidden):v=J.access(e,"fxshow",{display:l}),o&&(v.hidden=!m),m&&fe([e],!0),f.done((function(){for(r in m||fe([e]),J.remove(e,"fxshow"),h)x.style(e,r,h[r])}))),c=ft(m?v[r]:0,r,f),r in v||(v[r]=c.start,m&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),x.speed=function(e,t,n){var r=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||g(e)&&e,duration:e,easing:n&&t||t&&!g(t)&&t};return x.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in x.fx.speeds?r.duration=x.fx.speeds[r.duration]:r.duration=x.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&x.dequeue(this,r.queue)},r},x.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=x.isEmptyObject(e),o=x.speed(t,n,r),a=function(){var t=ht(this,x.extend({},e),o);(i||J.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=x.timers,a=J.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ct.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||x.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=J.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=x.timers,a=r?r.length:0;for(n.finish=!0,x.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),x.each(["toggle","show","hide"],(function(e,t){var n=x.fn[t];x.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,r,i)}})),x.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){x.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(ot=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),ot=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){at||(at=!0,lt())},x.fx.stop=function(){at=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,t){return e=x.fx&&x.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var pt,mt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return U(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?x.prop(e,t,n):(1===o&&x.isXMLDoc(e)||(i=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=x.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&E(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(L);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||x.find.attr;mt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=mt[a],mt[a]=i,i=null!=n(e,t,r)?a:null,mt[a]=o),i}}));var vt=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function bt(e){return(e.match(L)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function _t(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}x.fn.extend({prop:function(e,t){return U(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(e)||(t=x.propFix[t]||t,i=x.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,c=0;if(g(e))return this.each((function(t){x(this).addClass(e.call(this,t,yt(this)))}));if((t=_t(e)).length)for(;n=this[c++];)if(i=yt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,c=0;if(g(e))return this.each((function(t){x(this).removeClass(e.call(this,t,yt(this)))}));if(!arguments.length)return this.attr("class","");if((t=_t(e)).length)for(;n=this[c++];)if(i=yt(n),r=1===n.nodeType&&" "+bt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=bt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):g(e)?this.each((function(n){x(this).toggleClass(e.call(this,n,yt(this),t),t)})):this.each((function(){var t,i,o,a;if(r)for(i=0,o=x(this),a=_t(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+bt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g;x.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=g(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,x(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=x.map(i,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(wt,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:bt(x.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r<c;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!E(n.parentNode,"optgroup"))){if(t=x(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=x.makeArray(t),a=i.length;a--;)((r=i[a]).selected=x.inArray(x.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},v.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),v.focusin="onfocusin"in n;var kt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,r,i){var o,a,s,c,l,u,d,f,p=[r||y],m=h.call(e,"type")?e.type:e,v=h.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=r=r||y,3!==r.nodeType&&8!==r.nodeType&&!kt.test(m+x.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),l=m.indexOf(":")<0&&"on"+m,(e=e[x.expando]?e:new x.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:x.makeArray(t,[e]),d=x.event.special[m]||{},i||!d.trigger||!1!==d.trigger.apply(r,t))){if(!i&&!d.noBubble&&!b(r)){for(c=d.delegateType||m,kt.test(c+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||y)&&p.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=p[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?c:d.bindType||m,(u=(J.get(a,"events")||Object.create(null))[e.type]&&J.get(a,"handle"))&&u.apply(a,t),(u=l&&a[l])&&u.apply&&K(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!K(r)||l&&g(r[m])&&!b(r)&&((s=r[l])&&(r[l]=null),x.event.triggered=m,e.isPropagationStopped()&&f.addEventListener(m,xt),r[m](),e.isPropagationStopped()&&f.removeEventListener(m,xt),x.event.triggered=void 0,s&&(r[l]=s)),e.result}},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),v.focusin||x.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,t);i||r.addEventListener(e,n,!0),J.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,t)-1;i?J.access(r,t,i):(r.removeEventListener(e,n,!0),J.remove(r,t))}}}));var Ct=n.location,St={guid:Date.now()},Tt=/\?/;x.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),t};var At=/\[\]$/,Mt=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(e,t,n,r){var i;if(Array.isArray(t))x.each(t,(function(t,i){n||At.test(e)?r(e,i):Pt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==k(t))r(e,t);else for(i in t)Pt(e+"["+i+"]",t[i],n,r)}x.param=function(e,t){var n,r=[],i=function(e,t){var n=g(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){i(this.name,this.value)}));else for(n in e)Pt(n,e[n],t,i);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Ot.test(this.nodeName)&&!Et.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}})):{name:t.name,value:n.replace(Mt,"\r\n")}})).get()}});var It=/%20/g,Dt=/#.*$/,jt=/([?&])_=[^&]*/,Nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Rt=/^(?:GET|HEAD)$/,Lt=/^\/\//,zt={},Ft={},Bt="*/".concat("*"),$t=y.createElement("a");function Vt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(L)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Ht(e,t,n,r){var i={},o=e===Ft;function a(s){var c;return i[s]=!0,x.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!=typeof l||o||i[l]?o?!(c=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),c}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Ut(e,t){var n,r,i=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&x.extend(!0,e,r),e}$t.href=Ct.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,x.ajaxSettings),t):Ut(x.ajaxSettings,e)},ajaxPrefilter:Vt(zt),ajaxTransport:Vt(Ft),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,o,a,s,c,l,u,d,f,h=x.ajaxSetup({},t),p=h.context||h,m=h.context&&(p.nodeType||p.jquery)?x(p):x.event,v=x.Deferred(),g=x.Callbacks("once memory"),b=h.statusCode||{},_={},w={},k="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=Nt.exec(o);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==l&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)C.always(e[C.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||k;return r&&r.abort(t),S(0,t),this}};if(v.promise(C),h.url=((e||h.url||Ct.href)+"").replace(Lt,Ct.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(L)||[""],null==h.crossDomain){c=y.createElement("a");try{c.href=h.url,c.href=c.href,h.crossDomain=$t.protocol+"//"+$t.host!=c.protocol+"//"+c.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=x.param(h.data,h.traditional)),Ht(zt,h,t,C),l)return C;for(d in(u=x.event&&h.global)&&0==x.active++&&x.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Rt.test(h.type),i=h.url.replace(Dt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(It,"+")):(f=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(Tt.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(jt,"$1"),f=(Tt.test(i)?"&":"?")+"_="+St.guid+++f),h.url=i+f),h.ifModified&&(x.lastModified[i]&&C.setRequestHeader("If-Modified-Since",x.lastModified[i]),x.etag[i]&&C.setRequestHeader("If-None-Match",x.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Bt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(p,C,h)||l))return C.abort();if(k="abort",g.add(h.complete),C.done(h.success),C.fail(h.error),r=Ht(Ft,h,t,C)){if(C.readyState=1,u&&m.trigger("ajaxSend",[C,h]),l)return C;h.async&&h.timeout>0&&(s=n.setTimeout((function(){C.abort("timeout")}),h.timeout));try{l=!1,r.send(_,S)}catch(e){if(l)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,a,c){var d,f,y,_,w,k=t;l||(l=!0,s&&n.clearTimeout(s),r=void 0,o=c||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(_=function(e,t,n){for(var r,i,o,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}if(c[0]in n)o=c[0];else{for(i in n){if(!c[0]||e.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),n[o]}(h,C,a)),!d&&x.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),_=function(e,t,n,r){var i,o,a,s,c,l={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=u.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=l[c+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[c+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+c+" to "+o}}}return{state:"success",data:t}}(h,_,C,d),d?(h.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(x.lastModified[i]=w),(w=C.getResponseHeader("etag"))&&(x.etag[i]=w)),204===e||"HEAD"===h.type?k="nocontent":304===e?k="notmodified":(k=_.state,f=_.data,d=!(y=_.error))):(y=k,!e&&k||(k="error",e<0&&(e=0))),C.status=e,C.statusText=(t||k)+"",d?v.resolveWith(p,[f,k,C]):v.rejectWith(p,[C,k,y]),C.statusCode(b),b=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[C,h,d?f:y]),g.fireWith(p,[C,k]),u&&(m.trigger("ajaxComplete",[C,h]),--x.active||x.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:i,data:n,success:r},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(g(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return g(e)?this.each((function(t){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g(e);return this.each((function(n){x(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var qt={0:200,1223:204},Wt=x.ajaxSettings.xhr();v.cors=!!Wt&&"withCredentials"in Wt,v.ajax=Wt=!!Wt,x.ajaxTransport((function(e){var t,r;if(v.cors||Wt&&!e.crossDomain)return{send:function(i,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(qt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){t&&r()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Yt,Gt=[],Kt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||x.expando+"_"+St.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",(function(e,t,r){var i,o,a,s=!1!==e.jsonp&&(Kt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=g(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Kt,"$1"+i):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||x.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always((function(){void 0===o?x(n).removeProp(i):n[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(i)),a&&g(o)&&o(a[0]),a=o=void 0})),"script"})),v.createHTMLDocument=((Yt=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Yt.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(r)):t=y),o=!n&&[],(i=O.exec(e))?[t.createElement(i[1])]:(i=ke([e],t,o),o&&o.length&&x(o).remove(),x.merge([],i.childNodes)));var r,i,o},x.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=bt(e.slice(s)),e=e.slice(0,s)),g(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&x.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?x("<div>").append(x.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,(function(t){return e===t.elem})).length},x.offset={setOffset:function(e,t,n){var r,i,o,a,s,c,l=x.css(e,"position"),u=x(e),d={};"static"===l&&(e.style.position="relative"),s=u.offset(),o=x.css(e,"top"),c=x.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+c).indexOf("auto")>-1?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(c)||0),g(t)&&(t=t.call(e,n,x.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){x.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===x.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),i.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-x.css(r,"marginTop",!0),left:t.left-i.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||oe}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;x.fn[e]=function(r){return U(this,(function(e,r,i){var o;if(b(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),x.each(["top","left"],(function(e,t){x.cssHooks[t]=We(v.pixelPosition,(function(e,n){if(n)return n=qe(e,t),$e.test(n)?x(e).position()[t]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){x.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return U(this,(function(t,n,i){var o;return b(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?x.css(t,n,s):x.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){x.fn[t]=function(e){return this.on(t,e)}})),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Qt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),g(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||x.guid++,i},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=E,x.isFunction=g,x.isWindow=b,x.camelCase=G,x.type=k,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(Qt,"")},void 0===(r=function(){return x}.apply(t,[]))||(e.exports=r);var Jt=n.jQuery,Xt=n.$;return x.noConflict=function(e){return n.$===x&&(n.$=Xt),e&&n.jQuery===x&&(n.jQuery=Jt),x},void 0===i&&(n.jQuery=n.$=x),x}))},,,function(e,t,n){"use strict";n.r(t);var r=n(79),i=n.n(r),o=n(28),a=n.n(o),s={components:{FileUpload:i.a,ProgressBar:a.a},data:function(){return{files:[],collections:[],tags:[],file_collection:1,file_ref:null,progressMode:"determinate",csrf:document.querySelectorAll('meta[name="csrf-token"]')[0].content,status:"start",error:"",links:[],repeaterFields:[{name:"headline-repeater",value:""}]}},computed:{uploadedFile:function(){return this.files.length>0?this.files[0]:null},nextRef:function(){return this.getNextRef(this.file_collection)},fileValid:function(){if(!(this.files.length<1))return this.checkFileValid(this.files[0])},file_data:function(){return{collection_id:this.file_collection,ref:this.file_ref,tags:this.tags,headlines:JSON.stringify(this.lodash.map(this.repeaterFields,"value"))}}},watch:{file_ref:function(e){e.length>0?(this.status="ready",$("#file_ref").addClass("is-valid").removeClass("is-invalid")):(this.status="start",$("#file_ref").addClass("is-invalid").removeClass("is-valid"))},uploadedFile:function(e){e.success&&(this.progressMode="indeterminate")}},methods:{processStatusUpdate:function(e){var t=this;"done"===(e=e.data).status&&(this.progressMode="determinate",axios.get("/publish/file/"+e.data.file_id).then((function(e){t.$root.publishState.file=e.data.file,t.links=e.data.links,t.status="done",t.$emit("can-continue",{value:!0})}))),"failed"===e.status&&(this.progressMode="determinate",this.status="error",this.error=e.data.error,console.error(e.data.error))},getNextRef:function(e){var t=this.collections.find((function(t){return t.id===e}));return void 0===t?null:t.files[0].ref.replace(/(\d+)+/g,(function(e,t){return parseInt(t)+1}))},checkFileValid:function(e){return"application/pdf"===e.type},inputFile:function(e,t){!e||Boolean(e)===Boolean(t)&&t.error===e.error||this.$refs.upload.active||!this.checkFileValid(e)||(this.$refs.upload.active=!0,this.status="uploading"),e&&!0===e.success&&(this.status="processing")}},mounted:function(){var e=this;Echo.private("fileProcessingStatus").listen(".status.update",this.processStatusUpdate),axios.get("/publish/collections").then((function(t){e.collections=t.data.data,e.file_ref=e.getNextRef(1)})),axios.get("/publish/tags").then((function(t){var n=t.data.data;$("#file_tags").selectize({placeholder:"Mots-clés pour la recherche",persist:!1,createOnBlur:!0,create:!0,options:n,plugins:["remove_button"],onChange:function(t){return e.tags=t}})}))}},c=(n(179),n(1)),l=Object(c.a)(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-step file-upload p-3"},[n("div",{staticClass:"row mx-auto mb-3",staticStyle:{"max-width":"500px"}},[n("div",{staticClass:"col-8"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"file_collection"}},[e._v("Collection *")]),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.file_collection,expression:"file_collection"}],staticClass:"form-control",attrs:{id:"file_collection"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.file_collection=t.target.multiple?n:n[0]}}},e._l(e.collections,(function(t){return n("option",{domProps:{value:t.id,textContent:e._s(t.name)}})})),0)])]),e._v(" "),n("div",{staticClass:"col-4"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"file_ref"}},[e._v("Numéro *")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.file_ref,expression:"file_ref"}],staticClass:"form-control is-valid",attrs:{type:"text",id:"file_ref",placeholder:e.nextRef,required:""},domProps:{value:e.file_ref},on:{input:function(t){t.target.composing||(e.file_ref=t.target.value)}}})])]),e._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"file_tags"}},[e._v("Mots-clés")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.tags,expression:"tags"}],attrs:{type:"text",id:"file_tags"},domProps:{value:e.tags},on:{input:function(t){t.target.composing||(e.tags=t.target.value)}}})])]),e._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"headlines"}},[e._v("Gros titres")]),e._v(" "),n("vue-repeater-after",{model:{value:e.repeaterFields,callback:function(t){e.repeaterFields=t},expression:"repeaterFields"}})],1)])]),e._v(" "),n("div",{staticClass:"text-center"},[e._m(0),e._v(" "),n("file-upload",{ref:"upload",staticClass:"btn btn-default btn-primary",attrs:{"post-action":"/publish/upload-file",multiple:!1,drop:!0,"drop-directory":!1,headers:{"X-CSRF-TOKEN":e.csrf},data:e.file_data},on:{"input-file":e.inputFile},model:{value:e.files,callback:function(t){e.files=t},expression:"files"}},[n("i",{staticClass:"fa fa-plus"}),e._v("\n            Sélectionnez un fichier\n        ")])],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.$refs.upload&&e.$refs.upload.dropActive,expression:"$refs.upload && $refs.upload.dropActive"}],staticClass:"drop-active"},[n("h3",[e._v("Déposez votre fichier")])]),e._v(" "),e.files.length>0?n("div",{staticClass:"my-3 file-selected"},[e.fileValid?n("div",[n("p",{staticClass:"mb-3"},[n("strong",[e._v("Fichier sélectionné : ")]),e._v(" "+e._s(e.files[0].name)+" ")])]):n("div",{staticClass:"alert alert-warning",attrs:{role:"alert"}},[n("span",{staticClass:"font-bold"},[e._v("Fichier incorrect")]),e._v(" "),n("span",[e._v("Le fichier "+e._s(e.uploadedFile.name)+" n'est pas valide, veuillez choisir un fichier .pdf !")])]),e._v(" "),n("div",[n("md-progress-bar",{attrs:{"md-mode":e.progressMode,"md-value":parseFloat(e.uploadedFile.progress)}}),e._v(" "),n("small",{staticClass:"text-center d-block"},[e._v(e._s(e.uploadedFile.progress+"%"))])],1),e._v(" "),""!==e.uploadedFile.error?n("div",{staticClass:"alert alert-danger",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-exclamation-triangle"}),e._v(" "),n("span",[e._v("Une erreur est survenue ("+e._s(e.uploadedFile.error)+")."),n("br"),e._v("Vérifiez que le numéro est entré et qu'il n'existe pas déjà.")])]):e._e(),e._v(" "),"processing"===e.status?n("div",{staticClass:"alert-info alert",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-cogs"}),e._v(" "),e._m(1)]):"error"===e.status?n("div",{staticClass:"alert-danger alert",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-exclamation-triangle"}),e._v(" \n                "),n("span",[n("strong",[e._v("Une erreur est survenue lors du traitement du fichier. ")]),e._v(" ("+e._s(e.error)+")")])]):e._e(),e._v(" "),"done"===e.status?n("div",[n("div",{staticClass:"alert-success alert",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-check"}),e._v(" \n                "),n("span",[n("strong",[e._v(e._s(e.collections.find((function(t){return t.id===e.file_collection})).name))]),e._v(" "+e._s(e.file_ref)+" enregistré. Vous pouvez passer à l'étape suivante.")])]),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-6"},[n("img",{staticClass:"mx-auto my-3 d-block",staticStyle:{width:"200px"},attrs:{src:e.$root.publishState.file.coverUrl,alt:""}})]),e._v(" "),n("div",{staticClass:"col-6"},[n("h3",[e._v(e._s(e.links.length)+" liens trouvés")]),e._v(" "),n("ul",e._l(e.links,(function(t){return n("li",[e._v(e._s(t))])})),0)])])]):e._e()]):e._e()])}),[function(){var e=this.$createElement,t=this._self._c||e;return t("h3",[this._v("Glissez votre fichier PDF ici"),t("br"),this._v("ou")])},function(){var e=this.$createElement,t=this._self._c||e;return t("span",[this._v("Fichier enregistré, "),t("strong",[this._v("traitement en cours...")])])}],!1,null,"4a9146e1",null);t.default=l.exports},function(e,t,n){"use strict";n.r(t);var r={mixins:[n(29).a],data:function(){return{file:this.$root.publishState.file,csrf:document.querySelectorAll('meta[name="csrf-token"]')[0].content}},computed:{email:function(){var e=this.$root.publishState.file.headlines.reduce((function(e,t){return e+"\n                <h3>".concat(t.headline,"</h3>\n                <p>").concat(t.content,"</p>\n\n                ")}),"");return{content:"\n                    <p>Bonjour %recipient.name%,</p>\n                    <p>Voici la nouvelle édition du jour !</p>\n                    <br>\n                    <h2>À LA UNE AUJOURD'HUI</h2>\n                    ".concat(e,"\n\n                "),subject:"L'édition du jour [".concat(this.$root.publishState.file.title,"] "),type:1}}},watch:{email:{deep:!0,handler:function(e,t){""!==e.editorData&&""!==e.subject?(this.$root.publishState.email=e,this.$emit("can-continue",{value:!0})):this.$emit("can-continue",{value:!1})},immediate:!0}},methods:{},mounted:function(){this.$emit("can-continue",{value:!0})}},i=(n(185),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-step"},[n("div",{staticClass:"mb-3"},[n("h3",{staticClass:"text-center"},[n("strong",[e._v(e._s(e.file.title))])]),e._v(" "),n("a",{staticClass:"btn btn-primary",attrs:{href:"/preview/"+e.file.slug,target:"_blank"}},[e._v("Prévisualiser le document")])]),e._v(" "),n("div",[n("h4",{staticClass:"text-center"},[e._v("\n            Contenu de l'email\n        ")]),e._v(" "),n("div",[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"subject"}},[e._v("Sujet")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.email.subject,expression:"email.subject"}],staticClass:"form-control",attrs:{type:"text",id:"subject",placeholder:"[PSQ 302] Les dernières nouvelles de Pfizer"},domProps:{value:e.email.subject},on:{input:function(t){t.target.composing||e.$set(e.email,"subject",t.target.value)}}})]),e._v(" "),n("div",{staticClass:"form-group ck-email"},[n("label",{attrs:{for:"content"}},[e._v("Contenu")]),e._v(" "),n("ckeditor",{attrs:{editor:e.editor,config:e.editorConfig,id:"content"},model:{value:e.email.content,callback:function(t){e.$set(e.email,"content",t)},expression:"email.content"}})],1)])]),e._v(" "),n("form",{attrs:{method:"post",action:"/publish/preview",target:"_blank"}},[n("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:e.csrf}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"subject"},domProps:{value:e.email.subject}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"type"},domProps:{value:e.email.type}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"content"},domProps:{value:e.email.content}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"link"},domProps:{value:"/preview/"+e.file.slug}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"image"},domProps:{value:e.file.coverUrl}}),e._v(" "),n("input",{staticClass:"btn btn-primary",attrs:{type:"submit",value:"Prévisualiser l'email"}})])])}),[],!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={mixins:[n(29).a],data:function(){return{file:this.$root.publishState.file,recipient_group:null,recipient_groups:[],email:{content:"\n                    <p>Bonjour %recipient.name%,</p>\n                ",subject:"",type:2,link:""},csrf:document.querySelectorAll('meta[name="csrf-token"]')[0].content}},watch:{email:{deep:!0,handler:function(e,t){""!==e.editorData&&""!==e.subject?(this.$root.publishState.email=e,this.$emit("can-continue",{value:!0})):this.$emit("can-continue",{value:!1})},immediate:!0},recipient_group:function(e,t){this.$root.publishState.recipient_group=e}},methods:{},mounted:function(){var e=this;this.$emit("can-continue",{value:!0}),axios.get("/publish/recipient-groups").then((function(t){return e.recipient_groups=t.data}))}},i=(n(189),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-step"},[n("div",[n("div",[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"recipients"}},[e._v("Destinataires")]),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.recipient_group,expression:"recipient_group"}],staticClass:"form-control",attrs:{name:"recipients",id:"recipients"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.recipient_group=t.target.multiple?n:n[0]}}},[0===e.recipient_groups.count?n("option",{attrs:{value:"-1",selected:"seleted"}},[e._v("Chargement en cours...")]):e._e(),e._v(" "),e._l(e.recipient_groups,(function(t){return n("option",{domProps:{value:t}},[e._v(e._s(t.text))])}))],2)]),e._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"subject"}},[e._v("Sujet")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.email.subject,expression:"email.subject"}],staticClass:"form-control",attrs:{type:"text",id:"subject",placeholder:"Découvrez notre nouveau podcast !"},domProps:{value:e.email.subject},on:{input:function(t){t.target.composing||e.$set(e.email,"subject",t.target.value)}}})]),e._v(" "),n("div",{staticClass:"form-group ck-email"},[n("label",{attrs:{for:"content"}},[e._v("Contenu")]),e._v(" "),n("ckeditor",{attrs:{editor:e.editor,config:e.editorConfig,id:"content"},model:{value:e.email.content,callback:function(t){e.$set(e.email,"content",t)},expression:"email.content"}})],1),e._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"subject"}},[e._v("Lien principal")]),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.email.link,expression:"email.link"}],staticClass:"form-control",attrs:{type:"text",id:"link",placeholder:"https://exemple.fr"},domProps:{value:e.email.link},on:{input:function(t){t.target.composing||e.$set(e.email,"link",t.target.value)}}})])])]),e._v(" "),n("form",{attrs:{method:"post",action:"/publish/preview",target:"_blank"}},[n("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:e.csrf}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"subject"},domProps:{value:e.email.subject}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"type"},domProps:{value:e.email.type}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"content"},domProps:{value:e.email.content}}),e._v(" "),n("input",{attrs:{type:"hidden",name:"link"},domProps:{value:e.email.link}}),e._v(" "),n("input",{staticClass:"btn btn-primary",attrs:{type:"submit",value:"Prévisualiser l'email"}})])])}),[],!1,null,null,null);t.default=o.exports},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(n&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}();var i=n&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),r))}};function o(e){return e&&"[object Function]"==={}.toString.call(e)}function a(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=a(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:c(s(e))}function l(e){return e&&e.referenceNode?e.referenceNode:e}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),d=n&&/MSIE 10/.test(navigator.userAgent);function f(e){return 11===e?u:10===e?d:u||d}function h(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?h(n):n:e?e.ownerDocument.documentElement:document.documentElement}function p(e){return null!==e.parentNode?p(e.parentNode):e}function m(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,c=o.commonAncestorContainer;if(e!==c&&t!==c||r.contains(i))return"BODY"===(s=(a=c).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(c):c;var l=p(e);return l.host?m(l.host,t):m(e,p(t).host)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function g(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(t,"top"),i=v(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function b(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function y(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function _(e){var t=e.body,n=e.documentElement,r=f(10)&&getComputedStyle(n);return{height:y("Height",t,n,r),width:y("Width",t,n,r)}}var w=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},k=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),x=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function S(e){return C({},e,{right:e.left+e.width,bottom:e.top+e.height})}function T(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=v(e,"top"),r=v(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?_(e.ownerDocument):{},s=o.width||e.clientWidth||i.width,c=o.height||e.clientHeight||i.height,l=e.offsetWidth-s,u=e.offsetHeight-c;if(l||u){var d=a(e);l-=b(d,"x"),u-=b(d,"y"),i.width-=l,i.height-=u}return S(i)}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=f(10),i="HTML"===t.nodeName,o=T(e),s=T(t),l=c(e),u=a(t),d=parseFloat(u.borderTopWidth),h=parseFloat(u.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=S({top:o.top-s.top-d,left:o.left-s.left-h,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var m=parseFloat(u.marginTop),v=parseFloat(u.marginLeft);p.top-=d-m,p.bottom-=d-m,p.left-=h-v,p.right-=h-v,p.marginTop=m,p.marginLeft=v}return(r&&!n?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(p=g(p,t)),p}function M(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=A(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:v(n),s=t?0:v(n,"left"),c={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return S(c)}function E(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===a(e,"position"))return!0;var n=s(e);return!!n&&E(n)}function O(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===a(t,"transform");)t=t.parentElement;return t||document.documentElement}function P(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?O(e):m(e,l(t));if("viewport"===r)o=M(a,i);else{var u=void 0;"scrollParent"===r?"BODY"===(u=c(s(t))).nodeName&&(u=e.ownerDocument.documentElement):u="window"===r?e.ownerDocument.documentElement:r;var d=A(u,a,i);if("HTML"!==u.nodeName||E(a))o=d;else{var f=_(e.ownerDocument),h=f.height,p=f.width;o.top+=d.top-d.marginTop,o.bottom=h+d.top,o.left+=d.left-d.marginLeft,o.right=p+d.left}}var v="number"==typeof(n=n||0);return o.left+=v?n:n.left||0,o.top+=v?n:n.top||0,o.right-=v?n:n.right||0,o.bottom-=v?n:n.bottom||0,o}function I(e){return e.width*e.height}function D(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=P(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map((function(e){return C({key:e},s[e],{area:I(s[e])})})).sort((function(e,t){return t.area-e.area})),l=c.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),u=l.length>0?l[0].key:c[0].key,d=e.split("-")[1];return u+(d?"-"+d:"")}function j(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?O(t):m(t,l(n));return A(n,i,r)}function N(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function R(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function L(e,t,n){n=n.split("-")[0];var r=N(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",c=o?"height":"width",l=o?"width":"height";return i[a]=t[a]+t[c]/2-r[c]/2,i[s]=n===s?t[s]-r[l]:t[R(s)],i}function z(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function F(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=z(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=S(t.offsets.popper),t.offsets.reference=S(t.offsets.reference),t=n(t,e))})),t}function B(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=j(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=D(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=L(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=F(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function $(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function V(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if(void 0!==document.body.style[o])return o}return null}function H(){return this.state.isDestroyed=!0,$(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[V("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(e){var t=e.ownerDocument;return t?t.defaultView:window}function q(e,t,n,r){n.updateBound=r,U(e).addEventListener("resize",n.updateBound,{passive:!0});var i=c(e);return function e(t,n,r,i){var o="BODY"===t.nodeName,a=o?t.ownerDocument.defaultView:t;a.addEventListener(n,r,{passive:!0}),o||e(c(a.parentNode),n,r,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function W(){this.state.eventsEnabled||(this.state=q(this.reference,this.options,this.state,this.scheduleUpdate))}function Y(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,U(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function G(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function K(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&G(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var Q=n&&/Firefox/i.test(navigator.userAgent);function J(e,t,n){var r=z(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var X=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Z=X.slice(3);function ee(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Z.indexOf(e),r=Z.slice(n+1).concat(Z.slice(0,n));return t?r.reverse():r}var te="flip",ne="clockwise",re="counterclockwise";function ie(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(z(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return(l=l.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return S(s)[t]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){G(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var oe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",l=s?"width":"height",u={start:x({},c,o[c]),end:x({},c,o[c]+o[l]-a[l])};e.offsets.popper=C({},a,u[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],c=void 0;return c=G(+n)?[+n,0]:ie(n,o,a,s),"left"===s?(o.top+=c[0],o.left-=c[1]):"right"===s?(o.top+=c[0],o.left+=c[1]):"top"===s?(o.left+=c[0],o.top-=c[1]):"bottom"===s&&(o.left+=c[0],o.top+=c[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||h(e.instance.popper);e.instance.reference===n&&(n=h(n));var r=V("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var c=P(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=c;var l=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),x({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),x({},n,r)}};return l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=C({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[l]),n[c]>o(r[s])&&(e.offsets.popper[c]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!J(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,s=o.popper,c=o.reference,l=-1!==["left","right"].indexOf(i),u=l?"height":"width",d=l?"Top":"Left",f=d.toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",m=N(r)[u];c[p]-m<s[f]&&(e.offsets.popper[f]-=s[f]-(c[p]-m)),c[f]+m>s[p]&&(e.offsets.popper[f]+=c[f]+m-s[p]),e.offsets.popper=S(e.offsets.popper);var v=c[f]+c[u]/2-m/2,g=a(e.instance.popper),b=parseFloat(g["margin"+d]),y=parseFloat(g["border"+d+"Width"]),_=v-e.offsets.popper[f]-b-y;return _=Math.max(Math.min(s[u]-m,_),0),e.arrowElement=r,e.offsets.arrow=(x(n={},f,Math.round(_)),x(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if($(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=P(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=R(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case te:a=[r,i];break;case ne:a=ee(r);break;case re:a=ee(r,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],i=R(r);var l=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f="left"===r&&d(l.right)>d(u.left)||"right"===r&&d(l.left)<d(u.right)||"top"===r&&d(l.bottom)>d(u.top)||"bottom"===r&&d(l.top)<d(u.bottom),h=d(l.left)<d(n.left),p=d(l.right)>d(n.right),m=d(l.top)<d(n.top),v=d(l.bottom)>d(n.bottom),g="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===o&&h||b&&"end"===o&&p||!b&&"start"===o&&m||!b&&"end"===o&&v),_=!!t.flipVariationsByContent&&(b&&"start"===o&&p||b&&"end"===o&&h||!b&&"start"===o&&v||!b&&"end"===o&&m),w=y||_;(f||g||w)&&(e.flipped=!0,(f||g)&&(r=a[c+1]),w&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=C({},e.offsets.popper,L(e.instance.popper,e.offsets.reference,e.placement)),e=F(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=R(t),e.offsets.popper=S(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!J(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=z(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=z(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=h(e.instance.popper),c=T(s),l={position:i.position},u=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},c=o(i.width),l=o(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?u||d||c%2==l%2?o:a:s,h=t?o:s;return{left:f(c%2==1&&l%2==1&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!Q),d="bottom"===n?"top":"bottom",f="right"===r?"left":"right",p=V("transform"),m=void 0,v=void 0;if(v="bottom"===d?"HTML"===s.nodeName?-s.clientHeight+u.bottom:-c.height+u.bottom:u.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+u.right:-c.width+u.right:u.left,a&&p)l[p]="translate3d("+m+"px, "+v+"px, 0)",l[d]=0,l[f]=0,l.willChange="transform";else{var g="bottom"===d?-1:1,b="right"===f?-1:1;l[d]=v*g,l[f]=m*b,l.willChange=d+", "+f}var y={"x-placement":e.placement};return e.attributes=C({},y,e.attributes),e.styles=C({},l,e.styles),e.arrowStyles=C({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return K(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&K(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=j(i,t,e,n.positionFixed),a=D(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),K(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},ae=function(){function e(t,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};w(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=C({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(C({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){r.options.modifiers[t]=C({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return C({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&o(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return k(e,[{key:"update",value:function(){return B.call(this)}},{key:"destroy",value:function(){return H.call(this)}},{key:"enableEventListeners",value:function(){return W.call(this)}},{key:"disableEventListeners",value:function(){return Y.call(this)}}]),e}();ae.Utils=("undefined"!=typeof window?window:e).PopperUtils,ae.placements=X,ae.Defaults=oe,t.default=ae}.call(this,n(7))},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(5);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(5),i=n(104),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,c={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==t&&"[object process]"===Object.prototype.toString.call(t))&&(s=n(58)),s),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};c.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(o)})),e.exports=c}).call(this,n(57))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,l=[],u=!1,d=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):d=-1,l.length&&h())}function h(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++d<t;)c&&c[d].run();d=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new p(e,t)),1!==l.length||u||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(5),i=n(105),o=n(54),a=n(107),s=n(110),c=n(111),l=n(59);e.exports=function(e){return new Promise((function(t,u){var d=e.data,f=e.headers;r.isFormData(d)&&delete f["Content-Type"];var h=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",m=e.auth.password||"";f.Authorization="Basic "+btoa(p+":"+m)}var v=a(e.baseURL,e.url);if(h.open(e.method.toUpperCase(),o(v,e.params,e.paramsSerializer),!0),h.timeout=e.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:e,request:h};i(t,u,r),h=null}},h.onabort=function(){h&&(u(l("Request aborted",e,"ECONNABORTED",h)),h=null)},h.onerror=function(){u(l("Network Error",e,null,h)),h=null},h.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),u(l(t,e,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=n(112),b=(e.withCredentials||c(v))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;b&&(f[e.xsrfHeaderName]=b)}if("setRequestHeader"in h&&r.forEach(f,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete f[t]:h.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(h.withCredentials=!!e.withCredentials),e.responseType)try{h.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&h.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){h&&(h.abort(),u(e),h=null)})),void 0===d&&(d=null),h.send(d)}))}},function(e,t,n){"use strict";var r=n(106);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(o,(function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):void 0!==t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):void 0!==e[i]&&(n[i]=e[i])})),r.forEach(a,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var s=i.concat(o).concat(a),c=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(c,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},,,,,,,,,,,,,,,,function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n(33),function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=504)}([function(e,t){e.exports=function(e,t,n,r,i,o){var a,s,c,l,u,d=e=e||{},f=typeof e.default;return"object"!==f&&"function"!==f||(a=e,d=e.default),s="function"==typeof d?d.options:d,t&&(s.render=t.render,s.staticRenderFns=t.staticRenderFns,s._compiled=!0),n&&(s.functional=!0),i&&(s._scopeId=i),o?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},s._ssrRegister=c):r&&(c=r),c&&(l=s.functional,u=l?s.render:s.beforeCreate,l?(s._injectStyles=c,s.render=function(e,t){return c.call(t),u(e,t)}):s.beforeCreate=u?[].concat(u,c):[c]),{esModule:a,exports:d,options:s}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={props:{mdTheme:null},computed:{$mdActiveTheme:function(){var e=o.default.enabled,t=o.default.getThemeName,n=o.default.getAncestorTheme;return e&&!1!==this.mdTheme?t(this.mdTheme||n(this)):null}}};return(0,s.default)(t,e)},i=n(4),o=r(i),a=n(6),s=r(a)},function(e,t){e.exports=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),n(7),i=n(5),o=r(i),a=n(4),s=r(a),c=function(){var e=new o.default({ripple:!0,theming:{},locale:{startYear:1900,endYear:2099,dateFormat:"yyyy-MM-dd",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shorterDays:["S","M","T","W","T","F","S"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],shorterMonths:["J","F","M","A","M","Ju","Ju","A","Se","O","N","D"],firstDayOfAWeek:0},router:{linkActiveClass:"router-link-active"}});return Object.defineProperties(e.theming,{metaColors:{get:function(){return s.default.metaColors},set:function(e){s.default.metaColors=e}},theme:{get:function(){return s.default.theme},set:function(e){s.default.theme=e}},enabled:{get:function(){return s.default.enabled},set:function(e){s.default.enabled=e}}}),e},t.default=function(e){e.material||(e.material=c(),e.prototype.$material=e.material)}},function(e,t,n){"use strict";var r,i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(2)),i=null,o=null,a=null,t.default=new r.default({data:function(){return{prefix:"md-theme-",theme:"default",enabled:!0,metaColors:!1}},computed:{themeTarget:function(){return!this.$isServer&&document.documentElement},fullThemeName:function(){return this.getThemeName()}},watch:{enabled:{immediate:!0,handler:function(){var e=this.fullThemeName,t=this.themeTarget,n=this.enabled;t&&(n?(t.classList.add(e),this.metaColors&&this.setHtmlMetaColors(e)):(t.classList.remove(e),this.metaColors&&this.setHtmlMetaColors()))}},theme:function(e,t){var n=this.getThemeName,r=this.themeTarget;e=n(e),r.classList.remove(n(t)),r.classList.add(e),this.metaColors&&this.setHtmlMetaColors(e)},metaColors:function(e){e?this.setHtmlMetaColors(this.fullThemeName):this.setHtmlMetaColors()}},methods:{getAncestorTheme:function(e){var t,n=this;return e?(t=e.mdTheme,function e(r){if(r){var i=r.mdTheme,o=r.$parent;return i&&i!==t?i:e(o)}return n.theme}(e.$parent)):null},getThemeName:function(e){var t=e||this.theme;return this.prefix+t},setMicrosoftColors:function(e){i&&i.setAttribute("content",e)},setThemeColors:function(e){o&&o.setAttribute("content",e)},setMaskColors:function(e){a&&a.setAttribute("color",e)},setHtmlMetaColors:function(e){var t="#fff";e&&(t=window.getComputedStyle(document.documentElement).getPropertyValue("--"+e+"-primary")),t&&(this.setMicrosoftColors(t),this.setThemeColors(t),this.setMaskColors(t))}},mounted:function(){var e=this;i=document.querySelector('[name="msapplication-TileColor"]'),o=document.querySelector('[name="theme-color"]'),a=document.querySelector('[rel="mask-icon"]'),this.enabled&&this.metaColors&&window.addEventListener("load",(function(){e.setHtmlMetaColors(e.fullThemeName)}))}})},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={};return i.default.util.defineReactive(t,"reactive",e),t.reactive},r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(r)},function(e,t,n){e.exports=function(){"use strict";function e(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===a}(e)}function t(e,t){return!1!==t.clone&&t.isMergeableObject(e)?i(function(e){return Array.isArray(e)?[]:{}}(e),e,t):e}function n(e,n,r){return e.concat(n).map((function(e){return t(e,r)}))}function r(e,n,r){var o={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(n){o[n]=t(e[n],r)})),Object.keys(n).forEach((function(a){r.isMergeableObject(n[a])&&e[a]?o[a]=function(e,t){if(!t.customMerge)return i;var n=t.customMerge(e);return"function"==typeof n?n:i}(a,r)(e[a],n[a],r):o[a]=t(n[a],r)})),o}function i(e,i,a){var s;return(a=a||{}).arrayMerge=a.arrayMerge||n,a.isMergeableObject=a.isMergeableObject||o,(s=Array.isArray(i))===Array.isArray(e)?s?a.arrayMerge(e,i,a):r(e,i,a):t(i,a)}var o=function(t){return function(e){return!!e&&"object"==typeof e}(t)&&!e(t)},a="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;return i.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce((function(e,n){return i(e,n,t)}),{})},i}()},function(e,t){},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(r),t.default=function(e,t){return{validator:function(n){return!!t.includes(n)||(i.default.util.warn("The "+e+" prop is invalid. Given value: "+n+". Available options: "+t.join(", ")+".",void 0),!1)}}}},function(e,t,n){"use strict";t.a=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fpAk2"),console.warn(Error().stack)),new Date(NaN))}},function(e,t,n){(function(t){var r,i,o,a,s=n(14),c="undefined"==typeof window?t:window,l=["moz","webkit"],u="AnimationFrame",d=c["request"+u],f=c["cancel"+u]||c["cancelRequest"+u];for(r=0;!d&&r<l.length;r++)d=c[l[r]+"Request"+u],f=c[l[r]+"Cancel"+u]||c[l[r]+"CancelRequest"+u];d&&f||(i=0,o=0,a=[],d=function(e){if(0===a.length){var t=s(),n=Math.max(0,1e3/60-(t-i));i=n+t,setTimeout((function(){var e,t=a.slice(0);for(a.length=0,e=0;e<t.length;e++)if(!t[e].cancelled)try{t[e].callback(i)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return a.push({handle:++o,callback:e,cancelled:!1}),o},f=function(e){for(var t=0;t<a.length;t++)a[t].handle===e&&(a[t].cancelled=!0)}),e.exports=function(e){return d.call(c,e)},e.exports.cancel=function(){f.apply(c,arguments)},e.exports.polyfill=function(e){e||(e=c),e.requestAnimationFrame=d,e.cancelAnimationFrame=f}}).call(t,n(12))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return Math.random().toString(36).slice(4)}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(20),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(37),s=function(e){n(33)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){(function(t){(function(){var n,r,i,o,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,o=(n=function(){var e;return 1e9*(e=r())[0]+e[1]})(),s=1e9*t.uptime(),a=o-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(t,n(15))},function(e,t){function n(){throw Error("setTimeout has not been defined")}function r(){throw Error("clearTimeout has not been defined")}function i(e){if(l===setTimeout)return setTimeout(e,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(e,0);try{return l(e,0)}catch(t){try{return l.call(null,e,0)}catch(t){return l.call(this,e,0)}}}function o(){f&&h&&(f=!1,h.length?d=h.concat(d):p=-1,d.length&&a())}function a(){var e,t;if(!f){for(e=i(o),f=!0,t=d.length;t;){for(h=d,d=[];++p<t;)h&&h[p].run();p=-1,t=d.length}h=null,f=!1,function(e){if(u===clearTimeout)return clearTimeout(e);if((u===r||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function c(){}var l,u,d,f,h,p,m=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(e){l=n}try{u="function"==typeof clearTimeout?clearTimeout:r}catch(e){u=r}}(),d=[],f=!1,p=-1,m.nextTick=function(e){var t,n=Array(arguments.length-1);if(arguments.length>1)for(t=1;t<arguments.length;t++)n[t-1]=arguments[t];d.push(new s(e,n)),1!==d.length||f||i(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=c,m.addListener=c,m.once=c,m.off=c,m.removeListener=c,m.removeAllListeners=c,m.emit=c,m.prependListener=c,m.prependOnceListener=c,m.listeners=function(e){return[]},m.binding=function(e){throw Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(e){throw Error("process.chdir is not supported")},m.umask=function(){return 0}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(18),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(26),s=function(e){n(23)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";t.a=function(e){if(null===e||!0===e||!1===e)return NaN;var t=+e;return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(10),a=r(o),s=r(n(1)),c=n(11),l=r(c),u=r(n(22)),t.default=new s.default({name:"MdRipple",components:{MdWave:u.default},props:{mdActive:null,mdDisabled:Boolean,mdCentered:Boolean,mdEventTrigger:{type:Boolean,default:!0}},data:function(){return{ripples:[],touchTimeout:null,eventType:null}},computed:{isDisabled:function(){return!this.$material.ripple||this.mdDisabled},rippleClasses:function(){return{"md-disabled":this.isDisabled}},waveClasses:function(){return{"md-centered":this.mdCentered}}},watch:{mdActive:function(e){var t="boolean"==typeof e,n="mouseevent"===(""+e.constructor).match(/function (\w*)/)[1].toLowerCase();t&&this.mdCentered&&e?this.startRipple({type:"mousedown"}):n&&this.startRipple(e),this.$emit("update:mdActive",!1)}},methods:{touchMoveCheck:function(){window.clearTimeout(this.touchTimeout)},touchStartCheck:function(e){var t=this;this.touchTimeout=window.setTimeout((function(){t.startRipple(e)}),100)},startRipple:function(e){var t=this;(0,a.default)((function(){var n,r,i=t.eventType,o=t.isDisabled,a=t.mdCentered;o||i&&i!==e.type||(n=t.getSize(),r=a?t.getCenteredPosition(n):t.getHitPosition(e,n),t.eventType=e.type,t.ripples.push({waveStyles:t.applyStyles(r,n),uuid:(0,l.default)()}))}))},applyStyles:function(e,t){return i({},e,{width:t+="px",height:t})},clearWave:function(e){this.ripples=e?this.ripples.filter((function(t){return t.uuid!==e})):[]},getSize:function(){var e=this.$el,t=e.offsetWidth,n=e.offsetHeight;return Math.round(Math.max(t,n))},getCenteredPosition:function(e){var t=-e/2+"px";return{"margin-top":t,"margin-left":t}},getHitPosition:function(e,t){var n=this.$el.getBoundingClientRect(),r=e.pageY,i=e.pageX;return"touchstart"===e.type&&(r=e.changedTouches[0].pageY,i=e.changedTouches[0].pageX),{top:r-n.top-t/2-document.documentElement.scrollTop+"px",left:i-n.left-t/2-document.documentElement.scrollLeft+"px"}}}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdWave",data:function(){return{animating:!1}},props:{waveClasses:null,waveStyles:null},mounted:function(){this.animating=!0},methods:{end:function(){this.animating=!1,this.$emit("md-end")}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(34)),t.default=new i.default({name:"MdIcon",components:{MdSvgLoader:o.default},props:{mdSrc:String}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={};t.default={name:"MdSVGLoader",props:{mdSrc:{type:String,required:!0}},data:function(){return{html:null,error:null}},watch:{mdSrc:function(){this.html=null,this.loadSVG()}},methods:{isSVG:function(e){return"string"==typeof e&&e.indexOf("svg")>=0},setHtml:function(e){var t=this;r[this.mdSrc].then((function(e){return t.html=e,t.$nextTick()})).then((function(){return t.$emit("md-loaded")}))},unexpectedError:function(e){this.error="Something bad happened trying to fetch "+this.mdSrc+".",e(this.error)},loadSVG:function(){var e=this;r.hasOwnProperty(this.mdSrc)?this.setHtml():r[this.mdSrc]=new Promise((function(t,n){var r=new window.XMLHttpRequest;r.open("GET",e.mdSrc,!0),r.onload=function(){var i=r.getResponseHeader("content-type");200===r.status?e.isSVG(i)?(t(r.response),e.setHtml()):(e.error="The file "+e.mdSrc+" is not a valid SVG.",n(e.error)):r.status>=400&&r.status<500?(e.error="The file "+e.mdSrc+" do not exists.",n(e.error)):e.unexpectedError(n)},r.onerror=function(){return e.unexpectedError(n)},r.onabort=function(){return e.unexpectedError(n)},r.send()}))}},mounted:function(){this.loadSVG()}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(19),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(25),s=function(e){n(24)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-ripple",appear:""},on:{"after-enter":e.end}},[e.animating?n("span"):e._e()])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["md-ripple",e.rippleClasses],on:{"&touchstart":function(t){return function(t){return e.mdEventTrigger&&e.touchStartCheck(t)}(t)},"&touchmove":function(t){return function(t){return e.mdEventTrigger&&e.touchMoveCheck(t)}(t)},"&mousedown":function(t){return function(t){return e.mdEventTrigger&&e.startRipple(t)}(t)}}},[e._t("default"),e._v(" "),e._l(e.ripples,(function(t){return e.isDisabled?e._e():n("md-wave",{key:t.uuid,class:["md-ripple-wave",e.waveClasses],style:t.waveStyles,on:{"md-end":function(n){return e.clearWave(t.uuid)}}})}))],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(2),o=r(i),a=n(10),s=r(a),t.default={name:"MdPortal",abstract:!0,props:{mdAttachToParent:Boolean,mdTarget:{type:null,validator:function(e){return!!(HTMLElement&&e&&e instanceof HTMLElement)||(o.default.util.warn("The md-target-el prop is invalid. You should pass a valid HTMLElement.",this),!1)}}},data:function(){return{leaveTimeout:null,originalParentEl:null}},computed:{transitionName:function(){var e,t,n=this._vnode.componentOptions.children[0];if(n){if(e=n.data.transition)return e.name;if(t=n.componentOptions.propsData.name)return t}return"v"},leaveClass:function(){return this.transitionName+"-leave"},leaveActiveClass:function(){return this.transitionName+"-leave-active"},leaveToClass:function(){return this.transitionName+"-leave-to"}},watch:{mdTarget:function(e,t){this.changeParentEl(e),t&&this.$forceUpdate()}},methods:{getTransitionDuration:function(e){var t=window.getComputedStyle(e).transitionDuration,n=parseFloat(t,10),r=t.match(/m?s/);return r&&(r=r[0]),"s"===r?1e3*n:"ms"===r?n:0},killGhostElement:function(e){e.parentNode&&(this.changeParentEl(this.originalParentEl),this.$options._parentElm=this.originalParentEl,e.parentNode.removeChild(e))},initDestroy:function(e){var t=this,n=this.$el;e&&this.$el.nodeType===Node.COMMENT_NODE&&(n=this.$vnode.elm),n.classList.add(this.leaveClass),n.classList.add(this.leaveActiveClass),this.$nextTick().then((function(){n.classList.add(t.leaveToClass),clearTimeout(t.leaveTimeout),t.leaveTimeout=setTimeout((function(){t.destroyElement(n)}),t.getTransitionDuration(n))}))},destroyElement:function(e){var t=this;(0,s.default)((function(){e.classList.remove(t.leaveClass),e.classList.remove(t.leaveActiveClass),e.classList.remove(t.leaveToClass),t.$emit("md-destroy"),t.killGhostElement(e)}))},changeParentEl:function(e){e&&e.appendChild(this.$el)}},mounted:function(){this.originalParentEl||(this.originalParentEl=this.$el.parentNode,this.$emit("md-initial-parent",this.$el.parentNode)),this.mdAttachToParent&&this.$el.parentNode.parentNode?this.changeParentEl(this.$el.parentNode.parentNode):document&&this.changeParentEl(this.mdTarget||document.body)},beforeDestroy:function(){this.$el.classList?this.initDestroy():this.killGhostElement(this.$el)},render:function(e){var t=this.$slots.default;if(t&&t[0])return t[0]}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{to:[String,Object],replace:Boolean,append:Boolean,activeClass:String,exact:Boolean,event:[String,Array],exactActiveClass:String}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e};t.default=function(e,t){var n=e.$options.components.RouterLink||e.$options.components["router-link"];return r({},t,n.options.props)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(38)),o=r(n(179)),t.default={mixins:[i.default],components:{MdListItemContent:o.default},props:{disabled:Boolean},computed:{isDisabled:function(){return!this.mdRipple||this.disabled}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(41)),s=r(n(38)),c=r(n(28)),l=n(29),u=r(l),d=r(n(45)),t.default=new o.default({name:"MdButton",data:function(){return{rippleActive:!1}},components:{MdButtonContent:d.default},mixins:[s.default,a.default,c.default],props:{href:String,type:{type:String,default:"button"},disabled:Boolean},computed:{rippleWorks:function(){return this.mdRipple&&!this.disabled},isRouterLink:function(){return this.$router&&this.to}},render:function(e){var t,n,r=this,o=e("md-button-content",{attrs:{mdRipple:this.mdRipple,disabled:this.disabled},props:{mdRippleActive:this.rippleActive},on:{"update:mdRippleActive":function(e){return r.rippleActive=e}}},this.$slots.default),a={staticClass:"md-button",class:[this.$mdActiveTheme,{"md-ripple-off":!this.mdRipple,"md-focused":this.mdHasFocus}],attrs:i({},this.attrs,{href:this.href,disabled:this.disabled,type:!this.href&&(this.type||"button")}),on:i({},this.$listeners,{touchstart:function(e){r.rippleWorks&&(r.rippleActive=e),r.$listeners.touchstart&&r.$listeners.touchstart(e)},touchmove:function(e){r.rippleWorks&&(r.rippleActive=e),r.$listeners.touchmove&&r.$listeners.touchmove(e)},mousedown:function(e){r.rippleWorks&&(r.rippleActive=e),r.$listeners.mousedown&&r.$listeners.mousedown(e)}})},s="button";return this.href?s="a":this.isRouterLink&&(this.$options.props=(0,u.default)(this,this.$options.props),s="router-link",t=this.$props.exactActiveClass,n=(this.$props.activeClass||this.$material.router.linkActiveClass)+" md-active",a.props=i({},this.$props,{exactActiveClass:t,activeClass:n}),delete a.props.type,delete a.attrs.type,delete a.props.href,delete a.attrs.href),e(s,a,[o])}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(16)),t.default={name:"MdButtonContent",components:{MdRipple:r.default},props:{mdRipple:Boolean,mdRippleActive:null,disabled:Boolean}}},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(21),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(36),s=function(e){n(35)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("i",{staticClass:"md-svg-loader",domProps:{innerHTML:e._s(e.html)}})},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.mdSrc?n("md-svg-loader",{staticClass:"md-icon md-icon-image",class:[e.$mdActiveTheme],attrs:{"md-src":e.mdSrc},on:{"md-loaded":function(t){return e.$emit("md-loaded")}}}):n("i",{staticClass:"md-icon md-icon-font",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(16)),t.default={components:{MdRipple:r.default},props:{mdRipple:{type:Boolean,default:!0}}}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(31),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(44)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(67),a=r(o),s=n(6),c=r(s),l=n(27),u=r(l),t.default={name:"MdPopover",abstract:!0,components:{MdPortal:u.default},props:{mdActive:Boolean,mdSettings:{type:Object,default:function(){return{}}}},data:function(){return{popperInstance:null,originalParentEl:null,shouldRender:!1,shouldActivate:!1}},computed:{popoverClasses:function(){return this.shouldActivate?"md-active":this.shouldRender?"md-rendering":void 0}},watch:{mdActive:{immediate:!0,handler:function(e){this.shouldRender=e,e?this.bindPopper():this.shouldActivate=!1}},mdSettings:function(){this.popperInstance&&this.createPopper()}},methods:{getPopperOptions:function(){var e=this;return{placement:"bottom",modifiers:{preventOverflow:{boundariesElement:"viewport",padding:16},computeStyle:{gpuAcceleration:!1}},onCreate:function(){e.shouldActivate=!0,e.$emit("md-active")}}},setOriginalParent:function(e){this.originalParentEl||(this.originalParentEl=e)},killPopper:function(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)},bindPopper:function(){var e=this;this.$nextTick().then((function(){e.originalParentEl&&e.createPopper()}))},createPopper:function(){if(this.mdSettings){var e=(0,c.default)(this.getPopperOptions(),this.mdSettings);this.$el.nodeType!==Node.COMMENT_NODE&&(this.popperInstance=new a.default(this.originalParentEl,this.$el,e))}},resetPopper:function(){this.popperInstance&&(this.killPopper(),this.createPopper())}},beforeDestroy:function(){this.killPopper()},mounted:function(){this.resetPopper()},render:function(e){return e(u.default,{props:i({},this.$attrs),on:i({},this.$listeners,{"md-initial-parent":this.setOriginalParent,"md-destroy":this.killPopper})},this.$slots.default)}}},function(e,t,n){"use strict";function r(e){var t=(e.keyCode,e.target);d.currentElement=t}function i(e){d.currentElement=null}function o(){window.PointerEvent?l.addEventListener("pointerup",i):window.MSPointerEvent?l.addEventListener("MSPointerUp",i):(l.addEventListener("mouseup",i),"ontouchend"in window&&l.addEventListener("touchend",i,u)),l.addEventListener("keyup",r)}function a(){c||(l=document.body,function(){try{var e=Object.defineProperty({},"passive",{get:function(){u={passive:!0}}});window.addEventListener("ghost",null,e)}catch(e){}}(),o(),c=!0)}var s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),s=function(e){return e&&e.__esModule?e:{default:e}}(n(5)),c=!1,l=null,u=!1,d=new s.default({currentElement:null}),t.default={data:function(){return{mdHasFocus:!1}},computed:{focusedElement:function(){return d.currentElement}},watch:{focusedElement:function(e){this.mdHasFocus=e===this.$el}},mounted:function(){a()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e};t.default={props:{value:{},placeholder:String,name:String,maxlength:[String,Number],readonly:Boolean,required:Boolean,disabled:Boolean,mdCounter:[String,Number]},data:function(){return{localValue:this.value,textareaHeight:!1}},computed:{model:{get:function(){return this.localValue},set:function(e){var t=this;"inputevent"!==(""+e.constructor).match(/function (\w*)/)[1].toLowerCase()&&this.$nextTick((function(){t.localValue=e}))}},clear:function(){return this.MdField.clear},attributes:function(){return r({},this.$attrs,{type:this.type,id:this.id,name:this.name,disabled:this.disabled,required:this.required,placeholder:this.placeholder,readonly:this.readonly,maxlength:this.maxlength})}},watch:{model:function(){this.setFieldValue()},clear:function(e){e&&this.clearField()},placeholder:function(){this.setPlaceholder()},disabled:function(){this.setDisabled()},required:function(){this.setRequired()},maxlength:function(){this.setMaxlength()},mdCounter:function(){this.setMaxlength()},localValue:function(e){this.$emit("input",e)},value:function(e){this.localValue=e}},methods:{clearField:function(){this.$el.value="",this.model="",this.setFieldValue()},setLabelFor:function(){var e,t;this.$el.parentNode&&(e=this.$el.parentNode.querySelector("label"))&&(!(t=e.getAttribute("for"))||t.indexOf("md-")>=0)&&e.setAttribute("for",this.id)},setFieldValue:function(){this.MdField.value=this.model},setPlaceholder:function(){this.MdField.placeholder=!!this.placeholder},setDisabled:function(){this.MdField.disabled=!!this.disabled},setRequired:function(){this.MdField.required=!!this.required},setMaxlength:function(){this.mdCounter?this.MdField.counter=parseInt(this.mdCounter,10):this.MdField.maxlength=parseInt(this.maxlength,10)},onFocus:function(){this.MdField.focused=!0},onBlur:function(){this.MdField.focused=!1}},created:function(){this.setFieldValue(),this.setPlaceholder(),this.setDisabled(),this.setRequired(),this.setMaxlength()},mounted:function(){this.setLabelFor()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={methods:{isAssetIcon:function(e){return/\w+[\/\\.]\w+/.test(e)}}}},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(32),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(47),s=function(e){n(46)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-ripple",{attrs:{"md-disabled":!e.mdRipple||e.disabled,"md-event-trigger":!1,"md-active":e.mdRippleActive},on:{"update:mdActive":function(t){return e.$emit("update:mdRippleActive",t)}}},[n("div",{staticClass:"md-button-content"},[e._t("default")],2)])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("MutationObserver"in window){var r=new window.MutationObserver(n);return r.observe(e,t),{disconnect:function(){r.disconnect()}}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(63)),a=r(n(87)),s=r(n(89)),t.default=new i.default({name:"MdField",components:{MdClearIcon:o.default,MdPasswordOffIcon:a.default,MdPasswordOnIcon:s.default},props:{mdInline:Boolean,mdClearable:Boolean,mdCounter:{type:Boolean,default:!0},mdTogglePassword:{type:Boolean,default:!0}},data:function(){return{showPassword:!1,MdField:{value:null,focused:!1,highlighted:!1,disabled:!1,required:!1,placeholder:!1,textarea:!1,autogrow:!1,maxlength:null,counter:null,password:null,togglePassword:!1,clear:!1,file:!1}}},provide:function(){return{MdField:this.MdField}},computed:{stringValue:function(){return(this.MdField.value||0===this.MdField.value)&&""+this.MdField.value},hasCounter:function(){return this.mdCounter&&(this.MdField.maxlength||this.MdField.counter)},hasPasswordToggle:function(){return this.mdTogglePassword&&this.MdField.password},hasValue:function(){return this.stringValue&&this.stringValue.length>0},valueLength:function(){return this.stringValue?this.stringValue.length:0},fieldClasses:function(){return{"md-inline":this.mdInline,"md-clearable":this.mdClearable,"md-focused":this.MdField.focused,"md-highlight":this.MdField.highlighted,"md-disabled":this.MdField.disabled,"md-required":this.MdField.required,"md-has-value":this.hasValue,"md-has-placeholder":this.MdField.placeholder,"md-has-textarea":this.MdField.textarea,"md-has-password":this.MdField.password,"md-has-file":this.MdField.file,"md-has-select":this.MdField.select,"md-autogrow":this.MdField.autogrow}}},methods:{clearInput:function(){var e=this;this.MdField.clear=!0,this.$emit("md-clear"),this.$nextTick().then((function(){e.MdField.clear=!1}))},togglePassword:function(){this.MdField.togglePassword=!this.MdField.togglePassword},onBlur:function(){this.MdField.highlighted=!1}}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdClearIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdPasswordOffIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdPasswordOnIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(54),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(92),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=n(11),s=r(a),c=r(n(42)),t.default=new o.default({name:"MdInput",mixins:[c.default],inject:["MdField"],props:{id:{type:String,default:function(){return"md-input-"+(0,s.default)()}},type:{type:String,default:"text"}},computed:{toggleType:function(){return this.MdField.togglePassword},isPassword:function(){return"password"===this.type},listeners:function(){var e=i({},this.$listeners);return delete e.input,e}},watch:{type:function(e){this.setPassword(this.isPassword)},toggleType:function(e){e?this.setTypeText():this.setTypePassword()}},methods:{setPassword:function(e){this.MdField.password=e,this.MdField.togglePassword=!1},setTypePassword:function(){this.$el.type="password"},setTypeText:function(){this.$el.type="text"}},created:function(){this.setPassword(this.isPassword)},beforeDestroy:function(){this.setPassword(!1)}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(27)),t.default={name:"MdOverlay",components:{MdPortal:r.default},props:{mdActive:Boolean,mdAttachToParent:Boolean,mdFixed:Boolean},computed:{overlayClasses:function(){return{"md-fixed":this.mdFixed}}}}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(40),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(66)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdList",data:function(){return{MdList:{expandable:[],expandATab:this.expandATab,pushExpandable:this.pushExpandable,removeExpandable:this.removeExpandable}}},provide:function(){return{MdList:this.MdList}},props:{mdExpandSingle:{default:!1}},methods:{expandATab:function(e){this.mdExpandSingle&&e&&this.MdList.expandable.filter((function(t){return t!==e})).forEach((function(e){return e.close()}))},pushExpandable:function(e){var t=this.MdList.expandable;t.find((function(t){return t===e}))||(this.MdList.expandable=t.concat([e]))},removeExpandable:function(e){var t=this.MdList.expandable;t.find((function(t){return t===e}))&&(this.MdList.expandable=t.filter((function(t){return t!==e})))}}})},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(55),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(95),s=function(e){n(94)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(2),i=function(e){return e&&e.__esModule?e:{default:e}}(r),t.default={name:"MdFocusTrap",abstract:!0,methods:{setFocus:function(){var e=this;window.setTimeout((function(){e.$el.tagName&&(e.$el.setAttribute("tabindex","-1"),e.$el.focus())}),20)}},mounted:function(){this.setFocus()},render:function(){try{var e=this.$slots.default;if(!e)return null;if(e.length>1)throw Error();return e[0]}catch(e){i.default.util.warn("MdFocusTrap can only render one, and exactly one child component.",this)}return null}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r){return t&&t.indexOf("click")>=0&&/iP/i.test(navigator.userAgent)&&(e.style.cursor="pointer"),e.addEventListener(t,n,r||!1),{destroy:function(){e.removeEventListener(t,n)}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(10),o=r(i),a=n(60),s=r(a),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=arguments[1];return{destroy:(0,s.default)(e,"resize",(function(){(0,o.default)(t)}),{passive:!0}).destroy}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(49),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(91),s=function(e){n(85)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(50),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(86),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";t.a=function(e){var t,n,i,o;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return t=1,o=((i=(n=Object(r.a)(e)).getUTCDay())<t?7:0)+i-t,n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n};var r=n(9)},function(e,t,n){"use strict";var r,i;t.a=function(e,t){var n,o,a,s,c,l,u,d;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(s=null==(a=(o=(n=t||{}).locale)&&o.options&&o.options.weekStartsOn)?0:Object(r.a)(a),!((c=null==n.weekStartsOn?s:Object(r.a)(n.weekStartsOn))>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");return d=((u=(l=Object(i.a)(e)).getUTCDay())<c?7:0)+u-c,l.setUTCDate(l.getUTCDate()-d),l.setUTCHours(0,0,0,0),l},r=n(17),i=n(9)},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function n(e){return e&&"[object Function]"==={}.toString.call(e)}function r(e,t){var n;return 1!==e.nodeType?[]:(n=e.ownerDocument.defaultView.getComputedStyle(e,null),t?n[t]:n)}function i(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function o(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=r(e),n=t.overflow,a=t.overflowX;return/(auto|scroll|overlay)/.test(n+t.overflowY+a)?e:o(i(e))}function a(e){return 11===e?W:10===e?Y:W||Y}function s(e){var t,n,i;if(!e)return document.documentElement;for(t=a(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;return(i=n&&n.nodeName)&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===r(n,"position")?s(n):n:e?e.ownerDocument.documentElement:document.documentElement}function c(e){return null!==e.parentNode?c(e.parentNode):e}function l(e,t){var n,r,i,o,a,u;return e&&e.nodeType&&t&&t.nodeType?(r=(n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)?e:t,i=n?t:e,(o=document.createRange()).setStart(r,0),o.setEnd(i,0),e!==(a=o.commonAncestorContainer)&&t!==a||r.contains(i)?function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||s(e.firstElementChild)===e)}(a)?a:s(a):(u=c(e)).host?l(u.host,t):l(e,c(t).host)):document.documentElement}function u(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r="top"===n?"scrollTop":"scrollLeft",i=e.nodeName;return"BODY"===i||"HTML"===i?(t=e.ownerDocument.documentElement,(e.ownerDocument.scrollingElement||t)[r]):e[r]}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=u(t,"top"),i=u(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function f(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function h(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],a(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function p(e){var t=e.body,n=e.documentElement,r=a(10)&&getComputedStyle(n);return{height:h("Height",t,n,r),width:h("Width",t,n,r)}}function m(e){return J({},e,{right:e.left+e.width,bottom:e.top+e.height})}function v(e){var t,n,i,o,s,c,l,d,h,v={};try{a(10)?(v=e.getBoundingClientRect(),t=u(e,"top"),n=u(e,"left"),v.top+=t,v.left+=n,v.bottom+=t,v.right+=n):v=e.getBoundingClientRect()}catch(e){}return i={left:v.left,top:v.top,width:v.right-v.left,height:v.bottom-v.top},s=(o="HTML"===e.nodeName?p(e.ownerDocument):{}).width||e.clientWidth||i.right-i.left,c=o.height||e.clientHeight||i.bottom-i.top,l=e.offsetWidth-s,d=e.offsetHeight-c,(l||d)&&(l-=f(h=r(e),"x"),d-=f(h,"y"),i.width-=l,i.height-=d),m(i)}function g(e,t){var n,i,s,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=a(10),u="HTML"===t.nodeName,f=v(e),h=v(t),p=o(e),g=r(t),b=parseFloat(g.borderTopWidth,10),y=parseFloat(g.borderLeftWidth,10);return c&&u&&(h.top=Math.max(h.top,0),h.left=Math.max(h.left,0)),(n=m({top:f.top-h.top-b,left:f.left-h.left-y,width:f.width,height:f.height})).marginTop=0,n.marginLeft=0,!l&&u&&(i=parseFloat(g.marginTop,10),s=parseFloat(g.marginLeft,10),n.top-=b-i,n.bottom-=b-i,n.left-=y-s,n.right-=y-s,n.marginTop=i,n.marginLeft=s),(l&&!c?t.contains(p):t===p&&"BODY"!==p.nodeName)&&(n=d(n,t)),n}function b(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=g(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:u(n),s=t?0:u(n,"left");return m({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}function y(e){var t,n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===r(e,"position")||!!(t=i(e))&&y(t))}function _(e){if(!e||!e.parentElement||a())return document.documentElement;for(var t=e.parentElement;t&&"none"===r(t,"transform");)t=t.parentElement;return t||document.documentElement}function w(e,t,n,r){var a,s,c,u,d,f,h=arguments.length>4&&void 0!==arguments[4]&&arguments[4],m={top:0,left:0},v=h?_(e):l(e,t);return"viewport"===r?m=b(v,h):(a=void 0,"scrollParent"===r?"BODY"===(a=o(i(t))).nodeName&&(a=e.ownerDocument.documentElement):a="window"===r?e.ownerDocument.documentElement:r,s=g(a,v,h),"HTML"!==a.nodeName||y(v)?m=s:(u=(c=p(e.ownerDocument)).height,d=c.width,m.top+=s.top-s.marginTop,m.bottom=u+s.top,m.left+=s.left-s.marginLeft,m.right=d+s.left)),f="number"==typeof(n=n||0),m.left+=f?n:n.left||0,m.top+=f?n:n.top||0,m.right-=f?n:n.right||0,m.bottom-=f?n:n.bottom||0,m}function k(e){return e.width*e.height}function x(e,t,n,r,i){var o,a,s,c,l,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;return-1===e.indexOf("auto")?e:(o=w(n,r,u,i),a={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},((c=(s=Object.keys(a).map((function(e){return J({key:e},a[e],{area:k(a[e])})})).sort((function(e,t){return t.area-e.area}))).filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}))).length>0?c[0].key:s[0].key)+((l=e.split("-")[1])?"-"+l:""))}function C(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return g(n,r?_(t):l(t,n),r)}function S(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function T(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function A(e,t,n){var r,i,o,a,s,c,l;return n=n.split("-")[0],i={width:(r=S(e)).width,height:r.height},s=(o=-1!==["right","left"].indexOf(n))?"left":"top",c=o?"height":"width",l=o?"width":"height",i[a=o?"top":"left"]=t[a]+t[c]/2-r[c]/2,i[s]=n===s?t[s]-r[l]:t[T(s)],i}function M(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function E(e,t,r){return(void 0===r?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=M(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",r))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=e.function||e.fn;e.enabled&&n(r)&&(t.offsets.popper=m(t.offsets.popper),t.offsets.reference=m(t.offsets.reference),t=r(t,e))})),t}function O(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=C(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=x(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=A(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=E(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function P(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function I(e){var t,n,r,i=[!1,"ms","Webkit","Moz","O"],o=e.charAt(0).toUpperCase()+e.slice(1);for(t=0;t<i.length;t++)if(r=(n=i[t])?""+n+o:e,void 0!==document.body.style[r])return r;return null}function D(){return this.state.isDestroyed=!0,P(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[I("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function j(e){var t=e.ownerDocument;return t?t.defaultView:window}function N(e,t,n,r){n.updateBound=r,j(e).addEventListener("resize",n.updateBound,{passive:!0});var i=o(e);return function e(t,n,r,i){var a="BODY"===t.nodeName,s=a?t.ownerDocument.defaultView:t;s.addEventListener(n,r,{passive:!0}),a||e(o(s.parentNode),n,r,i),i.push(s)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function R(){this.state.eventsEnabled||(this.state=N(this.reference,this.options,this.state,this.scheduleUpdate))}function L(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return j(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function z(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function F(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&z(t[n])&&(r="px"),e.style[n]=t[n]+r}))}function B(e,t,n){var r,i,o=M(e,(function(e){return e.name===t})),a=!!o&&e.some((function(e){return e.name===n&&e.enabled&&e.order<o.order}));return a||(r="`"+t+"`",i="`"+n+"`",console.warn(i+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),a}function $(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ee.indexOf(e),r=ee.slice(n+1).concat(ee.slice(0,n));return t?r.reverse():r}function V(e,t,n,r){var i,o=[0,0],a=-1!==["right","left"].indexOf(r),s=e.split(/(\+|\-)/).map((function(e){return e.trim()})),c=s.indexOf(M(s,(function(e){return-1!==e.search(/,|\s/)})));return s[c]&&-1===s[c].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),i=/\s*,\s*|\s+/,(-1!==c?[s.slice(0,c).concat([s[c].split(i)[0]]),[s[c].split(i)[1]].concat(s.slice(c+1))]:[s]).map((function(e,r){var i=(1===r?!a:a)?"height":"width",o=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i,o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],s=o[2];if(!a)return e;if(0===s.indexOf("%")){switch(i=void 0,s){case"%p":i=n;break;case"%":case"%r":default:i=r}return m(i)[t]/100*a}return"vh"===s||"vw"===s?("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a:a}(e,i,t,n)}))})).forEach((function(e,t){e.forEach((function(n,r){z(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var H,U,q,W,Y,G,K,Q,J,X,Z,ee,te,ne,re,ie="undefined"!=typeof window&&"undefined"!=typeof document,oe=["Edge","Trident","Firefox"],ae=0;for(H=0;H<oe.length;H+=1)if(ie&&navigator.userAgent.indexOf(oe[H])>=0){ae=1;break}U=ie&&window.Promise,q=U?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),ae))}},W=ie&&!(!window.MSInputMethodContext||!document.documentMode),Y=ie&&/MSIE 10/.test(navigator.userAgent),G=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},K=function(){function e(e,t){var n,r;for(n=0;n<t.length;n++)(r=t[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Q=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},J=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},X=ie&&/Firefox/i.test(navigator.userAgent),ee=(Z=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"]).slice(3),te={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},ne={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t,n,r,i,o,a,s,c=e.placement,l=c.split("-")[0],u=c.split("-")[1];return u&&(n=(t=e.offsets).reference,r=t.popper,a=(i=-1!==["bottom","top"].indexOf(l))?"width":"height",s={start:Q({},o=i?"left":"top",n[o]),end:Q({},o,n[o]+n[a]-r[a])},e.offsets.popper=J({},r,s[u])),e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,i=e.placement,o=e.offsets,a=o.popper,s=o.reference,c=i.split("-")[0];return n=z(+r)?[+r,0]:V(r,a,s,c),"left"===c?(a.top+=n[0],a.left-=n[1]):"right"===c?(a.top+=n[0],a.left+=n[1]):"top"===c?(a.left+=n[0],a.top-=n[1]):"bottom"===c&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n,r,i,o,a,c,l,u,d,f=t.boundariesElement||s(e.instance.popper);return e.instance.reference===f&&(f=s(f)),n=I("transform"),i=(r=e.instance.popper.style).top,o=r.left,a=r[n],r.top="",r.left="",r[n]="",c=w(e.instance.popper,e.instance.reference,t.padding,f,e.positionFixed),r.top=i,r.left=o,r[n]=a,t.boundaries=c,l=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(u[e],c[e])),Q({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=u[n];return u[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(u[n],c[e]-("right"===e?u.width:u.height))),Q({},n,r)}},l.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=J({},u,d[t](e))})),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",c=a?"left":"top",l=a?"width":"height";return n[s]<o(r[c])&&(e.offsets.popper[c]=o(r[c])-n[l]),n[c]>o(r[s])&&(e.offsets.popper[c]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n,i,o,a,s,c,l,u,d,f,h,p,v,g,b,y,_,w;if(!B(e.instance.modifiers,"arrow","keepTogether"))return e;if("string"==typeof(i=t.element)){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;return o=e.placement.split("-")[0],s=(a=e.offsets).popper,c=a.reference,u=(l=-1!==["left","right"].indexOf(o))?"height":"width",f=(d=l?"Top":"Left").toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",v=S(i)[u],c[p]-v<s[f]&&(e.offsets.popper[f]-=s[f]-(c[p]-v)),c[f]+v>s[p]&&(e.offsets.popper[f]+=c[f]+v-s[p]),e.offsets.popper=m(e.offsets.popper),g=c[f]+c[u]/2-v/2,b=r(e.instance.popper),y=parseFloat(b["margin"+d],10),_=parseFloat(b["border"+d+"Width"],10),w=g-e.offsets.popper[f]-y-_,w=Math.max(Math.min(s[u]-v,w),0),e.arrowElement=i,e.offsets.arrow=(Q(n={},f,Math.round(w)),Q(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){var n,r,i,o,a;if(P(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;switch(n=w(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=T(r),o=e.placement.split("-")[1]||"",a=[],t.behavior){case te.FLIP:a=[r,i];break;case te.CLOCKWISE:a=$(r);break;case te.COUNTERCLOCKWISE:a=$(r,!0);break;default:a=t.behavior}return a.forEach((function(s,c){var l,u,d,f,h,p,m,v,g,b,y,_,w;if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],i=T(r),l=e.offsets.popper,u=e.offsets.reference,d=Math.floor,f="left"===r&&d(l.right)>d(u.left)||"right"===r&&d(l.left)<d(u.right)||"top"===r&&d(l.bottom)>d(u.top)||"bottom"===r&&d(l.top)<d(u.bottom),h=d(l.left)<d(n.left),p=d(l.right)>d(n.right),m=d(l.top)<d(n.top),v=d(l.bottom)>d(n.bottom),g="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),y=!!t.flipVariations&&(b&&"start"===o&&h||b&&"end"===o&&p||!b&&"start"===o&&m||!b&&"end"===o&&v),_=!!t.flipVariationsByContent&&(b&&"start"===o&&p||b&&"end"===o&&h||!b&&"start"===o&&v||!b&&"end"===o&&m),w=y||_,(f||g||w)&&(e.flipped=!0,(f||g)&&(r=a[c+1]),w&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=J({},e.offsets.popper,A(e.instance.popper,e.offsets.reference,e.placement)),e=E(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=T(t),e.offsets.popper=m(i),e}},hide:{order:800,enabled:!0,fn:function(e){var t,n;if(!B(e.instance.modifiers,"hide","preventOverflow"))return e;if(t=e.offsets.reference,n=M(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries,t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n,r,i,o,a,c,l,u,d,f,h,p,m,g=t.x,b=t.y,y=e.offsets.popper,_=M(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;return void 0!==_&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"),n=void 0!==_?_:t.gpuAcceleration,i=v(r=s(e.instance.popper)),o={position:y.position},a=function(e,t){var n=e.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(e){return e},c=o(i.width),l=o(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),f=t?u||d||c%2==l%2?o:a:s,h=t?o:s;return{left:f(c%2==1&&l%2==1&&!d&&t?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:f(r.right)}}(e,window.devicePixelRatio<2||!X),c="bottom"===g?"top":"bottom",l="right"===b?"left":"right",u=I("transform"),f="bottom"===c?"HTML"===r.nodeName?-r.clientHeight+a.bottom:-i.height+a.bottom:a.top,d="right"===l?"HTML"===r.nodeName?-r.clientWidth+a.right:-i.width+a.right:a.left,n&&u?(o[u]="translate3d("+d+"px, "+f+"px, 0)",o[c]=0,o[l]=0,o.willChange="transform"):(h="bottom"===c?-1:1,p="right"===l?-1:1,o[c]=f*h,o[l]=d*p,o.willChange=c+", "+l),m={"x-placement":e.placement},e.attributes=J({},m,e.attributes),e.styles=J({},o,e.styles),e.arrowStyles=J({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return F(e.instance.popper,e.styles),function(e,t){Object.keys(t).forEach((function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)}))}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&F(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=C(i,t,e,n.positionFixed),a=x(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),F(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},(re=function(){function e(t,r){var i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};G(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=q(this.update.bind(this)),this.options=J({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(J({},e.Defaults.modifiers,a.modifiers)).forEach((function(t){o.options.modifiers[t]=J({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return J({name:e},o.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&n(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)})),this.update(),(i=this.options.eventsEnabled)&&this.enableEventListeners(),this.state.eventsEnabled=i}return K(e,[{key:"update",value:function(){return O.call(this)}},{key:"destroy",value:function(){return D.call(this)}},{key:"enableEventListeners",value:function(){return R.call(this)}},{key:"disableEventListeners",value:function(){return L.call(this)}}]),e}()).Utils=("undefined"!=typeof window?window:e).PopperUtils,re.placements=Z,re.Defaults=ne,t.default=re}.call(t,n(12))},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(70),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(155),s=function(e){n(154)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdContent",props:{mdTag:{type:String,default:"div"}},render:function(e){return e(this.mdTag,{staticClass:"md-content",class:[this.$mdActiveTheme],attrs:this.$attrs,on:this.$listeners},this.$slots.default)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(27)),a=r(n(58)),s=r(n(59)),t.default=new i.default({name:"MdDialog",components:{MdPortal:o.default,MdOverlay:a.default,MdFocusTrap:s.default},props:{mdActive:Boolean,mdBackdrop:{type:Boolean,default:!0},mdBackdropClass:{type:String,default:"md-dialog-overlay"},mdCloseOnEsc:{type:Boolean,default:!0},mdClickOutsideToClose:{type:Boolean,default:!0},mdFullscreen:{type:Boolean,default:!0},mdAnimateFromSource:Boolean},computed:{dialogClasses:function(){return{"md-dialog-fullscreen":this.mdFullscreen}}},watch:{mdActive:function(e){var t=this;this.$nextTick().then((function(){e?t.$emit("md-opened"):t.$emit("md-closed")}))}},methods:{closeDialog:function(){this.$emit("update:mdActive",!1)},onClick:function(){this.mdClickOutsideToClose&&this.closeDialog(),this.$emit("md-clicked-outside")},onEsc:function(){this.mdCloseOnEsc&&this.closeDialog()}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(97)),a=r(n(43)),t.default=new i.default({name:"MdEmptyState",mixins:[a.default],props:o.default,computed:{emptyStateClasses:function(){return{"md-rounded":this.mdRounded}},emptyStateStyles:function(){if(this.mdRounded){var e=this.mdSize+"px";return{width:e,height:e}}}}})},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),t.default={name:"MdMenu",props:{mdActive:Boolean,mdAlignTrigger:Boolean,mdOffsetX:Number,mdOffsetY:Number,mdFullWidth:Boolean,mdDense:Boolean,mdDirection:r({type:String,default:"bottom-start"},(0,i.default)("md-direction",["top-end","top-start","bottom-end","bottom-start"])),mdCloseOnSelect:{type:Boolean,default:!0},mdCloseOnClick:{type:Boolean,default:!1},mdSize:r({type:String,default:"small"},(0,i.default)("md-size",["auto","small","medium","big","huge"]))},data:function(){return{triggerEl:null,MdMenu:{instance:this,active:this.mdActive,direction:this.mdDirection,size:this.mdSize,alignTrigger:this.mdAlignTrigger,offsetX:this.mdOffsetX,offsetY:this.mdOffsetY,fullWidth:this.mdFullWidth,dense:this.mdDense,closeOnSelect:this.mdCloseOnSelect,closeOnClick:this.mdCloseOnClick,bodyClickObserver:null,windowResizeObserver:null,$el:this.$el}}},provide:function(){return{MdMenu:this.MdMenu}},computed:{isActive:function(){return this.MdMenu.active}},watch:{mdActive:{immediate:!0,handler:function(e){this.MdMenu.active=e}},mdDirection:function(e){this.MdMenu.direction=e},mdSize:function(e){this.MdMenu.size=e},mdAlignTrigger:function(e){this.MdMenu.alignTrigger=e},mdOffsetX:function(e){this.MdMenu.offsetX=e},mdOffsetY:function(e){this.MdMenu.offsetY=e},isActive:function(e){this.$emit("update:mdActive",e),e?this.$emit("md-opened"):this.$emit("md-closed")},mdCloseOnSelect:function(){this.MdMenu.closeOnSelect=this.mdCloseOnSelect},mdCloseOnClick:function(){this.MdMenu.closeOnClick=this.mdCloseOnClick}},methods:{toggleContent:function(e){this.MdMenu.active=!this.MdMenu.active}},mounted:function(){var e=this;this.MdMenu.$el=this.$el,this.$nextTick().then((function(){e.triggerEl=e.$el.querySelector("[md-menu-trigger]"),e.triggerEl&&e.triggerEl.addEventListener("click",e.toggleContent)}))},beforeDestroy:function(){this.triggerEl&&this.triggerEl.removeEventListener("click",this.toggleContent)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s,c,l,u,d,f,h;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=r(n(1)),r(n(8)),s=n(60),c=r(s),l=n(61),u=r(l),d=r(n(56)),f=r(n(59)),h=r(n(74)),t.default=new a.default({name:"MdMenuContent",components:{MdPopover:d.default,MdFocusTrap:f.default,MdList:h.default},props:{mdListClass:[String,Boolean],mdContentClass:[String,Boolean]},inject:["MdMenu"],data:function(){return{highlightIndex:-1,didMount:!1,highlightItems:[],popperSettings:null,menuStyles:""}},computed:{filteredAttrs:function(){var e=this.$attrs;return delete e.id,e},highlightedItem:function(){return this.highlightItems[this.highlightIndex]},shouldRender:function(){return this.MdMenu.active},menuClasses:function(){var e,t="md-menu-content-";return i(e={},t+this.MdMenu.direction,!0),i(e,t+this.MdMenu.size,!0),i(e,"md-menu-content",this.didMount),i(e,"md-shallow",!this.didMount),e},listClasses:function(){return o({"md-dense":this.MdMenu.dense},this.mdListClass)}},watch:{shouldRender:function(e){var t=this;e&&(this.setPopperSettings(),this.$nextTick().then((function(){t.setInitialHighlightIndex(),t.createClickEventObserver(),t.createResizeObserver(),t.createKeydownListener()})))}},methods:{setPopperSettings:function(){var e=this.MdMenu,t=e.direction,n=(e.alignTrigger,this.getOffsets()),r=n.offsetX,i=n.offsetY;this.hasCustomOffsets()||(this.MdMenu.instance.$el&&this.MdMenu.instance.$el.offsetHeight&&(i=-this.MdMenu.instance.$el.offsetHeight-11),t.includes("start")?r=-8:t.includes("end")&&(r=8)),this.popperSettings={placement:t,modifiers:{keepTogether:{enabled:!0},flip:{enabled:!1},offset:{offset:r+", "+i}}}},setInitialHighlightIndex:function(){var e=this;this.setHighlightItems(),this.highlightItems.forEach((function(t,n){t.classList.contains("md-selected")&&(e.highlightIndex=n-1)}))},setHighlightItems:function(){if(this.$el.querySelectorAll){var e=this.$el.querySelectorAll(".md-list-item-container:not(.md-list-item-default):not([disabled])");this.highlightItems=Array.from(e)}},setHighlight:function(e){this.setHighlightItems(),this.highlightItems.length&&("down"===e?this.highlightIndex===this.highlightItems.length-1?this.highlightIndex=0:this.highlightIndex++:0===this.highlightIndex?this.highlightIndex=this.highlightItems.length-1:this.highlightIndex--,this.clearAllHighlights(),this.setItemHighlight())},clearAllHighlights:function(){this.highlightItems.forEach((function(e){e.parentNode.__vue__.highlighted=!1}))},setItemHighlight:function(){this.highlightedItem&&(this.highlightedItem.parentNode.__vue__.highlighted=!0,this.$parent.$parent.setOffsets&&this.$parent.$parent.setOffsets(this.highlightedItem.parentNode))},setSelection:function(){this.highlightedItem&&this.highlightedItem.parentNode.click()},onEsc:function(){this.MdMenu.active=!1,this.destroyKeyDownListener()},getOffsets:function(){var e=this.getBodyPosition(),t=this.MdMenu.offsetX||0,n=this.MdMenu.offsetY||0;return{offsetX:t-e.x,offsetY:n-e.y}},hasCustomOffsets:function(){var e=this.MdMenu,t=e.offsetX,n=e.offsetY;return!!(e.alignTrigger||n||t)},isMenu:function(e){var t=e.target;return!!this.MdMenu.$el&&this.MdMenu.$el.contains(t)},isMenuContentEl:function(e){var t=e.target;return!!this.$refs.menu&&this.$refs.menu.contains(t)},isBackdropExpectMenu:function(e){return!this.$el.contains(e.target)&&!this.isMenu(e)},createClickEventObserver:function(){var e=this;document&&(this.MdMenu.bodyClickObserver=new c.default(document.body,"click",(function(t){t.stopPropagation(),e.isMenu(t)||!e.MdMenu.closeOnClick&&!e.isBackdropExpectMenu(t)||(e.MdMenu.active=!1,e.MdMenu.bodyClickObserver.destroy(),e.MdMenu.windowResizeObserver.destroy(),e.destroyKeyDownListener())})))},createKeydownListener:function(){window.addEventListener("keydown",this.keyNavigation)},destroyKeyDownListener:function(){window.removeEventListener("keydown",this.keyNavigation)},keyNavigation:function(e){switch(e.key){case"ArrowUp":e.preventDefault(),this.setHighlight("up");break;case"ArrowDown":e.preventDefault(),this.setHighlight("down");break;case"Enter":case"Space":this.setSelection();break;case"Escape":this.onEsc()}},createResizeObserver:function(){this.MdMenu.windowResizeObserver=new u.default(window,this.setStyles)},setupWatchers:function(){this.$watch("MdMenu.direction",this.setPopperSettings),this.$watch("MdMenu.alignTrigger",this.setPopperSettings),this.$watch("MdMenu.offsetX",this.setPopperSettings),this.$watch("MdMenu.offsetY",this.setPopperSettings)},setStyles:function(){this.MdMenu.fullWidth&&(this.menuStyles="\n          width: "+this.MdMenu.instance.$el.offsetWidth+"px;\n          max-width: "+this.MdMenu.instance.$el.offsetWidth+"px\n        ")},getBodyPosition:function(){var e=document.body,t=e.getBoundingClientRect(),n=t.top;return{x:t.left+(void 0!==window.pageXOffset?window.pageXOffset:e.scrollLeft),y:n+(void 0!==window.pageYOffset?window.pageYOffset:e.scrollTop)}}},mounted:function(){var e=this;this.$nextTick().then((function(){e.setHighlightItems(),e.setupWatchers(),e.setStyles(),e.didMount=!0}))},beforeDestroy:function(){this.MdMenu.bodyClickObserver&&this.MdMenu.bodyClickObserver.destroy(),this.MdMenu.windowResizeObserver&&this.MdMenu.windowResizeObserver.destroy(),this.destroyKeyDownListener()}})},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(57),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(99),s=function(e){n(98)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return e.hasOwnProperty("mdExpand")&&!1!==e.mdExpand}function o(e,t){if(i(e))return{"md-expand":function(){return t["md-expand"][0]}}}function a(e,t,n,r){return i(e)?x.default:e.disabled?g.default:function(e,t){return e&&e.$router&&t.to}(t,e)?(w.default.props=(0,d.default)(t,{target:String}),delete w.default.props.href,w.default):e.href?y.default:function(e){var t=Object.keys(e),n=!1;return t.forEach((function(e){l.default.includes(e)&&(n=!0)})),n}(n)?function(e){return function(e){return e.default.some((function(e){return e.componentOptions&&"md-button"===e.componentOptions.tag}))}(e)?m.default:g.default}(r):h.default}var s,c,l,u,d,f,h,p,m,v,g,b,y,_,w,k,x,C;Object.defineProperty(t,"__esModule",{value:!0}),s=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},c=n(100),l=r(c),u=n(29),d=r(u),f=n(178),h=r(f),p=n(182),m=r(p),v=n(184),g=r(v),b=n(186),y=r(b),_=n(188),w=r(_),k=n(190),x=r(k),C=r(n(39)),t.default={name:"MdListItem",functional:!0,components:{MdButton:C.default},render:function(e,t){var n=t.parent,r=t.props,i=t.listeners,c=t.data,l=(0,t.slots)(),u=a(r,n,i,l),d="md-list-item";return c.staticClass&&(d+=" "+c.staticClass),e("li",s({},c,{staticClass:d,on:i}),[e(u,{props:r,scopedSlots:o(r,l),staticClass:"md-list-item-container md-button-clean",on:i},l.default)])}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemDefault",mixins:[r.default],methods:{toggleControl:function(){var e=this.$el.querySelector(".md-checkbox-container, .md-switch-container, .md-radio-container");e&&e.click()}}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(16)),t.default={name:"MdListItemContent",components:{MdRipple:r.default},props:{mdDisabled:Boolean}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemFakeButton",mixins:[r.default]}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemButton",mixins:[r.default]}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemLink",mixins:[r.default],props:{download:String,href:String,hreflang:String,ping:String,rel:String,target:String,type:String}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(30)),t.default={name:"MdListItemRouter",mixins:[r.default],computed:{routerProps:function(){return this.$props}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(10),o=r(i),a=r(n(192)),s=r(n(30)),t.default={name:"MdListItemExpand",components:{MdArrowDownIcon:a.default},mixins:[s.default],inject:["MdList"],data:function(){return{expandStyles:{},showContent:!1}},props:{mdExpanded:Boolean},computed:{expandClasses:function(){return{"md-active":this.showContent}}},methods:{getChildrenSize:function(){var e=this.$refs.listExpand,t=0;return Array.from(e.children).forEach((function(e){t+=e.offsetHeight})),t},fetchStyle:function(){var e=this;return new Promise((function(t){(0,o.default)((function(){var n=0;e.showContent||(n="auto"),e.expandStyles={height:n},t()}))}))},toggleExpand:function(){var e=this;this.fetchStyle().then((function(){e.showContent=!e.showContent}))},open:function(){var e=this;if(this.showContent)return!1;this.fetchStyle().then((function(){return[e.showContent=!0]}))},close:function(){var e=this;if(!this.showContent)return!1;this.fetchStyle().then((function(){e.showContent=!1}))}},watch:{mdExpanded:function(){this.mdExpanded?this.open():this.close()},showContent:function(){var e=this,t=this.showContent;this.$emit("update:mdExpanded",t),this.$nextTick((function(){return e.$emit(t?"md-expanded":"md-collapsed")})),t&&this.MdList.expandATab(this)}},created:function(){this.MdList.pushExpandable(this)},mounted:function(){this.mdExpanded&&this.open()},beforeDestroy:function(){this.MdList.removeExpandable(this)}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdArrowDownIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdToolbar",props:{mdElevation:{type:[String,Number],default:4}}})},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(1)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])},function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-icon",{staticClass:"md-icon-image"},[e._m(0)])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(51),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(88),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(52),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(90),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-field",class:[e.$mdActiveTheme,e.fieldClasses],on:{blur:e.onBlur}},[e._t("default"),e._v(" "),e.hasCounter?n("span",{staticClass:"md-count"},[e._v(e._s(e.valueLength)+" / "+e._s(e.MdField.maxlength||e.MdField.counter))]):e._e(),e._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[e.hasValue&&e.mdClearable?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-clear",attrs:{tabindex:"-1",disabled:e.MdField.disabled},on:{click:e.clearInput}},[n("md-clear-icon")],1):e._e()],1),e._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[e.hasPasswordToggle?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-toggle-password",attrs:{tabindex:"-1"},on:{click:e.togglePassword}},[n(e.MdField.togglePassword?"md-password-on-icon":"md-password-off-icon")],1):e._e()],1)],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return"checkbox"===e.attributes.type?n("input",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e.model},on:{focus:e.onFocus,blur:e.onBlur,change:function(t){var n,r=e.model,i=t.target,o=!!i.checked;Array.isArray(r)?(n=e._i(r,null),i.checked?n<0&&(e.model=r.concat([null])):n>-1&&(e.model=r.slice(0,n).concat(r.slice(n+1)))):e.model=o}}},"input",e.attributes,!1),e.listeners)):"radio"===e.attributes.type?n("input",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{type:"radio"},domProps:{checked:e._q(e.model,null)},on:{focus:e.onFocus,blur:e.onBlur,change:function(t){e.model=null}}},"input",e.attributes,!1),e.listeners)):n("input",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{type:e.attributes.type},domProps:{value:e.model},on:{focus:e.onFocus,blur:e.onBlur,input:function(t){t.target.composing||(e.model=t.target.value)}}},"input",e.attributes,!1),e.listeners))},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o;t.a=function(e,t){var n,a,s,c,l,u,d,f,h,p,m;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(a=(n=Object(i.a)(e,t)).getUTCFullYear(),u=null==(l=(c=(s=t||{}).locale)&&c.options&&c.options.firstWeekContainsDate)?1:Object(r.a)(l),!((d=null==s.firstWeekContainsDate?u:Object(r.a)(s.firstWeekContainsDate))>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");return(f=new Date(0)).setUTCFullYear(a+1,0,d),f.setUTCHours(0,0,0,0),h=Object(o.a)(f,t),(p=new Date(0)).setUTCFullYear(a,0,d),p.setUTCHours(0,0,0,0),m=Object(o.a)(p,t),n.getTime()>=h.getTime()?a+1:n.getTime()>=m.getTime()?a:a-1},r=n(17),i=n(9),o=n(65)},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-portal",{attrs:{"md-attach-to-parent":e.mdAttachToParent}},[n("transition",{attrs:{name:"md-overlay"}},[e.mdActive?n("div",e._g({staticClass:"md-overlay",class:e.overlayClasses},e.$listeners)):e._e()])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,i,o;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=(t=Object(r.a)(e)).getFullYear(),i=t.getMonth(),(o=new Date(0)).setFullYear(n,i+1,0),o.setHours(0,0,0,0),o.getDate()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={mdRounded:Boolean,mdSize:{type:Number,default:420},mdIcon:String,mdLabel:String,mdDescription:String}},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("ul",e._g(e._b({staticClass:"md-list",class:[e.$mdActiveTheme]},"ul",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["click","dblclick","mousedown","mouseup"]},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(216),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(466),s=function(e){n(463)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e){return e&&e.__esModule?e:{default:e}}(n(16)),t.default={components:{MdRipple:i.default},props:{model:[String,Boolean,Object,Number,Array],value:{type:[String,Boolean,Object,Number]},name:[String,Number],required:Boolean,disabled:Boolean,indeterminate:Boolean,trueValue:{default:!0},falseValue:{default:!1}},model:{prop:"model",event:"change"},data:function(){return{rippleActive:!1}},computed:{attrs:function(){var e={id:this.id,name:this.name,disabled:this.disabled,required:this.required,"true-value":this.trueValue,"false-value":this.falseValue};return this.$options.propsData.hasOwnProperty("value")&&(null!==this.value&&"object"===r(this.value)||(e.value=null===this.value||void 0===this.value?"":this.value+"")),e},isSelected:function(){return this.isModelArray?this.model.includes(this.value):this.hasValue?this.model===this.value:this.model===this.trueValue},isModelArray:function(){return Array.isArray(this.model)},checkClasses:function(){return{"md-checked":this.isSelected,"md-disabled":this.disabled,"md-required":this.required,"md-indeterminate":this.indeterminate}},hasValue:function(){return this.$options.propsData.hasOwnProperty("value")}},methods:{removeItemFromModel:function(e){var t=e.indexOf(this.value);-1!==t&&e.splice(t,1)},handleArrayCheckbox:function(){var e=this.model;this.isSelected?this.removeItemFromModel(e):e.push(this.value),this.$emit("change",e)},handleSingleSelectCheckbox:function(){this.$emit("change",this.isSelected?null:this.value)},handleSimpleCheckbox:function(){this.$emit("change",this.isSelected?this.falseValue:this.trueValue)},toggleCheck:function(){this.disabled||(this.rippleActive=!0,this.isModelArray?this.handleArrayCheckbox():this.hasValue?this.handleSingleSelectCheckbox():this.handleSimpleCheckbox())}}}},function(e,t,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(69),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(0)(i.a,null,!1,null,null,null),t.default=a.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{mdSwipeable:Boolean,mdSwipeThreshold:{type:Number,default:150},mdSwipeRestraint:{type:Number,default:100},mdSwipeTime:{type:Number,default:300}},data:function(){return{swipeStart:!1,swipeStartTime:null,swiped:null,touchPosition:{startX:0,startY:0}}},computed:{getSwipeElement:function(){return this.mdSwipeElement||window}},methods:{handleTouchStart:function(e){this.touchPosition.startX=e.touches[0].screenX,this.touchPosition.startY=e.touches[0].screenY,this.swipeStartTime=new Date,this.swipeStart=!0},handleTouchMove:function(e){var t,n,r,i;this.swipeStart&&(t=e.touches[0].screenX,n=e.touches[0].screenY,r=t-this.touchPosition.startX,i=n-this.touchPosition.startY,new Date-this.swipeStartTime<=this.mdSwipeTime&&(Math.abs(r)>=this.mdSwipeThreshold&&Math.abs(i)<=this.mdSwipeRestraint?this.swiped=r<0?"left":"right":Math.abs(i)>=this.mdSwipeThreshold&&Math.abs(r)<=this.mdSwipeRestraint&&(this.swiped=i<0?"up":"down")))},handleTouchEnd:function(){this.touchPosition={startX:0,startY:0},this.swiped=null,this.swipeStart=!1}},mounted:function(){this.mdSwipeable&&(this.getSwipeElement.addEventListener("touchstart",this.handleTouchStart,!1),this.getSwipeElement.addEventListener("touchend",this.handleTouchEnd,!1),this.getSwipeElement.addEventListener("touchmove",this.handleTouchMove,!1))},beforeDestroy:function(){this.mdSwipeable&&(this.getSwipeElement.removeEventListener("touchstart",this.handleTouchStart,!1),this.getSwipeElement.removeEventListener("touchend",this.handleTouchEnd,!1),this.getSwipeElement.removeEventListener("touchmove",this.handleTouchMove,!1))}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(71),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(163),s=function(e){n(162)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(13),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(72),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(167),s=function(e){n(166)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(73),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(169),s=function(e){n(168)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(75),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(177)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){return!e||!1!==e[t]};t.default=function(e,t,n){var i=r(n,"leading"),o=(r(n,"trailing"),null);return function(){var t=this,n=arguments,r=function(){return e.apply(t,n)};if(o)return!1;i&&r()}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(84),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(227),s=function(e){n(226)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function o(e,t){return e&&g.includes(e.slot)||function(e){return e&&g.includes(i(e.tag))}(t)}function a(e,t,n,r,a){var s=[],l=!1;return e&&e.forEach((function(e){var d,f,h,p=e.data,m=e.componentOptions;if(o(p,m)){if(d=p.slot||i(m.tag),e.data.slot=d,"md-app-drawer"===d){if(f=function(e){return!(!e||""!==e.mdRight&&!e.mdRight)}(m.propsData),l)return void u.default.util.warn("There shouldn't be more than one drawer in a MdApp at one time.");l=!0,e.data.slot+="-"+(f?"right":"left"),e.key=function(e){return JSON.stringify({persistent:e&&e["md-persistent"],permanent:e&&e["md-permanent"]})}(p.attrs),f&&((h=a(v.default,{props:c({},e.data.attrs)})).data.slot="md-app-drawer-right-previous",s.push(h))}e.data.provide=r.Ctor.options.provide,e.context=t,e.functionalContext=n,s.push(e)}})),s}function s(e){var t=e.filter((function(e){return"md-app-drawer"===(e.data.slot||i(e.componentOptions.tag))}));return t.length?t:[]}var c,l,u,d,f,h,p,m,v,g;Object.defineProperty(t,"__esModule",{value:!0}),c=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},l=n(2),u=r(l),d=n(237),f=r(d),h=n(240),p=r(h),m=n(243),v=r(m),g=["md-app-toolbar","md-app-drawer","md-app-content"],t.default={name:"MdApp",functional:!0,render:function(e,t){var n,r=t.children,i=t.props,o=t.data,l=f.default,u=e(l),d=a(r,u.context,u.functionalContext,u.componentOptions,e);return s(d).forEach((function(e){e&&function(e){var t=e&&e["md-permanent"];return t&&("clipped"===t||"card"===t)}(e.data.attrs)&&(l=p.default)})),n={},o.staticClass&&o.staticClass.split(/\s+/).forEach((function(e){0!==e.length&&(n[e]=!0)})),e(l,{attrs:i,class:c({},n,o.class),style:c({},o.staticStyle,o.style)},d)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(114)),t.default=new i.default({name:"MdAppSideDrawer",mixins:[o.default]})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(10),a=r(o),s=r(n(8)),c=["fixed","fixed-last","reveal","overlap","flexible"],t.default={props:{mdMode:i({type:String},(0,s.default)("md-mode",c)),mdWaterfall:Boolean,mdScrollbar:{type:Boolean,default:!0}},data:function(){return{revealTimer:null,revealLastPos:0,manualTick:!1,MdApp:{options:{mode:null,waterfall:!1,flexible:!1},toolbar:{element:null,titleElement:null,height:"0px",initialHeight:0,top:0,titleSize:20,hasElevation:!0,revealActive:!1,fixedLastActive:!1,fixedLastHeight:!1,overlapOff:!1},drawer:{initialWidth:0,active:!1,mode:"temporary",submode:null,width:0,right:!1}}}},provide:function(){return{MdApp:this.MdApp}},computed:{isFixed:function(){return this.mdMode&&"fixed"!==this.mdMode},isDrawerMini:function(){return"persistent"===this.MdApp.drawer.mode&&"mini"===this.MdApp.drawer.submode},contentPadding:function(){return this.MdApp.drawer,this.MdApp.drawer.active&&"persistent"===this.MdApp.drawer.mode&&"full"===this.MdApp.drawer.submode?this.MdApp.drawer.width:0},contentStyles:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"padding-"+(this.MdApp.drawer.right?"right":"left"),this.contentPadding)},containerStyles:function(){var e={};return this.isFixed&&(e["margin-top"]=this.MdApp.toolbar.initialHeight+"px"),this.isDrawerMini&&(e["padding-"+(this.MdApp.drawer.right?"right":"left")]=this.MdApp.drawer.active?0:this.MdApp.drawer.initialWidth+"px"),e},scrollerClasses:function(){if(this.mdScrollbar)return"md-scrollbar"},appClasses:function(){return{"md-waterfall":this.mdWaterfall,"md-flexible":"flexible"===this.mdMode,"md-fixed":"fixed"===this.mdMode,"md-fixed-last":"fixed-last"===this.mdMode,"md-reveal":"reveal"===this.mdMode,"md-overlap":"overlap"===this.mdMode,"md-drawer-active":this.MdApp.drawer.active}}},watch:{mdMode:function(e){this.MdApp.options.mode=e},mdWaterfall:function(e){this.MdApp.options.waterfall=e,this.setToolbarElevation()}},methods:{setToolbarElevation:function(){this.MdApp.toolbar.hasElevation=!this.mdWaterfall},setToolbarTimer:function(e){var t=this;window.clearTimeout(this.revealTimer),this.revealTimer=window.setTimeout((function(){t.revealLastPos=e}),100)},setToolbarMarginAndHeight:function(e,t){this.MdApp.toolbar.top=e,this.MdApp.toolbar.height=t},getToolbarConstrants:function(e){var t=this.MdApp.toolbar.element.offsetHeight,n=t+10,r=e.target.scrollTop;return this.MdApp.toolbar.initialHeight||(this.MdApp.toolbar.initialHeight=t),{toolbarHeight:t,safeAmount:10,threshold:n,scrollTop:r,initialHeight:this.MdApp.toolbar.initialHeight}},handleWaterfallScroll:function(e){var t=this.getToolbarConstrants(e),n=t.threshold,r=t.scrollTop,i=4;"reveal"===this.mdMode&&(i=n),this.MdApp.toolbar.hasElevation=r>=i},handleFlexibleMode:function(e){var t,n,r,i,o,a,s=this.getToolbarConstrants(e),c=s.scrollTop,l=s.initialHeight,u=this.MdApp.toolbar.element,d=u.querySelector(".md-toolbar-row:first-child").offsetHeight,f=l-c,h=c<l-d;d&&(u.style.height=h?f+"px":d+"px"),(t=this.MdApp.toolbar.titleElement)&&(n=this.MdApp.toolbar.titleSize,h?(r=Math.max(0,1-(c-n)/(f+n+1e-6))*(n-20)+20,t.style.fontSize=r+"px"):t.style.fontSize="20px"),o=(i=this.getToolbarConstrants(e)).threshold,a=i.toolbarHeight,this.setToolbarMarginAndHeight(c-o,a)},handleRevealMode:function(e){var t=this.getToolbarConstrants(e),n=t.toolbarHeight,r=t.safeAmount,i=t.threshold,o=t.scrollTop;this.setToolbarTimer(o),this.setToolbarMarginAndHeight(o-i,n),this.MdApp.toolbar.revealActive=!(o>=i)||this.revealLastPos>o+r},handleFixedLastMode:function(e){var t=this.getToolbarConstrants(e),n=t.scrollTop,r=t.toolbarHeight,i=t.safeAmount,o=this.MdApp.toolbar.element.querySelector(".md-toolbar-row:first-child").offsetHeight;this.setToolbarTimer(n),this.setToolbarMarginAndHeight(n-o,r),this.MdApp.toolbar.fixedLastHeight=o,this.MdApp.toolbar.fixedLastActive=!(n>=o)||this.revealLastPos>n+i},handleOverlapMode:function(e){var t=this.getToolbarConstrants(e),n=t.toolbarHeight,r=t.scrollTop,i=t.initialHeight,o=this.MdApp.toolbar.element,a=o.querySelector(".md-toolbar-row:first-child").offsetHeight,s=i-r-100*r/(i-a-a/1.5);a&&(r<i-a&&s>=a?(this.MdApp.toolbar.overlapOff=!1,o.style.height=s+"px"):(this.MdApp.toolbar.overlapOff=!0,o.style.height=a+"px")),this.setToolbarMarginAndHeight(r,n)},handleModeScroll:function(e){"reveal"===this.mdMode?this.handleRevealMode(e):"fixed-last"===this.mdMode?this.handleFixedLastMode(e):"overlap"===this.mdMode?this.handleOverlapMode(e):"flexible"===this.mdMode&&this.handleFlexibleMode(e)},handleScroll:function(e){var t=this;this.MdApp.toolbar.element&&(0,a.default)((function(){t.mdWaterfall&&t.handleWaterfallScroll(e),t.mdMode&&t.handleModeScroll(e)}))}},created:function(){this.MdApp.options.mode=this.mdMode,this.MdApp.options.waterfall=this.mdWaterfall,this.setToolbarElevation()},mounted:function(){var e={target:{scrollTop:0}};"reveal"===this.mdMode&&(this.MdApp.toolbar.revealActive=!0,this.handleRevealMode(e)),"flexible"===this.mdMode&&(this.MdApp.toolbar.revealActive=!0,this.handleFlexibleMode(e)),"fixed-last"===this.mdMode&&(this.MdApp.toolbar.fixedLastActive=!0,this.handleFixedLastMode(e)),"overlap"===this.mdMode&&this.handleOverlapMode(e)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(114)),t.default=new i.default({name:"MdAppInternalDrawer",mixins:[o.default]})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),t.default=new o.default({name:"MdDrawer",props:{mdPermanent:i({type:String},(0,a.default)("md-permanent",["full","clipped","card"])),mdPersistent:i({type:String},(0,a.default)("md-persistent",["mini","full"])),mdActive:Boolean,mdFixed:Boolean},computed:{drawerClasses:function(){var e={"md-temporary":this.isTemporary,"md-persistent":this.mdPersistent,"md-permanent":this.mdPermanent,"md-active":this.mdActive,"md-fixed":this.mdFixed};return this.mdPermanent&&(e["md-permanent-"+this.mdPermanent]=!0),this.mdPersistent&&(e["md-persistent-"+this.mdPersistent]=!0),e},isTemporary:function(){return!this.mdPermanent&&!this.mdPersistent}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdAppToolbar",inject:["MdApp"],computed:{toolbarClasses:function(){return{"md-no-elevation":!this.MdApp.toolbar.hasElevation,"md-reveal-active":this.MdApp.toolbar.revealActive,"md-fixed-last-active":this.MdApp.toolbar.fixedLastActive,"md-overlap-off":this.MdApp.toolbar.overlapOff}},toolbarStyles:function(){var e={top:this.MdApp.toolbar.top+"px"};return this.MdApp.toolbar.fixedLastActive&&(e.transform="translate3D(0, "+this.MdApp.toolbar.fixedLastHeight+"px, 0)"),e}},mounted:function(){var e=this.$el.querySelector(".md-title, .md-display-1, .md-display-2");this.MdApp.toolbar.element=this.$el,this.MdApp.toolbar.titleElement=e,e&&(this.MdApp.toolbar.titleSize=parseInt(window.getComputedStyle(e).fontSize,10))}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdAppContent",inject:["MdApp"],computed:{showCard:function(){return this.MdApp.options&&"overlap"===this.MdApp.options.mode}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdAppDrawer",inject:["MdApp"],data:function(){return{drawerElement:{mdActive:null,mode:null,submode:null},initialized:!1}},props:{mdRight:{type:Boolean,default:!1},mdActive:{type:Boolean,default:!1}},computed:{visible:function(){return this.drawerElement.mdActive},mode:function(){return this.drawerElement.mode},submode:function(){return this.drawerElement.submode}},watch:{visible:function(e){this.MdApp.drawer.width=this.getDrawerWidth(),this.MdApp.drawer.active=e},mode:function(e){this.MdApp.drawer.mode=e},submode:function(e){this.MdApp.drawer.submode=e},mdRight:function(e){this.MdApp.drawer.right=e}},methods:{getDrawerWidth:function(){return this.$el?window.getComputedStyle(this.$el).width:0},updateDrawerData:function(){this.MdApp.drawer.width=this.getDrawerWidth(),this.MdApp.drawer.active=this.visible,this.MdApp.drawer.mode=this.mode,this.MdApp.drawer.submode=this.submode,this.MdApp.drawer.right=this.mdRight},clearDrawerData:function(){this.MdApp.drawer.width=0,this.MdApp.drawer.active=!1,this.MdApp.drawer.mode="temporary",this.MdApp.drawer.submode=null,this.MdApp.drawer.initialWidth=0}},mounted:function(){var e=this;this.$nextTick().then((function(){e.MdApp.drawer.initialWidth=e.$el.offsetWidth,e.drawerElement=e.$refs.drawer,e.updateDrawerData(),e.initialized=!0}))},updated:function(){this.drawerElement=this.$refs.drawer},beforeDestroy:function(){this.clearDrawerData()}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=r(n(1)),s=r(n(8)),c=r(n(256)),t.default=new a.default({name:"MdBadge",components:{MdBadgeStandalone:c.default},props:{mdContent:[String,Number],mdPosition:o({type:String,default:"top"},(0,s.default)("md-position",["top","bottom"])),mdDense:Boolean},computed:{hasDefaultSlot:function(){return!!this.$slots.default},badgeClasses:function(){var e,t=this.getStaticClass(),n=this.$vnode.data.class;return o((i(e={},"md-position-"+this.mdPosition,!0),i(e,"md-dense",this.mdDense),e),t,n)},styles:function(){var e=this.$vnode.data.staticStyle,t=this.$vnode.data.style;return o({},e,t)}},methods:{getStaticClass:function(){var e=this.$vnode.data.staticClass;return e?e.split(" ").filter((function(e){return e})).reduce((function(e,t){return e[t]=!0,e}),{}):{}}}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdBadgeStandalone"})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=n(263),s=r(a),c=n(264),l=r(c),u=r(n(8)),t.default={name:"MdAutocomplete",props:{value:{type:null,required:!0},mdDense:Boolean,mdLayout:o({type:String,default:"floating"},(0,u.default)("md-layout",["floating","box"])),mdOpenOnFocus:{type:Boolean,default:!0},mdFuzzySearch:{type:Boolean,default:!0},mdOptions:{type:[Array,Promise],required:!0},mdInputName:String,mdInputId:String,mdInputMaxlength:[String,Number],mdInputPlaceholder:[String,Number]},data:function(){return{searchTerm:this.value,showMenu:!1,triggerPopover:!1,isPromisePending:!1,filteredAsyncOptions:[]}},computed:{isBoxLayout:function(){return"box"===this.mdLayout},fieldClasses:function(){if(this.isBoxLayout)return"md-autocomplete-box"},contentClasses:function(){if(this.isBoxLayout)return"md-autocomplete-box-content"},shouldFilter:function(){return this.mdOptions[0]&&this.searchTerm},filteredStaticOptions:function(){if(this.isPromise(this.mdOptions))return!1;var e=this.mdOptions[0];if(this.shouldFilter){if("string"==typeof e)return this.filterByString();if("object"===(void 0===e?"undefined":i(e)))return this.filterByObject()}return this.mdOptions},hasFilteredItems:function(){return this.filteredStaticOptions.length>0||this.filteredAsyncOptions.length>0},hasScopedEmptySlot:function(){return this.$scopedSlots["md-autocomplete-empty"]}},watch:{mdOptions:{deep:!0,immediate:!0,handler:function(){var e=this;this.isPromise(this.mdOptions)&&(this.isPromisePending=!0,this.mdOptions.then((function(t){e.filteredAsyncOptions=t,e.isPromisePending=!1})))}},value:function(e){this.searchTerm=e}},methods:{getOptions:function(){return this.isPromise(this.mdOptions)?this.filteredAsyncOptions:this.filteredStaticOptions},isPromise:function(e){return(0,l.default)(e)},matchText:function(e){var t=e.toLowerCase(),n=this.searchTerm.toLowerCase();return this.mdFuzzySearch?(0,s.default)(n,t):t.includes(n)},filterByString:function(){var e=this;return this.mdOptions.filter((function(t){return e.matchText(t)}))},filterByObject:function(){var e=this;return this.mdOptions.filter((function(t){var n,r=Object.values(t),i=r.length;for(n=0;n<=i;n++)if("string"==typeof r[n]&&e.matchText(r[n]))return!0}))},openOnFocus:function(){this.mdOpenOnFocus&&this.showOptions()},onInput:function(e){this.$emit("input",e),this.mdOpenOnFocus||this.showOptions(),"inputevent"!==(""+this.searchTerm.constructor).match(/function (\w*)/)[1].toLowerCase()&&this.$emit("md-changed",this.searchTerm)},showOptions:function(){var e=this;if(this.showMenu)return!1;this.showMenu=!0,this.$nextTick((function(){e.triggerPopover=!0,e.$emit("md-opened")}))},hideOptions:function(){var e=this;this.$nextTick((function(){e.triggerPopover=!1,e.$emit("md-closed")}))},selectItem:function(e,t){var n=t.target.textContent.trim();this.searchTerm=n,this.$emit("input",e),this.$emit("md-selected",e),this.hideOptions()}}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdAvatar"})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),s=r(n(16)),t.default=new o.default({name:"MdBottomBar",components:{MdRipple:s.default},props:{mdSyncRoute:Boolean,mdActiveItem:[String,Number],mdType:i({type:String,default:"fixed"},(0,a.default)("md-type",["fixed","shift"]))},data:function(){return{MdBottomBar:{mouseEvent:null,activeItem:null,items:{},syncRoute:this.mdSyncRoute}}},provide:function(){return{MdBottomBar:this.MdBottomBar}},computed:{activeItem:function(){return this.MdBottomBar.activeItem},barClasses:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"md-type-"+this.mdType,!0)}},watch:{activeItem:function(){this.$emit("md-changed",this.activeItem)},mdSyncRoute:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return""+e},t}((function(){this.MdBottomBar.syncRoute=mdSyncRoute}))},methods:{hasActiveItem:function(){return this.MdBottomBar.activeItem||this.mdActiveItem},getItemsAndKeys:function(){var e=this.MdBottomBar.items;return{items:e,keys:Object.keys(e)}},setActiveItemByIndex:function(e){var t=this.getItemsAndKeys().keys;this.mdActiveItem?this.MdBottomBar.activeItem=this.mdActiveItem:this.MdBottomBar.activeItem=t[e]}},created:function(){this.MdBottomBar.type=this.mdType},mounted:function(){var e=this;this.$nextTick().then((function(){e.mdSyncRoute||e.setActiveItemByIndex(0)}))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(43)),a=r(n(28)),s=n(11),c=r(s),l=n(29),u=r(l),d=["id","mdLabel","mdIcon","mdDisabled"],t.default={name:"MdBottomBarItem",mixins:[o.default,a.default],props:{id:{type:String,default:function(){return"md-bottom-bar-item-"+(0,c.default)()}},mdLabel:String,mdIcon:String,mdDisabled:Boolean},inject:["MdBottomBar"],watch:{$props:{deep:!0,handler:function(){this.setItemData()}},$attrs:{deep:!0,handler:function(){this.setItemData()}}},computed:{itemClasses:function(){return{"md-active":this.id===this.MdBottomBar.activeItem}},attrs:function(){var e=this,t=i({},this.$attrs);return Object.keys(this.$options.propsData).forEach((function(n){d.includes(n)||(t[n]=e[n])})),t}},methods:{getPropValues:function(){var e=this,t=Object.keys(this.$options.props),n={};return t.forEach((function(t){d.includes(t)||(e[t]?n[t]=e[t]:e.$attrs&&e.$attrs.hasOwnProperty(t)&&(n[t]=!t||e.$attrs[t]))})),n},setItemData:function(){this.$set(this.MdBottomBar.items,this.id,{disabled:this.mdDisabled,options:this.mdTemplateOptions,props:this.getPropValues()})},setActiveItem:function(e){this.MdBottomBar.syncRoute||(this.MdBottomBar.activeItem=this.id),"shift"===this.MdBottomBar.type&&(this.MdBottomBar.mouseEvent=e)}},beforeCreate:function(){if(this.$router&&this.$options.propsData.to){var e=(0,u.default)(this,this.$options.props);this.$options.props=e}},created:function(){this.setItemData()},beforeDestroy:function(){this.$delete(this.MdBottomBar.items,this.id)}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdCard",props:{mdWithHover:Boolean},data:function(){return{MdCard:{expand:!1}}},provide:function(){return{MdCard:this.MdCard}},computed:{cardClasses:function(){return{"md-with-hover":this.mdWithHover,"md-expand-active":this.MdCard.expand}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardArea",props:{mdInset:Boolean},computed:{areaClasses:function(){return{"md-inset":this.mdInset}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardHeader"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardHeaderText",data:function(){return{parentClasses:null}},mounted:function(){this.parentClasses=this.$parent.$el.classList,this.parentClasses.contains("md-card-header")&&this.parentClasses.add("md-card-header-flex")},beforeDestroy:function(){this.parentClasses.remove("md-card-header-flex")}}},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n,r,i=[],o=!0,a=!1,s=void 0;try{for(n=e[Symbol.iterator]();!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){a=!0,s=e}finally{try{!o&&n.return&&n.return()}finally{if(a)throw s}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),t.default={name:"MdCardMedia",props:{mdRatio:i({type:String},(0,o.default)("md-ratio",["16-9","16/9","16:9","4-3","4/3","4:3","1-1","1/1","1:1"])),mdMedium:Boolean,mdBig:Boolean},computed:{mediaClasses:function(){var e,t,n={};return this.mdRatio&&(e=this.getAspectRatio())&&(n["md-ratio-"+(t=r(e,2))[0]+"-"+t[1]]=!0),(this.mdMedium||this.mdBig)&&(n={"md-medium":this.mdMedium,"md-big":this.mdBig}),n}},methods:{getAspectRatio:function(){var e=[];return-1!==this.mdRatio.indexOf(":")?e=this.mdRatio.split(":"):-1!==this.mdRatio.indexOf("/")?e=this.mdRatio.split("/"):-1!==this.mdRatio.indexOf("-")&&(e=this.mdRatio.split("-")),2===e.length?e:null}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardMediaActions"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardMediaCover",props:{mdTextScrim:Boolean,mdSolid:Boolean},data:function(){return{backdropBackground:{}}},computed:{coverClasses:function(){return{"md-text-scrim":this.mdTextScrim,"md-solid":this.mdSolid}},coverStyles:function(){return{background:this.backdropBackground}}},methods:{applyScrimColor:function(e){this.$refs.backdrop&&(this.backdropBackground="linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, "+e/2+") 66%, rgba(0, 0, 0, "+e+") 100%)")},applySolidColor:function(e){var t=this.$el.querySelector(".md-card-area");t&&(t.style.background="rgba(0, 0, 0, "+e+")")},getImageLightness:function(e,t,n){var r=document.createElement("canvas");e.crossOrigin="Anonymous",e.onload=function(){var e,n,i,o=0,a=void 0,s=void 0,c=void 0,l=void 0;for(r.width=this.width,r.height=this.height,(a=r.getContext("2d")).drawImage(this,0,0),e=0,n=(i=a.getImageData(0,0,r.width,r.height).data).length;e<n;e+=4)s=i[e],c=i[e+1],l=i[e+2],o+=Math.floor((s+c+l)/3);t(Math.floor(o/(this.width*this.height)))},e.onerror=n}},mounted:function(){var e=this,t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.6;e.mdTextScrim?e.applyScrimColor(t):e.mdSolid&&e.applySolidColor(t)},n=this.$el.querySelector("img");n&&(this.mdTextScrim||this.mdSolid)&&this.getImageLightness(n,(function(e){var n=(100*Math.abs(256-e)/256+15)/100;n>=.7&&(n=.7),t(n)}),t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardContent"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdCardExpand",inject:["MdCard"]}},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n,r,i=[],o=!0,a=!1,s=void 0;try{for(n=e[Symbol.iterator]();!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(e){a=!0,s=e}finally{try{!o&&n.return&&n.return()}finally{if(a)throw s}}return i}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},t.default={name:"MdCardExpandTrigger",inject:["MdCard"],render:function(e){var t=this,n=i(this.$slots.default,1)[0],o=" md-card-expand-trigger",a={click:function(){t.MdCard.expand=!t.MdCard.expand}};return n?(n.componentOptions.listeners=r({},n.componentOptions.listeners,a),n.data.staticClass+=o,n):e("div",{staticClass:o,on:a})}}},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(48),i=function(e){return e&&e.__esModule?e:{default:e}}(r),t.default={name:"MdCardExpandContent",inject:["MdCard"],data:function(){return{marginTop:0,resizeObserver:null,transitionEnabled:!0}},computed:{expand:function(){return this.MdCard.expand},contentStyles:function(){return{"margin-top":"-"+this.marginTop+"px",opacity:0===this.marginTop?1:0,"transition-property":this.transitionEnabled?null:"none"}}},methods:{calculateMarginTop:function(){this.expand?this.marginTop=0:this.marginTop=this.$el.children[0].offsetHeight},calculateMarginTopImmediately:function(){var e=this;this.expand||(this.transitionEnabled=!1,this.$nextTick((function(){e.calculateMarginTop(),e.$nextTick((function(){e.$el.offsetHeight,e.transitionEnabled=!0}))})))}},watch:{expand:function(){this.calculateMarginTop()}},mounted:function(){this.calculateMarginTopImmediately(),this.resizeObserver=(0,i.default)(this.$el,{childList:!0,characterData:!0,subtree:!0},this.calculateMarginTopImmediately)},beforeDestroy:function(){this.resizeObserver.disconnect()}}},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i=function(e){return e&&e.__esModule?e:{default:e}}(n(8)),o=["left","right","space-between"],t.default={name:"MdCardActions",props:{mdAlignment:r({type:String,default:"right"},(0,i.default)("md-alignment",o))}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(102)),a=n(11),s=r(a),t.default=new i.default({name:"MdCheckbox",mixins:[o.default],props:{id:{type:String,default:function(){return"md-checkbox-"+(0,s.default)()}}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(62)),s=r(n(53)),c=n(11),l=r(c),u=r(n(8)),t.default=new o.default({name:"MdChips",components:{MdField:a.default,MdInput:s.default},props:{value:Array,id:{type:[String,Number],default:function(){return"md-chips-"+(0,l.default)()}},mdInputType:i({type:[String,Number]},(0,u.default)("md-input-type",["email","number","password","search","tel","text","url"])),mdPlaceholder:[String,Number],mdStatic:Boolean,mdLimit:Number,mdCheckDuplicated:{type:Boolean,default:!1},mdFormat:{type:Function}},data:function(){return{inputValue:"",duplicatedChip:null}},computed:{chipsClasses:function(){return{"md-has-value":this.value&&this.value.length}},modelRespectLimit:function(){return!this.mdLimit||this.value.length<this.mdLimit},formattedInputValue:function(){return this.mdFormat?this.mdFormat(this.inputValue):this.inputValue}},methods:{insertChip:function(e){var t=this,n=(e.target,this.formattedInputValue);if(n&&this.modelRespectLimit){if(this.value.includes(n))return this.duplicatedChip=null,void this.$nextTick((function(){t.duplicatedChip=n}));this.value.push(n),this.$emit("input",this.value),this.$emit("md-insert",n),this.inputValue=""}},removeChip:function(e){var t=this,n=this.value.indexOf(e);this.value.splice(n,1),this.$emit("input",this.value),this.$emit("md-delete",e,n),this.$nextTick((function(){return t.$refs.input.$el.focus()}))},handleBackRemove:function(){this.inputValue||this.removeChip(this.value[this.value.length-1])},handleInput:function(){this.mdCheckDuplicated?this.checkDuplicated():this.duplicatedChip=null},checkDuplicated:function(){return this.value.includes(this.formattedInputValue)?!!this.mdCheckDuplicated&&void(this.duplicatedChip=this.formattedInputValue):(this.duplicatedChip=null,!1)}},watch:{value:function(){this.checkDuplicated()}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(41)),a=r(n(38)),s=r(n(63)),c=r(n(39)),t.default=new i.default({name:"MdChip",components:{MdButton:c.default,MdClearIcon:s.default},mixins:[o.default,a.default],props:{mdDisabled:Boolean,mdDeletable:Boolean,mdClickable:Boolean,mdDuplicated:{type:Boolean,default:!1}},computed:{chipClasses:function(){return{"md-disabled":this.mdDisabled,"md-deletable":this.mdDeletable,"md-clickable":this.mdClickable,"md-focused":this.mdHasFocus,"md-duplicated":this.mdDuplicated}}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,_,w,k,x;Object.defineProperty(t,"__esModule",{value:!0}),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=n(2),s=r(a),c=n(327),l=r(c),u=n(328),d=r(u),f=n(329),h=r(f),p=n(143),m=r(p),v=r(n(8)),g=r(n(58)),b=r(n(330)),y=r(n(348)),_=n(350),w=r(_),k=r(n(62)),x=r(n(53)),t.default={name:"MdDatepicker",components:{MdOverlay:g.default,MdDateIcon:y.default,MdField:k.default,MdInput:x.default,MdDatepickerDialog:b.default},props:{value:[String,Number,Date],mdDisabledDates:[Array,Function],mdOpenOnFocus:{type:Boolean,default:!0},mdOverrideNative:{type:Boolean,default:!0},mdImmediately:{type:Boolean,default:!1},mdModelType:o({type:Function,default:Date},(0,v.default)("md-model-type",[Date,String,Number])),MdDebounce:{type:Number,default:1e3}},data:function(){return{showDialog:!1,inputDate:"",localDate:null}},computed:{locale:function(){return this.$material.locale},type:function(){return this.mdOverrideNative?"text":"date"},dateFormat:function(){return this.locale.dateFormat||"yyyy-MM-dd"},modelType:function(){return this.isModelTypeString?String:this.isModelTypeNumber?Number:this.isModelTypeDate?Date:this.mdModelType},isModelNull:function(){return null===this.value||void 0===this.value},isModelTypeString:function(){return"string"==typeof this.value},isModelTypeNumber:function(){return Number.isInteger(this.value)&&this.value>=0},isModelTypeDate:function(){return"object"===i(this.value)&&this.value instanceof Date&&(0,m.default)(this.value)},localString:function(){return this.localDate&&(0,d.default)(this.localDate,this.dateFormat)},localNumber:function(){return this.localDate&&+this.localDate},parsedInputDate:function(){var e=(0,h.default)(this.inputDate,this.dateFormat,new Date);return e&&(0,m.default)(e)?e:null},pattern:function(){return this.dateFormat.replace(/yyyy|MM|dd/g,(function(e){switch(e){case"yyyy":return"[0-9]{4}";case"MM":case"dd":return"[0-9]{2}"}}))}},watch:{inputDate:function(e){this.inputDateToLocalDate()},localDate:function(){this.inputDate=this.localString,this.modelType===Date&&this.$emit("input",this.localDate)},localString:function(){this.modelType===String&&this.$emit("input",this.localString)},localNumber:function(){this.modelType===Number&&this.$emit("input",this.localNumber)},value:{immediate:!0,handler:function(){this.valueDateToLocalDate()}},mdModelType:function(e){switch(e){case Date:this.$emit("input",this.localDate);break;case String:this.$emit("input",this.localString);break;case Number:this.$emit("input",this.localNumber)}},dateFormat:function(){this.localDate&&(this.inputDate=(0,d.default)(this.localDate,this.dateFormat))}},methods:{toggleDialog:function(){!l.default||this.mdOverrideNative?(this.showDialog=!this.showDialog,this.showDialog?this.$emit("md-opened"):this.$emit("md-closed")):this.$refs.input.$el.click()},onFocus:function(){this.mdOpenOnFocus&&this.toggleDialog()},inputDateToLocalDate:function(){this.inputDate?this.parsedInputDate&&(this.localDate=this.parsedInputDate):this.localDate=null},valueDateToLocalDate:function(){if(this.isModelNull)this.localDate=null;else if(this.isModelTypeNumber)this.localDate=new Date(this.value);else if(this.isModelTypeDate)this.localDate=this.value;else if(this.isModelTypeString){var e=(0,h.default)(this.value,this.dateFormat,new Date);(0,m.default)(e)?this.localDate=(0,h.default)(this.value,this.dateFormat,new Date):s.default.util.warn("The datepicker value is not a valid date. Given value: "+this.value+", format: "+this.dateFormat)}else s.default.util.warn("The datepicker value is not a valid date. Given value: "+this.value)}},created:function(){this.inputDateToLocalDate=(0,w.default)(this.inputDateToLocalDate,this.MdDebounce)}}},function(e,t,n){"use strict";t.a=function(e){var t,n=new Date(e.getTime()),i=n.getTimezoneOffset();return n.setSeconds(0,0),t=n.getTime()%r,i*r+t};var r=6e4},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e);return!isNaN(t)};var r=n(9)},function(e,t,n){"use strict";function r(e){return function(t){var n=t||{},r=n.width?n.width+"":e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}function i(e){return function(t,n){var r=n||{},i=r.width?r.width+"":e.defaultWidth;return("formatting"==(r.context?r.context+"":"standalone")&&e.formattingValues?e.formattingValues[i]||e.formattingValues[e.defaultFormattingWidth]:e.values[i]||e.values[e.defaultWidth])[e.argumentCallback?e.argumentCallback(t):t]}}function o(e){return function(t,n){var r,i,o,a=t+"",s=n||{},c=s.width,l=c&&e.matchPatterns[c]||e.matchPatterns[e.defaultMatchWidth],u=a.match(l);return u?(r=u[0],i=c&&e.parsePatterns[c]||e.parsePatterns[e.defaultParseWidth],o="[object Array]"===Object.prototype.toString.call(i)?i.findIndex((function(e){return e.test(a)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}(i,(function(e){return e.test(a)})),o=e.valueCallback?e.valueCallback(o):o,{value:o=s.valueCallback?s.valueCallback(o):o,rest:a.slice(r.length)}):null}}var a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},s={date:r({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:r({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:r({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l={formatDistance:function(e,t,n){var r;return n=n||{},r="string"==typeof a[e]?a[e]:1===t?a[e].one:a[e].other.replace("{{count}}",t),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:s,formatRelative:function(e,t,n,r){return c[e]},localize:{ordinalNumber:function(e,t){var n=+e,r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:i({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:i({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return+e-1}}),month:i({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:i({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:i({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(e){return function(t,n){var r,i,o,a=t+"",s=n||{},c=a.match(e.matchPattern);return c?(r=c[0],(i=a.match(e.parsePattern))?(o=e.valueCallback?e.valueCallback(i[0]):i[0],{value:o=s.valueCallback?s.valueCallback(o):o,rest:a.slice(r.length)}):null):null}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:o({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:o({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:o({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:o({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};t.a=l},function(e,t,n){"use strict";function r(e){var t,n;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return t=Object(s.a)(e),(n=new Date(0)).setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),Object(a.a)(n)}var i,o=n(9),a=n(64),s=n(146);t.a=function(e){var t,n;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return t=Object(o.a)(e),n=Object(a.a)(t).getTime()-r(t).getTime(),Math.round(n/i)+1},i=6048e5},function(e,t,n){"use strict";var r,i;t.a=function(e){var t,n,o,a,s,c;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=(t=Object(r.a)(e)).getUTCFullYear(),(o=new Date(0)).setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0),a=Object(i.a)(o),(s=new Date(0)).setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),c=Object(i.a)(s),t.getTime()>=a.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1},r=n(9),i=n(64)},function(e,t,n){"use strict";function r(e,t){var n,r,i,o,l,u,d;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return o=null==(i=(r=(n=t||{}).locale)&&r.options&&r.options.firstWeekContainsDate)?1:Object(s.a)(i),l=null==n.firstWeekContainsDate?o:Object(s.a)(n.firstWeekContainsDate),u=Object(c.a)(e,t),(d=new Date(0)).setUTCFullYear(u,0,l),d.setUTCHours(0,0,0,0),Object(a.a)(d,t)}var i,o=n(9),a=n(65),s=n(17),c=n(93);t.a=function(e,t){var n,s;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=Object(o.a)(e),s=Object(a.a)(n,t).getTime()-r(n,t).getTime(),Math.round(s/i)+1},i=6048e5},function(e,t,n){"use strict";function r(e,t){var n,r;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(o.a)(e).getTime(),r=Object(i.a)(t),new Date(n+r)}var i=n(17),o=n(9);t.a=function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return r(e,-Object(i.a)(t))}},function(e,t,n){"use strict";t.a=function(e){return-1!==r.indexOf(e)},t.b=function(e){throw new RangeError("`options.awareOfUnicodeTokens` must be set to `true` to use `"+e+"` token; see: https://git.io/fxCyr")};var r=["D","DD","YY","YYYY"]},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,_,w,k,x,C,S,T,A,M,E,O,P,I,D,j,N;Object.defineProperty(t,"__esModule",{value:!0}),i=n(151),o=r(i),a=n(332),s=r(a),c=n(333),l=r(c),u=n(334),d=r(u),f=n(335),h=r(f),p=n(96),m=r(p),v=n(336),g=r(v),b=n(337),y=r(b),_=n(338),w=r(_),k=n(339),x=r(k),C=n(340),S=r(C),T=n(341),A=r(T),M=n(342),E=r(M),O=r(n(1)),P=r(n(56)),I=r(n(343)),D=r(n(345)),j=r(n(68)),N=function(e,t){return!(!e||!e.querySelector)&&e.querySelectorAll(t)},t.default=new O.default({name:"MdDatepickerDialog",components:{MdPopover:P.default,MdArrowRightIcon:I.default,MdArrowLeftIcon:D.default,MdDialog:j.default},props:{mdDate:Date,mdDisabledDates:[Array,Function],mdImmediately:{type:Boolean,default:!1}},data:function(){return{currentDate:null,selectedDate:null,showDialog:!1,monthAction:null,currentView:"day",contentStyles:{},availableYears:null}},computed:{firstDayOfAWeek:function(){var e=+this.locale.firstDayOfAWeek;return Number.isNaN(e)||!Number.isFinite(e)?0:(e=Math.floor(e)%7,e+=e<0?7:0)},locale:function(){return this.$material.locale},popperSettings:function(){return{placement:"bottom-start",modifiers:{keepTogether:{enabled:!0},flip:{enabled:!1}}}},calendarClasses:function(){return"next"===this.monthAction?"md-next":"md-previous"},firstDayOfMonth:function(){return(0,s.default)(this.currentDate).getDay()},prefixEmptyDays:function(){var e=this.firstDayOfMonth-this.firstDayOfAWeek;return e+=e<0?7:0},daysInMonth:function(){return(0,m.default)(this.currentDate)},currentDay:function(){return this.selectedDate?(0,d.default)(this.selectedDate):(0,d.default)(this.currentDate)},currentMonth:function(){return(0,g.default)(this.currentDate)},currentMonthName:function(){return this.locale.months[this.currentMonth]},currentYear:function(){return(0,y.default)(this.currentDate)},selectedYear:function(){return this.selectedDate?(0,y.default)(this.selectedDate):(0,y.default)(this.currentDate)},shortDayName:function(){return this.selectedDate?this.locale.shortDays[(0,h.default)(this.selectedDate)]:this.locale.shortDays[(0,h.default)(this.currentDate)]},shortMonthName:function(){return this.selectedDate?this.locale.shortMonths[(0,g.default)(this.selectedDate)]:this.locale.shortMonths[(0,g.default)(this.currentDate)]}},watch:{mdDate:function(){this.currentDate=this.mdDate||new Date,this.selectedDate=this.mdDate},currentDate:function(e,t){var n=this;this.$nextTick().then((function(){t&&n.setContentStyles()}))},currentView:function(){var e=this;this.$nextTick().then((function(){if("year"===e.currentView){var t=N(e.$el,".md-datepicker-year-button.md-datepicker-selected");t.length&&t[0].scrollIntoView({behavior:"instant",block:"center",inline:"center"})}}))}},methods:{setContentStyles:function(){var e,t=N(this.$el,".md-datepicker-month");t.length&&(e=t[t.length-1],this.contentStyles={height:e.offsetHeight+10+"px"})},setAvailableYears:function(){for(var e=this.locale,t=e.startYear,n=e.endYear,r=t,i=[];r<=n;)i.push(r++);this.availableYears=i},handleDisabledDateByArray:function(e){return this.mdDisabledDates.some((function(t){return(0,x.default)(t,e)}))},isDisabled:function(e){if(this.mdDisabledDates){var t=(0,S.default)(this.currentDate,e);if(Array.isArray(this.mdDisabledDates))return this.handleDisabledDateByArray(t);if("function"==typeof this.mdDisabledDates)return this.mdDisabledDates(t)}},isSelectedDay:function(e){return(0,w.default)(this.selectedDate,(0,S.default)(this.currentDate,e))},isToday:function(e){return(0,x.default)(new Date,(0,S.default)(this.currentDate,e))},previousMonth:function(){this.monthAction="previous",this.currentDate=(0,l.default)(this.currentDate,1)},nextMonth:function(){this.monthAction="next",this.currentDate=(0,o.default)(this.currentDate,1)},switchMonth:function(e){this.currentDate=(0,A.default)(this.currentDate,e),this.currentView="day"},switchYear:function(e){this.currentDate=(0,E.default)(this.currentDate,e),this.currentView="month"},selectDate:function(e){this.currentDate=(0,S.default)(this.currentDate,e),this.selectedDate=this.currentDate,this.mdImmediately&&(this.$emit("update:mdDate",this.selectedDate),this.closeDialog())},closeDialog:function(){this.$emit("md-closed")},onClose:function(){this.closeDialog()},onCancel:function(){this.closeDialog()},onConfirm:function(){this.$emit("update:mdDate",this.selectedDate),this.closeDialog()},resetDate:function(){this.currentDate=this.mdDate||new Date,this.selectedDate=this.mdDate,this.currentView="day"}},created:function(){this.setAvailableYears(),this.resetDate()}})},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,a,s,c,l;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(e),a=Object(r.a)(t),s=n.getMonth()+a,(c=new Date(0)).setFullYear(n.getFullYear(),s,1),c.setHours(0,0,0,0),l=Object(o.default)(c),n.setMonth(s,Math.min(l,n.getDate())),n},r=n(17),i=n(9),o=n(96)},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdArrowRightIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdArrowLeftIcon",components:{MdIcon:r.default}}},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-portal",[n("transition",{attrs:{name:"md-dialog"}},[e.mdActive?n("div",e._g({staticClass:"md-dialog",class:[e.dialogClasses,e.$mdActiveTheme],on:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.onEsc(t)}}},e.$listeners),[n("md-focus-trap",[n("div",{staticClass:"md-dialog-container"},[e._t("default"),e._v(" "),n("keep-alive",[e.mdBackdrop?n("md-overlay",{class:e.mdBackdropClass,attrs:{"md-fixed":"","md-active":e.mdActive},on:{click:e.onClick}}):e._e()],1)],2)])],1):e._e()])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdDateIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogTitle"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdDialogContent"})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogActions"}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdDivider",computed:{insideList:function(){return"md-list"===this.$parent.$options._componentTag}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(58)),s=r(n(8)),c=r(n(104)),t.default=new o.default({name:"MdDrawer",mixins:[c.default],components:{MdOverlay:a.default},props:{mdRight:Boolean,mdPermanent:i({type:String},(0,s.default)("md-permanent",["full","clipped","card"])),mdPersistent:i({type:String},(0,s.default)("md-persistent",["mini","full"])),mdActive:Boolean,mdFixed:Boolean},watch:{mdActive:function(e){e?this.$emit("md-opened"):this.$emit("md-closed")},swiped:function(e){"right"!==e&&"left"!==e||this.$emit("update:mdActive","right"===e)}},computed:{drawerClasses:function(){var e={"md-left":!this.mdRight,"md-right":this.mdRight,"md-temporary":this.isTemporary,"md-persistent":this.mdPersistent,"md-permanent":this.mdPermanent,"md-active":this.mdActive,"md-fixed":this.mdFixed};return this.mdPermanent&&(e["md-permanent-"+this.mdPermanent]=!0),this.mdPersistent&&(e["md-persistent-"+this.mdPersistent]=!0),e},isTemporary:function(){return!this.mdPermanent&&!this.mdPersistent},mode:function(){return this.mdPersistent?"persistent":this.mdPermanent?"permanent":"temporary"},submode:function(){return this.mdPersistent?this.mdPersistent:this.mdPermanent?this.mdPermanent:void 0},mdSwipeElement:function(){return this.$el.parentNode}},methods:{closeDrawer:function(){this.$emit("update:mdActive",!1)}}})},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-empty-state",appear:""}},[n("div",{staticClass:"md-empty-state",class:[e.emptyStateClasses,e.$mdActiveTheme],style:e.emptyStateStyles},[n("div",{staticClass:"md-empty-state-container"},[e.mdIcon?[e.isAssetIcon(e.mdIcon)?n("md-icon",{staticClass:"md-empty-state-icon",attrs:{"md-src":e.mdIcon}}):n("md-icon",{staticClass:"md-empty-state-icon"},[e._v(e._s(e.mdIcon))])]:e._e(),e._v(" "),e.mdLabel?n("strong",{staticClass:"md-empty-state-label"},[e._v(e._s(e.mdLabel))]):e._e(),e._v(" "),e.mdDescription?n("p",{staticClass:"md-empty-state-description"},[e._v(e._s(e.mdDescription))]):e._e(),e._v(" "),e._t("default")],2)])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},r(n(10)),r(n(1)),o=r(n(377)),a=r(n(107)),s=r(n(108)),c=r(n(53)),l=r(n(42)),u={x:-15,y:-48},t.default={name:"MdSelect",components:{MdInput:c.default,MdMenu:a.default,MdMenuContent:s.default,MdDropDownIcon:o.default},mixins:[l.default],props:{mdDense:Boolean,mdClass:String,multiple:Boolean,id:String,name:String},inject:["MdField"],data:function(){return{menuStyles:{},offset:{x:u.x,y:0},showSelect:!0,didMount:!1,MdSelect:{items:{},label:null,multiple:!1,modelValue:this.localValue,setValue:this.setValue,setContent:this.setContent,setMultipleValue:this.setMultipleValue,setMultipleContent:this.setMultipleContent}}},provide:function(){return{MdSelect:this.MdSelect}},computed:{attrs:function(){return i({},this.$attrs,{name:this.name,id:void 0})},inputListeners:function(){return i({},this.$listeners,{input:void 0})}},watch:{localValue:{immediate:!0,handler:function(e){this.setFieldContent(),this.MdSelect.modelValue=this.localValue,this.didMount&&this.emitSelected(e)}},multiple:{immediate:!0,handler:function(e){this.MdSelect.multiple=e,this.$nextTick(this.initialLocalValueByDefault)}}},methods:{elHasScroll:function(e){return e.scrollHeight>e.offsetHeight},scrollToSelectedOption:function(e,t){var n=e.offsetTop,r=e.offsetHeight,i=t.offsetHeight;t.scrollTop=n-(i-r)/2},setOffsets:function(e){var t,n;this.$isServer||(t=this.$refs.menu.$refs.container)&&((n=e||t.querySelector(".md-selected"))?(this.scrollToSelectedOption(n,t),this.offset.y=u.y-n.offsetTop+t.scrollTop+8,this.menuStyles={"transform-origin":"0 "+Math.abs(this.offset.y)+"px"}):(this.offset.y=u.y+1,this.menuStyles={}))},onMenuEnter:function(){this.didMount&&(this.setOffsets(),this.MdField.focused=!0,this.$emit("md-opened"))},applyHighlight:function(){this.MdField.focused=!1,this.MdField.highlighted=!0,this.$refs.input.$el.focus()},onClose:function(){this.$emit("md-closed"),this.didMount&&this.applyHighlight()},onFocus:function(){this.didMount&&this.applyHighlight()},removeHighlight:function(){this.MdField.highlighted=!1},openSelect:function(){this.disabled||(this.showSelect=!0)},arrayAccessorRemove:function(e,t){var n=e.slice(0,t),r=e.slice(t+1,e.length);return n.concat(r)},toggleArrayValue:function(e){var t=this.localValue.indexOf(e),n=t>-1;this.localValue=n?this.arrayAccessorRemove(this.localValue,t):this.localValue.concat([e])},setValue:function(e){this.model=e,this.setFieldValue(),this.showSelect=!1},setContent:function(e){this.MdSelect.label=e},setContentByValue:function(){var e=this.MdSelect.items[this.localValue];e?this.setContent(e):this.setContent("")},setMultipleValue:function(e){var t=e;this.toggleArrayValue(t),this.setFieldValue()},setMultipleContentByValue:function(){var e,t=this;this.localValue||this.initialLocalValueByDefault(),e=[],this.localValue.forEach((function(n){var r=t.MdSelect.items[n];r&&e.push(r)})),this.setContent(e.join(", "))},setFieldContent:function(){this.multiple?this.setMultipleContentByValue():this.setContentByValue()},isLocalValueSet:function(){return void 0!==this.localValue&&null!==this.localValue},setLocalValueIfMultiple:function(){this.isLocalValueSet()?this.localValue=[this.localValue]:this.localValue=[]},setLocalValueIfNotMultiple:function(){this.localValue.length>0?this.localValue=this.localValue[0]:this.localValue=null},initialLocalValueByDefault:function(){var e=Array.isArray(this.localValue);this.multiple&&!e?this.setLocalValueIfMultiple():!this.multiple&&e&&this.setLocalValueIfNotMultiple()},emitSelected:function(e){this.$emit("md-selected",e)}},mounted:function(){var e=this;this.showSelect=!1,this.setFieldContent(),this.$nextTick().then((function(){e.didMount=!0}))},updated:function(){this.setFieldContent()}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdDropDownIcon",components:{MdIcon:r.default}}},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",e._g({staticClass:"md-menu"},e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-popover",{attrs:{"md-settings":e.popperSettings,"md-active":e.shouldRender}},[e.shouldRender?n("transition",e._g({attrs:{name:"md-menu-content",css:e.didMount}},e.$listeners),[n("div",{ref:"menu",class:[e.menuClasses,e.mdContentClass,e.$mdActiveTheme],style:e.menuStyles},[n("div",{ref:"container",staticClass:"md-menu-content-container md-scrollbar",class:e.$mdActiveTheme},[n("md-list",e._b({class:e.listClasses},"md-list",e.filteredAttrs,!1),[e._t("default")],2)],1)])]):e._e()],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),r=n(11),i=function(e){return e&&e.__esModule?e:{default:e}}(r),t.default={name:"MdOption",props:{value:[String,Number,Boolean],disabled:Boolean},inject:{MdSelect:{},MdOptgroup:{default:{}}},data:function(){return{uniqueId:"md-option-"+(0,i.default)(),isSelected:!1,isChecked:!1}},computed:{selectValue:function(){return this.MdSelect.modelValue},isMultiple:function(){return this.MdSelect.multiple},isDisabled:function(){return this.MdOptgroup.disabled||this.disabled},key:function(){return this.value||0===this.value?this.value:this.uniqueId},inputLabel:function(){return this.MdSelect.label},optionClasses:function(){return{"md-selected":this.isSelected||this.isChecked}}},watch:{selectValue:function(){this.setIsSelected()},isChecked:function(e){e!==this.isSelected&&this.setSelection()},isSelected:function(e){this.isChecked=e}},methods:{getTextContent:function(){if(this.$el)return this.$el.textContent.trim();var e=this.$slots.default;return e?e[0].text.trim():""},setIsSelected:function(){return this.isMultiple?void 0===this.selectValue?void(this.isSelected=!1):void(this.isSelected=this.selectValue.includes(this.value)):void(this.isSelected=this.selectValue===this.value)},setSingleSelection:function(){this.MdSelect.setValue(this.value)},setMultipleSelection:function(){this.MdSelect.setMultipleValue(this.value)},setSelection:function(){this.isDisabled||(this.isMultiple?this.setMultipleSelection():this.setSingleSelection())},setItem:function(){this.$set(this.MdSelect.items,this.key,this.getTextContent())}},updated:function(){this.setItem()},created:function(){this.setItem(),this.setIsSelected()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdOptgroup",props:{label:String,disabled:Boolean},provide:function(){return{MdOptgroup:{disabled:this.disabled}}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(11),o=r(i),a=r(n(388)),s=r(n(42)),t.default={name:"MdFile",components:{MdFileIcon:a.default},props:{id:{type:String,default:function(){return"md-file-"+(0,o.default)()}},name:String},computed:{iconClass:function(){return{"md-disabled":this.disabled}}},mixins:[s.default],inject:["MdField"],methods:{getMultipleName:function(e){var t=[];return[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(e)).forEach((function(e){var n=e.name;return t.push(n)})),t.join(", ")},getFileName:function(e,t){return e&&0!==e.length?e.length>1?this.getMultipleName(e):1===e.length?e[0].name:null:t.value.split("\\").pop()},openPicker:function(){this.onFocus(),this.$refs.inputFile.click()},onChange:function(e){this.onFileSelected(e)},onFileSelected:function(e){var t=e.target,n=e.dataTransfer,r=t.files||n.files;this.model=this.getFileName(r,t),this.$emit("md-change",r||t.value)}},created:function(){this.MdField.file=!0},beforeDestroy:function(){this.MdField.file=!1}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdFileIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=n(11),s=r(a),c=r(n(42)),t.default=new o.default({name:"MdTextarea",mixins:[c.default],inject:["MdField"],props:{id:{type:String,default:function(){return"md-textarea-"+(0,s.default)()}},mdAutogrow:Boolean},computed:{listeners:function(){return i({},this.$listeners,{input:this.onInput})},textareaStyles:function(){return{height:this.textareaHeight}}},methods:{getTextAreaLineSize:function(){var e=window.getComputedStyle(this.$el);return parseInt(e.lineHeight,10)},setTextAreaSize:function(e){var t,n=e;e||(t=this.getTextAreaLineSize(),n=function(e,t){var n=e.style.height,r=e.offsetHeight,i=e.scrollHeight;return e.style.overflow="hidden",r>=i&&(e.style.height=r+t+"px",i<e.scrollHeight)?(e.style.height=n,r):i}(this.$el,t)),this.textareaHeight=n+"px"},applyStyles:function(){var e=this;this.mdAutogrow&&(this.setTextAreaSize(32),this.$nextTick().then((function(){e.setTextAreaSize(),window.setTimeout((function(){e.$el.style.overflow="auto"}),10)})))},setTextarea:function(){this.MdField.textarea=!0},setAutogrow:function(){this.MdField.autogrow=this.mdAutogrow},onInput:function(){this.setFieldValue()}},watch:{localValue:function(){this.applyStyles()}},created:function(){this.setTextarea(),this.setAutogrow()},mounted:function(){this.$nextTick().then(this.applyStyles)},beforeDestroy:function(){this.setTextarea(!1)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t=e;return t||(t="$&"),'<span class="md-highlight-text-match">'+t+"</span>"}function o(e,t,n){var r=e.text;return r&&t&&t[0]?n?function e(t,n){var r,o,a;if(0===n.length)return t;if(-1===(r=t.toLowerCase().indexOf(n[0].toLowerCase())))return"";for(o=0,a=1;a<n.length&&t[r+a]===n[a];a++)o=a;return t.slice(0,r)+i(t.slice(r,r+o+1))+e(t.slice(r+o+1),n.slice(o+1))}(r,t)||r:function(e,t){var n=RegExp(t+"(?!([^<]+)?<)","gi");return e.replace(n,i())}(r,t):r}var a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),a=n(2),s=r(a),c=r(n(1)),t.default=new c.default({name:"MdHighlightText",abstract:!0,props:{mdTerm:String,mdFuzzySearch:{type:Boolean,default:!0}},render:function(e){var t,n;try{if(!(t=this.$slots.default))return null;if(t.length>1||t[0].tag)throw Error();return n=o(t[0],this.mdTerm,this.mdFuzzySearch),e("div",{staticClass:"md-highlight-text",class:this.$mdActiveTheme,domProps:{innerHTML:n}})}catch(e){s.default.util.warn("MdHighlightText can only render text nodes.",this)}return null}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdImage",props:{mdSrc:String}})},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(76),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(181),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(77),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(180),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-ripple",{staticClass:"md-list-item-content",attrs:{"md-disabled":e.mdDisabled}},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-list-item-default",on:{click:e.toggleControl}},[n("md-list-item-content",{attrs:{"md-disabled":""}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(78),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(183),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-list-item-fake-button",attrs:{disabled:e.disabled}},[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(79),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(185),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("button",{staticClass:"md-list-item-button",attrs:{type:"button",disabled:e.disabled}},[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(80),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(187),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",e._b({staticClass:"md-list-item-link"},"a",e.$props,!1),[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(81),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(189),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("router-link",e._b({staticClass:"md-list-item-router"},"router-link",e.routerProps,!1),[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(82),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(194),s=function(e){n(191)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(83),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(193),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}}),e._v(" "),n("path",{attrs:{d:"M0-.75h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-list-item-expand",class:e.expandClasses},[n("md-list-item-content",{attrs:{"md-disabled":e.isDisabled},nativeOn:{click:function(t){return e.toggleExpand(t)}}},[e._t("default"),e._v(" "),n("md-arrow-down-icon",{staticClass:"md-list-expand-icon"})],2),e._v(" "),n("div",{ref:"listExpand",staticClass:"md-list-expand",style:e.expandStyles},[e._t("md-expand")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=n(100),a=r(o),r(n(109)),t.default=new i.default({name:"MdMenuItem",props:{disabled:Boolean},inject:["MdMenu"],data:function(){return{highlighted:!1}},computed:{itemClasses:function(){return{"md-highlight":this.highlighted}},listeners:function(){var e,t=this;return this.disabled?{}:this.MdMenu.closeOnSelect?(e={},Object.keys(this.$listeners).forEach((function(n){a.default.includes(n)?e[n]=function(e){t.$listeners[n](e),t.closeMenu()}:e[n]=t.$listeners[n]})),e):this.$listeners}},methods:{closeMenu:function(){this.MdMenu.active=!1,this.MdMenu.eventObserver&&this.MdMenu.eventObserver.destroy()},triggerCloseMenu:function(){this.disabled||this.closeMenu()}},mounted:function(){this.$el.children&&this.$el.children[0]&&"A"===this.$el.children[0].tagName.toUpperCase()&&this.$el.addEventListener("click",this.triggerCloseMenu)},beforeDestroy:function(){this.$el.removeEventListener("click",this.triggerCloseMenu)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),t.default=new o.default({name:"MdProgressBar",props:{mdValue:{type:Number,default:0},mdBuffer:{type:Number,default:0},mdMode:i({type:String,default:"determinate"},(0,a.default)("md-mode",["determinate","indeterminate","query","buffer"]))},computed:{isDeterminate:function(){return"determinate"===this.mdMode},isBuffer:function(){return"buffer"===this.mdMode},hasAmountFill:function(){return this.isBuffer||this.isDeterminate},progressClasses:function(){return"md-"+this.mdMode},progressValueStyle:function(){if(this.hasAmountFill)return"width: "+this.mdValue+"%"},progressTrackStyle:function(){if(this.hasAmountFill)return"width: "+this.mdBuffer+"%"},progressBufferStyle:function(){if(this.hasAmountFill)return"left: calc("+this.mdBuffer+"% + 8px)"}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=r(n(1)),s=r(n(8)),new Set,t.default=new a.default({name:"MdProgressSpinner",props:{mdValue:{type:Number,default:0},mdDiameter:{type:Number,default:60},mdStroke:{type:Number,default:6},mdMode:o({type:String,default:"determinate"},(0,s.default)("md-mode",["determinate","indeterminate"]))},computed:{isDeterminate:function(){return"determinate"===this.mdMode},isIndeterminate:function(){return"indeterminate"===this.mdMode},isIE:function(){return!this.$isServer&&navigator.userAgent.toLowerCase().includes("trident")},progressClasses:function(){var e,t="md-progress-spinner-indeterminate";return this.isIE&&(t+="-fallback"),i(e={},t,!0),i(e,"md-"+this.mdMode,!0),e},circleRadius:function(){return(this.mdDiameter-this.mdStroke)/2},circleStrokeWidth:function(){return this.mdStroke+"px"},circleCircumference:function(){return 2*Math.PI*this.circleRadius},circleStrokeDashArray:function(){return this.circleCircumference+"px"},circleStrokeDashOffset:function(){return this.isDeterminate?this.circleCircumference*(100-this.mdValue)/100+"px":this.isIndeterminate&&this.isIE?.2*this.circleCircumference+"px":null}},watch:{mdValue:function(){this.attachCircleStyle()},mdDiameter:function(){this.attachSvgStyle(),this.attachCircleStyle()},mdStroke:function(){this.attachCircleStyle()}},methods:{attachSvgStyle:function(){var e=this.$refs["md-progress-spinner-draw"],t=this.mdDiameter+"px";e.style.width=t,e.style.height=t},attachCircleStyle:function(){var e=this.$refs["md-progress-spinner-circle"];e.style.strokeDashoffset=this.circleStrokeDashOffset,e.style.strokeDasharray=this.circleStrokeDashArray,e.style.strokeWidth=this.circleStrokeWidth,e.style.setProperty("--md-progress-spinner-start-value",.95*this.circleCircumference),e.style.setProperty("--md-progress-spinner-end-value",.2*this.circleCircumference)}},mounted:function(){this.attachSvgStyle(),this.attachCircleStyle()}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=n(11),a=r(o),s=r(n(16)),t.default=new i.default({name:"MdRadio",components:{MdRipple:s.default},props:{model:[String,Number,Boolean,Object],value:{type:[String,Number,Boolean,Object],default:"on"},id:{type:String,default:function(){return"md-radio-"+(0,a.default)()}},name:[String,Number],required:Boolean,disabled:Boolean},model:{prop:"model",event:"change"},data:function(){return{rippleActive:!1}},computed:{isSelected:function(){return this.model===this.value},radioClasses:function(){return{"md-checked":this.isSelected,"md-disabled":this.disabled,"md-required":this.required}}},methods:{toggleCheck:function(){this.disabled||(this.rippleActive=!0,this.$emit("change",this.value))}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),s=r(n(27)),c=r(n(421)),l=n(423),t.default=new o.default({name:"MdSnackbar",components:{MdPortal:s.default,MdSnackbarContent:c.default},props:{mdActive:Boolean,mdPersistent:Boolean,mdDuration:{type:Number,default:4e3},mdPosition:i({type:String,default:"center"},(0,a.default)("md-position",["center","left"]))},computed:{snackbarClasses:function(){return function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},"md-position-"+this.mdPosition,!0)}},watch:{mdActive:function(e){var t=this;e?(0,l.createSnackbar)(this.mdDuration,this.mdPersistent,this).then((function(){t.$emit("update:mdActive",!1),t.$emit("md-opened")})):((0,l.destroySnackbar)(),this.$emit("md-closed"))}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdSnackbarContent",props:{mdClasses:Array}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=r(n(1)),s=r(n(8)),t.default=new a.default({name:"MdSpeedDial",props:{mdEvent:o({type:String,default:"hover"},(0,s.default)("md-event",["click","hover"])),mdDirection:o({type:String,default:"top"},(0,s.default)("md-direction",["top","bottom"])),mdEffect:o({type:String,default:"fling"},(0,s.default)("md-effect",["fling","scale","opacity"]))},data:function(){return{MdSpeedDial:{active:!1,event:this.mdEvent,direction:this.mdDirection}}},provide:function(){return{MdSpeedDial:this.MdSpeedDial}},computed:{speedDialClasses:function(){var e;return i(e={"md-active":this.MdSpeedDial.active,"md-with-hover":"hover"===this.mdEvent},"md-direction-"+this.mdDirection,!0),i(e,"md-effect-"+this.mdEffect,!0),e}}})},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(39)),t.default={name:"MdSpeedDialTarget",components:{MdButton:r.default},inject:["MdSpeedDial"],methods:{handleClick:function(){"click"===this.MdSpeedDial.event&&(this.MdSpeedDial.active=!this.MdSpeedDial.active)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdSpeedDialContent",inject:["MdSpeedDial"],methods:{setChildrenIndexes:function(){var e=this;this.$nextTick().then((function(){var t=e.$children.length;e.$children.forEach((function(n,r){if("button"===n._vnode.tag){var i=function(e,t,n){return"top"===e?n-t-1:t}(e.MdSpeedDial.direction,r,t);n.$el.setAttribute("md-button-index",i),n.$el.classList.add("md-raised")}}))}))}},mounted:function(){this.setChildrenIndexes()},updated:function(){this.setChildrenIndexes()}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=n(48),a=r(o),s=n(110),c=r(s),l=r(n(205)),t.default=new i.default({name:"MdSteppers",components:{MdStepHeader:l.default},props:{mdSyncRoute:Boolean,mdDynamicHeight:Boolean,mdVertical:Boolean,mdLinear:Boolean,mdAlternative:Boolean,mdActiveStep:[String,Number]},data:function(){return{activeStepIndex:0,noTransition:!0,contentStyles:{},activeButtonEl:null,MdSteppers:{activeStep:0,isLinear:!1,isVertical:!1,items:{},syncRoute:this.mdSyncRoute,getStepperNumber:this.getStepperNumber,setActiveStep:this.setActiveStep,isPreviousStepperDone:this.isPreviousStepperDone}}},provide:function(){return{MdSteppers:this.MdSteppers}},computed:{steppersClasses:function(){return{"md-no-transition":this.noTransition,"md-alternative":this.mdAlternative,"md-horizontal":!this.mdVertical,"md-vertical":this.mdVertical,"md-dynamic-height":this.mdDynamicHeight}},activeIndex:function(){return this.MdSteppers.activeStep},containerStyles:function(){return{transform:!this.mdVertical&&"translate3D("+100*-this.activeStepIndex+"%, 0, 0)"}}},watch:{mdActiveStep:function(e){this.MdSteppers.activeStep=e,this.$emit("md-changed",e)},mdLinear:function(e){this.MdSteppers.isLinear=e},mdVertical:function(e){this.MdSteppers.isVertical=e},activeIndex:function(){this.$nextTick(this.setActiveButtonEl)},activeStepIndex:function(){this.onActiveStepIndex(),this.$nextTick(this.calculateStepperPos)},activeButtonEl:function(e){this.activeStepIndex=e?[].indexOf.call(e.parentNode.childNodes,e):0},$route:function(){this.$nextTick(this.setActiveButtonEl)}},methods:{hasActiveStep:function(){return this.MdSteppers.activeStep||this.mdActiveStep},getItemsAndKeys:function(){var e=this.MdSteppers.items;return{items:e,keys:Object.keys(e)}},getStepperNumber:function(e){return Object.keys(this.MdSteppers.items).indexOf(e)+1},isStepperDone:function(e){return this.MdSteppers.items[e].done},isPreviousStepperDone:function(e){var t=this.MdSteppers.items,n=Object.keys(t)[this.getStepperNumber(e)-2];return!n||t[n].done},isStepperEditable:function(e){return this.MdSteppers.items[e].editable},setStepperAsDone:function(e){this.MdSteppers.items[e].done=!0},setPreviousStepperAsDone:function(e){var t=this.getStepperNumber(this.MdSteppers.activeStep);this.getStepperNumber(e)>t&&this.setStepperAsDone(this.MdSteppers.activeStep)},setActiveStep:function(e){if(this.mdLinear&&!this.isPreviousStepperDone(e))return!1;e===this.MdSteppers.activeStep||!this.isStepperEditable(e)&&this.isStepperDone(e)||(this.setPreviousStepperAsDone(e),this.MdSteppers.activeStep=e,this.$emit("md-changed",e),this.$emit("update:mdActiveStep",e),this.MdSteppers.items[e].error=null)},setActiveButtonEl:function(){this.activeButtonEl=this.$el.querySelector(".md-stepper-header.md-button.md-active")},setActiveStepByIndex:function(e){var t=this.getItemsAndKeys().keys;this.hasActiveStep()||(this.MdSteppers.activeStep=t[e])},setupObservers:function(){var e=this.$el.querySelector(".md-steppers-wrapper");"ResizeObserver"in window?(this.resizeObserver=new window.ResizeObserver(this.calculateStepperPos),this.resizeObserver.observe(this.$el)):window.addEventListener("resize",this.calculateStepperPos),e&&(this.resizeObserver=(0,a.default)(this.$el.querySelector(".md-steppers-wrapper"),{childList:!0,characterData:!0,subtree:!0},this.calculateStepperPos))},calculateStepperPos:function(){if(!this.mdVertical){var e=this.$el.querySelector(".md-stepper:nth-child("+(this.activeStepIndex+1)+")");this.contentStyles={height:e.offsetHeight+"px"}}},onActiveStepIndex:function(){var e,t=this.getItemsAndKeys(),n=(t.items,t.keys);if(this.hasActiveStep()||this.activeStepIndex)for(this.MdSteppers.activeStep=n[this.activeStepIndex],e=0;e<this.activeStepIndex;e++)this.setStepperAsDone(n[e]);else this.MdSteppers.activeStep=n[0]}},created:function(){this.calculateStepperPos=(0,c.default)(this.calculateStepperPos,300),this.MdSteppers.activeStep=this.mdActiveStep,this.MdSteppers.isLinear=this.mdLinear,this.MdSteppers.isVertical=this.mdVertical},mounted:function(){var e=this;this.$nextTick().then((function(){return e.mdSyncRoute?e.onActiveStepIndex():e.setActiveStepByIndex(0),e.$nextTick()})).then((function(){e.setActiveButtonEl(),e.calculateStepperPos(),window.setTimeout((function(){e.noTransition=!1,e.setupObservers()}),100)}))},beforeDestroy:function(){"ResizeObserver"in window||window.removeEventListener("resize",this.calculateStepperPos)}})},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(206),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(444),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(438)),o=r(n(440)),a=r(n(442)),t.default={name:"MdStepperHeader",components:{MdWarningIcon:i.default,MdCheckIcon:o.default,MdEditIcon:a.default},props:{index:{type:String,required:!0}},inject:["MdSteppers"],computed:{data:function(){return this.MdSteppers.items[this.index]},shouldDisable:function(){var e=this.data,t=this.index,n=this.MdSteppers;return!(!e.done||e.editable)||n.isLinear&&!n.isPreviousStepperDone(t)},classes:function(){return{"md-active":!this.MdSteppers.syncRoute&&this.index===this.MdSteppers.activeStep,"md-error":this.data.error,"md-done":this.data.done}}}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdWarningIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdCheckIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdEditIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(11),a=r(o),s=r(n(28)),c=r(n(205)),t.default={name:"MdStep",components:{MdStepHeader:c.default},mixins:[s.default],props:{id:{type:String,default:function(){return"md-stepper-"+(0,a.default)()}},href:[String,Number],mdLabel:String,mdDescription:String,mdError:String,mdDone:Boolean,mdEditable:{type:Boolean,default:!0}},inject:["MdSteppers"],watch:{$props:{deep:!0,handler:function(){this.setStepperData()}}},methods:{getPropValues:function(){var e=this,t=Object.keys(this.$options.props),n=["id","mdLabel","mdDescription","mdError","mdEditable"],r={};return t.forEach((function(t){n.includes(t)||(e[t]?r[t]=e[t]:e.$attrs.hasOwnProperty(t)&&(r[t]=!t||e.$attrs[t]))})),r},setStepperData:function(){this.$set(this.MdSteppers.items,this.id,{label:this.mdLabel,description:this.mdDescription,error:this.mdError,done:this.mdDone,editable:this.mdEditable,props:this.getPropValues(),events:this.$listeners})},setupWatchers:function(){var e=this,t=function(t){if(e.MdSteppers.items[e.id])return e.MdSteppers.items[e.id][t]};this.$watch((function(){return t("error")}),(function(){return e.$emit("update:mdError",t("error"))})),this.$watch((function(){return t("done")}),(function(){return e.$emit("update:mdDone",t("done"))}))}},created:function(){this.setStepperData(),this.setupWatchers()},beforeDestroy:function(){this.$delete(this.MdSteppers.items,this.id)},render:function(e){var t={staticClass:"md-stepper",attrs:i({},this.$attrs,{id:this.id}),on:this.$listeners};return this.href?this.buttonProps=this.$options.props:this.$router&&this.to&&(this.$options.props=MdRouterLinkProps(this,this.$options.props),t.props=this.$props),e("div",t,this.$slots.default)}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(1)),t.default=new r.default({name:"MdSubheader",computed:{insideList:function(){return"md-list"===this.$parent.$options._componentTag}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(1)),o=r(n(102)),a=n(11),s=r(a),t.default=new i.default({name:"MdSwitch",mixins:[o.default],props:{id:{type:String,default:function(){return"md-switch-"+(0,s.default)()}}}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(10),a=r(o),s=r(n(461)),c=n(11),l=r(c),u=r(n(8)),d=r(n(462)),f=r(n(470)),h=r(n(220)),p=r(n(477)),m=r(n(222)),v=n(61),g=r(v),b=function(e,t){var n,r,i=e,o=!0,a=!1,s=void 0;try{for(n=t.split(".")[Symbol.iterator]();!(o=(r=n.next()).done);o=!0)i=i[r.value]}catch(e){a=!0,s=e}finally{try{!o&&n.return&&n.return()}finally{if(a)throw s}}return i},t.default={name:"MdTable",components:{MdTagSwitcher:s.default,MdTableAlternateHeader:f.default,MdTableThead:d.default,MdTableRow:h.default,MdTableRowGhost:p.default,MdTableCellSelection:m.default},props:{value:[Array,Object],mdModelId:{type:String,default:"id"},mdCard:Boolean,mdFixedHeader:Boolean,mdHeight:{type:[Number,String],default:400},mdSort:String,mdSortOrder:i({type:String,default:"asc"},(0,u.default)("md-sort-order",["asc","desc"])),mdSortFn:{type:Function,default:function(e){var t=this;return e.sort((function(e,n){var r=t.MdTable.sort,i=b(e,r),o=b(n,r),a="asc"===t.MdTable.sortOrder;return i?o?"number"==typeof i?a?i-o:o-i:a?i.localeCompare(o):o.localeCompare(i):-1:1}))}},mdSelectedValue:{type:[Array,Object]}},data:function(){return{windowResizeObserver:null,fixedHeaderTableWidth:0,fixedHeaderPadding:0,hasContentScroll:!1,MdTable:{items:{},sort:null,sortOrder:null,singleSelection:null,selectedItems:[],selectable:[],fixedHeader:null,contentPadding:null,contentEl:null,hasValue:this.hasValue,emitEvent:this.emitEvent,sortTable:this.sortTable,manageItemSelection:this.manageItemSelection,getModel:this.getModel,getModelItem:this.getModelItem,selectingMode:null},itemsUuidMap:new WeakMap}},computed:{contentTag:function(){return this.mdCard?"md-card":"md-content"},headerCount:function(){return Object.keys(this.MdTable.items).length},selectedCount:function(){return this.MdTable.selectedItems.length},headerStyles:function(){if(this.mdFixedHeader)return"padding-right: "+this.fixedHeaderPadding+"px"},hasValue:function(){return this.value&&0!==this.value.length},headerClasses:function(){if(this.mdFixedHeader&&this.hasContentScroll||!this.hasValue)return"md-table-fixed-header-active"},contentStyles:function(){if(this.mdFixedHeader){var e="number"==typeof this.mdHeight?this.mdHeight+"px":this.mdHeight;return"height: "+e+";max-height: "+e}},contentClasses:function(){if(this.mdFixedHeader&&0===this.value.length)return"md-table-empty"},fixedHeaderTableStyles:function(){return{width:this.fixedHeaderTableWidth+"px"}}},provide:function(){return{MdTable:this.MdTable}},watch:{mdSort:{immediate:!0,handler:function(){this.MdTable.sort=this.mdSort}},mdSortOrder:{immediate:!0,handler:function(){this.MdTable.sortOrder=this.mdSortOrder}},mdFixedHeader:{immediate:!0,handler:function(){this.MdTable.fixedHeader=this.mdFixedHeader}},hasValue:{immediate:!0,handler:function(){this.MdTable.hasValue=this.hasValue}},"MdTable.selectedItems":function(e,t){var n=this;(function(){var r=n.isEmpty(e),i=n.isEmpty(t),o=r&&i;return!(o||!o&&e.length===t.length&&e.every((function(e,n){return e==t[n]})))})()&&this.select(e)},"MdTable.singleSelection":function(e,t){e!=t&&this.select(e)},mdSelectedValue:function(){this.syncSelectedValue()},value:function(){this.syncSelectedValue(),this.setWidth()}},methods:{isEmpty:function(e){return!e||0===e.length},emitEvent:function(e,t){this.$emit(e,t)},getRowId:function(e,t){var n=e[t];return n||((n=this.itemsUuidMap.get(e))||(n="md-row-"+(0,l.default)(),this.itemsUuidMap.set(e,n)),n)},setScroll:function(e){var t=this;(0,a.default)((function(){t.mdFixedHeader&&(t.$refs.fixedHeaderContainer.scrollLeft=e.target.scrollLeft),t.hasContentScroll=e.target.scrollTop>0}))},setHeaderScroll:function(e){var t=this;(0,a.default)((function(){t.MdTable.contentEl.scrollLeft=e.target.scrollLeft}))},getContentEl:function(){return this.$el.querySelector(".md-table-content")},setContentEl:function(){this.MdTable.contentEl=this.getContentEl()},setHeaderPadding:function(){var e,t;this.setContentEl(),t=(e=this.MdTable.contentEl).childNodes[0],this.fixedHeaderPadding=e.offsetWidth-t.offsetWidth},getModel:function(){return this.value},getModelItem:function(e){return this.value[e]},manageItemSelection:function(e){this.MdTable.selectedItems.includes(e)?this.MdTable.selectedItems=this.MdTable.selectedItems.filter((function(t){return t!==e})):this.MdTable.selectedItems=this.MdTable.selectedItems.concat([e])},sortTable:function(){Array.isArray(this.value)&&this.$emit("input",this.mdSortFn(this.value))},select:function(e){this.$emit("update:mdSelectedValue",e),this.$emit("md-selected",e)},syncSelectedValue:function(){var e=this;this.$nextTick().then((function(){"single"===e.MdTable.selectingMode?e.MdTable.singleSelection=e.mdSelectedValue:"multiple"===e.MdTable.selectingMode&&(e.MdTable.selectedItems=e.mdSelectedValue||[])}))},setWidth:function(){this.mdFixedHeader&&(this.fixedHeaderTableWidth=this.$refs.contentTable.offsetWidth)}},created:function(){this.mdSort&&this.sortTable(),this.syncSelectedValue()},mounted:function(){this.setContentEl(),this.$nextTick().then(this.setWidth),this.mdFixedHeader&&(this.setHeaderPadding(),this.windowResizeObserver=new g.default(window,this.setWidth))},beforeDestroy:function(){this.windowResizeObserver&&this.windowResizeObserver.destroy()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e};t.default={functional:!0,props:{mdTag:{type:String,default:"div"}},render:function(e,t){var n=t.props,i=t.children,o=t.data,a=t.listeners;return e(n.mdTag,r({},o,{on:a}),i)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(101)),o=r(n(467)),t.default={name:"MdTableThead",inject:["MdTable"],components:{MdTableHead:i.default,MdTableHeadSelection:o.default}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=r(n(464)),o=n(61),a=r(o),t.default={name:"MdTableHead",components:{MdUpwardIcon:i.default},props:{mdNumeric:Boolean,numeric:Boolean,id:[String,Number],label:String,tooltip:String,sortBy:String},inject:["MdTable"],data:function(){return{width:null,windowResizeObserver:null}},computed:{hasSort:function(){return this.MdTable.sort&&this.sortBy},isSorted:function(){if(this.MdTable.sort)return this.MdTable.sort===this.sortBy},isDescSorted:function(){return this.isSorted&&"desc"===this.MdTable.sortOrder},isAscSorted:function(){return this.isSorted&&"asc"===this.MdTable.sortOrder},headStyles:function(){return{width:this.width+"px"}},headClasses:function(){return{"md-numeric":this.numeric||this.mdNumeric,"md-sortable":this.hasSort,"md-sorted":this.isSorted,"md-sorted-desc":this.isDescSorted}}},methods:{changeSort:function(){this.hasSort&&(this.isAscSorted?this.MdTable.sortOrder="desc":this.MdTable.sortOrder="asc",this.MdTable.sort=this.sortBy,this.MdTable.emitEvent("md-sorted",this.MdTable.sort),this.MdTable.emitEvent("update:mdSort",this.MdTable.sort),this.MdTable.emitEvent("update:mdSortOrder",this.MdTable.sortOrder),this.MdTable.sortTable())},getChildNodesBySelector:function(e,t){return Array.from(e.childNodes).filter((function(e){var n=e.classList;return n&&n.contains(t)}))},getNodeIndex:function(e,t){return[].indexOf.call(e,t)},setWidth:function(){var e,t,n;this.MdTable.fixedHeader&&(e=this.getChildNodesBySelector(this.$el.parentNode,"md-table-head"),t=this.MdTable.contentEl.querySelectorAll("tr:first-child .md-table-cell"),n=this.getNodeIndex(e,this.$el),this.width=t[n].offsetWidth)}},updated:function(){this.$nextTick().then(this.setWidth)},mounted:function(){this.$nextTick().then(this.setWidth),this.MdTable.fixedHeader&&(this.windowResizeObserver=new a.default(window,this.setWidth))},beforeDestroy:function(){this.windowResizeObserver&&this.windowResizeObserver.destroy()}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(13)),t.default={name:"MdUpwardIcon",components:{MdIcon:r.default}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(101)),t.default={name:"MdTableHeadSelection",components:{MdTableHead:r.default},inject:["MdTable"],computed:{selectableCount:function(){return Object.keys(this.selectable).length},isDisabled:function(){return!this.selectableCount},selectable:function(){return this.MdTable.selectable},selectedItems:function(){return this.MdTable.selectedItems},allSelected:function(){var e=this;return 0!==this.selectableCount&&this.selectable.every((function(t){return e.selectedItems.includes(t)}))}},methods:{onChange:function(e){var t=this;this.MdTable.selectedItems=e?this.selectedItems.concat(this.selectable.filter((function(e){return!t.selectedItems.includes(e)}))):this.selectedItems.filter((function(e){return!t.selectable.includes(e)}))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTableAlternateHeader"}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(221),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(476),s=function(e){n(473)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(8)),a=r(n(222)),t.default={name:"MdTableRow",components:{MdTableCellSelection:a.default},props:{mdIndex:[Number,String],mdId:[Number,String],mdSelectable:i({type:[String]},(0,o.default)("md-selectable",["multiple","single"])),mdDisabled:Boolean,mdAutoSelect:Boolean,mdItem:[Array,Object]},inject:["MdTable"],data:function(){return{index:null}},computed:{selectableCount:function(){return this.MdTable.selectable.length},isMultipleSelected:function(){return this.MdTable.selectedItems.includes(this.mdItem)},isSingleSelected:function(){return this.MdTable.singleSelection===this.mdItem},hasMultipleSelection:function(){return this.MdTable.hasValue&&"multiple"===this.mdSelectable},hasSingleSelection:function(){return this.MdTable.hasValue&&"single"===this.mdSelectable},rowClasses:function(){if(this.MdTable.hasValue)return{"md-has-selection":!this.mdDisabled&&(this.mdAutoSelect||this.hasSingleSelection),"md-selected":this.isMultipleSelected,"md-selected-single":this.isSingleSelected}},isInSelectedItems:function(){return this.MdTable.selectedItems.includes(this.mdItem)}},watch:{mdDisabled:function(){this.mdDisabled?this.removeSelectableItem():this.addSelectableItem()},mdSelectable:function(){this.MdTable.selectingMode=this.mdSelectable},mdItem:function(e,t){this.removeSelectableItem(t),this.$nextTick(this.addSelectableItem)}},methods:{onClick:function(){this.MdTable.hasValue&&!this.mdDisabled&&(this.hasMultipleSelection?this.selectRowIfMultiple():this.hasSingleSelection&&this.selectRowIfSingle())},toggleSelection:function(){this.MdTable.manageItemSelection(this.mdItem)},addSelection:function(){this.isMultipleSelected||(this.MdTable.selectedItems=this.MdTable.selectedItems.concat([this.mdItem]))},removeSelection:function(){var e=this;this.isMultipleSelected&&(this.MdTable.selectedItems=this.MdTable.selectedItems.filter((function(t){return t!==e.mdItem})))},selectRowIfSingle:function(){this.MdTable.singleSelection===this.mdItem?this.MdTable.singleSelection=null:this.MdTable.singleSelection=this.mdItem},selectRowIfMultiple:function(){this.mdAutoSelect&&this.toggleSelection()},addSelectableItem:function(){return!(!this.hasMultipleSelection||this.mdDisabled)&&!this.MdTable.selectable.includes(this.mdItem)&&void(this.MdTable.selectable=this.MdTable.selectable.concat([this.mdItem]))},removeSelectableItem:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mdItem;"multiple"===this.mdSelectable&&(this.MdTable.selectable=this.MdTable.selectable.filter((function(t){return t!==e})))}},created:function(){var e=this;this.$nextTick((function(){e.addSelectableItem(),e.MdTable.selectingMode=e.mdSelectable}))},beforeDestroy:function(){this.removeSelectableItem()}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(223),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(475),s=function(e){n(474)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTableCellSelection",props:{value:Boolean,mdRowId:[Number,String],mdSelectable:Boolean,mdDisabled:Boolean},inject:["MdTable"],data:function(){return{isSelected:!1}},watch:{value:{immediate:!0,handler:function(e){this.isSelected=e}}},methods:{onChange:function(){this.$emit("input",this.isSelected)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTableRowGhost",props:{mdIndex:[String,Number],mdId:[String,Number],mdItem:[Array,Object]},render:function(){return this.$slots.default[0].componentOptions.propsData.mdIndex=this.mdIndex,this.$slots.default[0].componentOptions.propsData.mdId=this.mdId,this.$slots.default[0].componentOptions.propsData.mdItem=this.mdItem,this.$slots.default[0]}}},function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),r=function(e){return e&&e.__esModule?e:{default:e}}(n(111)),t.default={name:"MdTableToolbar",components:{MdToolbar:r.default},inject:["MdTable"]}},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-toolbar",class:[e.$mdActiveTheme,"md-elevation-"+e.mdElevation]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i;Object.defineProperty(t,"__esModule",{value:!0}),r(n(105)),i=r(n(97)),t.default={name:"MdTableEmptyState",props:i.default,inject:["MdTable"]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTableCell",props:{mdId:[String,Number],mdLabel:String,mdNumeric:Boolean,mdTooltip:String,mdSortBy:String},inject:["MdTable"],data:function(){return{index:null,parentNode:null}},computed:{cellClasses:function(){return{"md-numeric":this.mdNumeric}}},watch:{mdSortBy:function(){this.setCellData()},mdNumeric:function(){this.setCellData()},mdLabel:function(){this.setCellData()},mdTooltip:function(){this.setCellData()}},methods:{setCellData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;this.$set(this.MdTable.items,e.index,{id:e.mdId,label:e.mdLabel,numeric:e.mdNumeric,tooltip:e.mdTooltip,sortBy:e.mdSortBy})},updateAllCellData:function(){var e=this;this.MdTable.items={},Array.from(this.parentNode.childNodes).filter((function(e){var t=e.tagName,n=e.classList,r=n&&n.contains("md-table-cell-selection");return t&&"td"===t.toLowerCase()&&!r})).forEach((function(t,n){var r=t.__vue__;r.index=n,e.setCellData(r)}))}},mounted:function(){this.parentNode=this.$el.parentNode,this.updateAllCellData()},destroyed:function(){if(null!==this.$el.parentNode)return!1;this.updateAllCellData()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdTablePagination",inject:["MdTable"],props:{mdPageSize:{type:[String,Number],default:10},mdPageOptions:{type:Array,default:function(){return[10,25,50,100]}},mdPage:{type:Number,default:1},mdTotal:{type:[String,Number],default:"Many"},mdLabel:{type:String,default:"Rows per page:"},mdSeparator:{type:String,default:"of"}},data:function(){return{currentPageSize:0}},computed:{currentItemCount:function(){return(this.mdPage-1)*this.mdPageSize+1},currentPageCount:function(){return this.mdPage*this.mdPageSize}},watch:{mdPageSize:{immediate:!0,handler:function(e){this.currentPageSize=this.pageSize}}},methods:{setPageSize:function(){this.$emit("update:mdPageSize",this.currentPageSize)},goToPrevious:function(){},goToNext:function(){}},created:function(){this.currentPageSize=this.mdPageSize}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o,a,s,c,l,u,d,f,h,p,m,v;Object.defineProperty(t,"__esModule",{value:!0}),o=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},a=n(10),s=r(a),c=r(n(1)),l=r(n(43)),u=r(n(8)),d=n(48),f=r(d),h=n(110),p=r(h),m=r(n(103)),v=r(n(104)),t.default=new c.default({name:"MdTabs",mixins:[l.default,v.default],components:{MdContent:m.default},props:{mdAlignment:o({type:String,default:"left"},(0,u.default)("md-alignment",["left","right","centered","fixed"])),mdElevation:{type:[Number,String],default:0},mdSyncRoute:Boolean,mdDynamicHeight:Boolean,mdActiveTab:[String,Number]},data:function(){return{resizeObserver:null,activeTab:0,activeTabIndex:0,indicatorStyles:{},indicatorClass:null,noTransition:!0,containerStyles:{},contentStyles:{height:"0px"},hasContent:!1,MdTabs:{items:{}},activeButtonEl:null}},provide:function(){return{MdTabs:this.MdTabs}},computed:{tabsClasses:function(){var e;return i(e={},"md-alignment-"+this.mdAlignment,!0),i(e,"md-no-transition",this.noTransition),i(e,"md-dynamic-height",this.mdDynamicHeight),e},navigationClasses:function(){return"md-elevation-"+this.mdElevation},mdSwipeElement:function(){return this.$refs.tabsContent.$el}},watch:{MdTabs:{deep:!0,handler:function(){this.setHasContent()}},activeTab:function(e){var t=this;this.$emit("md-changed",e),this.$nextTick().then((function(){t.setIndicatorStyles(),t.setActiveButtonEl()}))},mdActiveTab:function(e){this.activeTab=e,this.$emit("md-changed",e)},activeButtonEl:function(e){this.activeTabIndex=e?[].indexOf.call(e.parentNode.childNodes,e):-1},activeTabIndex:function(e){this.setIndicatorStyles(),this.calculateTabPos()},$route:function(){this.$nextTick(this.setActiveButtonEl)},swiped:function(e){var t=this.getItemsAndKeys().keys.length||0;this.activeTabIndex<t&&"right"===e?this.setSwipeActiveTabByIndex(this.activeTabIndex+1):this.activeTabIndex>0&&"left"===e&&this.setSwipeActiveTabByIndex(this.activeTabIndex-1)}},methods:{hasActiveTab:function(){return this.activeTab||this.mdActiveTab},getItemsAndKeys:function(){var e=this.MdTabs.items;return{items:e,keys:Object.keys(e)}},setActiveTab:function(e){this.mdSyncRoute||(this.activeTab=e)},setActiveButtonEl:function(){this.activeButtonEl=this.$refs.navigation.querySelector(".md-tab-nav-button.md-active")},setSwipeActiveTabByIndex:function(e){var t=this.getItemsAndKeys().keys;t&&(this.activeTab=t[e])},setActiveTabByIndex:function(e){var t=this.getItemsAndKeys().keys;this.hasActiveTab()||(this.activeTab=t[e])},setHasContent:function(){var e=this.getItemsAndKeys(),t=e.items,n=e.keys;this.hasContent=n.some((function(e){return t[e].hasContent}))},setIndicatorStyles:function(){var e=this;(0,s.default)((function(){e.$nextTick().then((function(){var t,n,r;e.activeButtonEl&&e.$refs.indicator?(t=e.activeButtonEl.offsetWidth,n=e.activeButtonEl.offsetLeft,r=e.$refs.indicator.offsetLeft,e.indicatorClass=r<n?"md-tabs-indicator-right":"md-tabs-indicator-left",e.indicatorStyles={left:n+"px",right:"calc(100% - "+(t+n)+"px)"}):e.indicatorStyles={left:"100%",right:"100%"}}))}))},calculateTabPos:function(){if(this.hasContent){var e=this.$el.querySelector(".md-tab:nth-child("+(this.activeTabIndex+1)+")");this.contentStyles={height:e?e.offsetHeight+"px":0},this.containerStyles={transform:"translate3D("+100*-this.activeTabIndex+"%, 0, 0)"}}},callResizeFunctions:function(){this.setIndicatorStyles(),this.calculateTabPos()},setupObservers:function(){var e=this;this.resizeObserver=(0,f.default)(this.$el.querySelector(".md-tabs-content"),{childList:!0,characterData:!0,subtree:!0},(function(){e.callResizeFunctions()})),window.addEventListener("resize",this.callResizeFunctions)}},created:function(){this.setIndicatorStyles=(0,p.default)(this.setIndicatorStyles,300),this.setHasContent(),this.activeTab=this.mdActiveTab},mounted:function(){var e=this;this.setupObservers(),this.$nextTick().then((function(){return e.mdSyncRoute||e.setActiveTabByIndex(0),e.$nextTick()})).then((function(){e.setActiveButtonEl(),e.calculateTabPos(),window.setTimeout((function(){e.noTransition=!1,e.setupObservers()}),100)})),this.$refs.navigation.addEventListener("transitionend",this.setIndicatorStyles)},beforeDestroy:function(){this.resizeObserver&&this.resizeObserver.disconnect(),window.removeEventListener("resize",this.callResizeFunctions),this.$refs.navigation.removeEventListener("transitionend",this.setIndicatorStyles)}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=n(11),a=r(o),s=r(n(28)),c=n(48),l=r(c),u=n(29),d=r(u),t.default={name:"MdTab",mixins:[s.default],props:{id:{type:String,default:function(){return"md-tab-"+(0,a.default)()}},href:[String,Number],mdDisabled:Boolean,mdLabel:[String,Number],mdIcon:String,mdTemplateData:{type:Object,default:function(){return{}}}},inject:["MdTabs"],data:function(){return{observer:null}},watch:{$props:{deep:!0,handler:function(){this.setTabData()}},$attrs:{deep:!0,handler:function(){this.setTabData()}}},methods:{setTabContent:function(){this.$set(this.MdTabs.items[this.id],"hasContent",!!this.$slots.default)},setupObserver:function(){this.observer=(0,l.default)(this.$el,{childList:!0},this.setTabContent)},setTabData:function(){this.$set(this.MdTabs.items,this.id,{hasContent:!!this.$slots.default,label:this.mdLabel,icon:this.mdIcon,disabled:this.mdDisabled,data:this.mdTemplateData,props:this.getPropValues(),events:this.$listeners})},getPropValues:function(){var e=this,t=Object.keys(this.$options.props),n=["id","mdLabel","mdDisabled","mdTemplateData"],r={};return t.forEach((function(t){n.includes(t)||(e[t]?r[t]=e[t]:e.$attrs.hasOwnProperty(t)&&(r[t]=!t||e.$attrs[t]))})),r}},mounted:function(){this.setupObserver(),this.setTabData()},beforeDestroy:function(){this.observer&&this.observer.disconnect(),this.$delete(this.MdTabs.items,this.id)},render:function(e){var t={staticClass:"md-tab",attrs:i({},this.$attrs,{id:this.id}),on:this.$listeners};return this.href?this.buttonProps=this.$options.props:this.$router&&this.to&&(this.$options.props=(0,d.default)(this,this.$options.props),t.props=this.$props),e("div",t,this.$slots.default)}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},o=r(n(1)),a=r(n(8)),s=r(n(56)),t.default=new o.default({name:"MdTooltip",components:{MdPopover:s.default},props:{mdActive:Boolean,mdDelay:{type:[String,Number],default:0},mdDirection:i({type:String,default:"bottom"},(0,a.default)("md-direction",["top","right","bottom","left"]))},data:function(){return{shouldRender:!1,targetEl:null}},computed:{tooltipClasses:function(){return"md-tooltip-"+this.mdDirection},tooltipStyles:function(){return"transition-delay: "+this.mdDelay+"ms"},popperSettings:function(){return{placement:this.mdDirection,modifiers:{offset:{offset:"0, 16"}}}}},watch:{mdActive:function(){this.shouldRender=this.mdActive},shouldRender:function(e){this.$emit("update:mdActive",e)}},methods:{show:function(){this.shouldRender=!0},hide:function(){this.shouldRender=!1}},mounted:function(){var e=this;this.$nextTick().then((function(){e.shouldRender=e.mdActive,e.targetEl=e._vnode.componentInstance.originalParentEl,e.targetEl&&(e.targetEl.addEventListener("mouseenter",e.show,!1),e.targetEl.addEventListener("mouseleave",e.hide,!1))}))},beforeDestroy:function(){this.targetEl&&(this.targetEl.removeEventListener("mouseenter",this.show),this.targetEl.removeEventListener("mouseleave",this.hide))}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(235),s=r(a),c=n(245),l=r(c),u=n(248),d=r(u),f=n(251),h=r(f),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(112),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(236)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(113),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(239),s=function(e){n(238)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-app md-app-side-drawer md-layout-row",class:[e.appClasses,e.$mdActiveTheme]},[e._t("md-app-drawer-left"),e._v(" "),e._t("md-app-drawer-right-previous"),e._v(" "),n("main",{staticClass:"md-app-container md-flex md-layout-column",class:[e.$mdActiveTheme,e.scrollerClasses],style:e.contentStyles,on:{"&scroll":function(t){return e.handleScroll(t)}}},[e._t("md-app-toolbar"),e._v(" "),n("div",{staticClass:"md-app-scroller md-layout-column md-flex",class:[e.$mdActiveTheme,e.scrollerClasses],style:e.containerStyles,on:{"&scroll":function(t){return e.handleScroll(t)}}},[e._t("md-app-content")],2)],2),e._v(" "),e._t("md-app-drawer-right")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(115),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(242),s=function(e){n(241)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-app md-app-internal-drawer md-layout-column",class:[e.appClasses,e.$mdActiveTheme]},[e._t("md-app-toolbar"),e._v(" "),n("main",{staticClass:"md-app-container md-flex md-layout-row",class:[e.$mdActiveTheme,e.scrollerClasses],style:[e.containerStyles,e.contentStyles]},[e._t("md-app-drawer-left"),e._v(" "),e._t("md-app-drawer-right-previous"),e._v(" "),n("div",{staticClass:"md-app-scroller md-layout-column md-flex",class:[e.$mdActiveTheme,e.scrollerClasses]},[e._t("md-app-content")],2),e._v(" "),e._t("md-app-drawer-right")],2)],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(116),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(244),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"md-drawer md-right-previous",class:e.drawerClasses})},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(117),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(247),s=function(e){n(246)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-toolbar",e._g(e._b({staticClass:"md-app-toolbar",class:e.toolbarClasses,style:e.toolbarStyles},"md-toolbar",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(118),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(250),s=function(e){n(249)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.showCard?n("md-card",e._g(e._b({staticClass:"md-app-content md-flex"},"md-card",e.$attrs,!1),e.$listeners),[e._t("default")],2):n("md-content",e._g(e._b({staticClass:"md-app-content md-flex"},"md-content",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(119),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(252),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-drawer",e._g(e._b({ref:"drawer",staticClass:"md-app-drawer",attrs:{"md-active":e.mdActive&&e.initialized,"md-right":e.mdRight}},"md-drawer",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(254),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(120),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(259),s=function(e){n(255)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(121),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(258),s=function(e){n(257)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-badge",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hasDefaultSlot?n("div",{staticClass:"md-badge-content"},[e._t("default"),e._v(" "),n("md-badge-standalone",{class:e.badgeClasses,style:e.styles},[n("div",[e._v("\n      "+e._s(e.mdContent)+"\n    ")])])],2):n("md-badge-standalone",{class:e.badgeClasses,style:e.styles},[e._v("\n  "+e._s(e.mdContent)+"\n")])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(261),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(122),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(265),s=function(e){n(262)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";e.exports=function(e,t){var n,r,i,o=t.length,a=e.length;if(a>o)return!1;if(a===o)return e===t;e:for(n=0,r=0;n<a;n++){for(i=e.charCodeAt(n);r<o;)if(t.charCodeAt(r++)===i)continue e;return!1}return!0}},function(e,t){e.exports=function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-field",{staticClass:"md-autocomplete",class:e.fieldClasses,attrs:{"md-clearable":"","md-inline":e.isBoxLayout}},[n("md-menu",{attrs:{"md-direction":"bottom-start","md-dense":e.mdDense,"md-align-trigger":"","md-full-width":"","md-active":e.showMenu},on:{"update:mdActive":function(t){e.showMenu=t},"update:md-active":function(t){e.showMenu=t}}},[n("md-input",e._b({attrs:{id:e.mdInputId,name:e.mdInputName,maxlength:e.mdInputMaxlength,placeholder:e.mdInputPlaceholder},on:{focus:function(t){return t.stopPropagation(),e.openOnFocus(t)},blur:e.hideOptions,input:e.onInput,click:function(t){return t.stopPropagation(),t.preventDefault(),e.openOnFocus(t)}},model:{value:e.searchTerm,callback:function(t){e.searchTerm=t},expression:"searchTerm"}},"md-input",e.$attrs,!1)),e._v(" "),n("md-menu-content",{directives:[{name:"show",rawName:"v-show",value:e.hasScopedEmptySlot||e.hasFilteredItems,expression:"hasScopedEmptySlot || hasFilteredItems"}],class:e.contentClasses},[e.isPromisePending?n("div",{staticClass:"md-autocomplete-loading"},[n("md-progress-spinner",{attrs:{"md-diameter":40,"md-stroke":4,"md-mode":"indeterminate"}})],1):e._e(),e._v(" "),e.hasFilteredItems?n("div",{staticClass:"md-autocomplete-items"},e._l(e.getOptions(),(function(t,r){return n("md-menu-item",{key:r,on:{click:function(n){return e.selectItem(t,n)}}},[e.$scopedSlots["md-autocomplete-item"]?e._t("md-autocomplete-item",null,{item:t,term:e.searchTerm}):[e._v(e._s(t))]],2)})),1):e.hasScopedEmptySlot?n("md-menu-item",[n("div",{staticClass:"md-autocomplete-empty"},[e._t("md-autocomplete-empty",null,{term:e.searchTerm})],2)]):e._e()],1)],1),e._v(" "),e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(267),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(123),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(269),s=function(e){n(268)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-avatar",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(271),s=r(a),c=n(274),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(124),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(273),s=function(e){n(272)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-bottom-bar",class:[e.$mdActiveTheme,e.barClasses]},[n("md-ripple",{attrs:{"md-disabled":"fixed"===e.mdType,"md-active":e.MdBottomBar.mouseEvent}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(125),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(275),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-button",e._g(e._b({staticClass:"md-bottom-bar-item",class:e.itemClasses,attrs:{id:e.id,disabled:e.mdDisabled,"md-ripple":"fixed"===e.MdBottomBar.type},on:{click:e.setActiveItem}},"md-button",e.attrs,!1),e.$listeners),[e.$slots.default?e._t("default"):[e.isAssetIcon(e.mdIcon)?n("md-icon",{staticClass:"md-bottom-bar-icon",attrs:{"md-src":e.mdIcon}}):n("md-icon",{staticClass:"md-bottom-bar-icon"},[e._v(e._s(e.mdIcon))]),e._v(" "),n("span",{staticClass:"md-bottom-bar-label"},[e._v(e._s(e.mdLabel))])]],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(39),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,_,w,k,x,C,S,T,A,M,E;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(278),s=r(a),c=n(281),l=r(c),u=n(284),d=r(u),f=n(287),h=r(f),p=n(289),m=r(p),v=n(292),g=r(v),b=n(295),y=r(b),_=n(298),w=r(_),k=n(301),x=r(k),C=n(304),S=r(C),T=n(306),A=r(T),M=n(309),E=r(M),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default),e.component(m.default.name,m.default),e.component(g.default.name,g.default),e.component(y.default.name,y.default),e.component(w.default.name,w.default),e.component(x.default.name,x.default),e.component(S.default.name,S.default),e.component(A.default.name,A.default),e.component(E.default.name,E.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(126),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(280),s=function(e){n(279)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card",class:[e.$mdActiveTheme,e.cardClasses]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(127),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(283),s=function(e){n(282)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-area",class:e.areaClasses},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(128),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(286),s=function(e){n(285)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-header"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(129),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(288),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-header-text"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(130),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(291),s=function(e){n(290)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-media",class:e.mediaClasses},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(131),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(294),s=function(e){n(293)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-media-actions"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(132),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(297),s=function(e){n(296)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-card-media-cover",class:e.coverClasses},[e._t("default"),e._v(" "),e.mdTextScrim?n("div",{ref:"backdrop",staticClass:"md-card-backdrop",style:e.coverStyles}):e._e()],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(133),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(300),s=function(e){n(299)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-content"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(134),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(303),s=function(e){n(302)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-expand"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(135),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(305)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(136),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(308),s=function(e){n(307)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-expand-content",style:e.contentStyles},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(137),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(311),s=function(e){n(310)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-card-actions",class:"md-alignment-"+e.mdAlignment},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(313),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(138),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(315),s=function(e){n(314)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-checkbox",class:[e.$mdActiveTheme,e.checkClasses]},[n("div",{staticClass:"md-checkbox-container",on:{click:function(t){return t.stopPropagation(),e.toggleCheck(t)}}},[n("md-ripple",{attrs:{"md-centered":"","md-active":e.rippleActive,"md-disabled":e.disabled},on:{"update:mdActive":function(t){e.rippleActive=t},"update:md-active":function(t){e.rippleActive=t}}},[n("input",e._b({attrs:{id:e.id,type:"checkbox"},domProps:{indeterminate:e.indeterminate}},"input",e.attrs,!1))])],1),e._v(" "),e.$slots.default?n("label",{staticClass:"md-checkbox-label",attrs:{for:e.id},on:{click:function(t){return t.preventDefault(),e.toggleCheck(t)}}},[e._t("default")],2):e._e()])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(317),s=r(a),c=n(320),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(139),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(319),s=function(e){n(318)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-field",{staticClass:"md-chips",class:[e.$mdActiveTheme,e.chipsClasses]},[e._t("default"),e._v(" "),e._l(e.value,(function(t,r){return n("md-chip",{key:t,attrs:{"md-deletable":!e.mdStatic,"md-clickable":!e.mdStatic,"md-duplicated":e.duplicatedChip===t},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.$emit("md-click",t,r)},"md-delete":function(n){return n.stopPropagation(),e.removeChip(t)}},nativeOn:{click:function(n){return e.$emit("md-click",t,r)}}},[e.$scopedSlots["md-chip"]?e._t("md-chip",[e._v(e._s(t))],{chip:t}):[e._v(e._s(t))]],2)})),e._v(" "),!e.mdStatic&&e.modelRespectLimit?n("md-input",{ref:"input",attrs:{type:e.mdInputType,id:e.id,placeholder:e.mdPlaceholder},on:{input:e.handleInput,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.insertChip(t)},function(t){return t.type.indexOf("key")||8===t.keyCode?e.handleBackRemove(t):null}]},model:{value:e.inputValue,callback:function(t){e.inputValue="string"==typeof t?t.trim():t},expression:"inputValue"}}):e._e()],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(140),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(322),s=function(e){n(321)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-chip",appear:""}},[n("div",e._g({staticClass:"md-chip",class:[e.$mdActiveTheme,e.chipClasses],attrs:{tabindex:"0"}},e.$listeners),[e.mdClickable||!e.mdRipple?n("md-ripple",{attrs:{"md-disabled":e.mdDisabled}},[e._t("default")],2):e._t("default"),e._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[e.mdDeletable?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-clear",attrs:{tabindex:"-1"},on:{click:function(t){return e.$emit("md-delete",t)}}},[n("md-clear-icon")],1):e._e()],1)],2)])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(103),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(325),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(141),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(351),s=function(e){n(326)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";e.exports="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent)},function(e,t,n){"use strict";function r(e,t){for(var n=e<0?"-":"",r=""+Math.abs(e);r.length<t;)r="0"+r;return n+r}function i(e,t){var n=e>0?"-":"+",i=Math.abs(e),o=Math.floor(i/60),a=i%60;return 0===a?n+(o+""):n+(o+"")+(t||"")+r(a,2)}function o(e,t){return e%60==0?(e>0?"-":"+")+r(Math.abs(e)/60,2):a(e,t)}function a(e,t){var n=t||"",i=e>0?"-":"+",o=Math.abs(e);return i+r(Math.floor(o/60),2)+n+r(o%60,2)}function s(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function c(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}function l(e){return e.match(M)[1].replace(E,"'")}var u,d,f,h,p,m,v,g,b,y,_,w,k,x,C,S,T,A,M,E;Object.defineProperty(t,"__esModule",{value:!0}),u=n(17),d=n(142),f=n(9),h=n(143),p=n(144),m={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?n+1+"":r(n+1,2)},d:function(e,t){return r(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return r(e.getUTCHours()%12||12,t.length)},H:function(e,t){return r(e.getUTCHours(),t.length)},m:function(e,t){return r(e.getUTCMinutes(),t.length)},s:function(e,t){return r(e.getUTCSeconds(),t.length)}},v=864e5,g=n(145),b=n(146),y=n(147),_=n(93),w={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},k={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){var r,i;return"yo"===t?(i=(r=e.getUTCFullYear())>0?r:1-r,n.ordinalNumber(i,{unit:"year"})):m.y(e,t)},Y:function(e,t,n,i){var o=Object(_.a)(e,i),a=o>0?o:1-o;return"YY"===t?r(a%100,2):"Yo"===t?n.ordinalNumber(a,{unit:"year"}):r(a,t.length)},R:function(e,t){return r(Object(b.a)(e),t.length)},u:function(e,t){return r(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return i+"";case"QQ":return r(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,n){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return i+"";case"qq":return r(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return m.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var i=e.getUTCMonth();switch(t){case"L":return i+1+"";case"LL":return r(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,n,i){var o=Object(y.a)(e,i);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):r(o,t.length)},I:function(e,t,n){var i=Object(g.a)(e);return"Io"===t?n.ordinalNumber(i,{unit:"week"}):r(i,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):m.d(e,t)},D:function(e,t,n){var i=function(e){var t,n,r;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=(t=Object(f.a)(e)).getTime(),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0),r=n-t.getTime(),Math.floor(r/v)+1}(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):r(i,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,i){var o=e.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(t){case"e":return a+"";case"ee":return r(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,i){var o=e.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(t){case"c":return a+"";case"cc":return r(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var i=e.getUTCDay(),o=0===i?7:i;switch(t){case"i":return o+"";case"ii":return r(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?w.noon:0===i?w.midnight:i/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?w.evening:i>=12?w.afternoon:i>=4?w.morning:w.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return m.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):m.H(e,t)},K:function(e,t,n){var i=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(i,{unit:"hour"}):r(i,t.length)},k:function(e,t,n){var i=e.getUTCHours();return 0===i&&(i=24),"ko"===t?n.ordinalNumber(i,{unit:"hour"}):r(i,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):m.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):m.s(e,t)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds();return r(Math.floor(i*Math.pow(10,n-3)),n)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return o(i);case"XXXX":case"XX":return a(i);case"XXXXX":case"XXX":default:return a(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return o(i);case"xxxx":case"xx":return a(i);case"xxxxx":case"xxx":default:return a(i,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+i(o,":");case"OOOO":default:return"GMT"+a(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+i(o,":");case"zzzz":default:return"GMT"+a(o,":")}},t:function(e,t,n,i){var o=i._originalDate||e;return r(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,i){return r((i._originalDate||e).getTime(),t.length)}},x={p:c,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return s(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",s(i,t)).replace("{{time}}",c(o,t))}},C=n(148),S=n(149),t.default=function(e,t,n){var r,i,o,a,s,c,m,v,g,b,y,_,w;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");if(r=t+"",s=null==(a=(o=(i=n||{}).locale||p.a).options&&o.options.firstWeekContainsDate)?1:Object(u.a)(a),!((c=null==i.firstWeekContainsDate?s:Object(u.a)(i.firstWeekContainsDate))>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");if(v=null==(m=o.options&&o.options.weekStartsOn)?0:Object(u.a)(m),!((g=null==i.weekStartsOn?v:Object(u.a)(i.weekStartsOn))>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");if(b=Object(f.a)(e),!Object(h.default)(b))throw new RangeError("Invalid time value");return y=Object(d.a)(b),_=Object(C.a)(b,y),w={firstWeekContainsDate:c,weekStartsOn:g,locale:o,_originalDate:b},r.match(A).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,x[t])(e,o.formatLong,w):e})).join("").match(T).map((function(e){var t,n;return"''"===e?"'":"'"===(t=e[0])?l(e):(n=k[t])?(!i.awareOfUnicodeTokens&&Object(S.a)(e)&&Object(S.b)(e),n(_,e,o.localize,w)):e})).join("")},T=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M=/^'(.*?)'?$/,E=/''/g},function(e,t,n){"use strict";function r(e,t){if(null==e)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t=t||{})t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function i(e,t,n){var r,i,o,a,s,c,l,u;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");if(a=null==(o=(i=(r=n||{}).locale)&&i.options&&i.options.weekStartsOn)?0:Object(m.a)(o),!((s=null==r.weekStartsOn?a:Object(m.a)(r.weekStartsOn))>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");return c=Object(g.a)(e),u=(((l=Object(m.a)(t))%7+7)%7<s?7:0)+l-c.getUTCDay(),c.setUTCDate(c.getUTCDate()+u),c}function o(e,t,n){var r,i=t.match(e);return i?(r=parseInt(i[0],10),{value:n?n(r):r,rest:t.slice(i[0].length)}):null}function a(e,t){var n,r,i,o,a=t.match(e);return a?"Z"===a[0]?{value:0,rest:t.slice(1)}:(n="+"===a[1]?1:-1,r=a[2]?parseInt(a[2],10):0,i=a[3]?parseInt(a[3],10):0,o=a[5]?parseInt(a[5],10):0,{value:n*(r*S+i*T+o*A),rest:t.slice(a[0].length)}):null}function s(e,t){return o(M.anyDigitsSigned,e,t)}function c(e,t,n){switch(e){case 1:return o(M.singleDigit,t,n);case 2:return o(M.twoDigits,t,n);case 3:return o(M.threeDigits,t,n);case 4:return o(M.fourDigits,t,n);default:return o(RegExp("^\\d{1,"+e+"}"),t,n)}}function l(e,t,n){switch(e){case 1:return o(M.singleDigitSigned,t,n);case 2:return o(M.twoDigitsSigned,t,n);case 3:return o(M.threeDigitsSigned,t,n);case 4:return o(M.fourDigitsSigned,t,n);default:return o(RegExp("^-?\\d{1,"+e+"}"),t,n)}}function u(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function d(e,t){var n,r,i=t>0,o=i?t:1-t;return o<=50?n=e||100:(r=o+50,n=e+100*Math.floor(r/100)-(e>=r%100?100:0)),i?n:1-n}function f(e){return e%400==0||e%4==0&&e%100!=0}function h(e,t){if(t.timestampIsSet)return e;var n=new Date(0);return n.setFullYear(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()),n.setHours(e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()),n}function p(e){return e.match(R)[1].replace(L,"'")}var m,v,g,b,y,_,w,k,x,C,S,T,A,M,E,O,P,I,D,j,N,R,L,z;Object.defineProperty(t,"__esModule",{value:!0}),m=n(17),v=n(142),g=n(9),b=n(148),y=n(144),_=n(93),w=n(147),k=n(65),x=n(145),C=n(64),S=36e5,T=6e4,A=1e3,M={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},E={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/},O=[31,28,31,30,31,30,31,31,30,31,30,31],P=[31,29,31,30,31,30,31,31,30,31,30,31],I={G:{priority:140,parse:function(e,t,n,r){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}},set:function(e,t,n,r){return e.setUTCFullYear(1===n?10:-9,0,1),e.setUTCHours(0,0,0,0),e}},y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return c(4,e,i);case"yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return c(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i,o,a=Object(_.a)(e,r);return n.isTwoDigitYear?(i=d(n.year,a),e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e):(o=a>0?n.year:1-n.year,e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e)}},Y:{priority:130,parse:function(e,t,n,r){var i=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return c(4,e,i);case"Yo":return n.ordinalNumber(e,{unit:"year",valueCallback:i});default:return c(t.length,e,i)}},validate:function(e,t,n){return t.isTwoDigitYear||t.year>0},set:function(e,t,n,r){var i,o,a=e.getUTCFullYear();return n.isTwoDigitYear?(i=d(n.year,a),e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(k.a)(e,r)):(o=a>0?n.year:1-n.year,e.setUTCFullYear(o,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),Object(k.a)(e,r))}},R:{priority:130,parse:function(e,t,n,r){return l("R"===t?4:t.length,e)},set:function(e,t,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),Object(C.a)(i)}},u:{priority:130,parse:function(e,t,n,r){return l("u"===t?4:t.length,e)},set:function(e,t,n,r){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},Q:{priority:120,parse:function(e,t,n,r){switch(t){case"Q":case"QQ":return c(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},q:{priority:120,parse:function(e,t,n,r){switch(t){case"q":case"qq":return c(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=1&&t<=4},set:function(e,t,n,r){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},M:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"M":return o(M.month,e,i);case"MM":return c(2,e,i);case"Mo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},L:{priority:110,parse:function(e,t,n,r){var i=function(e){return e-1};switch(t){case"L":return o(M.month,e,i);case"LL":return c(2,e,i);case"Lo":return n.ordinalNumber(e,{unit:"month",valueCallback:i});case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},w:{priority:100,parse:function(e,t,n,r){switch(t){case"w":return o(M.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Object(k.a)(function(e,t,n){var r,i,o;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return r=Object(g.a)(e),i=Object(m.a)(t),o=Object(w.a)(r,n)-i,r.setUTCDate(r.getUTCDate()-7*o),r}(e,n,r),r)}},I:{priority:100,parse:function(e,t,n,r){switch(t){case"I":return o(M.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=53},set:function(e,t,n,r){return Object(C.a)(function(e,t){var n,r,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(g.a)(e),r=Object(m.a)(t),i=Object(x.a)(n)-r,n.setUTCDate(n.getUTCDate()-7*i),n}(e,n,r),r)}},d:{priority:90,parse:function(e,t,n,r){switch(t){case"d":return o(M.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return c(t.length,e)}},validate:function(e,t,n){var r=f(e.getUTCFullYear()),i=e.getUTCMonth();return r?t>=1&&t<=P[i]:t>=1&&t<=O[i]},set:function(e,t,n,r){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}},D:{priority:90,parse:function(e,t,n,r){switch(t){case"D":case"DD":return o(M.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return c(t.length,e)}},validate:function(e,t,n){return f(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365},set:function(e,t,n,r){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}},E:{priority:90,parse:function(e,t,n,r){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=i(e,n,r)).setUTCHours(0,0,0,0),e}},e:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return c(t.length,e,i);case"eo":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=i(e,n,r)).setUTCHours(0,0,0,0),e}},c:{priority:90,parse:function(e,t,n,r){var i=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return c(t.length,e,i);case"co":return n.ordinalNumber(e,{unit:"day",valueCallback:i});case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}},validate:function(e,t,n){return t>=0&&t<=6},set:function(e,t,n,r){return(e=i(e,n,r)).setUTCHours(0,0,0,0),e}},i:{priority:90,parse:function(e,t,n,r){var i=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return c(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(e,{width:"wide",context:"formatting",valueCallback:i})||n.day(e,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(e,{width:"short",context:"formatting",valueCallback:i})||n.day(e,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(e,t,n){return t>=1&&t<=7},set:function(e,t,n,r){return(e=function(e,t){var n,r,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return(n=Object(m.a)(t))%7==0&&(n-=7),i=((n%7+7)%7<1?7:0)+n-(r=Object(g.a)(e)).getUTCDay(),r.setUTCDate(r.getUTCDate()+i),r}(e,n,r)).setUTCHours(0,0,0,0),e}},a:{priority:80,parse:function(e,t,n,r){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(u(n),0,0,0),e}},b:{priority:80,parse:function(e,t,n,r){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(u(n),0,0,0),e}},B:{priority:80,parse:function(e,t,n,r){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}},set:function(e,t,n,r){return e.setUTCHours(u(n),0,0,0),e}},h:{priority:70,parse:function(e,t,n,r){switch(t){case"h":return o(M.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=12},set:function(e,t,n,r){var i=e.getUTCHours()>=12;return i&&n<12?e.setUTCHours(n+12,0,0,0):i||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}},H:{priority:70,parse:function(e,t,n,r){switch(t){case"H":return o(M.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=23},set:function(e,t,n,r){return e.setUTCHours(n,0,0,0),e}},K:{priority:70,parse:function(e,t,n,r){switch(t){case"K":return o(M.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=11},set:function(e,t,n,r){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}},k:{priority:70,parse:function(e,t,n,r){switch(t){case"k":return o(M.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=1&&t<=24},set:function(e,t,n,r){var i=n<=24?n%24:n;return e.setUTCHours(i,0,0,0),e}},m:{priority:60,parse:function(e,t,n,r){switch(t){case"m":return o(M.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCMinutes(n,0,0),e}},s:{priority:50,parse:function(e,t,n,r){switch(t){case"s":return o(M.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return c(t.length,e)}},validate:function(e,t,n){return t>=0&&t<=59},set:function(e,t,n,r){return e.setUTCSeconds(n,0),e}},S:{priority:30,parse:function(e,t,n,r){return c(t.length,e,(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))},set:function(e,t,n,r){return e.setUTCMilliseconds(n),e}},X:{priority:10,parse:function(e,t,n,r){switch(t){case"X":return a(E.basicOptionalMinutes,e);case"XX":return a(E.basic,e);case"XXXX":return a(E.basicOptionalSeconds,e);case"XXXXX":return a(E.extendedOptionalSeconds,e);case"XXX":default:return a(E.extended,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)}},x:{priority:10,parse:function(e,t,n,r){switch(t){case"x":return a(E.basicOptionalMinutes,e);case"xx":return a(E.basic,e);case"xxxx":return a(E.basicOptionalSeconds,e);case"xxxxx":return a(E.extendedOptionalSeconds,e);case"xxx":default:return a(E.extended,e)}},set:function(e,t,n,r){return t.timestampIsSet?e:new Date(e.getTime()-n)}},t:{priority:40,parse:function(e,t,n,r){return s(e)},set:function(e,t,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]}},T:{priority:20,parse:function(e,t,n,r){return s(e)},set:function(e,t,n,r){return[new Date(n),{timestampIsSet:!0}]}}},D=n(149),t.default=function(e,t,n,i){var o,a,s,c,l,u,d,f,_,w,k,x,C,S,T,A,M,E,O,P,R,L,F,B;if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");if(o=e+"",a=t+"",!(c=(s=i||{}).locale||y.a).match)throw new RangeError("locale must contain match property");if(u=null==(l=c.options&&c.options.firstWeekContainsDate)?1:Object(m.a)(l),!((d=null==s.firstWeekContainsDate?u:Object(m.a)(s.firstWeekContainsDate))>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");if(_=null==(f=c.options&&c.options.weekStartsOn)?0:Object(m.a)(f),!((w=null==s.weekStartsOn?_:Object(m.a)(s.weekStartsOn))>=0&&w<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===a)return""===o?Object(g.a)(n):new Date(NaN);for(k={firstWeekContainsDate:d,weekStartsOn:w,locale:c},x=[{priority:j,set:h,index:0}],S=a.match(N),C=0;C<S.length;C++)if(T=S[C],!s.awareOfUnicodeTokens&&Object(D.a)(T)&&Object(D.b)(T),A=T[0],M=I[A]){if(!(E=M.parse(o,T,c.match,k)))return new Date(NaN);x.push({priority:M.priority,set:M.set,validate:M.validate,value:E.value,index:x.length}),o=E.rest}else{if("''"===T?T="'":"'"===A&&(T=p(T)),0!==o.indexOf(T))return new Date(NaN);o=o.slice(T.length)}if(o.length>0&&z.test(o))return new Date(NaN);if(O=x.map((function(e){return e.priority})).sort((function(e,t){return t-e})).filter((function(e,t,n){return n.indexOf(e)===t})).map((function(e){return x.filter((function(t){return t.priority===e})).reverse()})).map((function(e){return e[0]})),P=Object(g.a)(n),isNaN(P))return new Date(NaN);for(R=Object(b.a)(P,Object(v.a)(P)),L={},C=0;C<O.length;C++){if((F=O[C]).validate&&!F.validate(R,F.value,k))return new Date(NaN);(B=F.set(R,L,F.value,k))[0]?(R=B[0],r(L,B[1])):R=B}return R},j=10,N=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,R=/^'(.*?)'?$/,L=/''/g,z=/\S/},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(150),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(347),s=function(e){n(331)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(r.a)(e);return t.setDate(1),t.setHours(0,0,0,0),t};var r=n(9)},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(t);return Object(i.default)(e,-n)},r=n(17),i=n(151)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getDate()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getDay()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getMonth()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(e).getFullYear()};var r=n(9)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(r.a)(e),i=Object(r.a)(t),n.getTime()===i.getTime()};var r=n(9)},function(e,t,n){"use strict";function r(e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var t=Object(i.a)(e);return t.setHours(0,0,0,0),t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(9);t.default=function(e,t){var n,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=r(e),i=r(t),n.getTime()===i.getTime()}},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,o;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(e),o=Object(r.a)(t),n.setDate(o),n},r=n(17),i=n(9)},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,a,s,c,l,u;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(e),a=Object(r.a)(t),s=n.getFullYear(),c=n.getDate(),(l=new Date(0)).setFullYear(s,a,15),l.setHours(0,0,0,0),u=Object(o.default)(l),n.setMonth(a,Math.min(c,u)),n},r=n(17),i=n(9),o=n(96)},function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,o;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(e),o=Object(r.a)(t),isNaN(n)?new Date(NaN):(n.setFullYear(o),n)},r=n(17),i=n(9)},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(152),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(344),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}}),e._v(" "),n("path",{attrs:{d:"M0-.25h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(153),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(346),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}}),e._v(" "),n("path",{attrs:{d:"M0-.5h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-popover",{attrs:{"md-settings":e.popperSettings,"md-active":""}},[n("transition",{attrs:{name:"md-datepicker-dialog",appear:""},on:{enter:e.setContentStyles,"after-leave":e.resetDate}},[n("div",{staticClass:"md-datepicker-dialog",class:[e.$mdActiveTheme]},[n("div",{staticClass:"md-datepicker-header"},[n("span",{staticClass:"md-datepicker-year-select",class:{"md-selected":"year"===e.currentView},on:{click:function(t){e.currentView="year"}}},[e._v(e._s(e.selectedYear))]),e._v(" "),n("div",{staticClass:"md-datepicker-date-select",class:{"md-selected":"year"!==e.currentView},on:{click:function(t){e.currentView="day"}}},[n("strong",{staticClass:"md-datepicker-dayname"},[e._v(e._s(e.shortDayName)+", ")]),e._v(" "),n("strong",{staticClass:"md-datepicker-monthname"},[e._v(e._s(e.shortMonthName))]),e._v(" "),n("strong",{staticClass:"md-datepicker-day"},[e._v(e._s(e.currentDay))])])]),e._v(" "),n("div",{staticClass:"md-datepicker-body"},[n("transition",{attrs:{name:"md-datepicker-body-header"}},["day"===e.currentView?n("div",{staticClass:"md-datepicker-body-header"},[n("md-button",{staticClass:"md-dense md-icon-button",on:{click:e.previousMonth}},[n("md-arrow-left-icon")],1),e._v(" "),n("md-button",{staticClass:"md-dense md-icon-button",on:{click:e.nextMonth}},[n("md-arrow-right-icon")],1)],1):e._e()]),e._v(" "),n("div",{staticClass:"md-datepicker-body-content",style:e.contentStyles},[n("transition",{attrs:{name:"md-datepicker-view"}},["day"===e.currentView?n("transition-group",{staticClass:"md-datepicker-panel md-datepicker-calendar",class:e.calendarClasses,attrs:{tag:"div",name:"md-datepicker-month"}},e._l([e.currentDate],(function(t){return n("div",{key:t.getMonth(),staticClass:"md-datepicker-panel md-datepicker-month"},[n("md-button",{staticClass:"md-dense md-datepicker-month-trigger",on:{click:function(t){e.currentView="month"}}},[e._v(e._s(e.currentMonthName)+" "+e._s(e.currentYear))]),e._v(" "),n("div",{staticClass:"md-datepicker-week"},[e._l(e.locale.shorterDays,(function(t,r){return r>=e.firstDayOfAWeek?n("span",{key:r},[e._v(e._s(t))]):e._e()})),e._v(" "),e._l(e.locale.shorterDays,(function(t,r){return r<e.firstDayOfAWeek?n("span",{key:r},[e._v(e._s(t))]):e._e()}))],2),e._v(" "),n("div",{staticClass:"md-datepicker-days"},[e._l(e.prefixEmptyDays,(function(e){return n("span",{key:"day-empty-"+e,staticClass:"md-datepicker-empty"})})),e._v(" "),e._l(e.daysInMonth,(function(t){return n("div",{key:"day-"+t,staticClass:"md-datepicker-day"},[n("span",{staticClass:"md-datepicker-day-button",class:{"md-datepicker-selected":e.isSelectedDay(t),"md-datepicker-today":e.isToday(t),"md-datepicker-disabled":e.isDisabled(t)},on:{click:function(n){return e.selectDate(t)}}},[e._v(e._s(t))])])}))],2)],1)})),0):"month"===e.currentView?n("div",{staticClass:"md-datepicker-panel md-datepicker-month-selector"},[n("md-button",{staticClass:"md-datepicker-year-trigger",on:{click:function(t){e.currentView="year"}}},[e._v(e._s(e.currentYear))]),e._v(" "),e._l(e.locale.months,(function(t,r){return n("span",{key:t,staticClass:"md-datepicker-month-button",class:{"md-datepicker-selected":e.currentMonthName===t},on:{click:function(t){return e.switchMonth(r)}}},[e._v(e._s(t))])}))],2):"year"===e.currentView?n("keep-alive",[n("md-content",{staticClass:"md-datepicker-panel md-datepicker-year-selector md-scrollbar"},e._l(e.availableYears,(function(t){return n("span",{key:t,staticClass:"md-datepicker-year-button",class:{"md-datepicker-selected":e.currentYear===t},on:{click:function(n){return e.switchYear(t)}}},[e._v(e._s(t))])})),0)],1):e._e()],1)],1),e._v(" "),n("md-dialog-actions",{staticClass:"md-datepicker-body-footer"},[n("md-button",{staticClass:"md-primary",on:{click:e.onCancel}},[e._v("Cancel")]),e._v(" "),e.mdImmediately?e._e():n("md-button",{staticClass:"md-primary",on:{click:e.onConfirm}},[e._v("Ok")])],1)],1)])])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(156),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(349),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=void 0;return function(){var r=this,i=arguments,o=function(){return e.apply(r,i)};clearTimeout(n),n=setTimeout(o,t)}}},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-field",{class:["md-datepicker",{"md-native":!this.mdOverrideNative}],attrs:{"md-clearable":""}},[n("md-date-icon",{staticClass:"md-date-icon",nativeOn:{click:function(t){return e.toggleDialog(t)}}}),e._v(" "),n("md-input",{ref:"input",attrs:{type:e.type,pattern:e.pattern},nativeOn:{focus:function(t){return e.onFocus(t)}},model:{value:e.inputDate,callback:function(t){e.inputDate=t},expression:"inputDate"}}),e._v(" "),e._t("default"),e._v(" "),n("keep-alive",[e.showDialog?n("md-datepicker-dialog",{attrs:{"md-date":e.localDate,"md-disabled-dates":e.mdDisabledDates,mdImmediately:e.mdImmediately},on:{"update:mdDate":function(t){e.localDate=t},"update:md-date":function(t){e.localDate=t},"md-closed":e.toggleDialog}}):e._e()],1),e._v(" "),n("md-overlay",{staticClass:"md-datepicker-overlay",attrs:{"md-fixed":"","md-active":e.showDialog},on:{click:e.toggleDialog}})],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),c=n(353),l=r(c),u=n(356),d=r(u),f=n(359),h=r(f),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(157),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(355),s=function(e){n(354)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("span",{staticClass:"md-dialog-title md-title"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(158),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(358),s=function(e){n(357)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{class:["md-dialog-content",e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(159),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(361),s=function(e){n(360)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-dialog-actions"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(363),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(160),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(365),s=function(e){n(364)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.insideList?n("li",{staticClass:"md-divider",class:[e.$mdActiveTheme]}):n("hr",{staticClass:"md-divider",class:[e.$mdActiveTheme]})},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(367),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(161),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(369),s=function(e){n(368)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-drawer",class:[e.$mdActiveTheme,e.drawerClasses]},[e._t("default"),e._v(" "),e.mdFixed?n("md-overlay",{attrs:{"md-active":e.mdActive},on:{click:e.closeDrawer}}):n("md-overlay",{attrs:{"md-active":e.mdActive,"md-attach-to-parent":""},on:{click:e.closeDrawer}})],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(371),t.default=function(e){}},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(105),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(106),s=r(a),c=n(374),l=r(c),u=n(62),d=r(u),f=n(386),h=r(f),p=n(53),m=r(p),v=n(391),g=r(v),t.default=function(e){(0,o.default)(e),e.use(s.default),e.use(l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default),e.component(m.default.name,m.default),e.component(g.default.name,g.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(375),s=r(a),c=n(380),l=r(c),u=n(383),d=r(u),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(164),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(379),s=function(e){n(376)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(165),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(378),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M7 10l5 5 5-5z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-menu",{staticClass:"md-select",class:{"md-disabled":e.disabled},attrs:{"md-close-on-select":!1,"md-active":e.showSelect,"md-offset-x":e.offset.x,"md-offset-y":e.offset.y,"md-dense":e.mdDense},on:{"update:mdActive":function(t){e.showSelect=t},"update:md-active":function(t){e.showSelect=t},"md-closed":e.onClose}},[n("md-input",e._g(e._b({ref:"input",staticClass:"md-input md-select-value",attrs:{readonly:"",disabled:e.disabled,required:e.required,placeholder:e.placeholder},on:{focus:function(t){return t.preventDefault(),e.onFocus(t)},blur:function(t){return t.preventDefault(),e.removeHighlight(t)},click:e.openSelect,keydown:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:e.openSelect(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.openSelect(t)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"])?null:e.openSelect(t)}]},model:{value:e.MdSelect.label,callback:function(t){e.$set(e.MdSelect,"label",t)},expression:"MdSelect.label"}},"md-input",e.attrs,!1),e.inputListeners)),e._v(" "),n("md-drop-down-icon",{nativeOn:{click:function(t){return e.openSelect(t)}}}),e._v(" "),n("keep-alive",[n("md-menu-content",{ref:"menu",staticClass:"md-select-menu",style:e.menuStyles,attrs:{"md-content-class":e.mdClass},on:{enter:e.onMenuEnter}},[e.showSelect?e._t("default"):e._e()],2)],1),e._v(" "),e.showSelect?e._e():n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[e._t("default")],2),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input-fake",attrs:{disabled:e.disabled,readonly:"",tabindex:"-1"},domProps:{value:e.model},on:{input:function(t){t.target.composing||(e.model=t.target.value)}}}),e._v(" "),n("select",e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],attrs:{readonly:"",tabindex:"-1"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.model=t.target.multiple?n:n[0]}}},"select",e.attributes,!1))],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(170),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(382),s=function(e){n(381)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-menu-item",{class:e.optionClasses,attrs:{disabled:e.isDisabled},on:{click:e.setSelection}},[e.MdSelect.multiple?n("md-checkbox",{staticClass:"md-primary",attrs:{disabled:e.isDisabled},model:{value:e.isChecked,callback:function(t){e.isChecked=t},expression:"isChecked"}}):e._e(),e._v(" "),n("span",{ref:"text",staticClass:"md-list-item-text"},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(171),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(385),s=function(e){n(384)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-optgroup"},[n("md-subheader",[e._v(e._s(e.label))]),e._v(" "),e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(172),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(390),s=function(e){n(387)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(173),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(389),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-file"},[n("md-file-icon",{staticClass:"md-file-icon",class:e.iconClass,nativeOn:{click:function(t){return e.openPicker(t)}}}),e._v(" "),"checkbox"==={disabled:e.disabled,required:e.required,placeholder:e.placeholder}.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{readonly:"",type:"checkbox"},domProps:{checked:Array.isArray(e.model)?e._i(e.model,null)>-1:e.model},on:{click:e.openPicker,blur:e.onBlur,change:function(t){var n,r=e.model,i=t.target,o=!!i.checked;Array.isArray(r)?(n=e._i(r,null),i.checked?n<0&&(e.model=r.concat([null])):n>-1&&(e.model=r.slice(0,n).concat(r.slice(n+1)))):e.model=o}}},"input",{disabled:e.disabled,required:e.required,placeholder:e.placeholder},!1)):"radio"==={disabled:e.disabled,required:e.required,placeholder:e.placeholder}.type?n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{readonly:"",type:"radio"},domProps:{checked:e._q(e.model,null)},on:{click:e.openPicker,blur:e.onBlur,change:function(t){e.model=null}}},"input",{disabled:e.disabled,required:e.required,placeholder:e.placeholder},!1)):n("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-input",attrs:{readonly:"",type:{disabled:e.disabled,required:e.required,placeholder:e.placeholder}.type},domProps:{value:e.model},on:{click:e.openPicker,blur:e.onBlur,input:function(t){t.target.composing||(e.model=t.target.value)}}},"input",{disabled:e.disabled,required:e.required,placeholder:e.placeholder},!1)),e._v(" "),n("input",e._g(e._b({ref:"inputFile",attrs:{type:"file"},on:{change:e.onChange}},"input",e.attributes,!1),e.$listeners))],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(174),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(392),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("textarea",e._g(e._b({directives:[{name:"model",rawName:"v-model",value:e.model,expression:"model"}],staticClass:"md-textarea",style:e.textareaStyles,domProps:{value:e.model},on:{focus:e.onFocus,blur:e.onBlur,input:function(t){t.target.composing||(e.model=t.target.value)}}},"textarea",e.attributes,!1),e.listeners))},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(394),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(175),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=function(e){n(395)},s=n(0)(i.a,null,!1,a,null,null),t.default=s.exports},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(397),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(176),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(399),s=function(e){n(398)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-image",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(401),t.default=function(e){}},function(e,t){},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(74),s=r(a),c=n(109),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(107),s=r(a),c=n(108),l=r(c),u=n(404),d=r(u),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(195),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(405),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-list-item",e._g(e._b({staticClass:"md-menu-item",class:[e.itemClasses,e.$mdActiveTheme],attrs:{disabled:e.disabled,tabindex:e.highlighted&&-1}},"md-list-item",e.$attrs,!1),e.listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(407),s=r(a),c=n(410),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(196),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(409),s=function(e){n(408)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-progress-bar",appear:""}},[n("div",{staticClass:"md-progress-bar",class:[e.progressClasses,e.$mdActiveTheme]},[n("div",{staticClass:"md-progress-bar-track",style:e.progressTrackStyle}),e._v(" "),n("div",{staticClass:"md-progress-bar-fill",style:e.progressValueStyle}),e._v(" "),n("div",{staticClass:"md-progress-bar-buffer",attrs:{Style:e.progressBufferStyle}})])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(197),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(412),s=function(e){n(411)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-progress-spinner",appear:""}},[n("div",{staticClass:"md-progress-spinner",class:[e.progressClasses,e.$mdActiveTheme]},[n("svg",{ref:"md-progress-spinner-draw",staticClass:"md-progress-spinner-draw",attrs:{preserveAspectRatio:"xMidYMid meet",focusable:"false",viewBox:"0 0 "+e.mdDiameter+" "+e.mdDiameter}},[n("circle",{ref:"md-progress-spinner-circle",staticClass:"md-progress-spinner-circle",attrs:{cx:"50%",cy:"50%",r:e.circleRadius}})])])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(414),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(198),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(416),s=function(e){n(415)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-radio",class:[e.$mdActiveTheme,e.radioClasses]},[n("div",{staticClass:"md-radio-container",on:{click:function(t){return t.stopPropagation(),e.toggleCheck(t)}}},[n("md-ripple",{attrs:{"md-centered":"","md-active":e.rippleActive,"md-disabled":e.disabled},on:{"update:mdActive":function(t){e.rippleActive=t},"update:md-active":function(t){e.rippleActive=t}}},[n("input",e._b({attrs:{type:"radio"}},"input",{id:e.id,name:e.name,disabled:e.disabled,required:e.required,value:e.value},!1))])],1),e._v(" "),e.$slots.default?n("label",{staticClass:"md-radio-label",attrs:{for:e.id},on:{click:function(t){return t.preventDefault(),e.toggleCheck(t)}}},[e._t("default")],2):e._e()])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(16),s=r(a),c=n(22),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(419),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(199),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(424),s=function(e){n(420)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(200),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(422),s=n(0)(i.a,a.a,!0,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(e,t){var n=t._c;return n("transition",{attrs:{name:"md-snackbar",appear:""}},[n("div",{staticClass:"md-snackbar",class:t.props.mdClasses},[n("div",{staticClass:"md-snackbar-content"},[t._t("default")],2)])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e,t,n){return new Promise((function(r){i={destroy:function(){i=null,r()}},e!==1/0&&(o=window.setTimeout((function(){a(),t||n._vnode.componentInstance.initDestroy(!0)}),e))}))}var i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),i=null,o=null,a=t.destroySnackbar=function(){return new Promise((function(e){i?(window.clearTimeout(o),i.destroy(),window.setTimeout(e,400)):e()}))},t.createSnackbar=function(e,t,n){return i?a().then((function(){return r(e,t,n)})):r(e,t,n)}},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.mdPersistent&&e.mdDuration!==1/0?n("md-portal",[n("keep-alive",[e.mdActive?n("md-snackbar-content",{attrs:{"md-classes":[e.snackbarClasses,e.$mdActiveTheme]}},[e._t("default")],2):e._e()],1)],1):n("md-portal",[e.mdActive?n("md-snackbar-content",{attrs:{"md-classes":[e.snackbarClasses,e.$mdActiveTheme]}},[e._t("default")],2):e._e()],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(426),s=r(a),c=n(429),l=r(c),u=n(432),d=r(u),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(201),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(428),s=function(e){n(427)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-speed-dial",class:[e.$mdActiveTheme,e.speedDialClasses]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(202),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(431),s=function(e){n(430)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-button",e._g(e._b({staticClass:"md-speed-dial-target md-fab",on:{click:e.handleClick}},"md-button",e.$attrs,!1),e.$listeners),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(203),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(434),s=function(e){n(433)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"md-speed-dial-content"},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(436),s=r(a),c=n(446),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(204),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(445),s=function(e){n(437)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(207),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(439),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(208),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(441),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(209),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(443),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}),e._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-button",e._g(e._b({staticClass:"md-stepper-header",class:e.classes,attrs:{disabled:e.shouldDisable},nativeOn:{click:function(t){!e.MdSteppers.syncRoute&&e.MdSteppers.setActiveStep(e.index)}}},"md-button",e.data.props,!1),e.data.events),[e.data.error?n("md-warning-icon",{staticClass:"md-stepper-icon"}):n("div",{staticClass:"md-stepper-number"},[e.data.done&&e.data.editable?n("md-edit-icon",{staticClass:"md-stepper-editable"}):e.data.done?n("md-check-icon",{staticClass:"md-stepper-done"}):[e._v(e._s(e.MdSteppers.getStepperNumber(e.index)))]],2),e._v(" "),n("div",{staticClass:"md-stepper-text"},[n("span",{staticClass:"md-stepper-label"},[e._v(e._s(e.data.label))]),e._v(" "),e.data.error?n("span",{staticClass:"md-stepper-error"},[e._v(e._s(e.data.error))]):e.data.description?n("span",{staticClass:"md-stepper-description"},[e._v(e._s(e.data.description))]):e._e()])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-steppers",class:[e.steppersClasses,e.$mdActiveTheme]},[e.mdVertical?e._e():n("div",{staticClass:"md-steppers-navigation"},e._l(e.MdSteppers.items,(function(e,t){return n("md-step-header",{key:t,attrs:{index:t}})})),1),e._v(" "),n("div",{staticClass:"md-steppers-wrapper",style:e.contentStyles},[n("div",{staticClass:"md-steppers-container",style:e.containerStyles},[e._t("default")],2)])])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(210),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(448),s=function(e){n(447)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-stepper"},[e.MdSteppers.isVertical?n("md-step-header",{attrs:{index:e.id}}):e._e(),e._v(" "),n("div",{staticClass:"md-stepper-content",class:{"md-active":!e.MdSteppers.syncRoute&&e.id===e.MdSteppers.activeStep}},[e._t("default")],2)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(450),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(211),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(452),s=function(e){n(451)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.insideList?n("li",{staticClass:"md-subheader",class:[e.$mdActiveTheme]},[e._t("default")],2):n("div",{staticClass:"md-subheader",class:[e.$mdActiveTheme]},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(454),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(212),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(456),s=function(e){n(455)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-switch",class:[e.$mdActiveTheme,e.checkClasses]},[n("div",{staticClass:"md-switch-container",on:{click:function(t){return t.stopPropagation(),e.toggleCheck(t)}}},[n("div",{staticClass:"md-switch-thumb"},[n("md-ripple",{attrs:{"md-centered":"","md-active":e.rippleActive,"md-disabled":e.disabled},on:{"update:mdActive":function(t){e.rippleActive=t},"update:md-active":function(t){e.rippleActive=t}}},[n("input",e._b({attrs:{id:e.id,type:"checkbox"}},"input",{id:e.id,name:e.name,disabled:e.disabled,required:e.required,value:e.value},!1))])],1)]),e._v(" "),e.$slots.default?n("label",{staticClass:"md-switch-label",attrs:{for:e.id},on:{click:function(t){return t.preventDefault(),e.toggleCheck(t)}}},[e._t("default")],2):e._e()])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(458),s=r(a),c=n(479),l=r(c),u=n(482),d=r(u),f=n(220),h=r(f),p=n(101),m=r(p),v=n(485),g=r(v),b=n(488),y=r(b),t.default=function(e){(0,o.default)(e),e.component("MdTable",s.default),e.component(l.default.name,l.default),e.component(d.default.name,d.default),e.component(h.default.name,h.default),e.component(m.default.name,m.default),e.component(g.default.name,g.default),e.component(y.default.name,y.default)}},function(e,t,n){"use strict";var r,i,o;Object.defineProperty(t,"__esModule",{value:!0}),r=Object.assign||function(e){var t,n,r;for(t=1;t<arguments.length;t++)for(r in n=arguments[t])Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);return e},i=n(459),o=function(e){return e&&e.__esModule?e:{default:e}}(i),t.default={name:"MdTableContainer",functional:!0,render:function(e,t){var n,i,a,s=t.data,c=t.props,l=t.children,u=[],d=s.scopedSlots;return l&&(n=function(e,t){var n=["md-table-toolbar","md-table-empty-state","md-table-pagination"],r=Array.from(e),i={};return r.forEach((function(e,t){if(e&&e.tag){var o=function(e){var t=e.componentOptions;return t&&t.tag}(e);o&&n.includes(o)&&(e.data.slot=o,e.data.attrs=e.data.attrs||{},i[o]=function(){return e},r.splice(t,1))}})),{childNodes:r,slots:i}}(l),i=n.childNodes,a=n.slots,u=i,d=r({},d,a)),e(o.default,r({},s,{props:c,scopedSlots:d}),[u])}}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(213),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(478),s=function(e){n(460)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(214),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(0)(i.a,null,!1,null,null,null),t.default=a.exports},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(215),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(469),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t){},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(217),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(465),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this;return e.$createElement,e._self._c,e._m(0)},staticRenderFns:[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0V0z",fill:"none"}}),e._v(" "),n("path",{attrs:{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}})])])}]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("th",{staticClass:"md-table-head",class:e.headClasses,style:e.headStyles,attrs:{id:e.id},on:{click:e.changeSort}},[e.$slots.default?n("div",{staticClass:"md-table-head-container"},[n("div",{staticClass:"md-table-head-label"},[e._t("default")],2)]):n("md-ripple",{staticClass:"md-table-head-container",attrs:{"md-disabled":!e.hasSort}},[n("div",{staticClass:"md-table-head-label"},[e.hasSort?n("md-upward-icon",{staticClass:"md-table-sortable-icon"},[e._v("arrow_upward")]):e._e(),e._v("\n\n      "+e._s(e.label)+"\n\n      "),e.tooltip?n("md-tooltip",[e._v(e._s(e.tooltip))]):e._e()],1)])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(218),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(468),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.selectableCount?n("md-table-head",{staticClass:"md-table-cell-selection"},[n("div",{staticClass:"md-table-cell-container"},[n("md-checkbox",{attrs:{model:e.allSelected,disabled:e.isDisabled},on:{change:e.onChange}})],1)]):e._e()},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("md-table-head-selection"),e._v(" "),e._l(e.MdTable.items,(function(t,r){return n("md-table-head",e._b({key:r},"md-table-head",t,!1))}))],2)])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(219),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(472),s=function(e){n(471)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"md-table-alternate-header"}},[n("div",{staticClass:"md-table-alternate-header"},[e._t("default")],2)])},staticRenderFns:[]};t.a=r},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.mdSelectable?n("td",{staticClass:"md-table-cell md-table-cell-selection"},[n("div",{staticClass:"md-table-cell-container"},[n("md-checkbox",{attrs:{disabled:!e.mdSelectable||e.mdDisabled},on:{change:e.onChange},model:{value:e.isSelected,callback:function(t){e.isSelected=t},expression:"isSelected"}})],1)]):e._e()},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("tr",e._g({staticClass:"md-table-row",class:e.rowClasses,on:{click:e.onClick}},e.$listeners),[e.selectableCount?n("md-table-cell-selection",{attrs:{value:e.isMultipleSelected,"md-disabled":e.mdDisabled,"md-selectable":"multiple"===e.mdSelectable,"md-row-id":e.mdIndex},on:{input:function(t){return t?e.addSelection():e.removeSelection()}}}):e._e(),e._v(" "),e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(224),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(0)(i.a,null,!1,null,null,null),t.default=a.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-tag-switcher",{staticClass:"md-table",attrs:{"md-tag":e.contentTag}},[e._t("md-table-toolbar"),e._v(" "),n("keep-alive",[e.$scopedSlots["md-table-alternate-header"]&&e.selectedCount?n("md-table-alternate-header",[e._t("md-table-alternate-header",null,{count:e.selectedCount})],2):e._e()],1),e._v(" "),e.mdFixedHeader?n("div",{staticClass:"md-table-fixed-header",class:e.headerClasses,style:e.headerStyles},[n("div",{ref:"fixedHeaderContainer",staticClass:"md-table-fixed-header-container",on:{scroll:e.setHeaderScroll}},[n("table",{style:e.fixedHeaderTableStyles},[n("md-table-thead")],1)])]):e._e(),e._v(" "),n("md-content",{staticClass:"md-table-content md-scrollbar",class:e.contentClasses,style:e.contentStyles,on:{scroll:e.setScroll}},[n("table",{ref:"contentTable"},[!e.mdFixedHeader&&e.$scopedSlots["md-table-row"]?n("md-table-thead",{class:e.headerClasses}):e._e(),e._v(" "),e.$scopedSlots["md-table-row"]?e.value.length?n("tbody",e._l(e.value,(function(t,r){return n("md-table-row-ghost",{key:e.getRowId(t,e.mdModelId),attrs:{"md-id":e.getRowId(t,e.mdModelId),"md-index":r,"md-item":t}},[e._t("md-table-row",null,{item:t,index:r})],2)})),1):e.$scopedSlots["md-table-empty-state"]?n("tbody",[n("tr",[n("td",{attrs:{colspan:e.headerCount}},[e._t("md-table-empty-state")],2)])]):e._e():n("tbody",[e._t("default")],2)],1),e._v(" "),e._t("md-table-pagination")],2),e._v(" "),!e.hasValue&&e.$scopedSlots["md-table-row"]?e._t("default"):e._e()],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(225),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(481),s=function(e){n(480)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-toolbar",{staticClass:"md-table-toolbar md-transparent",attrs:{"md-elevation":0}},[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(228),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(484),s=function(e){n(483)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("md-empty-state",e._b({staticClass:"md-table-empty-state"},"md-empty-state",e.$props,!1),[e._t("default")],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(229),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(487),s=function(e){n(486)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("td",{staticClass:"md-table-cell",class:e.cellClasses},[n("div",{staticClass:"md-table-cell-container"},[e._t("default")],2)])},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(230),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(490),s=function(e){n(489)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-table-pagination"},[!1!==e.mdPageOptions?[n("span",{staticClass:"md-table-pagination-label"},[e._v(e._s(e.mdLabel))]),e._v(" "),n("md-field",[n("md-select",{attrs:{"md-dense":"","md-class":"md-pagination-select"},on:{changed:e.setPageSize},model:{value:e.currentPageSize,callback:function(t){e.currentPageSize=t},expression:"currentPageSize"}},e._l(e.mdPageOptions,(function(t){return n("md-option",{key:t,attrs:{value:t}},[e._v(e._s(t))])})),1)],1)]:e._e(),e._v(" "),n("span",[e._v(e._s(e.currentItemCount)+"-"+e._s(e.currentPageCount)+" "+e._s(e.mdSeparator)+" "+e._s(e.mdTotal))]),e._v(" "),n("md-button",{staticClass:"md-icon-button md-table-pagination-previous",attrs:{disabled:1===e.mdPage},on:{click:function(t){return e.goToPrevious()}}},[n("md-icon",[e._v("keyboard_arrow_left")])],1),e._v(" "),n("md-button",{staticClass:"md-icon-button md-table-pagination-next",on:{click:function(t){return e.goToNext()}}},[n("md-icon",[e._v("keyboard_arrow_right")])],1)],2)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(492),s=r(a),c=n(495),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(231),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(494),s=function(e){n(493)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"md-tabs",class:[e.tabsClasses,e.$mdActiveTheme]},[n("div",{ref:"navigation",staticClass:"md-tabs-navigation",class:e.navigationClasses},[e._l(e.MdTabs.items,(function(t,r){var i=t.label,o=t.props,a=t.icon,s=t.disabled,c=t.data,l=t.events;return n("md-button",e._g(e._b({key:r,staticClass:"md-tab-nav-button",class:{"md-active":!e.mdSyncRoute&&r===e.activeTab,"md-icon-label":a&&i},attrs:{disabled:s},nativeOn:{click:function(t){return e.setActiveTab(r)}}},"md-button",o,!1),l),[e.$scopedSlots["md-tab"]?e._t("md-tab",null,{tab:{label:i,icon:a,data:c}}):[a?[e.isAssetIcon(a)?n("md-icon",{staticClass:"md-tab-icon",attrs:{"md-src":a}}):n("md-icon",{staticClass:"md-tab-icon"},[e._v(e._s(a))]),e._v(" "),n("span",{staticClass:"md-tab-label"},[e._v(e._s(i))])]:[e._v(e._s(i))]]],2)})),e._v(" "),n("span",{ref:"indicator",staticClass:"md-tabs-indicator",class:e.indicatorClass,style:e.indicatorStyles})],2),e._v(" "),n("md-content",{directives:[{name:"show",rawName:"v-show",value:e.hasContent,expression:"hasContent"}],ref:"tabsContent",staticClass:"md-tabs-content",style:e.contentStyles},[n("div",{staticClass:"md-tabs-container",style:e.containerStyles},[e._t("default")],2)])],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(232),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(0)(i.a,null,!1,null,null,null),t.default=a.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(111),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(498),s=r(a),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default)}},function(e,t,n){"use strict";var r,i,o,a,s,c;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(233),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(500),s=function(e){n(499)},c=n(0)(i.a,a.a,!1,s,null,null),t.default=c.exports},function(e,t){},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-popover",{attrs:{"md-settings":e.popperSettings,"md-active":e.shouldRender}},[e.shouldRender?n("transition",{attrs:{name:"md-tooltip"}},[n("div",{staticClass:"md-tooltip",class:[e.tooltipClasses,e.$mdActiveTheme],style:e.tooltipStyles},[e._t("default")],2)]):e._e()],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogAlert",props:{mdTitle:String,mdContent:String,mdConfirmText:{type:String,default:"Ok"}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogConfirm",props:{mdTitle:String,mdContent:String,mdConfirmText:{type:String,default:"Ok"},mdCancelText:{type:String,default:"Cancel"}},methods:{onCancel:function(){this.$emit("md-cancel"),this.$emit("update:mdActive",!1)},onConfirm:function(){this.$emit("md-confirm"),this.$emit("update:mdActive",!1)}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={name:"MdDialogPrompt",props:{value:{},mdTitle:String,mdInputName:String,mdInputId:String,mdInputMaxlength:[String,Number],mdInputPlaceholder:[String,Number],mdContent:String,mdConfirmText:{type:String,default:"Ok"},mdCancelText:{type:String,default:"Cancel"}},data:function(){return{inputValue:null}},watch:{value:function(){this.inputValue=this.value}},methods:{onCancel:function(){this.$emit("md-cancel"),this.$emit("update:mdActive",!1)},onConfirm:function(){this.$emit("input",this.inputValue),this.$emit("md-confirm",this.inputValue),this.$emit("update:mdActive",!1)},setInputFocus:function(){var e=this;window.setTimeout((function(){e.$refs.input.$el.focus()}),50)}},created:function(){this.inputValue=this.value}}},function(e,t,n){e.exports=n(505)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,_,w,k,x,C,S,T,A,M,E,O,P,I,D,j,N,R,L,z,F,B,$;Object.defineProperty(t,"__esModule",{value:!0}),t.MdTooltip=t.MdToolbar=t.MdTabs=t.MdTable=t.MdSwitch=t.MdSubheader=t.MdSteppers=t.MdSpeedDial=t.MdSnackbar=t.MdRipple=t.MdRadio=t.MdProgress=t.MdMenu=t.MdList=t.MdLayout=t.MdImage=t.MdIcon=t.MdHighlightText=t.MdField=t.MdEmptyState=t.MdElevation=t.MdDrawer=t.MdDivider=t.MdDialogPrompt=t.MdDialogConfirm=t.MdDialogAlert=t.MdDialog=t.MdDatepicker=t.MdContent=t.MdChips=t.MdCheckbox=t.MdCard=t.MdButton=t.MdBottomBar=t.MdAvatar=t.MdAutocomplete=t.MdApp=t.MdBadge=void 0,i=r(n(234)),o=r(n(253)),a=r(n(260)),s=r(n(266)),c=r(n(270)),l=r(n(276)),u=r(n(277)),d=r(n(312)),f=r(n(316)),h=r(n(323)),p=r(n(324)),m=r(n(352)),v=r(n(506)),g=r(n(509)),b=r(n(512)),y=r(n(362)),_=r(n(366)),w=r(n(370)),k=r(n(372)),x=r(n(373)),C=r(n(393)),S=r(n(106)),T=r(n(396)),A=r(n(400)),M=r(n(402)),E=r(n(403)),O=r(n(406)),P=r(n(413)),I=r(n(417)),D=r(n(418)),j=r(n(425)),N=r(n(435)),R=r(n(449)),L=r(n(453)),z=r(n(457)),F=r(n(491)),B=r(n(496)),$=r(n(497)),t.MdBadge=o.default,t.MdApp=i.default,t.MdAutocomplete=a.default,t.MdAvatar=s.default,t.MdBottomBar=c.default,t.MdButton=l.default,t.MdCard=u.default,t.MdCheckbox=d.default,t.MdChips=f.default,t.MdContent=h.default,t.MdDatepicker=p.default,t.MdDialog=m.default,t.MdDialogAlert=v.default,t.MdDialogConfirm=g.default,t.MdDialogPrompt=b.default,t.MdDivider=y.default,t.MdDrawer=_.default,t.MdElevation=w.default,t.MdEmptyState=k.default,t.MdField=x.default,t.MdHighlightText=C.default,t.MdIcon=S.default,t.MdImage=T.default,t.MdLayout=A.default,t.MdList=M.default,t.MdMenu=E.default,t.MdProgress=O.default,t.MdRadio=P.default,t.MdRipple=I.default,t.MdSnackbar=D.default,t.MdSpeedDial=j.default,t.MdSteppers=N.default,t.MdSubheader=R.default,t.MdSwitch=L.default,t.MdTable=z.default,t.MdTabs=F.default,t.MdToolbar=B.default,t.MdTooltip=$.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),c=n(507),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(501),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(508),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-dialog",e._g(e._b({attrs:{"md-fullscreen":!1}},"md-dialog",e.$attrs,!1),e.$listeners),[e.mdTitle?n("md-dialog-title",[e._v(e._s(e.mdTitle))]):e._e(),e._v(" "),e.mdContent?n("md-dialog-content",{domProps:{innerHTML:e._s(e.mdContent)}}):e._e(),e._v(" "),n("md-dialog-actions",[n("md-button",{staticClass:"md-primary",on:{click:function(t){return e.$emit("update:mdActive",!1)}}},[e._v(e._s(e.mdConfirmText))])],1)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),c=n(510),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(502),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(511),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-dialog",e._g(e._b({attrs:{"md-fullscreen":!1}},"md-dialog",e.$attrs,!1),e.$listeners),[e.mdTitle?n("md-dialog-title",[e._v(e._s(e.mdTitle))]):e._e(),e._v(" "),e.mdContent?n("md-dialog-content",{domProps:{innerHTML:e._s(e.mdContent)}}):e._e(),e._v(" "),n("md-dialog-actions",[n("md-button",{on:{click:e.onCancel}},[e._v(e._s(e.mdCancelText))]),e._v(" "),n("md-button",{staticClass:"md-primary",on:{click:e.onConfirm}},[e._v(e._s(e.mdConfirmText))])],1)],1)},staticRenderFns:[]};t.a=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var i,o,a,s,c,l;Object.defineProperty(t,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),c=n(513),l=r(c),t.default=function(e){(0,o.default)(e),e.component(s.default.name,s.default),e.component(l.default.name,l.default)}},function(e,t,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(t,"__esModule",{value:!0}),r=n(503),i=n.n(r),r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);a=n(514),s=n(0)(i.a,a.a,!1,null,null,null),t.default=s.exports},function(e,t,n){"use strict";var r={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("md-dialog",e._b({attrs:{"md-fullscreen":!1},on:{"md-opened":e.setInputFocus}},"md-dialog",e.$attrs,!1),[e.mdTitle?n("md-dialog-title",[e._v(e._s(e.mdTitle))]):e._e(),e._v(" "),e.mdContent?n("md-dialog-content",{domProps:{innerHTML:e._s(e.mdContent)}}):e._e(),e._v(" "),n("md-dialog-content",[n("md-field",[n("md-input",{ref:"input",attrs:{id:e.mdInputId,name:e.mdInputName,maxlength:e.mdInputMaxlength,placeholder:e.mdInputPlaceholder},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onConfirm(t)}},model:{value:e.inputValue,callback:function(t){e.inputValue=t},expression:"inputValue"}})],1)],1),e._v(" "),n("md-dialog-actions",[n("md-button",{staticClass:"md-primary",on:{click:e.onCancel}},[e._v(e._s(e.mdCancelText))]),e._v(" "),n("md-button",{staticClass:"md-primary",on:{click:e.onConfirm}},[e._v(e._s(e.mdConfirmText))])],1)],1)},staticRenderFns:[]};t.a=r}]))},function(e,t,n){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?t(Object(i),!0).forEach((function(t){e(n,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):t(Object(i)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))}))}return n}function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e){var t,n="algoliasearch-client-js-".concat(e.key),i=function(){return void 0===t&&(t=e.localStorage||window.localStorage),t},o=function(){return JSON.parse(i().getItem(n)||"{}")};return{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(e),r=o()[n];return Promise.all([r||t(),void 0!==r])})).then((function(e){var t=r(e,2),i=t[0],o=t[1];return Promise.all([i,o||n.miss(i)])})).then((function(e){return r(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var r=o();return r[JSON.stringify(e)]=t,i().setItem(n,JSON.stringify(r)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=o();delete t[JSON.stringify(e)],i().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){i().removeItem(n)}))}}}function a(e){var t=i(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=t();return i.then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return r(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,r,i).catch((function(){return a({caches:t}).get(e,r,i)}))},set:function(e,r){return n.set(e,r).catch((function(){return a({caches:t}).set(e,r)}))},delete:function(e){return n.delete(e).catch((function(){return a({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return a({caches:t}).clear()}))}}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(n);if(o in t)return Promise.resolve(e.serializable?JSON.parse(t[o]):t[o]);var a=r(),s=i&&i.miss||function(){return Promise.resolve()};return a.then((function(e){return s(e)})).then((function(){return a}))},set:function(n,r){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function c(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}function l(e,t){return Object.keys(void 0!==t?t:{}).forEach((function(n){e[n]=t[n](e)})),e}function u(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0;return e.replace(/%s/g,(function(){return encodeURIComponent(n[i++])}))}var d=0,f=1;function h(e,t){var n=e||{},r=n.data||{};return Object.keys(n).forEach((function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(r[e]=n[e])})),{data:Object.entries(r).length>0?r:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var p={Read:1,Write:2,Any:3};function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n({},e,{status:t,lastUpdate:Date.now()})}function v(e){return{protocol:e.protocol||"https",url:e.url,accept:e.accept||p.Any}}var g="POST";function b(e,t,r,o){var a=[],s=function(e,t){if("GET"!==e.method&&(void 0!==e.data||void 0!==t.data)){var r=Array.isArray(e.data)?e.data:n({},e.data,{},t.data);return JSON.stringify(r)}}(r,o),c=function(e,t){var r=n({},e.headers,{},t.headers),i={};return Object.keys(r).forEach((function(e){var t=r[e];i[e.toLowerCase()]=t})),i}(e,o),l=r.method,u="GET"!==r.method?{}:n({},r.data,{},o.data),d=n({"x-algolia-agent":e.userAgent.value},e.queryParameters,{},u,{},o.queryParameters),f=0,h=function t(n,i){var u=n.pop();if(void 0===u)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:k(a)};var h={data:s,headers:c,method:l,url:_(u,r.path,d),connectTimeout:i(f,e.timeouts.connect),responseTimeout:i(f,o.timeout)},p=function(e){var t={request:h,response:e,host:u,triesLeft:n.length};return a.push(t),t},v={onSucess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(r){var o=p(r);return r.isTimedOut&&f++,Promise.all([e.logger.info("Retryable failure",x(o)),e.hostsCache.set(u,m(u,r.isTimedOut?3:2))]).then((function(){return t(n,i)}))},onFail:function(e){throw p(e),function(e,t){var n=e.content,r=e.status,i=n;try{i=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(i,r,t)}(e,k(a))}};return e.requester.send(h).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&0==~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSucess(e):t.onFail(e)}(e,v)}))};return function(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(m(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}(e)})),r=e.filter((function(e){return function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}(e)})),o=[].concat(i(n),i(r));return{getTimeout:function(e,t){return(0===r.length&&0===e?1:r.length+3+e)*t},statelessHosts:o.length>0?o.map((function(e){return v(e)})):t}}))}(e.hostsCache,t).then((function(e){return h(i(e.statelessHosts).reverse(),e.getTimeout)}))}function y(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function _(e,t,n){var r=w(n),i="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return r.length&&(i+="?".concat(r)),i}function w(e){return Object.keys(e).map((function(t){return u("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function k(e){return e.map((function(e){return x(e)}))}function x(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n({},e,{request:n({},e.request,{headers:n({},e.request.headers,{},t)})})}var C=function(e){var t=e.appId,i=function(e,t,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===f?r:{}},queryParameters:function(){return e===d?r:{}}}}(void 0!==e.authMode?e.authMode:f,t,e.apiKey),o=function(e){var t=e.hostsCache,n=e.logger,i=e.requester,o=e.requestsCache,a=e.responsesCache,s=e.timeouts,c=e.userAgent,l=e.hosts,u=e.queryParameters,d={hostsCache:t,logger:n,requester:i,requestsCache:o,responsesCache:a,timeouts:s,userAgent:c,headers:e.headers,queryParameters:u,hosts:l.map((function(e){return v(e)})),read:function(e,t){var n=h(t,d.timeouts.read),i=function(){return b(d,d.hosts.filter((function(e){return 0!=(e.accept&p.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return i();var o={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(o,(function(){return d.requestsCache.get(o,(function(){return d.requestsCache.set(o,i()).then((function(e){return Promise.all([d.requestsCache.delete(o),e])}),(function(e){return Promise.all([d.requestsCache.delete(o),Promise.reject(e)])})).then((function(e){var t=r(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(o,e)}})},write:function(e,t){return b(d,d.hosts.filter((function(e){return 0!=(e.accept&p.Write)})),e,h(t,d.timeouts.write))}};return d}(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:p.Read},{url:"".concat(t,".algolia.net"),accept:p.Write}].concat(c([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e,{headers:n({},i.headers(),{},{"content-type":"application/x-www-form-urlencoded"},{},e.headers),queryParameters:n({},i.queryParameters(),{},e.queryParameters)}));return l({transporter:o,appId:t,addAlgoliaAgent:function(e,t){o.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then((function(){}))}},e.methods)},S=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={transporter:e.transporter,appId:e.appId,indexName:t};return l(r,n.methods)}},T=function(e){return function(t,r){var i=t.map((function(e){return n({},e,{params:w(e.params||{})})}));return e.transporter.read({method:g,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},A=function(e){return function(t,r){return Promise.all(t.map((function(t){var i=t.params,o=i.facetName,a=i.facetQuery,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(i,["facetName","facetQuery"]);return S(e)(t.indexName,{methods:{searchForFacetValues:E}}).searchForFacetValues(o,a,n({},r,{},s))})))}},M=function(e){return function(t,n){return e.transporter.read({method:g,path:u("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},E=function(e){return function(t,n,r){return e.transporter.read({method:g,path:u("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},r)}};function O(e,t,r){var i={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var r,i=function(e,r){return setTimeout((function(){n.abort(),t({status:0,content:r,isTimedOut:!0})}),1e3*e)},o=i(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(o),r=i(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(o),clearTimeout(r),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(o),clearTimeout(r),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}},responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:a({caches:[o({key:"".concat("4.1.0","-").concat(e)}),s()]}),userAgent:y("4.1.0").add({segment:"Browser",version:"lite"}),authMode:d};return C(n({},i,{},r,{methods:{search:T,searchForFacetValues:A,multipleQueries:T,multipleSearchForFacetValues:A,initIndex:function(e){return function(t){return S(e)(t,{methods:{search:M,searchForFacetValues:E}})}}}}))}return O.version="4.1.0",O}()},function(e,t,n){e.exports=function(){"use strict";var e=function(e){var t=new XMLHttpRequest;return t.open(e.method||"GET",e.url),t.responseType="json",e.headers&&Object.keys(e.headers).forEach((function(n){t.setRequestHeader(n,e.headers[n])})),t};function t(t){return function(e,t){return new Promise((function(n,r){e.onload=function(){if(e.status>=200&&e.status<300){var t;try{t=JSON.parse(e.response)}catch(n){t=e.response}n(t)}else r(e.response)},e.onerror=function(){return r(e.response)},e.send(JSON.stringify(t))}))}(e(t),t.body)}var n,r,i,o,a,s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),c=function(){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.file=e,this.options=t}return s(n,[{key:"createChunks",value:function(){this.chunks=[];for(var e=0,t=this.chunkSize;e<this.fileSize;)this.chunks.push({blob:this.file.file.slice(e,t),startOffset:e,active:!1,retries:this.maxRetries}),t=(e=t)+this.chunkSize}},{key:"updateFileProgress",value:function(){this.file.progress=this.progress}},{key:"pause",value:function(){this.file.active=!1,this.stopChunks()}},{key:"stopChunks",value:function(){this.chunksUploading.forEach((function(e){e.xhr.abort(),e.active=!1}))}},{key:"resume",value:function(){this.file.active=!0,this.startChunking()}},{key:"upload",value:function(){var e=this;return this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),this.start(),this.promise}},{key:"start",value:function(){var e=this;t({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.startBody,{phase:"start",mime_type:this.fileType,size:this.fileSize,name:this.fileName})}).then((function(t){if("success"!==t.status)return e.file.response=t,e.reject("server");e.sessionId=t.data.session_id,e.chunkSize=t.data.end_offset,e.createChunks(),e.startChunking()})).catch((function(t){e.file.response=t,e.reject("server")}))}},{key:"startChunking",value:function(){for(var e=0;e<this.maxActiveChunks;e++)this.uploadNextChunk()}},{key:"uploadNextChunk",value:function(){if(this.file.active){if(this.hasChunksToUpload)return this.uploadChunk(this.chunksToUpload[0]);if(0===this.chunksUploading.length)return this.finish()}}},{key:"uploadChunk",value:function(t){var n=this;t.progress=0,t.active=!0,this.updateFileProgress(),t.xhr=e({method:"POST",headers:this.headers,url:this.action}),t.xhr.upload.addEventListener("progress",(function(e){e.lengthComputable&&(t.progress=Math.round(e.loaded/e.total*100))}),!1),function(e,t){var n=new FormData;for(var r in t)n.append(r,t[r]);return new Promise((function(t,r){e.onload=function(){if(e.status>=200&&e.status<300){var n;try{n=JSON.parse(e.response)}catch(t){n=e.response}t(n)}else r(e.response)},e.onerror=function(){return r(e.response)},e.send(n)}))}(t.xhr,Object.assign(this.uploadBody,{phase:"upload",session_id:this.sessionId,start_offset:t.startOffset,chunk:t.blob})).then((function(e){if(t.active=!1,"success"===e.status)t.uploaded=!0;else if(t.retries--<=0)return n.stopChunks(),n.reject("upload");n.uploadNextChunk()})).catch((function(){if(t.active=!1,t.retries--<=0)return n.stopChunks(),n.reject("upload");n.uploadNextChunk()}))}},{key:"finish",value:function(){var e=this;this.updateFileProgress(),t({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.finishBody,{phase:"finish",session_id:this.sessionId})}).then((function(t){if(e.file.response=t,"success"!==t.status)return e.reject("server");e.resolve(t)})).catch((function(t){e.file.response=t,e.reject("server")}))}},{key:"maxRetries",get:function(){return parseInt(this.options.maxRetries)}},{key:"maxActiveChunks",get:function(){return parseInt(this.options.maxActive)}},{key:"fileType",get:function(){return this.file.type}},{key:"fileSize",get:function(){return this.file.size}},{key:"fileName",get:function(){return this.file.name}},{key:"action",get:function(){return this.options.action||null}},{key:"startBody",get:function(){return this.options.startBody||{}}},{key:"uploadBody",get:function(){return this.options.uploadBody||{}}},{key:"finishBody",get:function(){return this.options.finishBody||{}}},{key:"headers",get:function(){return this.options.headers||{}}},{key:"readyToUpload",get:function(){return!!this.chunks}},{key:"progress",get:function(){var e=this,t=this.chunksUploaded.length/this.chunks.length*100,n=this.chunksUploading.reduce((function(t,n){return t+(0|n.progress)/e.chunks.length}),0);return Math.min(t+n,100)}},{key:"chunksToUpload",get:function(){return this.chunks.filter((function(e){return!e.active&&!e.uploaded}))}},{key:"hasChunksToUpload",get:function(){return this.chunksToUpload.length>0}},{key:"chunksUploading",get:function(){return this.chunks.filter((function(e){return!!e.xhr&&!!e.active}))}},{key:"chunksUploaded",get:function(){return this.chunks.filter((function(e){return!!e.uploaded}))}}]),n}(),l=(n={render:function(){var e=this,t=e.$createElement;return(e._self._c||t)("input",{attrs:{type:"file",name:e.$parent.name,id:e.$parent.inputId||e.$parent.name,accept:e.$parent.accept,capture:e.$parent.capture,disabled:e.$parent.disabled,webkitdirectory:e.$parent.directory&&e.$parent.features.directory,directory:e.$parent.directory&&e.$parent.features.directory,multiple:e.$parent.multiple&&e.$parent.features.html5},on:{change:e.change}})},staticRenderFns:[]},i=void 0,o=!1,(a=("function"==typeof(r={methods:{change:function(e){this.$parent.addInputFile(e.target),e.target.files?(e.target.value="",e.target.files.length&&!/safari/i.test(navigator.userAgent)&&(e.target.type="",e.target.type="file")):(this.$destroy(),new this.constructor({parent:this.$parent,el:this.$el}))}}})?r.options:r)||{}).render||(a.render=n.render,a.staticRenderFns=n.staticRenderFns,a._compiled=!0,o&&(a.functional=!0)),a._scopeId=i,a),u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function f(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var h={headers:{},action:"",minSize:1048576,maxActive:3,maxRetries:5,handler:c},p={components:{InputFile:l},props:{inputId:{type:String},name:{type:String,default:"file"},accept:{type:String},capture:{},disabled:{},multiple:{type:Boolean},maximum:{type:Number,default:function(){return this.multiple?0:1}},addIndex:{type:[Boolean,Number]},directory:{type:Boolean},postAction:{type:String},putAction:{type:String},customAction:{type:Function},headers:{type:Object,default:Object},data:{type:Object,default:Object},timeout:{type:Number,default:0},drop:{default:!1},dropDirectory:{type:Boolean,default:!0},size:{type:Number,default:0},extensions:{default:Array},value:{type:Array,default:Array},thread:{type:Number,default:1},chunkEnabled:{type:Boolean,default:!1},chunk:{type:Object,default:function(){return h}}},data:function(){return{files:this.value,features:{html5:!0,directory:!1,drag:!1},active:!1,dropActive:!1,uploading:0,destroy:!1}},mounted:function(){var e=document.createElement("input");if(e.type="file",e.multiple=!0,window.FormData&&e.files?("boolean"!=typeof e.webkitdirectory&&"boolean"!=typeof e.directory||(this.features.directory=!0),this.features.html5&&void 0!==e.ondrop&&(this.features.drop=!0)):this.features.html5=!1,this.maps={},this.files)for(var t=0;t<this.files.length;t++){var n=this.files[t];this.maps[n.id]=n}this.$nextTick((function(){this.$parent&&this.$parent.$forceUpdate(),this.watchDrop(this.drop)}))},beforeDestroy:function(){this.destroy=!0,this.active=!1},computed:{uploaded:function(){for(var e=void 0,t=0;t<this.files.length;t++)if((e=this.files[t]).fileObject&&!e.error&&!e.success)return!1;return!0},chunkOptions:function(){return Object.assign(h,this.chunk)},className:function(){return["file-uploads",this.features.html5?"file-uploads-html5":"file-uploads-html4",this.features.directory&&this.directory?"file-uploads-directory":void 0,this.features.drop&&this.drop?"file-uploads-drop":void 0,this.disabled?"file-uploads-disabled":void 0]}},watch:{active:function(e){this.watchActive(e)},dropActive:function(){this.$parent&&this.$parent.$forceUpdate()},drop:function(e){this.watchDrop(e)},value:function(e){if(this.files!==e){this.files=e;var t=this.maps;this.maps={};for(var n=0;n<this.files.length;n++){var r=this.files[n];this.maps[r.id]=r}for(var i in this.maps){var o=this.maps[i],a=t[i];o!==a&&this.emitFile(o,a)}for(var s in t)this.maps[s]||this.emitFile(void 0,t[s])}}},methods:{clear:function(){if(this.files.length){var e=this.files;this.files=[],this.maps={},this.emitInput();for(var t=0;t<e.length;t++)this.emitFile(void 0,e[t])}return!0},get:function(e){return!!e&&("object"===(void 0===e?"undefined":d(e))?this.maps[e.id]||!1:this.maps[e]||!1)},add:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addIndex,n=e,r=n instanceof Array;r||(n=[n]);for(var i=[],o=0;o<n.length;o++){var a=n[o];this.features.html5&&a instanceof Blob&&(a={file:a,size:a.size,name:a.webkitRelativePath||a.relativePath||a.name||"unknown",type:a.type});var s=!1;if(!1===a.fileObject||(a.fileObject||"undefined"!=typeof Element&&a.el instanceof Element||"undefined"!=typeof Blob&&a.file instanceof Blob)&&(s=!0),s&&((a=u({fileObject:!0,size:-1,name:"Filename",type:"",active:!1,error:"",success:!1,putAction:this.putAction,postAction:this.postAction,timeout:this.timeout},a,{response:{},progress:"0.00",speed:0})).data=u({},this.data,a.data?a.data:{}),a.headers=u({},this.headers,a.headers?a.headers:{})),a.id||(a.id=Math.random().toString(36).substr(2)),!this.emitFilter(a,void 0)){if(this.maximum>1&&i.length+this.files.length>=this.maximum)break;if(i.push(a),1===this.maximum)break}}if(!i.length)return!1;1===this.maximum&&this.clear();var c=void 0;if(!0===t||0===t)c=i.concat(this.files);else if(t){var l;(l=c=this.files.concat([])).splice.apply(l,[t,0].concat(i))}else c=this.files.concat(i);this.files=c;for(var d=0;d<i.length;d++){var f=i[d];this.maps[f.id]=f}this.emitInput();for(var h=0;h<i.length;h++)this.emitFile(i[h],void 0);return r?i:i[0]},addInputFile:function(e){var t=[];if(e.files)for(var n=0;n<e.files.length;n++){var r=e.files[n];t.push({size:r.size,name:r.webkitRelativePath||r.relativePath||r.name,type:r.type,file:r})}else{var i=e.value.replace(/\\/g,"/").split("/");delete e.__vuex__,t.push({name:i[i.length-1],el:e})}return this.add(t)},addDataTransfer:function(e){var t=this,n=[];if(e.items&&e.items.length){for(var r=[],i=0;i<e.items.length;i++){var o=e.items[i];(o=o.getAsEntry?o.getAsEntry()||o.getAsFile():o.webkitGetAsEntry&&o.webkitGetAsEntry()||o.getAsFile())&&r.push(o)}return new Promise((function(e,i){!function i(o){var a=r[o];if(!a||t.maximum>0&&n.length>=t.maximum)return e(t.add(n));t.getEntry(a).then((function(e){n.push.apply(n,f(e)),i(o+1)}))}(0)}))}if(e.files.length){for(var a=0;a<e.files.length&&(n.push(e.files[a]),!(this.maximum>0&&n.length>=this.maximum));a++);return Promise.resolve(this.add(n))}return Promise.resolve([])},getEntry:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(r,i){if(e.isFile)e.file((function(e){r([{size:e.size,name:n+e.name,type:e.type,file:e}])}));else if(e.isDirectory&&t.dropDirectory){var o=[],a=e.createReader();!function i(){a.readEntries((function(a){!function s(c){return!a[c]&&0===c||t.maximum>0&&o.length>=t.maximum?r(o):a[c]?void t.getEntry(a[c],n+e.name+"/").then((function(e){o.push.apply(o,f(e)),s(c+1)})):i()}(0)}))}()}else r([])}))},replace:function(e,t){var n=this.get(e),r=this.get(t);if(!n||!r||n===r)return!1;var i=this.files.concat([]),o=i.indexOf(n),a=i.indexOf(r);return-1!==o&&-1!==a&&(i[o]=r,i[a]=n,this.files=i,this.emitInput(),!0)},remove:function(e){var t=this.get(e);if(t){if(this.emitFilter(void 0,t))return!1;var n=this.files.concat([]),r=n.indexOf(t);if(-1===r)return console.error("remove",t),!1;n.splice(r,1),this.files=n,delete this.maps[t.id],this.emitInput(),this.emitFile(void 0,t)}return t},update:function(e,t){var n=this.get(e);if(n){var r=u({},n,t);if(!n.fileObject||!n.active||r.active||r.error||r.success||(r.error="abort"),this.emitFilter(r,n))return!1;var i=this.files.concat([]),o=i.indexOf(n);return-1===o?(console.error("update",n),!1):(i.splice(o,1,r),this.files=i,delete this.maps[n.id],this.maps[r.id]=r,this.emitInput(),this.emitFile(r,n),r)}return!1},emitFilter:function(e,t){var n=!1;return this.$emit("input-filter",e,t,(function(){return n=!0})),n},emitFile:function(e,t){this.$emit("input-file",e,t),!(e&&e.fileObject&&e.active)||t&&t.active?e&&e.fileObject&&e.active||!t||!t.fileObject||!t.active||this.uploading--:(this.uploading++,this.$nextTick((function(){var t=this;setTimeout((function(){t.upload(e).then((function(){(e=t.get(e))&&e.fileObject&&t.update(e,{active:!1,success:!e.error})})).catch((function(n){t.update(e,{active:!1,success:!1,error:n.code||n.error||n.message||n})}))}),parseInt(50*Math.random()+50,10))}))),!this.active||Boolean(e)===Boolean(t)&&e.active===t.active||this.watchActive(!0)},emitInput:function(){this.$emit("input",this.files)},upload:function(e){var t=this.get(e);if(!t)return Promise.reject("not_exists");if(!t.fileObject)return Promise.reject("file_object");if(t.error)return Promise.reject(t.error);if(t.success)return Promise.resolve(t);var n=this.extensions;if(n&&(n.length||void 0===n.length)&&("object"===(void 0===n?"undefined":d(n))&&n instanceof RegExp||("string"==typeof n&&(n=n.split(",").map((function(e){return e.trim()})).filter((function(e){return e}))),n=new RegExp("\\.("+n.join("|").replace(/\./g,"\\.")+")$","i")),-1===t.name.search(n)))return Promise.reject("extension");if(this.size>0&&t.size>=0&&t.size>this.size)return Promise.reject("size");if(this.customAction)return this.customAction(t,this);if(this.features.html5){if(this.shouldUseChunkUpload(t))return this.uploadChunk(t);if(t.putAction)return this.uploadPut(t);if(t.postAction)return this.uploadHtml5(t)}return t.postAction?this.uploadHtml4(t):Promise.reject("No action configured")},shouldUseChunkUpload:function(e){return this.chunkEnabled&&!!this.chunkOptions.handler&&e.size>this.chunkOptions.minSize},uploadChunk:function(e){var t=this.chunkOptions.handler;return e.chunk=new t(e,this.chunkOptions),e.chunk.upload()},uploadPut:function(e){var t=[],n=void 0;for(var r in e.data)null!=(n=e.data[r])&&t.push(encodeURIComponent(r)+"="+encodeURIComponent(n));var i=t.length?(-1===e.putAction.indexOf("?")?"?":"&")+t.join("&"):"",o=new XMLHttpRequest;return o.open("PUT",e.putAction+i),this.uploadXhr(o,e,e.file)},uploadHtml5:function(e){var t=new window.FormData,n=void 0;for(var r in e.data)(n=e.data[r])&&"object"===(void 0===n?"undefined":d(n))&&"function"!=typeof n.toString?n instanceof File?t.append(r,n,n.name):t.append(r,JSON.stringify(n)):null!=n&&t.append(r,n);t.append(this.name,e.file,e.file.filename||e.name);var i=new XMLHttpRequest;return i.open("POST",e.postAction),this.uploadXhr(i,e,t)},uploadXhr:function(e,t,n){var r=this,i=t,o=0,a=0;e.upload.onprogress=function(e){if(i=r.get(i),e.lengthComputable&&i&&i.fileObject&&i.active){var t=Math.round(Date.now()/1e3);t!==o&&(o=t,i=r.update(i,{progress:(e.loaded/e.total*100).toFixed(2),speed:e.loaded-a}),a=e.loaded)}};var s=setInterval((function(){if(!(i=r.get(i))||!i.fileObject||i.success||i.error||!i.active){s&&(clearInterval(s),s=!1);try{e.abort(),e.timeout=1}catch(e){}}}),100);return new Promise((function(t,o){var a=void 0,c=function(n){if(!a){if(a=!0,s&&(clearInterval(s),s=!1),!(i=r.get(i)))return o("not_exists");if(!i.fileObject)return o("file_object");if(i.error)return o(i.error);if(!i.active)return o("abort");if(i.success)return t(i);var c={};switch(n.type){case"timeout":case"abort":c.error=n.type;break;case"error":e.status?e.status>=500?c.error="server":e.status>=400&&(c.error="denied"):c.error="network";break;default:e.status>=500?c.error="server":e.status>=400?c.error="denied":c.progress="100.00"}if(e.responseText){var l=e.getResponseHeader("Content-Type");l&&-1!==l.indexOf("/json")?c.response=JSON.parse(e.responseText):c.response=e.responseText}return(i=r.update(i,c)).error?o(i.error):t(i)}};for(var l in e.onload=c,e.onerror=c,e.onabort=c,e.ontimeout=c,i.timeout&&(e.timeout=i.timeout),i.headers)e.setRequestHeader(l,i.headers[l]);i=r.update(i,{xhr:e}),e.send(n)}))},uploadHtml4:function(e){var t=this,n=e,r=function(e){27===e.keyCode&&e.preventDefault()},i=document.createElement("iframe");i.id="upload-iframe-"+n.id,i.name="upload-iframe-"+n.id,i.src="about:blank",i.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var o=document.createElement("form");o.action=n.postAction,o.name="upload-form-"+n.id,o.setAttribute("method","POST"),o.setAttribute("target","upload-iframe-"+n.id),o.setAttribute("enctype","multipart/form-data");var a=void 0,s=void 0;for(var c in n.data)(a=n.data[c])&&"object"===(void 0===a?"undefined":d(a))&&"function"!=typeof a.toString&&(a=JSON.stringify(a)),null!=a&&((s=document.createElement("input")).type="hidden",s.name=c,s.value=a,o.appendChild(s));return o.appendChild(n.el),document.body.appendChild(i).appendChild(o),new Promise((function(e,a){setTimeout((function(){if(!(n=t.update(n,{iframe:i})))return a("not_exists");var s=setInterval((function(){(n=t.get(n))&&n.fileObject&&!n.success&&!n.error&&n.active||(s&&(clearInterval(s),s=!1),i.onabort({type:n?"abort":"not_exists"}))}),100),c=void 0,l=function(o){if(!c){if(c=!0,s&&(clearInterval(s),s=!1),document.body.removeEventListener("keydown",r),!(n=t.get(n)))return a("not_exists");if(!n.fileObject)return a("file_object");if(n.error)return a(n.error);if(!n.active)return a("abort");if(n.success)return e(n);var l=function(){var e=void 0;try{i.contentWindow&&(e=i.contentWindow.document)}catch(e){}if(!e)try{e=i.contentDocument?i.contentDocument:i.document}catch(t){e=i.document}return e&&e.body?e.body.innerHTML:null}(),u={};switch(o.type){case"abort":u.error="abort";break;case"error":n.error?u.error=n.error:u.error=null===l?"network":"denied";break;default:n.error?u.error=n.error:null===u?u.error="network":u.progress="100.00"}if(null!==l){if(l&&"{"===l.substr(0,1)&&"}"===l.substr(l.length-1,1))try{l=JSON.parse(l)}catch(e){}u.response=l}return(n=t.update(n,u)).error?a(n.error):e(n)}};i.onload=l,i.onerror=l,i.onabort=l,document.body.addEventListener("keydown",r),o.submit()}),50)})).then((function(e){return i.parentNode&&i.parentNode.removeChild(i),e})).catch((function(e){return i.parentNode&&i.parentNode.removeChild(i),e}))},watchActive:function(e){for(var t=void 0,n=0;t=this.files[n];)if(n++,t.fileObject)if(e&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;t.active||t.error||t.success||this.update(t,{active:!0})}else t.active&&this.update(t,{active:!1});0===this.uploading&&(this.active=!1)},watchDrop:function(e){var t=e;if(this.features.drop){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDragenter,!1),document.removeEventListener("dragleave",this.onDragleave,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch(e){}t?"string"==typeof t?t=document.querySelector(t)||this.$root.$el.querySelector(t):!0===t&&(t=this.$parent.$el):t=!1,this.dropElement=t,this.dropElement&&(document.addEventListener("dragenter",this.onDragenter,!1),document.addEventListener("dragleave",this.onDragleave,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},onDragenter:function(e){if(e.preventDefault(),!this.dropActive&&e.dataTransfer){var t=e.dataTransfer;t.files&&t.files.length?this.dropActive=!0:t.types?(t.types.indexOf&&-1!==t.types.indexOf("Files")||t.types.contains&&t.types.contains("Files"))&&(this.dropActive=!0):this.dropActive=!0}},onDragleave:function(e){e.preventDefault(),this.dropActive&&("HTML"===e.target.nodeName||e.target===e.explicitOriginalTarget||!e.fromElement&&(e.clientX<=0||e.clientY<=0||e.clientX>=window.innerWidth||e.clientY>=window.innerHeight))&&(this.dropActive=!1)},onDragover:function(e){e.preventDefault()},onDocumentDrop:function(){this.dropActive=!1},onDrop:function(e){e.preventDefault(),this.addDataTransfer(e.dataTransfer)}}},m=function(e,t,n,r,i,o,a,s){var c=("function"==typeof n?n.options:n)||{};c.render||(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,i&&(c.functional=!0)),c._scopeId=r;var l=void 0;if(t&&(l=function(e){t.call(this,a(e))}),void 0!==l)if(c.functional){var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return c}({render:function(){var e=this.$createElement,t=this._self._c||e;return t("span",{class:this.className},[this._t("default"),this._v(" "),t("label",{attrs:{for:this.inputId||this.name}}),this._v(" "),t("input-file")],2)},staticRenderFns:[]},(function(e){e&&e("data-v-595958af_0",{source:"\n.file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block\n}\n.file-uploads.file-uploads-html4 input,.file-uploads.file-uploads-html5 label{background:#fff;opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%\n}\n.file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input{background:rgba(255,255,255,0);overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0\n}",map:void 0,media:void 0})}),p,void 0,!1,0,(function e(){var t=document.head||document.getElementsByTagName("head")[0],n=e.styles||(e.styles={}),r="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(!document.querySelector('style[data-vue-ssr-id~="'+e+'"]')){var o=r?i.media||"default":e,a=n[o]||(n[o]={ids:[],parts:[],element:void 0});if(!a.ids.includes(e)){var s=i.source,c=a.ids.length;if(a.ids.push(e),i.map&&(s+="\n/*# sourceURL="+i.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i.map))))+" */"),r&&(a.element=a.element||document.querySelector("style[data-group="+o+"]")),!a.element){var l=a.element=document.createElement("style");l.type="text/css",i.media&&l.setAttribute("media",i.media),r&&(l.setAttribute("data-group",o),l.setAttribute("data-next-index","0")),t.appendChild(l)}if(r&&(c=parseInt(a.element.getAttribute("data-next-index")),a.element.setAttribute("data-next-index",c+1)),a.element.styleSheet)a.parts.push(s),a.element.styleSheet.cssText=a.parts.filter(Boolean).join("\n");else{var u=document.createTextNode(s),d=a.element.childNodes;d[c]&&a.element.removeChild(d[c]),d.length?a.element.insertBefore(u,d[c]):a.element.appendChild(u)}}}}})),v=Object.freeze({default:m});return v&&m||v}()},,,,,,,,,,,,,,,,function(e,t,n){var r=n(3),i=n(96);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(4)(!1)).push([e.i,":root{--md-theme-default-primary:#448aff;--md-theme-default-accent:#ff5252;--md-theme-default-theme:light}.md-theme-default :not(input):not(textarea)::selection{background-color:#ff5252;background-color:var(--md-theme-default-accent-on-background,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-theme-default a:not(.md-button){color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-theme-default a:not(.md-button):hover{color:rgba(68,138,255,.8);color:var(--md-theme-default-primary-on-background,rgba(68,138,255,.8))}.md-theme-default a:not(.md-button).md-accent{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-theme-default a:not(.md-button).md-accent:hover{color:rgba(255,82,82,.8);color:var(--md-theme-default-accent-on-background,rgba(255,82,82,.8))}html.md-theme-default{background-color:#fafafa;background-color:var(--md-theme-default-background-variant,#fafafa);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-theme-default .md-caption,.md-theme-default .md-display-1,.md-theme-default .md-display-2,.md-theme-default .md-display-3,.md-theme-default .md-display-4{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background-variant,rgba(0,0,0,.54))}.md-scrollbar.md-theme-default::-webkit-scrollbar-corner,.md-scrollbar.md-theme-default::-webkit-scrollbar-track{background:#e1e1e1;background:var(--md-theme-default-scrollbar-background-on-background-variant,#e1e1e1)}.md-scrollbar.md-theme-default::-webkit-scrollbar-thumb{background:#757575;background:var(--md-theme-default-scrollbar-on-background-variant,#757575)}.md-app:not(.md-overlap).md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-list.md-theme-default .md-autocomplete-items .md-highlight-text-match{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-list.md-theme-default .md-autocomplete-loading{background-color:hsla(0,0%,100%,.54);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.54))}.md-autocomplete.md-theme-default.md-autocomplete-box{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-autocomplete.md-theme-default.md-autocomplete-box.md-focused label{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box{background-color:hsla(0,0%,100%,.12);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.12))}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box input,.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box label{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff);-webkit-text-fill-color:#fff;-webkit-text-fill-color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused input,.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused label{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38));-webkit-text-fill-color:rgba(0,0,0,.38);-webkit-text-fill-color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused svg{fill:rgba(0,0,0,.38);fill:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-autocomplete-box-content.md-theme-default:after{background-color:#fff;background-color:var(--md-theme-default-background,#fff);border-bottom-color:rgba(0,0,0,.12);border-bottom-color:var(--md-theme-default-divider,rgba(0,0,0,.12))}.md-avatar.md-theme-default.md-avatar-icon{background-color:rgba(0,0,0,.38);background-color:var(--md-theme-default-icon-disabled,rgba(0,0,0,.38));color:#fff;color:var(--md-theme-default-text-primary-on-icon-disabled,#fff)}.md-avatar.md-theme-default.md-avatar-icon .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-icon-disabled,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-icon-disabled,#fff)}.md-avatar.md-theme-default.md-primary,.md-avatar.md-theme-default.md-primary.md-avatar-icon{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-avatar.md-theme-default.md-primary.md-avatar-icon,.md-avatar.md-theme-default.md-primary.md-avatar-icon .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-avatar.md-theme-default.md-primary.md-avatar-icon .md-icon{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-avatar.md-theme-default.md-accent,.md-avatar.md-theme-default.md-accent.md-avatar-icon{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-avatar.md-theme-default.md-accent.md-avatar-icon,.md-avatar.md-theme-default.md-accent.md-avatar-icon .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-avatar.md-theme-default.md-accent.md-avatar-icon .md-icon{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-type-fixed{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-bottom-bar.md-theme-default.md-type-fixed .md-bottom-bar-item.md-active,.md-bottom-bar.md-theme-default.md-type-fixed .md-bottom-bar-item.md-active .md-icon{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-bottom-bar.md-theme-default.md-type-fixed .md-bottom-bar-item.md-active .md-icon svg{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-bottom-bar.md-theme-default.md-type-shift{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-bottom-bar.md-theme-default.md-type-shift>.md-ripple .md-ripple-wave{background-color:#116aff;background-color:var(--md-theme-default-primary-on-primary,#116aff)}.md-bottom-bar.md-theme-default.md-type-shift .md-icon{color:#fff;color:var(--md-theme-default-icon-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-type-shift .md-icon svg{fill:#fff;fill:var(--md-theme-default-icon-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-type-shift .md-bottom-bar-item,.md-bottom-bar.md-theme-default.md-type-shift .md-bottom-bar-item .md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-type-shift .md-bottom-bar-item .md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-fixed{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-fixed .md-bottom-bar-item.md-active,.md-bottom-bar.md-theme-default.md-accent.md-type-fixed .md-bottom-bar-item.md-active .md-icon{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-bottom-bar.md-theme-default.md-accent.md-type-fixed .md-bottom-bar-item.md-active .md-icon svg{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-bottom-bar.md-theme-default.md-accent.md-type-shift>.md-ripple .md-ripple-wave{background-color:#ff1f1f;background-color:var(--md-theme-default-accent-on-accent,#ff1f1f)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-icon{color:#fff;color:var(--md-theme-default-icon-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-icon svg{fill:#fff;fill:var(--md-theme-default-icon-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-bottom-bar-item,.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-bottom-bar-item .md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-bottom-bar-item .md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-button.md-theme-default.md-primary,.md-button.md-theme-default.md-primary .md-icon-font{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-button.md-theme-default.md-primary .md-icon-image{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-button.md-theme-default.md-accent,.md-button.md-theme-default.md-accent .md-icon-font{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-button.md-theme-default.md-accent .md-icon-image{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-button.md-theme-default.md-raised[disabled]{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-disabled-background-on-background,rgba(0,0,0,.12));color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled,rgba(0,0,0,.26))}.md-button.md-theme-default.md-raised:not([disabled]){background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-button.md-theme-default.md-raised:not([disabled]).md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-button.md-theme-default.md-raised:not([disabled]).md-primary,.md-button.md-theme-default.md-raised:not([disabled]).md-primary .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default.md-raised:not([disabled]).md-primary .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default.md-raised:not([disabled]).md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-button.md-theme-default.md-raised:not([disabled]).md-accent,.md-button.md-theme-default.md-raised:not([disabled]).md-accent .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-raised:not([disabled]).md-accent .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-fab[disabled]{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-disabled-background-on-background,rgba(0,0,0,.12))}.md-button.md-theme-default.md-fab:not([disabled]){background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-button.md-theme-default.md-fab:not([disabled]) .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-fab:not([disabled]) .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-fab:not([disabled]).md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-button.md-theme-default.md-fab:not([disabled]).md-primary .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default.md-fab:not([disabled]).md-primary .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default[disabled]{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-button.md-theme-default[disabled] .md-icon-font{color:rgba(0,0,0,.38);color:var(--md-theme-default-icon-disabled-on-background,rgba(0,0,0,.38))}.md-button.md-theme-default[disabled] .md-icon-image{fill:rgba(0,0,0,.38);fill:var(--md-theme-default-icon-disabled-on-background,rgba(0,0,0,.38))}.md-card.md-theme-default{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-card.md-theme-default,.md-card.md-theme-default .md-card-expand .md-card-actions{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-card.md-theme-default .md-card-actions .md-button:not(.md-primary):not(.md-accent),.md-card.md-theme-default .md-card-header .md-button:not(.md-primary):not(.md-accent){color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-card.md-theme-default .md-card-actions .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon,.md-card.md-theme-default .md-card-header .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.54));fill:rgba(0,0,0,.54);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.54))}.md-card.md-theme-default>.md-card-area:after{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-card.md-theme-default.md-primary{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-card.md-theme-default.md-primary,.md-card.md-theme-default.md-primary .md-card-expand .md-card-actions{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-card.md-theme-default.md-primary .md-card-actions .md-button:not(.md-primary):not(.md-accent),.md-card.md-theme-default.md-primary .md-card-header .md-button:not(.md-primary):not(.md-accent){color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-card.md-theme-default.md-primary .md-card-actions .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon,.md-card.md-theme-default.md-primary .md-card-header .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon{color:hsla(0,0%,100%,.54);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.54));fill:hsla(0,0%,100%,.54);fill:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.54))}.md-card.md-theme-default.md-primary>.md-card-area:after{background-color:hsla(0,0%,100%,.12);background-color:var(--md-theme-default-divider-on-primary,hsla(0,0%,100%,.12))}.md-card.md-theme-default.md-accent{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-card.md-theme-default.md-accent,.md-card.md-theme-default.md-accent .md-card-expand .md-card-actions{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-card.md-theme-default.md-accent .md-card-actions .md-button:not(.md-primary):not(.md-accent),.md-card.md-theme-default.md-accent .md-card-header .md-button:not(.md-primary):not(.md-accent){color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-card.md-theme-default.md-accent .md-card-actions .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon,.md-card.md-theme-default.md-accent .md-card-header .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon{color:hsla(0,0%,100%,.54);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.54));fill:hsla(0,0%,100%,.54);fill:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.54))}.md-card.md-theme-default.md-accent>.md-card-area:after{background-color:hsla(0,0%,100%,.12);background-color:var(--md-theme-default-divider-on-accent,hsla(0,0%,100%,.12))}.md-checkbox.md-theme-default.md-checked .md-checkbox-container{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);border-color:#ff5252;border-color:var(--md-theme-default-accent,#ff5252)}.md-checkbox.md-theme-default.md-checked .md-checkbox-container:after{border-color:#fff;border-color:var(--md-theme-default-background,#fff)}.md-checkbox.md-theme-default.md-checked .md-ripple{color:#ff5252;color:var(--md-theme-default-accent,#ff5252)}.md-checkbox.md-theme-default.md-indeterminate .md-checkbox-container{background-color:hsla(0,0%,100%,.3)}.md-checkbox.md-theme-default.md-checked.md-primary .md-checkbox-container{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-checkbox.md-theme-default.md-checked.md-primary .md-ripple{color:#448aff;color:var(--md-theme-default-primary,#448aff)}.md-checkbox.md-theme-default.md-indeterminate .md-checkbox-container{border-color:rgba(0,0,0,.54);background-color:transparent}.md-checkbox.md-theme-default.md-indeterminate .md-checkbox-container:after{border-color:rgba(0,0,0,.54)}.md-checkbox.md-theme-default.md-indeterminate .md-ripple{color:rgba(0,0,0,.54)}.md-checkbox.md-theme-default .md-checkbox-container{border-color:rgba(0,0,0,.54)}.md-checkbox.md-theme-default.md-disabled .md-checkbox-container{border-color:rgba(0,0,0,.26)}.md-checkbox.md-theme-default.md-disabled.md-checked .md-checkbox-container{border-color:rgba(0,0,0,.26);background-color:rgba(0,0,0,.26)}.md-chip.md-theme-default{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-highlight,rgba(0,0,0,.12));color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary,rgba(0,0,0,.87))}.md-chip.md-theme-default .md-icon.md-icon-image svg{color:#fff;color:var(--md-theme-default-text-primary-on-text-primary,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-text-primary,#fff)}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover{background-color:rgba(0,0,0,.54);background-color:var(--md-theme-default-icon,rgba(0,0,0,.54));color:#fff;color:var(--md-theme-default-text-primary-on-icon,#fff)}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover .md-icon,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover .md-icon{fill:#fff;fill:var(--md-theme-default-text-primary-on-icon,#fff)}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover .md-input-action{background-color:hsla(0,0%,100%,.87);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.87));color:rgba(0,0,0,.54);color:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover .md-input-action .md-icon svg,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover .md-input-action .md-icon svg{fill:rgba(0,0,0,.54);fill:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54));color:rgba(0,0,0,.54);color:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-chip.md-theme-default.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-chip.md-theme-default.md-primary .md-input-action{color:#fff;color:var(--md-theme-default-icon-on-disabled,#fff);background-color:rgba(0,0,0,.26);background-color:var(--md-theme-default-disabled,rgba(0,0,0,.26))}.md-chip.md-theme-default.md-primary.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-primary.md-deletable:not(.md-disabled):hover{color:#fff;color:var(--md-theme-default-text-primary-on-icon,#fff);background-color:rgba(0,0,0,.54);background-color:var(--md-theme-default-icon,rgba(0,0,0,.54))}.md-chip.md-theme-default.md-primary.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-primary.md-deletable:not(.md-disabled):hover .md-input-action{background-color:hsla(0,0%,100%,.87);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.87))}.md-chip.md-theme-default.md-accent,.md-chip.md-theme-default.md-duplicated{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-chip.md-theme-default.md-accent .md-input-action,.md-chip.md-theme-default.md-duplicated .md-input-action{color:#fff;color:var(--md-theme-default-icon-on-disabled,#fff);background-color:rgba(0,0,0,.26);background-color:var(--md-theme-default-disabled,rgba(0,0,0,.26))}.md-chip.md-theme-default.md-accent.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-accent.md-deletable:not(.md-disabled):hover,.md-chip.md-theme-default.md-duplicated.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-duplicated.md-deletable:not(.md-disabled):hover{background-color:rgba(0,0,0,.54);background-color:var(--md-theme-default-icon,rgba(0,0,0,.54));color:#fff;color:var(--md-theme-default-text-primary-on-icon,#fff)}.md-chip.md-theme-default.md-accent.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-accent.md-deletable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-duplicated.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-duplicated.md-deletable:not(.md-disabled):hover .md-input-action{background-color:hsla(0,0%,100%,.87);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.87))}.md-chip.md-theme-default.md-disabled{background-color:rgba(0,0,0,.1);background-color:var(--md-theme-default-highlight,rgba(0,0,0,.1));color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent,rgba(0,0,0,.54))}.md-chips.md-theme-default .md-clear{background-color:rgba(0,0,0,.2)}.md-content.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-content.md-theme-default.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-content.md-theme-default.md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-app .md-content.md-theme-default{border-left-color:rgba(0,0,0,.12);border-left-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12));border-right-color:rgba(0,0,0,.12);border-right-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-datepicker-dialog.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-datepicker-dialog.md-theme-default .md-datepicker-header{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-datepicker-dialog.md-theme-default .md-datepicker-body-footer,.md-datepicker-dialog.md-theme-default .md-datepicker-body-header:after,.md-datepicker-dialog.md-theme-default .md-datepicker-body-header:before{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-datepicker-dialog.md-theme-default .md-datepicker-body-footer{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-datepicker-dialog.md-theme-default .md-datepicker-week{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-datepicker-dialog.md-theme-default .md-datepicker-disabled{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-datepicker-dialog.md-theme-default .md-datepicker-today{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-datepicker-dialog.md-theme-default .md-datepicker-day-button:hover,.md-datepicker-dialog.md-theme-default .md-datepicker-month-button:hover,.md-datepicker-dialog.md-theme-default .md-datepicker-year-button:hover{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider,rgba(0,0,0,.12))}.md-datepicker-dialog.md-theme-default .md-datepicker-day-button.md-datepicker-selected{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-datepicker-dialog.md-theme-default .md-datepicker-month-button.md-datepicker-selected,.md-datepicker-dialog.md-theme-default .md-datepicker-year-button.md-datepicker-selected{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-datepicker-dialog.md-theme-default .md-datepicker-year-selector{border-bottom-color:rgba(0,0,0,.12);border-bottom-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-dialog.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-divider.md-theme-default{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider,rgba(0,0,0,.12))}.md-drawer.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-drawer.md-theme-default.md-persistent-mini.md-left{border-right-color:rgba(0,0,0,.12);border-right-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-drawer.md-theme-default.md-persistent-mini.md-right{border-left-color:rgba(0,0,0,.12);border-left-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-empty-state.md-theme-default .md-empty-state-icon.md-icon-image svg{fill:rgba(0,0,0,.26);fill:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-empty-state.md-theme-default .md-empty-state-icon.md-icon-font{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-empty-state.md-theme-default.md-rounded{background-color:rgba(0,0,0,.06);background-color:var(--md-theme-default-disabled,rgba(0,0,0,.06))}.md-empty-state.md-theme-default.md-primary .md-empty-state-icon.md-icon-image svg{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-empty-state.md-theme-default.md-primary .md-empty-state-icon.md-icon-font{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-empty-state.md-theme-default.md-accent .md-empty-state-icon.md-icon-image svg{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-empty-state.md-theme-default.md-accent .md-empty-state-icon.md-icon-font{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-field.md-theme-default:after{background-color:rgba(0,0,0,.42)}.md-field.md-theme-default:before{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-field.md-theme-default .md-count,.md-field.md-theme-default .md-helper-text,.md-field.md-theme-default .md-prefix,.md-field.md-theme-default .md-suffix,.md-field.md-theme-default label{color:rgba(0,0,0,.54)}.md-field.md-theme-default .md-input::-webkit-input-placeholder,.md-field.md-theme-default .md-textarea::-webkit-input-placeholder{color:rgba(0,0,0,.54)}.md-field.md-theme-default.md-focused .md-input,.md-field.md-theme-default.md-focused .md-textarea,.md-field.md-theme-default.md-has-value .md-input,.md-field.md-theme-default.md-has-value .md-textarea{-webkit-text-fill-color:rgba(0,0,0,.87)}.md-field.md-theme-default.md-has-textarea:not(.md-autogrow):after{border-color:rgba(0,0,0,.42)}.md-field.md-theme-default.md-has-textarea:not(.md-autogrow):before{border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-field.md-theme-default.md-disabled:after{background-image:linear-gradient(90deg,rgba(0,0,0,.38),rgba(0,0,0,.38) 33%,transparent 0)}.md-field.md-theme-default.md-disabled .md-input,.md-field.md-theme-default.md-disabled .md-textarea,.md-field.md-theme-default.md-disabled label{color:rgba(0,0,0,.42)}.md-field.md-theme-default>.md-icon:after{background-color:#fafafa;background-color:var(--md-theme-default-background-variant,#fafafa)}.md-field.md-theme-default.md-invalid:after{background-color:#ff1744;background-color:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-invalid.md-has-textarea:not(.md-autogrow):before{border-color:#ff1744;border-color:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-invalid .md-error,.md-field.md-theme-default.md-invalid label{color:#ff1744;color:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-invalid .md-date-icon,.md-field.md-theme-default.md-invalid .md-date-icon svg{color:#ff1744;color:var(--md-theme-default-fieldvariant,#ff1744);fill:#ff1744;fill:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-focused .md-input,.md-field.md-theme-default.md-focused .md-textarea,.md-field.md-theme-default.md-highlight .md-input,.md-field.md-theme-default.md-highlight .md-textarea{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-field.md-theme-default.md-focused>.md-icon,.md-field.md-theme-default.md-highlight>.md-icon{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff);fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-field.md-theme-default.md-focused label{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-field.md-theme-default.md-disabled .md-icon svg{fill:rgba(0,0,0,.26);fill:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-icon.md-theme-default.md-icon-image svg{fill:rgba(0,0,0,.54);fill:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-icon.md-theme-default.md-icon-image svg.md-primary{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-icon.md-theme-default.md-icon-image svg.md-accent{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-icon.md-theme-default.md-icon-font{color:rgba(0,0,0,.54);color:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-icon.md-theme-default.md-icon-font.md-primary{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-icon.md-theme-default.md-icon-font.md-accent{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-list.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-list.md-theme-default.md-double-line .md-list-item-text :nth-child(2),.md-list.md-theme-default.md-triple-line .md-list-item-text :nth-child(3){color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-list.md-theme-default .md-highlight .md-list-item-container{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-list.md-theme-default .md-list-item-container{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-list.md-theme-default .md-list-item-container:not(.md-list-item-default):not(.md-list-item-expand):not([disabled]):hover{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12));color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-list.md-theme-default [disabled]{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-list.md-theme-default .md-selected .md-list-item-content,.md-list.md-theme-default .router-link-active .md-list-item-content{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-list.md-theme-default .md-list-item-expand.md-active{border-color:rgba(0,0,0,.12);border-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-list.md-theme-default .md-list-item-expand:not(.md-list-item-default):not([disabled])>.md-list-item-content:hover{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12));color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-menu-item.md-theme-default.md-primary .md-list-item-button,.md-menu-item.md-theme-default.md-primary .md-list-item-link,.md-menu-item.md-theme-default.md-primary .md-list-item-router{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-menu-item.md-theme-default.md-accent .md-list-item-button,.md-menu-item.md-theme-default.md-accent .md-list-item-link,.md-menu-item.md-theme-default.md-accent .md-list-item-router{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-progress-bar.md-theme-default.md-indeterminate,.md-progress-bar.md-theme-default.md-query{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-indeterminate .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-indeterminate .md-progress-bar-track:after,.md-progress-bar.md-theme-default.md-query .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-query .md-progress-bar-track:after{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-progress-bar.md-theme-default.md-indeterminate.md-accent,.md-progress-bar.md-theme-default.md-query.md-accent{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-bar.md-theme-default.md-indeterminate.md-accent .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-indeterminate.md-accent .md-progress-bar-track:after,.md-progress-bar.md-theme-default.md-query.md-accent .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-query.md-accent .md-progress-bar-track:after{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-progress-bar.md-theme-default.md-determinate{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-determinate .md-progress-bar-fill{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-progress-bar.md-theme-default.md-determinate.md-accent{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-bar.md-theme-default.md-determinate.md-accent .md-progress-bar-fill{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-progress-bar.md-theme-default.md-buffer .md-progress-bar-fill{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-progress-bar.md-theme-default.md-buffer .md-progress-bar-track{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-buffer .md-progress-bar-buffer{border-color:rgba(68,138,255,.38);border-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-buffer.md-accent .md-progress-bar-fill{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-progress-bar.md-theme-default.md-buffer.md-accent .md-progress-bar-track{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-bar.md-theme-default.md-buffer.md-accent .md-progress-bar-buffer{border-color:rgba(255,82,82,.38);border-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-spinner.md-theme-default .md-progress-spinner-circle{stroke:#448aff;stroke:var(--md-theme-default-primary,#448aff)}.md-progress-spinner.md-theme-default.md-accent .md-progress-spinner-circle{stroke:#ff5252;stroke:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked .md-radio-container{border-color:#ff5252;border-color:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked .md-radio-container:after{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked .md-ripple{color:#ff5252;color:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked.md-primary .md-radio-container{border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-radio.md-theme-default.md-checked.md-primary .md-radio-container:after{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-radio.md-theme-default.md-checked.md-primary .md-ripple{color:#448aff;color:var(--md-theme-default-primary,#448aff)}.md-radio.md-theme-default .md-radio-container{border-color:rgba(0,0,0,.54)}.md-radio.md-theme-default.md-disabled.md-checked .md-radio-container,.md-radio.md-theme-default.md-disabled .md-radio-container{border-color:rgba(0,0,0,.26)}.md-radio.md-theme-default.md-disabled.md-checked .md-radio-container:after{background-color:rgba(0,0,0,.26)}.md-snackbar.md-theme-default{color:#fff;color:var(--md-theme-default-text-primary-on-text-primary,#fff);background-color:#323232}.md-steppers.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-steppers.md-theme-default .md-stepper-icon:after,.md-steppers.md-theme-default .md-stepper-icon:before,.md-steppers.md-theme-default .md-stepper-number:after,.md-steppers.md-theme-default .md-stepper-number:before,.md-steppers.md-theme-default .md-stepper:after,.md-steppers.md-theme-default .md-stepper:before{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-steppers.md-theme-default .md-stepper-number{background-color:rgba(0,0,0,.38);background-color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38));color:#fff;color:var(--md-theme-default-text-primary-on-text-hint,#fff)}.md-steppers.md-theme-default .md-stepper-number svg{color:#fff;color:var(--md-theme-default-text-primary-on-text-hint,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-text-hint,#fff)}.md-steppers.md-theme-default .md-stepper-header .md-button-content{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-steppers.md-theme-default .md-stepper-header .md-button-content:after,.md-steppers.md-theme-default .md-stepper-header .md-button-content:before{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-steppers.md-theme-default .md-stepper-header.md-active .md-button-content,.md-steppers.md-theme-default .md-stepper-header.md-done .md-button-content{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-steppers.md-theme-default .md-stepper-header.md-active .md-stepper-number,.md-steppers.md-theme-default .md-stepper-header.md-done .md-stepper-number{background-color:#448aff;background-color:var(--md-theme-default-primary-on-background,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-steppers.md-theme-default .md-stepper-header.md-active .md-stepper-number svg,.md-steppers.md-theme-default .md-stepper-header.md-done .md-stepper-number svg{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-steppers.md-theme-default .md-stepper-header.md-error .md-button-content{color:#ff1744;color:var(--md-theme-default-steppervariant,#ff1744)}.md-steppers.md-theme-default .md-stepper-header.md-error .md-icon svg{color:#ff1744;color:var(--md-theme-default-steppervariant,#ff1744);fill:#ff1744;fill:var(--md-theme-default-steppervariant,#ff1744)}.md-subheader.md-theme-default{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-subheader.md-theme-default.md-primary{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-switch.md-theme-default.md-checked .md-switch-container{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-switch.md-theme-default.md-checked .md-switch-thumb{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-switch.md-theme-default.md-checked .md-ripple{color:#ff5252;color:var(--md-theme-default-accent,#ff5252)}.md-switch.md-theme-default.md-checked.md-primary .md-switch-container{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-switch.md-theme-default.md-checked.md-primary .md-switch-thumb{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-switch.md-theme-default.md-checked.md-primary .md-ripple{color:#448aff;color:var(--md-theme-default-primary,#448aff)}.md-switch.md-theme-default .md-switch-container{background-color:rgba(0,0,0,.38)}.md-switch.md-theme-default .md-switch-thumb{background-color:#f5f5f5;background-color:var(--md-theme-default-switchvariant,#f5f5f5)}.md-switch.md-theme-default.md-disabled .md-switch-container{background-color:rgba(0,0,0,.12)}.md-switch.md-theme-default.md-disabled .md-switch-thumb{background-color:#bdbdbd;background-color:var(--md-theme-default-switchvariant,#bdbdbd)}.md-table.md-theme-default .md-table-alternate-header,.md-table.md-theme-default .md-table-content{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-table.md-theme-default .md-table-alternate-header .md-table-toolbar{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87));background-color:rgba(255,82,82,.2);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.2))}.md-table.md-theme-default .md-table-row:hover:not(.md-header-row) .md-table-cell{background-color:rgba(0,0,0,.08);background-color:var(--md-theme-default-highlight-on-background,rgba(0,0,0,.08))}.md-table.md-theme-default .md-table-row.md-selected,.md-table.md-theme-default .md-table-row.md-selected-single{background-color:#f5f5f5;background-color:var(--md-theme-default-rowvariant,#f5f5f5)}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary,.md-table.md-theme-default .md-table-row.md-selected.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary-on-background,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary .md-ripple,.md-table.md-theme-default .md-table-row.md-selected.md-primary .md-ripple{color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary .md-checkbox-container,.md-table.md-theme-default .md-table-row.md-selected.md-primary .md-checkbox-container{background-color:#fff;border-color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary .md-checkbox-container:after,.md-table.md-theme-default .md-table-row.md-selected.md-primary .md-checkbox-container:after{border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent,.md-table.md-theme-default .md-table-row.md-selected.md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent-on-background,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent .md-ripple,.md-table.md-theme-default .md-table-row.md-selected.md-accent .md-ripple{color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent .md-checkbox-container,.md-table.md-theme-default .md-table-row.md-selected.md-accent .md-checkbox-container{background-color:#fff;border-color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent .md-checkbox-container:after,.md-table.md-theme-default .md-table-row.md-selected.md-accent .md-checkbox-container:after{border-color:#ff5252;border-color:var(--md-theme-default-accent,#ff5252)}.md-table.md-theme-default .md-table-row td{border-top-color:rgba(0,0,0,.12);border-top-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-table.md-theme-default .md-table-head{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-table.md-theme-default .md-table-fixed-header-active{border-bottom-color:rgba(0,0,0,.12);border-bottom-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-table.md-theme-default .md-sortable.md-sorted,.md-table.md-theme-default .md-sortable:hover{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-table.md-theme-default .md-sortable.md-sorted svg,.md-table.md-theme-default .md-sortable:hover svg{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87));fill:rgba(0,0,0,.87);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-table.md-theme-default .md-table-pagination{border-top-color:rgba(0,0,0,.12);border-top-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-tabs.md-theme-default .md-tabs-navigation{background-color:#fff;background-color:var(--md-theme-default-background-on-background,#fff)}.md-tabs.md-theme-default .md-tabs-navigation .md-button{color:rgba(0,0,0,.7);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.7))}.md-tabs.md-theme-default .md-tabs-navigation .md-button[disabled]{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.38))}.md-tabs.md-theme-default .md-tabs-navigation .md-button .md-icon{color:rgba(0,0,0,.7);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.7))}.md-tabs.md-theme-default .md-tabs-navigation .md-button .md-icon svg{fill:rgba(0,0,0,.7);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.7))}.md-tabs.md-theme-default .md-tabs-navigation .md-button.md-active,.md-tabs.md-theme-default .md-tabs-navigation .md-button.md-active .md-icon{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-tabs.md-theme-default .md-tabs-navigation .md-button.md-active .md-icon svg{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-tabs.md-theme-default.md-primary .md-tabs-navigation,.md-tabs.md-theme-default .md-tabs-indicator{background-color:#448aff;background-color:var(--md-theme-default-primary-on-background,#448aff)}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button[disabled]{color:hsla(0,0%,100%,.38);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.38))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button .md-icon{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button .md-icon svg{fill:hsla(0,0%,100%,.7);fill:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button.md-active,.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button.md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button.md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-tabs.md-theme-default.md-primary .md-tabs-indicator{background-color:#fff;background-color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-tabs.md-theme-default.md-accent .md-tabs-navigation{background-color:#ff5252;background-color:var(--md-theme-default-accent-on-background,#ff5252)}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button[disabled]{color:hsla(0,0%,100%,.38);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.38))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button .md-icon{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button .md-icon svg{fill:hsla(0,0%,100%,.7);fill:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button.md-active,.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button.md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button.md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-tabs.md-theme-default.md-accent .md-tabs-indicator{background-color:#fff;background-color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default{background-color:#f5f5f5;background-color:var(--md-theme-default-toolbarvariant,#f5f5f5)}.md-toolbar.md-theme-default,.md-toolbar.md-theme-default .md-icon{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-toolbar.md-theme-default .md-icon svg{fill:rgba(0,0,0,.87);fill:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-toolbar.md-theme-default .md-display-1,.md-toolbar.md-theme-default .md-display-2,.md-toolbar.md-theme-default .md-title{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-toolbar.md-theme-default.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-toolbar.md-theme-default.md-primary,.md-toolbar.md-theme-default.md-primary .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar.md-theme-default.md-primary .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar.md-theme-default.md-primary .md-button:not([disabled]):not(.md-raised),.md-toolbar.md-theme-default.md-primary .md-display-1,.md-toolbar.md-theme-default.md-primary .md-display-2,.md-toolbar.md-theme-default.md-primary .md-title{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar.md-theme-default.md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-toolbar.md-theme-default.md-accent,.md-toolbar.md-theme-default.md-accent .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default.md-accent .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default.md-accent .md-button:not([disabled]):not(.md-raised),.md-toolbar.md-theme-default.md-accent .md-display-1,.md-toolbar.md-theme-default.md-accent .md-display-2,.md-toolbar.md-theme-default.md-accent .md-title{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default.md-transparent{background-color:transparent}.md-toolbar.md-theme-default.md-transparent,.md-toolbar.md-theme-default.md-transparent .md-icon{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-toolbar.md-theme-default.md-transparent .md-icon svg{fill:rgba(0,0,0,.87);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-toolbar.md-theme-default.md-transparent .md-display-1,.md-toolbar.md-theme-default.md-transparent .md-display-2,.md-toolbar.md-theme-default.md-transparent .md-title{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-tooltip.md-theme-default{color:#fff;color:var(--md-theme-default-text-primary-on-tooltip,#fff);background-color:rgba(97,97,97,.9);background-color:var(--md-theme-default-tooltip-on-background,rgba(97,97,97,.9))}.md-badge.md-theme-default{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff);background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-badge.md-theme-default.md-primary{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff);background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}",""]),e.exports=t},function(e,t,n){!function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e){var n=this,r=!1;return t(this).one(l.TRANSITION_END,(function(){r=!0})),setTimeout((function(){r||l.triggerTransitionEnd(n)}),e),this}t=t&&t.hasOwnProperty("default")?t.default:t,n=n&&n.hasOwnProperty("default")?n.default:n;var l={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var n=t(e).css("transition-duration"),r=t(e).css("transition-delay"),i=parseFloat(n),o=parseFloat(r);return i||o?(n=n.split(",")[0],r=r.split(",")[0],1e3*(parseFloat(n)+parseFloat(r))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){t(e).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r],o=t[r],a=o&&l.isElement(o)?"element":(s=o,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(i).test(a))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+i+'".')}var s},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?l.findShadowRoot(e.parentNode):null},jQueryDetection:function(){if(void 0===t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};l.jQueryDetection(),t.fn.emulateTransitionEnd=c,t.event.special[l.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var u="alert",d=t.fn[u],f={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},h="alert",p="fade",m="show",v=function(){function e(e){this._element=e}var n=e.prototype;return n.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},n.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(e){var n=l.getSelectorFromElement(e),r=!1;return n&&(r=document.querySelector(n)),r||(r=t(e).closest("."+h)[0]),r},n._triggerCloseEvent=function(e){var n=t.Event(f.CLOSE);return t(e).trigger(n),n},n._removeElement=function(e){var n=this;if(t(e).removeClass(m),t(e).hasClass(p)){var r=l.getTransitionDurationFromElement(e);t(e).one(l.TRANSITION_END,(function(t){return n._destroyElement(e,t)})).emulateTransitionEnd(r)}else this._destroyElement(e)},n._destroyElement=function(e){t(e).detach().trigger(f.CLOSED).remove()},e._jQueryInterface=function(n){return this.each((function(){var r=t(this),i=r.data("bs.alert");i||(i=new e(this),r.data("bs.alert",i)),"close"===n&&i[n](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(f.CLICK_DATA_API,'[data-dismiss="alert"]',v._handleDismiss(new v)),t.fn[u]=v._jQueryInterface,t.fn[u].Constructor=v,t.fn[u].noConflict=function(){return t.fn[u]=d,v._jQueryInterface};var g=t.fn.button,b="active",y="btn",_="focus",w='[data-toggle^="button"]',k='[data-toggle="buttons"]',x='[data-toggle="button"]',C='[data-toggle="buttons"] .btn',S='input:not([type="hidden"])',T=".active",A=".btn",M={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api",LOAD_DATA_API:"load.bs.button.data-api"},E=function(){function e(e){this._element=e}var n=e.prototype;return n.toggle=function(){var e=!0,n=!0,r=t(this._element).closest(k)[0];if(r){var i=this._element.querySelector(S);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(b))e=!1;else{var o=r.querySelector(T);o&&t(o).removeClass(b)}else"checkbox"===i.type?"LABEL"===this._element.tagName&&i.checked===this._element.classList.contains(b)&&(e=!1):e=!1;e&&(i.checked=!this._element.classList.contains(b),t(i).trigger("change")),i.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(b)),e&&t(this._element).toggleClass(b))},n.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.button");r||(r=new e(this),t(this).data("bs.button",r)),"toggle"===n&&r[n]()}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(M.CLICK_DATA_API,w,(function(e){var n=e.target;if(t(n).hasClass(y)||(n=t(n).closest(A)[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))e.preventDefault();else{var r=n.querySelector(S);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void e.preventDefault();E._jQueryInterface.call(t(n),"toggle")}})).on(M.FOCUS_BLUR_DATA_API,w,(function(e){var n=t(e.target).closest(A)[0];t(n).toggleClass(_,/^focus(in)?$/.test(e.type))})),t(window).on(M.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(C)),t=0,n=e.length;t<n;t++){var r=e[t],i=r.querySelector(S);i.checked||i.hasAttribute("checked")?r.classList.add(b):r.classList.remove(b)}for(var o=0,a=(e=[].slice.call(document.querySelectorAll(x))).length;o<a;o++){var s=e[o];"true"===s.getAttribute("aria-pressed")?s.classList.add(b):s.classList.remove(b)}})),t.fn.button=E._jQueryInterface,t.fn.button.Constructor=E,t.fn.button.noConflict=function(){return t.fn.button=g,E._jQueryInterface};var O="carousel",P=".bs.carousel",I=t.fn[O],D={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},j={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},N="next",R="prev",L="left",z="right",F={SLIDE:"slide"+P,SLID:"slid"+P,KEYDOWN:"keydown"+P,MOUSEENTER:"mouseenter"+P,MOUSELEAVE:"mouseleave"+P,TOUCHSTART:"touchstart"+P,TOUCHMOVE:"touchmove"+P,TOUCHEND:"touchend"+P,POINTERDOWN:"pointerdown"+P,POINTERUP:"pointerup"+P,DRAG_START:"dragstart"+P,LOAD_DATA_API:"load"+P+".data-api",CLICK_DATA_API:"click"+P+".data-api"},B="carousel",$="active",V="slide",H="carousel-item-right",U="carousel-item-left",q="carousel-item-next",W="carousel-item-prev",Y="pointer-event",G=".active",K=".active.carousel-item",Q=".carousel-item",J=".carousel-item img",X=".carousel-item-next, .carousel-item-prev",Z=".carousel-indicators",ee="[data-slide], [data-slide-to]",te='[data-ride="carousel"]',ne={TOUCH:"touch",PEN:"pen"},re=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(Z),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=e.prototype;return n.next=function(){this._isSliding||this._slide(N)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(R)},n.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(X)&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(e){var n=this;this._activeElement=this._element.querySelector(K);var r=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(F.SLID,(function(){return n.to(e)}));else{if(r===e)return this.pause(),void this.cycle();var i=e>r?N:R;this._slide(i,this._items[e])}},n.dispose=function(){t(this._element).off(P),t.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(e){return e=s({},D,{},e),l.typeCheckConfig(O,e,j),e},n._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},n._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(F.KEYDOWN,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&t(this._element).on(F.MOUSEENTER,(function(t){return e.pause(t)})).on(F.MOUSELEAVE,(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var n=function(t){e._pointerEvent&&ne[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},r=function(t){e._pointerEvent&&ne[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};t(this._element.querySelectorAll(J)).on(F.DRAG_START,(function(e){return e.preventDefault()})),this._pointerEvent?(t(this._element).on(F.POINTERDOWN,(function(e){return n(e)})),t(this._element).on(F.POINTERUP,(function(e){return r(e)})),this._element.classList.add(Y)):(t(this._element).on(F.TOUCHSTART,(function(e){return n(e)})),t(this._element).on(F.TOUCHMOVE,(function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)})),t(this._element).on(F.TOUCHEND,(function(e){return r(e)})))}},n._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},n._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(Q)):[],this._items.indexOf(e)},n._getItemByDirection=function(e,t){var n=e===N,r=e===R,i=this._getItemIndex(t),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return t;var a=(i+(e===R?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},n._triggerSlideEvent=function(e,n){var r=this._getItemIndex(e),i=this._getItemIndex(this._element.querySelector(K)),o=t.Event(F.SLIDE,{relatedTarget:e,direction:n,from:i,to:r});return t(this._element).trigger(o),o},n._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(G));t(n).removeClass($);var r=this._indicatorsElement.children[this._getItemIndex(e)];r&&t(r).addClass($)}},n._slide=function(e,n){var r,i,o,a=this,s=this._element.querySelector(K),c=this._getItemIndex(s),u=n||s&&this._getItemByDirection(e,s),d=this._getItemIndex(u),f=Boolean(this._interval);if(e===N?(r=U,i=q,o=L):(r=H,i=W,o=z),u&&t(u).hasClass($))this._isSliding=!1;else if(!this._triggerSlideEvent(u,o).isDefaultPrevented()&&s&&u){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(u);var h=t.Event(F.SLID,{relatedTarget:u,direction:o,from:c,to:d});if(t(this._element).hasClass(V)){t(u).addClass(i),l.reflow(u),t(s).addClass(r),t(u).addClass(r);var p=parseInt(u.getAttribute("data-interval"),10);p?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=p):this._config.interval=this._config.defaultInterval||this._config.interval;var m=l.getTransitionDurationFromElement(s);t(s).one(l.TRANSITION_END,(function(){t(u).removeClass(r+" "+i).addClass($),t(s).removeClass($+" "+i+" "+r),a._isSliding=!1,setTimeout((function(){return t(a._element).trigger(h)}),0)})).emulateTransitionEnd(m)}else t(s).removeClass($),t(u).addClass($),this._isSliding=!1,t(this._element).trigger(h);f&&this.cycle()}},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.carousel"),i=s({},D,{},t(this).data());"object"==typeof n&&(i=s({},i,{},n));var o="string"==typeof n?n:i.slide;if(r||(r=new e(this,i),t(this).data("bs.carousel",r)),"number"==typeof n)r.to(n);else if("string"==typeof o){if(void 0===r[o])throw new TypeError('No method named "'+o+'"');r[o]()}else i.interval&&i.ride&&(r.pause(),r.cycle())}))},e._dataApiClickHandler=function(n){var r=l.getSelectorFromElement(this);if(r){var i=t(r)[0];if(i&&t(i).hasClass(B)){var o=s({},t(i).data(),{},t(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),e._jQueryInterface.call(t(i),o),a&&t(i).data("bs.carousel").to(a),n.preventDefault()}}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return D}}]),e}();t(document).on(F.CLICK_DATA_API,ee,re._dataApiClickHandler),t(window).on(F.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(te)),n=0,r=e.length;n<r;n++){var i=t(e[n]);re._jQueryInterface.call(i,i.data())}})),t.fn[O]=re._jQueryInterface,t.fn[O].Constructor=re,t.fn[O].noConflict=function(){return t.fn[O]=I,re._jQueryInterface};var ie="collapse",oe=t.fn[ie],ae={toggle:!0,parent:""},se={toggle:"boolean",parent:"(string|element)"},ce={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},le="show",ue="collapse",de="collapsing",fe="collapsed",he="width",pe="height",me=".show, .collapsing",ve='[data-toggle="collapse"]',ge=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(ve)),r=0,i=n.length;r<i;r++){var o=n[r],a=l.getSelectorFromElement(o),s=[].slice.call(document.querySelectorAll(a)).filter((function(t){return t===e}));null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=e.prototype;return n.toggle=function(){t(this._element).hasClass(le)?this.hide():this.show()},n.show=function(){var n,r,i=this;if(!(this._isTransitioning||t(this._element).hasClass(le)||(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(me)).filter((function(e){return"string"==typeof i._config.parent?e.getAttribute("data-parent")===i._config.parent:e.classList.contains(ue)}))).length&&(n=null),n&&(r=t(n).not(this._selector).data("bs.collapse"))&&r._isTransitioning))){var o=t.Event(ce.SHOW);if(t(this._element).trigger(o),!o.isDefaultPrevented()){n&&(e._jQueryInterface.call(t(n).not(this._selector),"hide"),r||t(n).data("bs.collapse",null));var a=this._getDimension();t(this._element).removeClass(ue).addClass(de),this._element.style[a]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(fe).attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(a[0].toUpperCase()+a.slice(1)),c=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(){t(i._element).removeClass(de).addClass(ue).addClass(le),i._element.style[a]="",i.setTransitioning(!1),t(i._element).trigger(ce.SHOWN)})).emulateTransitionEnd(c),this._element.style[a]=this._element[s]+"px"}}},n.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(le)){var n=t.Event(ce.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",l.reflow(this._element),t(this._element).addClass(de).removeClass(ue).removeClass(le);var i=this._triggerArray.length;if(i>0)for(var o=0;o<i;o++){var a=this._triggerArray[o],s=l.getSelectorFromElement(a);null!==s&&(t([].slice.call(document.querySelectorAll(s))).hasClass(le)||t(a).addClass(fe).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[r]="";var c=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(){e.setTransitioning(!1),t(e._element).removeClass(de).addClass(ue).trigger(ce.HIDDEN)})).emulateTransitionEnd(c)}}},n.setTransitioning=function(e){this._isTransitioning=e},n.dispose=function(){t.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},n._getConfig=function(e){return(e=s({},ae,{},e)).toggle=Boolean(e.toggle),l.typeCheckConfig(ie,e,se),e},n._getDimension=function(){return t(this._element).hasClass(he)?he:pe},n._getParent=function(){var n,r=this;l.isElement(this._config.parent)?(n=this._config.parent,void 0!==this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(n.querySelectorAll(i));return t(o).each((function(t,n){r._addAriaAndCollapsedClass(e._getTargetFromElement(n),[n])})),n},n._addAriaAndCollapsedClass=function(e,n){var r=t(e).hasClass(le);n.length&&t(n).toggleClass(fe,!r).attr("aria-expanded",r)},e._getTargetFromElement=function(e){var t=l.getSelectorFromElement(e);return t?document.querySelector(t):null},e._jQueryInterface=function(n){return this.each((function(){var r=t(this),i=r.data("bs.collapse"),o=s({},ae,{},r.data(),{},"object"==typeof n&&n?n:{});if(!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||(i=new e(this,o),r.data("bs.collapse",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return ae}}]),e}();t(document).on(ce.CLICK_DATA_API,ve,(function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=t(this),r=l.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(r));t(i).each((function(){var e=t(this),r=e.data("bs.collapse")?"toggle":n.data();ge._jQueryInterface.call(e,r)}))})),t.fn[ie]=ge._jQueryInterface,t.fn[ie].Constructor=ge,t.fn[ie].noConflict=function(){return t.fn[ie]=oe,ge._jQueryInterface};var be="dropdown",ye=t.fn[be],_e=new RegExp("38|40|27"),we={HIDE:"hide.bs.dropdown",HIDDEN:"hidden.bs.dropdown",SHOW:"show.bs.dropdown",SHOWN:"shown.bs.dropdown",CLICK:"click.bs.dropdown",CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},ke="disabled",xe="show",Ce="dropup",Se="dropright",Te="dropleft",Ae="dropdown-menu-right",Me="position-static",Ee='[data-toggle="dropdown"]',Oe=".dropdown form",Pe=".dropdown-menu",Ie=".navbar-nav",De=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",je="top-start",Ne="top-end",Re="bottom-start",Le="bottom-end",ze="right-start",Fe="left-start",Be={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},$e={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},Ve=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var r=e.prototype;return r.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(ke)){var n=t(this._menu).hasClass(xe);e._clearMenus(),n||this.show(!0)}},r.show=function(r){if(void 0===r&&(r=!1),!(this._element.disabled||t(this._element).hasClass(ke)||t(this._menu).hasClass(xe))){var i={relatedTarget:this._element},o=t.Event(we.SHOW,i),a=e._getParentFromElement(this._element);if(t(a).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&r){if(void 0===n)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var s=this._element;"parent"===this._config.reference?s=a:l.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&t(a).addClass(Me),this._popper=new n(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(a).closest(Ie).length&&t(document.body).children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(xe),t(a).toggleClass(xe).trigger(t.Event(we.SHOWN,i))}}},r.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass(ke)&&t(this._menu).hasClass(xe)){var n={relatedTarget:this._element},r=t.Event(we.HIDE,n),i=e._getParentFromElement(this._element);t(i).trigger(r),r.isDefaultPrevented()||(this._popper&&this._popper.destroy(),t(this._menu).toggleClass(xe),t(i).toggleClass(xe).trigger(t.Event(we.HIDDEN,n)))}},r.dispose=function(){t.removeData(this._element,"bs.dropdown"),t(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},r.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},r._addEventListeners=function(){var e=this;t(this._element).on(we.CLICK,(function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}))},r._getConfig=function(e){return e=s({},this.constructor.Default,{},t(this._element).data(),{},e),l.typeCheckConfig(be,e,this.constructor.DefaultType),e},r._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(Pe))}return this._menu},r._getPlacement=function(){var e=t(this._element.parentNode),n=Re;return e.hasClass(Ce)?(n=je,t(this._menu).hasClass(Ae)&&(n=Ne)):e.hasClass(Se)?n=ze:e.hasClass(Te)?n=Fe:t(this._menu).hasClass(Ae)&&(n=Le),n},r._detectNavbar=function(){return t(this._element).closest(".navbar").length>0},r._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,{},e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},r._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),s({},e,{},this._config.popperConfig)},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.dropdown");if(r||(r=new e(this,"object"==typeof n?n:null),t(this).data("bs.dropdown",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},e._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var r=[].slice.call(document.querySelectorAll(Ee)),i=0,o=r.length;i<o;i++){var a=e._getParentFromElement(r[i]),s=t(r[i]).data("bs.dropdown"),c={relatedTarget:r[i]};if(n&&"click"===n.type&&(c.clickEvent=n),s){var l=s._menu;if(t(a).hasClass(xe)&&!(n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"keyup"===n.type&&9===n.which)&&t.contains(a,n.target))){var u=t.Event(we.HIDE,c);t(a).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),r[i].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),t(l).removeClass(xe),t(a).removeClass(xe).trigger(t.Event(we.HIDDEN,c)))}}}},e._getParentFromElement=function(e){var t,n=l.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},e._dataApiKeydownHandler=function(n){if(!(/input|textarea/i.test(n.target.tagName)?32===n.which||27!==n.which&&(40!==n.which&&38!==n.which||t(n.target).closest(Pe).length):!_e.test(n.which))&&(n.preventDefault(),n.stopPropagation(),!this.disabled&&!t(this).hasClass(ke))){var r=e._getParentFromElement(this),i=t(r).hasClass(xe);if(i||27!==n.which)if(i&&(!i||27!==n.which&&32!==n.which)){var o=[].slice.call(r.querySelectorAll(De)).filter((function(e){return t(e).is(":visible")}));if(0!==o.length){var a=o.indexOf(n.target);38===n.which&&a>0&&a--,40===n.which&&a<o.length-1&&a++,a<0&&(a=0),o[a].focus()}}else{if(27===n.which){var s=r.querySelector(Ee);t(s).trigger("focus")}t(this).trigger("click")}}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Be}},{key:"DefaultType",get:function(){return $e}}]),e}();t(document).on(we.KEYDOWN_DATA_API,Ee,Ve._dataApiKeydownHandler).on(we.KEYDOWN_DATA_API,Pe,Ve._dataApiKeydownHandler).on(we.CLICK_DATA_API+" "+we.KEYUP_DATA_API,Ve._clearMenus).on(we.CLICK_DATA_API,Ee,(function(e){e.preventDefault(),e.stopPropagation(),Ve._jQueryInterface.call(t(this),"toggle")})).on(we.CLICK_DATA_API,Oe,(function(e){e.stopPropagation()})),t.fn[be]=Ve._jQueryInterface,t.fn[be].Constructor=Ve,t.fn[be].noConflict=function(){return t.fn[be]=ye,Ve._jQueryInterface};var He=t.fn.modal,Ue={backdrop:!0,keyboard:!0,focus:!0,show:!0},qe={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},We={HIDE:"hide.bs.modal",HIDE_PREVENTED:"hidePrevented.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},Ye="modal-dialog-scrollable",Ge="modal-scrollbar-measure",Ke="modal-backdrop",Qe="modal-open",Je="fade",Xe="show",Ze="modal-static",et=".modal-dialog",tt=".modal-body",nt='[data-toggle="modal"]',rt='[data-dismiss="modal"]',it=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ot=".sticky-top",at=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(et),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var n=e.prototype;return n.toggle=function(e){return this._isShown?this.hide():this.show(e)},n.show=function(e){var n=this;if(!this._isShown&&!this._isTransitioning){t(this._element).hasClass(Je)&&(this._isTransitioning=!0);var r=t.Event(We.SHOW,{relatedTarget:e});t(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(We.CLICK_DISMISS,rt,(function(e){return n.hide(e)})),t(this._dialog).on(We.MOUSEDOWN_DISMISS,(function(){t(n._element).one(We.MOUSEUP_DISMISS,(function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return n._showElement(e)})))}},n.hide=function(e){var n=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var r=t.Event(We.HIDE);if(t(this._element).trigger(r),this._isShown&&!r.isDefaultPrevented()){this._isShown=!1;var i=t(this._element).hasClass(Je);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(We.FOCUSIN),t(this._element).removeClass(Xe),t(this._element).off(We.CLICK_DISMISS),t(this._dialog).off(We.MOUSEDOWN_DISMISS),i){var o=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(e){return n._hideModal(e)})).emulateTransitionEnd(o)}else this._hideModal()}}},n.dispose=function(){[window,this._element,this._dialog].forEach((function(e){return t(e).off(".bs.modal")})),t(document).off(We.FOCUSIN),t.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(e){return e=s({},Ue,{},e),l.typeCheckConfig("modal",e,qe),e},n._triggerBackdropTransition=function(){var e=this;if("static"===this._config.backdrop){var n=t.Event(We.HIDE_PREVENTED);if(t(this._element).trigger(n),n.defaultPrevented)return;this._element.classList.add(Ze);var r=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,(function(){e._element.classList.remove(Ze)})).emulateTransitionEnd(r),this._element.focus()}else this.hide()},n._showElement=function(e){var n=this,r=t(this._element).hasClass(Je),i=this._dialog?this._dialog.querySelector(tt):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),t(this._dialog).hasClass(Ye)&&i?i.scrollTop=0:this._element.scrollTop=0,r&&l.reflow(this._element),t(this._element).addClass(Xe),this._config.focus&&this._enforceFocus();var o=t.Event(We.SHOWN,{relatedTarget:e}),a=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,t(n._element).trigger(o)};if(r){var s=l.getTransitionDurationFromElement(this._dialog);t(this._dialog).one(l.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},n._enforceFocus=function(){var e=this;t(document).off(We.FOCUSIN).on(We.FOCUSIN,(function(n){document!==n.target&&e._element!==n.target&&0===t(e._element).has(n.target).length&&e._element.focus()}))},n._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(We.KEYDOWN_DISMISS,(function(t){27===t.which&&e._triggerBackdropTransition()})):this._isShown||t(this._element).off(We.KEYDOWN_DISMISS)},n._setResizeEvent=function(){var e=this;this._isShown?t(window).on(We.RESIZE,(function(t){return e.handleUpdate(t)})):t(window).off(We.RESIZE)},n._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop((function(){t(document.body).removeClass(Qe),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(We.HIDDEN)}))},n._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(e){var n=this,r=t(this._element).hasClass(Je)?Je:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Ke,r&&this._backdrop.classList.add(r),t(this._backdrop).appendTo(document.body),t(this._element).on(We.CLICK_DISMISS,(function(e){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:e.target===e.currentTarget&&n._triggerBackdropTransition()})),r&&l.reflow(this._backdrop),t(this._backdrop).addClass(Xe),!e)return;if(!r)return void e();var i=l.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(l.TRANSITION_END,e).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(Xe);var o=function(){n._removeBackdrop(),e&&e()};if(t(this._element).hasClass(Je)){var a=l.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(l.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else e&&e()},n._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var n=[].slice.call(document.querySelectorAll(it)),r=[].slice.call(document.querySelectorAll(ot));t(n).each((function(n,r){var i=r.style.paddingRight,o=t(r).css("padding-right");t(r).data("padding-right",i).css("padding-right",parseFloat(o)+e._scrollbarWidth+"px")})),t(r).each((function(n,r){var i=r.style.marginRight,o=t(r).css("margin-right");t(r).data("margin-right",i).css("margin-right",parseFloat(o)-e._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,o=t(document.body).css("padding-right");t(document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}t(document.body).addClass(Qe)},n._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(it));t(e).each((function(e,n){var r=t(n).data("padding-right");t(n).removeData("padding-right"),n.style.paddingRight=r||""}));var n=[].slice.call(document.querySelectorAll(""+ot));t(n).each((function(e,n){var r=t(n).data("margin-right");void 0!==r&&t(n).css("margin-right",r).removeData("margin-right")}));var r=t(document.body).data("padding-right");t(document.body).removeData("padding-right"),document.body.style.paddingRight=r||""},n._getScrollbarWidth=function(){var e=document.createElement("div");e.className=Ge,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(n,r){return this.each((function(){var i=t(this).data("bs.modal"),o=s({},Ue,{},t(this).data(),{},"object"==typeof n&&n?n:{});if(i||(i=new e(this,o),t(this).data("bs.modal",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n](r)}else o.show&&i.show(r)}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Ue}}]),e}();t(document).on(We.CLICK_DATA_API,nt,(function(e){var n,r=this,i=l.getSelectorFromElement(this);i&&(n=document.querySelector(i));var o=t(n).data("bs.modal")?"toggle":s({},t(n).data(),{},t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var a=t(n).one(We.SHOW,(function(e){e.isDefaultPrevented()||a.one(We.HIDDEN,(function(){t(r).is(":visible")&&r.focus()}))}));at._jQueryInterface.call(t(n),o,this)})),t.fn.modal=at._jQueryInterface,t.fn.modal.Constructor=at,t.fn.modal.noConflict=function(){return t.fn.modal=He,at._jQueryInterface};var st=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],ct={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},lt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ut=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function dt(e,t,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);for(var r=(new window.DOMParser).parseFromString(e,"text/html"),i=Object.keys(t),o=[].slice.call(r.body.querySelectorAll("*")),a=function(e,n){var r=o[e],a=r.nodeName.toLowerCase();if(-1===i.indexOf(r.nodeName.toLowerCase()))return r.parentNode.removeChild(r),"continue";var s=[].slice.call(r.attributes),c=[].concat(t["*"]||[],t[a]||[]);s.forEach((function(e){(function(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===st.indexOf(n)||Boolean(e.nodeValue.match(lt)||e.nodeValue.match(ut));for(var r=t.filter((function(e){return e instanceof RegExp})),i=0,o=r.length;i<o;i++)if(n.match(r[i]))return!0;return!1})(e,c)||r.removeAttribute(e.nodeName)}))},s=0,c=o.length;s<c;s++)a(s);return r.body.innerHTML}var ft="tooltip",ht=t.fn[ft],pt=new RegExp("(^|\\s)bs-tooltip\\S+","g"),mt=["sanitize","whiteList","sanitizeFn"],vt={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},gt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},bt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:ct,popperConfig:null},yt="show",_t="out",wt={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},kt="fade",xt="show",Ct=".tooltip-inner",St=".arrow",Tt="hover",At="focus",Mt="click",Et="manual",Ot=function(){function e(e,t){if(void 0===n)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var r=e.prototype;return r.enable=function(){this._isEnabled=!0},r.disable=function(){this._isEnabled=!1},r.toggleEnabled=function(){this._isEnabled=!this._isEnabled},r.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,r=t(e.currentTarget).data(n);r||(r=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(t(this.getTipElement()).hasClass(xt))return void this._leave(null,this);this._enter(null,this)}},r.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},r.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var r=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(r);var i=l.findShadowRoot(this.element),o=t.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(r.isDefaultPrevented()||!o)return;var a=this.getTipElement(),s=l.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&t(a).addClass(kt);var c="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,u=this._getAttachment(c);this.addAttachmentClass(u);var d=this._getContainer();t(a).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(a).appendTo(d),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,a,this._getPopperConfig(u)),t(a).addClass(xt),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var f=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===_t&&e._leave(null,e)};if(t(this.tip).hasClass(kt)){var h=l.getTransitionDurationFromElement(this.tip);t(this.tip).one(l.TRANSITION_END,f).emulateTransitionEnd(h)}else f()}},r.hide=function(e){var n=this,r=this.getTipElement(),i=t.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==yt&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),e&&e()};if(t(this.element).trigger(i),!i.isDefaultPrevented()){if(t(r).removeClass(xt),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger[Mt]=!1,this._activeTrigger[At]=!1,this._activeTrigger[Tt]=!1,t(this.tip).hasClass(kt)){var a=l.getTransitionDurationFromElement(r);t(r).one(l.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},r.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},r.isWithContent=function(){return Boolean(this.getTitle())},r.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-tooltip-"+e)},r.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},r.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(Ct)),this.getTitle()),t(e).removeClass(kt+" "+xt)},r.setElementContent=function(e,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=dt(n,this.config.whiteList,this.config.sanitizeFn)),e.html(n)):e.text(n):this.config.html?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text())},r.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},r._getPopperConfig=function(e){var t=this;return s({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:St},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},r._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,{},e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},r._getContainer=function(){return!1===this.config.container?document.body:l.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},r._getAttachment=function(e){return gt[e.toUpperCase()]},r._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if(n!==Et){var r=n===Tt?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,i=n===Tt?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(r,e.config.selector,(function(t){return e._enter(t)})).on(i,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},r._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},r._enter=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusin"===e.type?At:Tt]=!0),t(n.getTipElement()).hasClass(xt)||n._hoverState===yt?n._hoverState=yt:(clearTimeout(n._timeout),n._hoverState=yt,n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){n._hoverState===yt&&n.show()}),n.config.delay.show):n.show())},r._leave=function(e,n){var r=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(r))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(r,n)),e&&(n._activeTrigger["focusout"===e.type?At:Tt]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=_t,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){n._hoverState===_t&&n.hide()}),n.config.delay.hide):n.hide())},r._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},r._getConfig=function(e){var n=t(this.element).data();return Object.keys(n).forEach((function(e){-1!==mt.indexOf(e)&&delete n[e]})),"number"==typeof(e=s({},this.constructor.Default,{},n,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),l.typeCheckConfig(ft,e,this.constructor.DefaultType),e.sanitize&&(e.template=dt(e.template,e.whiteList,e.sanitizeFn)),e},r._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},r._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(pt);null!==n&&n.length&&e.removeClass(n.join(""))},r._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},r._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(kt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.tooltip"),i="object"==typeof n&&n;if((r||!/dispose|hide/.test(n))&&(r||(r=new e(this,i),t(this).data("bs.tooltip",r)),"string"==typeof n)){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return bt}},{key:"NAME",get:function(){return ft}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return wt}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return vt}}]),e}();t.fn[ft]=Ot._jQueryInterface,t.fn[ft].Constructor=Ot,t.fn[ft].noConflict=function(){return t.fn[ft]=ht,Ot._jQueryInterface};var Pt="popover",It=t.fn[Pt],Dt=new RegExp("(^|\\s)bs-popover\\S+","g"),jt=s({},Ot.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Nt=s({},Ot.DefaultType,{content:"(string|element|function)"}),Rt="fade",Lt="show",zt=".popover-header",Ft=".popover-body",Bt={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},$t=function(e){var n,r;function o(){return e.apply(this,arguments)||this}r=e,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var a=o.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(e){t(this.getTipElement()).addClass("bs-popover-"+e)},a.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},a.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(zt),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(Ft),n),e.removeClass(Rt+" "+Lt)},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(Dt);null!==n&&n.length>0&&e.removeClass(n.join(""))},o._jQueryInterface=function(e){return this.each((function(){var n=t(this).data("bs.popover"),r="object"==typeof e?e:null;if((n||!/dispose|hide/.test(e))&&(n||(n=new o(this,r),t(this).data("bs.popover",n)),"string"==typeof e)){if(void 0===n[e])throw new TypeError('No method named "'+e+'"');n[e]()}}))},i(o,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return jt}},{key:"NAME",get:function(){return Pt}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return Bt}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return Nt}}]),o}(Ot);t.fn[Pt]=$t._jQueryInterface,t.fn[Pt].Constructor=$t,t.fn[Pt].noConflict=function(){return t.fn[Pt]=It,$t._jQueryInterface};var Vt="scrollspy",Ht=t.fn[Vt],Ut={offset:10,method:"auto",target:""},qt={offset:"number",method:"string",target:"(string|element)"},Wt={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},Yt="dropdown-item",Gt="active",Kt='[data-spy="scroll"]',Qt=".nav, .list-group",Jt=".nav-link",Xt=".nav-item",Zt=".list-group-item",en=".dropdown",tn=".dropdown-item",nn=".dropdown-toggle",rn="offset",on="position",an=function(){function e(e,n){var r=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+Jt+","+this._config.target+" "+Zt+","+this._config.target+" "+tn,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(Wt.SCROLL,(function(e){return r._process(e)})),this.refresh(),this._process()}var n=e.prototype;return n.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?rn:on,r="auto"===this._config.method?n:this._config.method,i=r===on?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var n,o=l.getSelectorFromElement(e);if(o&&(n=document.querySelector(o)),n){var a=n.getBoundingClientRect();if(a.width||a.height)return[t(n)[r]().top+i,o]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},n.dispose=function(){t.removeData(this._element,"bs.scrollspy"),t(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(e){if("string"!=typeof(e=s({},Ut,{},"object"==typeof e&&e?e:{})).target){var n=t(e.target).attr("id");n||(n=l.getUID(Vt),t(e.target).attr("id",n)),e.target="#"+n}return l.typeCheckConfig(Vt,e,qt),e},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&e>=this._offsets[i]&&(void 0===this._offsets[i+1]||e<this._offsets[i+1])&&this._activate(this._targets[i])}},n._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",").map((function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'})),r=t([].slice.call(document.querySelectorAll(n.join(","))));r.hasClass(Yt)?(r.closest(en).find(nn).addClass(Gt),r.addClass(Gt)):(r.addClass(Gt),r.parents(Qt).prev(Jt+", "+Zt).addClass(Gt),r.parents(Qt).prev(Xt).children(Jt).addClass(Gt)),t(this._scrollElement).trigger(Wt.ACTIVATE,{relatedTarget:e})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(e){return e.classList.contains(Gt)})).forEach((function(e){return e.classList.remove(Gt)}))},e._jQueryInterface=function(n){return this.each((function(){var r=t(this).data("bs.scrollspy");if(r||(r=new e(this,"object"==typeof n&&n),t(this).data("bs.scrollspy",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Ut}}]),e}();t(window).on(Wt.LOAD_DATA_API,(function(){for(var e=[].slice.call(document.querySelectorAll(Kt)),n=e.length;n--;){var r=t(e[n]);an._jQueryInterface.call(r,r.data())}})),t.fn[Vt]=an._jQueryInterface,t.fn[Vt].Constructor=an,t.fn[Vt].noConflict=function(){return t.fn[Vt]=Ht,an._jQueryInterface};var sn=t.fn.tab,cn={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},ln="dropdown-menu",un="active",dn="disabled",fn="fade",hn="show",pn=".dropdown",mn=".nav, .list-group",vn=".active",gn="> li > .active",bn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',yn=".dropdown-toggle",_n="> .dropdown-menu .active",wn=function(){function e(e){this._element=e}var n=e.prototype;return n.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(un)||t(this._element).hasClass(dn))){var n,r,i=t(this._element).closest(mn)[0],o=l.getSelectorFromElement(this._element);if(i){var a="UL"===i.nodeName||"OL"===i.nodeName?gn:vn;r=(r=t.makeArray(t(i).find(a)))[r.length-1]}var s=t.Event(cn.HIDE,{relatedTarget:this._element}),c=t.Event(cn.SHOW,{relatedTarget:r});if(r&&t(r).trigger(s),t(this._element).trigger(c),!c.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(n=document.querySelector(o)),this._activate(this._element,i);var u=function(){var n=t.Event(cn.HIDDEN,{relatedTarget:e._element}),i=t.Event(cn.SHOWN,{relatedTarget:r});t(r).trigger(n),t(e._element).trigger(i)};n?this._activate(n,n.parentNode,u):u()}}},n.dispose=function(){t.removeData(this._element,"bs.tab"),this._element=null},n._activate=function(e,n,r){var i=this,o=(!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?t(n).children(vn):t(n).find(gn))[0],a=r&&o&&t(o).hasClass(fn),s=function(){return i._transitionComplete(e,o,r)};if(o&&a){var c=l.getTransitionDurationFromElement(o);t(o).removeClass(hn).one(l.TRANSITION_END,s).emulateTransitionEnd(c)}else s()},n._transitionComplete=function(e,n,r){if(n){t(n).removeClass(un);var i=t(n.parentNode).find(_n)[0];i&&t(i).removeClass(un),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(t(e).addClass(un),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),l.reflow(e),e.classList.contains(fn)&&e.classList.add(hn),e.parentNode&&t(e.parentNode).hasClass(ln)){var o=t(e).closest(pn)[0];if(o){var a=[].slice.call(o.querySelectorAll(yn));t(a).addClass(un)}e.setAttribute("aria-expanded",!0)}r&&r()},e._jQueryInterface=function(n){return this.each((function(){var r=t(this),i=r.data("bs.tab");if(i||(i=new e(this),r.data("bs.tab",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(cn.CLICK_DATA_API,bn,(function(e){e.preventDefault(),wn._jQueryInterface.call(t(this),"show")})),t.fn.tab=wn._jQueryInterface,t.fn.tab.Constructor=wn,t.fn.tab.noConflict=function(){return t.fn.tab=sn,wn._jQueryInterface};var kn=t.fn.toast,xn={CLICK_DISMISS:"click.dismiss.bs.toast",HIDE:"hide.bs.toast",HIDDEN:"hidden.bs.toast",SHOW:"show.bs.toast",SHOWN:"shown.bs.toast"},Cn="fade",Sn="hide",Tn="show",An="showing",Mn={animation:"boolean",autohide:"boolean",delay:"number"},En={animation:!0,autohide:!0,delay:500},On='[data-dismiss="toast"]',Pn=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var n=e.prototype;return n.show=function(){var e=this,n=t.Event(xn.SHOW);if(t(this._element).trigger(n),!n.isDefaultPrevented()){this._config.animation&&this._element.classList.add(Cn);var r=function(){e._element.classList.remove(An),e._element.classList.add(Tn),t(e._element).trigger(xn.SHOWN),e._config.autohide&&(e._timeout=setTimeout((function(){e.hide()}),e._config.delay))};if(this._element.classList.remove(Sn),l.reflow(this._element),this._element.classList.add(An),this._config.animation){var i=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,r).emulateTransitionEnd(i)}else r()}},n.hide=function(){if(this._element.classList.contains(Tn)){var e=t.Event(xn.HIDE);t(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Tn)&&this._element.classList.remove(Tn),t(this._element).off(xn.CLICK_DISMISS),t.removeData(this._element,"bs.toast"),this._element=null,this._config=null},n._getConfig=function(e){return e=s({},En,{},t(this._element).data(),{},"object"==typeof e&&e?e:{}),l.typeCheckConfig("toast",e,this.constructor.DefaultType),e},n._setListeners=function(){var e=this;t(this._element).on(xn.CLICK_DISMISS,On,(function(){return e.hide()}))},n._close=function(){var e=this,n=function(){e._element.classList.add(Sn),t(e._element).trigger(xn.HIDDEN)};if(this._element.classList.remove(Tn),this._config.animation){var r=l.getTransitionDurationFromElement(this._element);t(this._element).one(l.TRANSITION_END,n).emulateTransitionEnd(r)}else n()},e._jQueryInterface=function(n){return this.each((function(){var r=t(this),i=r.data("bs.toast");if(i||(i=new e(this,"object"==typeof n&&n),r.data("bs.toast",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n](this)}}))},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return Mn}},{key:"Default",get:function(){return En}}]),e}();t.fn.toast=Pn._jQueryInterface,t.fn.toast.Constructor=Pn,t.fn.toast.noConflict=function(){return t.fn.toast=kn,Pn._jQueryInterface},e.Alert=v,e.Button=E,e.Carousel=re,e.Collapse=ge,e.Dropdown=Ve,e.Modal=at,e.Popover=$t,e.Scrollspy=an,e.Tab=wn,e.Toast=Pn,e.Tooltip=Ot,e.Util=l,Object.defineProperty(e,"__esModule",{value:!0})}(t,n(35),n(52))},function(e,t,n){e.exports=n(99)},function(e,t,n){"use strict";var r=n(5),i=n(53),o=n(100),a=n(60);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var c=s(n(56));c.Axios=o,c.create=function(e){return s(a(c.defaults,e))},c.Cancel=n(61),c.CancelToken=n(113),c.isCancel=n(55),c.all=function(e){return Promise.all(e)},c.spread=n(114),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";var r=n(5),i=n(54),o=n(101),a=n(102),s=n(60);function c(e){this.defaults=e,this.interceptors={request:new o,response:new o}}c.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},c.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){c.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){c.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=c},function(e,t,n){"use strict";var r=n(5);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(5),i=n(103),o=n(55),a=n(56);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(59);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(108),i=n(109);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(5),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(5);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(5);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(61);function i(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){(function(t){var n;window,n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){!function(e){"use strict";var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},r=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var a=t(),s=t([1]),c=t([56129,1]),l=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),d=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),f=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(e,t,n,r){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=r>>24&255,e[t+5]=r>>16&255,e[t+6]=r>>8&255,e[t+7]=255&r}function m(e,t,n,r,i){var o,a=0;for(o=0;o<i;o++)a|=e[t+o]^n[r+o];return(1&a-1>>>8)-1}function v(e,t,n,r){return m(e,t,n,r,16)}function g(e,t,n,r){return m(e,t,n,r,32)}function b(e,t,n,r){!function(e,t,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,v=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,g=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,_=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=o,k=a,x=s,C=c,S=l,T=u,A=d,M=f,E=h,O=p,P=m,I=v,D=g,j=b,N=y,R=_,L=0;L<20;L+=2)w^=(i=(D^=(i=(E^=(i=(S^=(i=w+D|0)<<7|i>>>25)+w|0)<<9|i>>>23)+S|0)<<13|i>>>19)+E|0)<<18|i>>>14,T^=(i=(k^=(i=(j^=(i=(O^=(i=T+k|0)<<7|i>>>25)+T|0)<<9|i>>>23)+O|0)<<13|i>>>19)+j|0)<<18|i>>>14,P^=(i=(A^=(i=(x^=(i=(N^=(i=P+A|0)<<7|i>>>25)+P|0)<<9|i>>>23)+N|0)<<13|i>>>19)+x|0)<<18|i>>>14,R^=(i=(I^=(i=(M^=(i=(C^=(i=R+I|0)<<7|i>>>25)+R|0)<<9|i>>>23)+C|0)<<13|i>>>19)+M|0)<<18|i>>>14,w^=(i=(C^=(i=(x^=(i=(k^=(i=w+C|0)<<7|i>>>25)+w|0)<<9|i>>>23)+k|0)<<13|i>>>19)+x|0)<<18|i>>>14,T^=(i=(S^=(i=(M^=(i=(A^=(i=T+S|0)<<7|i>>>25)+T|0)<<9|i>>>23)+A|0)<<13|i>>>19)+M|0)<<18|i>>>14,P^=(i=(O^=(i=(E^=(i=(I^=(i=P+O|0)<<7|i>>>25)+P|0)<<9|i>>>23)+I|0)<<13|i>>>19)+E|0)<<18|i>>>14,R^=(i=(N^=(i=(j^=(i=(D^=(i=R+N|0)<<7|i>>>25)+R|0)<<9|i>>>23)+D|0)<<13|i>>>19)+j|0)<<18|i>>>14;w=w+o|0,k=k+a|0,x=x+s|0,C=C+c|0,S=S+l|0,T=T+u|0,A=A+d|0,M=M+f|0,E=E+h|0,O=O+p|0,P=P+m|0,I=I+v|0,D=D+g|0,j=j+b|0,N=N+y|0,R=R+_|0,e[0]=w>>>0&255,e[1]=w>>>8&255,e[2]=w>>>16&255,e[3]=w>>>24&255,e[4]=k>>>0&255,e[5]=k>>>8&255,e[6]=k>>>16&255,e[7]=k>>>24&255,e[8]=x>>>0&255,e[9]=x>>>8&255,e[10]=x>>>16&255,e[11]=x>>>24&255,e[12]=C>>>0&255,e[13]=C>>>8&255,e[14]=C>>>16&255,e[15]=C>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=T>>>0&255,e[21]=T>>>8&255,e[22]=T>>>16&255,e[23]=T>>>24&255,e[24]=A>>>0&255,e[25]=A>>>8&255,e[26]=A>>>16&255,e[27]=A>>>24&255,e[28]=M>>>0&255,e[29]=M>>>8&255,e[30]=M>>>16&255,e[31]=M>>>24&255,e[32]=E>>>0&255,e[33]=E>>>8&255,e[34]=E>>>16&255,e[35]=E>>>24&255,e[36]=O>>>0&255,e[37]=O>>>8&255,e[38]=O>>>16&255,e[39]=O>>>24&255,e[40]=P>>>0&255,e[41]=P>>>8&255,e[42]=P>>>16&255,e[43]=P>>>24&255,e[44]=I>>>0&255,e[45]=I>>>8&255,e[46]=I>>>16&255,e[47]=I>>>24&255,e[48]=D>>>0&255,e[49]=D>>>8&255,e[50]=D>>>16&255,e[51]=D>>>24&255,e[52]=j>>>0&255,e[53]=j>>>8&255,e[54]=j>>>16&255,e[55]=j>>>24&255,e[56]=N>>>0&255,e[57]=N>>>8&255,e[58]=N>>>16&255,e[59]=N>>>24&255,e[60]=R>>>0&255,e[61]=R>>>8&255,e[62]=R>>>16&255,e[63]=R>>>24&255}(e,t,n,r)}function y(e,t,n,r){!function(e,t,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,d=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,f=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,p=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,v=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,g=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,_=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,w=0;w<20;w+=2)o^=(i=(g^=(i=(h^=(i=(l^=(i=o+g|0)<<7|i>>>25)+o|0)<<9|i>>>23)+l|0)<<13|i>>>19)+h|0)<<18|i>>>14,u^=(i=(a^=(i=(b^=(i=(p^=(i=u+a|0)<<7|i>>>25)+u|0)<<9|i>>>23)+p|0)<<13|i>>>19)+b|0)<<18|i>>>14,m^=(i=(d^=(i=(s^=(i=(y^=(i=m+d|0)<<7|i>>>25)+m|0)<<9|i>>>23)+y|0)<<13|i>>>19)+s|0)<<18|i>>>14,_^=(i=(v^=(i=(f^=(i=(c^=(i=_+v|0)<<7|i>>>25)+_|0)<<9|i>>>23)+c|0)<<13|i>>>19)+f|0)<<18|i>>>14,o^=(i=(c^=(i=(s^=(i=(a^=(i=o+c|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,u^=(i=(l^=(i=(f^=(i=(d^=(i=u+l|0)<<7|i>>>25)+u|0)<<9|i>>>23)+d|0)<<13|i>>>19)+f|0)<<18|i>>>14,m^=(i=(p^=(i=(h^=(i=(v^=(i=m+p|0)<<7|i>>>25)+m|0)<<9|i>>>23)+v|0)<<13|i>>>19)+h|0)<<18|i>>>14,_^=(i=(y^=(i=(b^=(i=(g^=(i=_+y|0)<<7|i>>>25)+_|0)<<9|i>>>23)+g|0)<<13|i>>>19)+b|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=m>>>0&255,e[9]=m>>>8&255,e[10]=m>>>16&255,e[11]=m>>>24&255,e[12]=_>>>0&255,e[13]=_>>>8&255,e[14]=_>>>16&255,e[15]=_>>>24&255,e[16]=d>>>0&255,e[17]=d>>>8&255,e[18]=d>>>16&255,e[19]=d>>>24&255,e[20]=f>>>0&255,e[21]=f>>>8&255,e[22]=f>>>16&255,e[23]=f>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=p>>>0&255,e[29]=p>>>8&255,e[30]=p>>>16&255,e[31]=p>>>24&255}(e,t,n,r)}var _=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function w(e,t,n,r,i,o,a){var s,c,l=new Uint8Array(16),u=new Uint8Array(64);for(c=0;c<16;c++)l[c]=0;for(c=0;c<8;c++)l[c]=o[c];for(;i>=64;){for(b(u,l,a,_),c=0;c<64;c++)e[t+c]=n[r+c]^u[c];for(s=1,c=8;c<16;c++)s=s+(255&l[c])|0,l[c]=255&s,s>>>=8;i-=64,t+=64,r+=64}if(i>0)for(b(u,l,a,_),c=0;c<i;c++)e[t+c]=n[r+c]^u[c];return 0}function k(e,t,n,r,i){var o,a,s=new Uint8Array(16),c=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(b(c,s,i,_),a=0;a<64;a++)e[t+a]=c[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;n-=64,t+=64}if(n>0)for(b(c,s,i,_),a=0;a<n;a++)e[t+a]=c[a];return 0}function x(e,t,n,r,i){var o=new Uint8Array(32);y(o,r,i,_);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return k(e,t,n,a,o)}function C(e,t,n,r,i,o,a){var s=new Uint8Array(32);y(s,o,a,_);for(var c=new Uint8Array(8),l=0;l<8;l++)c[l]=o[l+16];return w(e,t,n,r,i,c,s)}var S=function(e){var t,n,r,i,o,a,s,c;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),r=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(r>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(a>>>11|s<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(s>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function T(e,t,n,r,i,o){var a=new S(o);return a.update(n,r,i),a.finish(e,t),0}function A(e,t,n,r,i,o){var a=new Uint8Array(16);return T(a,0,n,r,i,o),v(e,t,a,0)}function M(e,t,n,r,i){var o;if(n<32)return-1;for(C(e,0,t,0,n,r,i),T(e,16,e,32,n-32,e),o=0;o<16;o++)e[o]=0;return 0}function E(e,t,n,r,i){var o,a=new Uint8Array(32);if(n<32)return-1;if(x(a,0,32,r,i),0!==A(t,16,t,32,n-32,a))return-1;for(C(e,0,t,0,n,r,i),o=0;o<32;o++)e[o]=0;return 0}function O(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function P(e){var t,n,r=1;for(t=0;t<16;t++)n=e[t]+r+65535,r=Math.floor(n/65536),e[t]=n-65536*r;e[0]+=r-1+37*(r-1)}function I(e,t,n){for(var r,i=~(n-1),o=0;o<16;o++)r=i&(e[o]^t[o]),e[o]^=r,t[o]^=r}function D(e,n){var r,i,o,a=t(),s=t();for(r=0;r<16;r++)s[r]=n[r];for(P(s),P(s),P(s),i=0;i<2;i++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,I(s,a,1-o)}for(r=0;r<16;r++)e[2*r]=255&s[r],e[2*r+1]=s[r]>>8}function j(e,t){var n=new Uint8Array(32),r=new Uint8Array(32);return D(n,e),D(r,t),g(n,0,r,0)}function N(e){var t=new Uint8Array(32);return D(t,e),1&t[0]}function R(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function L(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]+n[r]}function z(e,t,n){for(var r=0;r<16;r++)e[r]=t[r]-n[r]}function F(e,t,n){var r,i,o=0,a=0,s=0,c=0,l=0,u=0,d=0,f=0,h=0,p=0,m=0,v=0,g=0,b=0,y=0,_=0,w=0,k=0,x=0,C=0,S=0,T=0,A=0,M=0,E=0,O=0,P=0,I=0,D=0,j=0,N=0,R=n[0],L=n[1],z=n[2],F=n[3],B=n[4],$=n[5],V=n[6],H=n[7],U=n[8],q=n[9],W=n[10],Y=n[11],G=n[12],K=n[13],Q=n[14],J=n[15];o+=(r=t[0])*R,a+=r*L,s+=r*z,c+=r*F,l+=r*B,u+=r*$,d+=r*V,f+=r*H,h+=r*U,p+=r*q,m+=r*W,v+=r*Y,g+=r*G,b+=r*K,y+=r*Q,_+=r*J,a+=(r=t[1])*R,s+=r*L,c+=r*z,l+=r*F,u+=r*B,d+=r*$,f+=r*V,h+=r*H,p+=r*U,m+=r*q,v+=r*W,g+=r*Y,b+=r*G,y+=r*K,_+=r*Q,w+=r*J,s+=(r=t[2])*R,c+=r*L,l+=r*z,u+=r*F,d+=r*B,f+=r*$,h+=r*V,p+=r*H,m+=r*U,v+=r*q,g+=r*W,b+=r*Y,y+=r*G,_+=r*K,w+=r*Q,k+=r*J,c+=(r=t[3])*R,l+=r*L,u+=r*z,d+=r*F,f+=r*B,h+=r*$,p+=r*V,m+=r*H,v+=r*U,g+=r*q,b+=r*W,y+=r*Y,_+=r*G,w+=r*K,k+=r*Q,x+=r*J,l+=(r=t[4])*R,u+=r*L,d+=r*z,f+=r*F,h+=r*B,p+=r*$,m+=r*V,v+=r*H,g+=r*U,b+=r*q,y+=r*W,_+=r*Y,w+=r*G,k+=r*K,x+=r*Q,C+=r*J,u+=(r=t[5])*R,d+=r*L,f+=r*z,h+=r*F,p+=r*B,m+=r*$,v+=r*V,g+=r*H,b+=r*U,y+=r*q,_+=r*W,w+=r*Y,k+=r*G,x+=r*K,C+=r*Q,S+=r*J,d+=(r=t[6])*R,f+=r*L,h+=r*z,p+=r*F,m+=r*B,v+=r*$,g+=r*V,b+=r*H,y+=r*U,_+=r*q,w+=r*W,k+=r*Y,x+=r*G,C+=r*K,S+=r*Q,T+=r*J,f+=(r=t[7])*R,h+=r*L,p+=r*z,m+=r*F,v+=r*B,g+=r*$,b+=r*V,y+=r*H,_+=r*U,w+=r*q,k+=r*W,x+=r*Y,C+=r*G,S+=r*K,T+=r*Q,A+=r*J,h+=(r=t[8])*R,p+=r*L,m+=r*z,v+=r*F,g+=r*B,b+=r*$,y+=r*V,_+=r*H,w+=r*U,k+=r*q,x+=r*W,C+=r*Y,S+=r*G,T+=r*K,A+=r*Q,M+=r*J,p+=(r=t[9])*R,m+=r*L,v+=r*z,g+=r*F,b+=r*B,y+=r*$,_+=r*V,w+=r*H,k+=r*U,x+=r*q,C+=r*W,S+=r*Y,T+=r*G,A+=r*K,M+=r*Q,E+=r*J,m+=(r=t[10])*R,v+=r*L,g+=r*z,b+=r*F,y+=r*B,_+=r*$,w+=r*V,k+=r*H,x+=r*U,C+=r*q,S+=r*W,T+=r*Y,A+=r*G,M+=r*K,E+=r*Q,O+=r*J,v+=(r=t[11])*R,g+=r*L,b+=r*z,y+=r*F,_+=r*B,w+=r*$,k+=r*V,x+=r*H,C+=r*U,S+=r*q,T+=r*W,A+=r*Y,M+=r*G,E+=r*K,O+=r*Q,P+=r*J,g+=(r=t[12])*R,b+=r*L,y+=r*z,_+=r*F,w+=r*B,k+=r*$,x+=r*V,C+=r*H,S+=r*U,T+=r*q,A+=r*W,M+=r*Y,E+=r*G,O+=r*K,P+=r*Q,I+=r*J,b+=(r=t[13])*R,y+=r*L,_+=r*z,w+=r*F,k+=r*B,x+=r*$,C+=r*V,S+=r*H,T+=r*U,A+=r*q,M+=r*W,E+=r*Y,O+=r*G,P+=r*K,I+=r*Q,D+=r*J,y+=(r=t[14])*R,_+=r*L,w+=r*z,k+=r*F,x+=r*B,C+=r*$,S+=r*V,T+=r*H,A+=r*U,M+=r*q,E+=r*W,O+=r*Y,P+=r*G,I+=r*K,D+=r*Q,j+=r*J,_+=(r=t[15])*R,a+=38*(k+=r*z),s+=38*(x+=r*F),c+=38*(C+=r*B),l+=38*(S+=r*$),u+=38*(T+=r*V),d+=38*(A+=r*H),f+=38*(M+=r*U),h+=38*(E+=r*q),p+=38*(O+=r*W),m+=38*(P+=r*Y),v+=38*(I+=r*G),g+=38*(D+=r*K),b+=38*(j+=r*Q),y+=38*(N+=r*J),o=(r=(o+=38*(w+=r*L))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),_=(r=_+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),_=(r=_+i+65535)-65536*(i=Math.floor(r/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=a,e[2]=s,e[3]=c,e[4]=l,e[5]=u,e[6]=d,e[7]=f,e[8]=h,e[9]=p,e[10]=m,e[11]=v,e[12]=g,e[13]=b,e[14]=y,e[15]=_}function B(e,t){F(e,t,t)}function $(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)B(i,i),2!==r&&4!==r&&F(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function V(e,n){var r,i=t();for(r=0;r<16;r++)i[r]=n[r];for(r=250;r>=0;r--)B(i,i),1!==r&&F(i,i,n);for(r=0;r<16;r++)e[r]=i[r]}function H(e,n,r){var i,o,a=new Uint8Array(32),s=new Float64Array(80),l=t(),u=t(),d=t(),f=t(),h=t(),p=t();for(o=0;o<31;o++)a[o]=n[o];for(a[31]=127&n[31]|64,a[0]&=248,R(s,r),o=0;o<16;o++)u[o]=s[o],f[o]=l[o]=d[o]=0;for(l[0]=f[0]=1,o=254;o>=0;--o)I(l,u,i=a[o>>>3]>>>(7&o)&1),I(d,f,i),L(h,l,d),z(l,l,d),L(d,u,f),z(u,u,f),B(f,h),B(p,l),F(l,d,l),F(d,u,h),L(h,l,d),z(l,l,d),B(u,l),z(d,f,p),F(l,d,c),L(l,l,f),F(d,d,l),F(l,f,p),F(f,u,s),B(u,h),I(l,u,i),I(d,f,i);for(o=0;o<16;o++)s[o+16]=l[o],s[o+32]=d[o],s[o+48]=u[o],s[o+64]=f[o];var m=s.subarray(32),v=s.subarray(16);return $(m,m),F(v,v,m),D(e,v),0}function U(e,t){return H(e,t,o)}function q(e,t){return r(t,32),U(e,t)}function W(e,t,n){var r=new Uint8Array(32);return H(r,n,t),y(e,i,r,_)}S.prototype.blocks=function(e,t,n){for(var r,i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,_,w,k=this.fin?0:2048,x=this.h[0],C=this.h[1],S=this.h[2],T=this.h[3],A=this.h[4],M=this.h[5],E=this.h[6],O=this.h[7],P=this.h[8],I=this.h[9],D=this.r[0],j=this.r[1],N=this.r[2],R=this.r[3],L=this.r[4],z=this.r[5],F=this.r[6],B=this.r[7],$=this.r[8],V=this.r[9];n>=16;)f=d=0,f+=(x+=8191&(r=255&e[t+0]|(255&e[t+1])<<8))*D,f+=(C+=8191&(r>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*V),f+=(S+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*$),f+=(T+=8191&(o>>>7|(a=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*B),d=(f+=(A+=8191&(a>>>4|(s=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*F))>>>13,f&=8191,f+=(M+=s>>>1&8191)*(5*z),f+=(E+=8191&(s>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*L),f+=(O+=8191&(c>>>11|(l=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*R),f+=(P+=8191&(l>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*N),h=d+=(f+=(I+=u>>>5|k)*(5*j))>>>13,h+=x*j,h+=C*D,h+=S*(5*V),h+=T*(5*$),d=(h+=A*(5*B))>>>13,h&=8191,h+=M*(5*F),h+=E*(5*z),h+=O*(5*L),h+=P*(5*R),d+=(h+=I*(5*N))>>>13,h&=8191,p=d,p+=x*N,p+=C*j,p+=S*D,p+=T*(5*V),d=(p+=A*(5*$))>>>13,p&=8191,p+=M*(5*B),p+=E*(5*F),p+=O*(5*z),p+=P*(5*L),m=d+=(p+=I*(5*R))>>>13,m+=x*R,m+=C*N,m+=S*j,m+=T*D,d=(m+=A*(5*V))>>>13,m&=8191,m+=M*(5*$),m+=E*(5*B),m+=O*(5*F),m+=P*(5*z),v=d+=(m+=I*(5*L))>>>13,v+=x*L,v+=C*R,v+=S*N,v+=T*j,d=(v+=A*D)>>>13,v&=8191,v+=M*(5*V),v+=E*(5*$),v+=O*(5*B),v+=P*(5*F),g=d+=(v+=I*(5*z))>>>13,g+=x*z,g+=C*L,g+=S*R,g+=T*N,d=(g+=A*j)>>>13,g&=8191,g+=M*D,g+=E*(5*V),g+=O*(5*$),g+=P*(5*B),b=d+=(g+=I*(5*F))>>>13,b+=x*F,b+=C*z,b+=S*L,b+=T*R,d=(b+=A*N)>>>13,b&=8191,b+=M*j,b+=E*D,b+=O*(5*V),b+=P*(5*$),y=d+=(b+=I*(5*B))>>>13,y+=x*B,y+=C*F,y+=S*z,y+=T*L,d=(y+=A*R)>>>13,y&=8191,y+=M*N,y+=E*j,y+=O*D,y+=P*(5*V),_=d+=(y+=I*(5*$))>>>13,_+=x*$,_+=C*B,_+=S*F,_+=T*z,d=(_+=A*L)>>>13,_&=8191,_+=M*R,_+=E*N,_+=O*j,_+=P*D,w=d+=(_+=I*(5*V))>>>13,w+=x*V,w+=C*$,w+=S*B,w+=T*F,d=(w+=A*z)>>>13,w&=8191,w+=M*L,w+=E*R,w+=O*N,w+=P*j,x=f=8191&(d=(d=((d+=(w+=I*D)>>>13)<<2)+d|0)+(f&=8191)|0),C=h+=d>>>=13,S=p&=8191,T=m&=8191,A=v&=8191,M=g&=8191,E=b&=8191,O=y&=8191,P=_&=8191,I=w&=8191,t+=16,n-=16;this.h[0]=x,this.h[1]=C,this.h[2]=S,this.h[3]=T,this.h[4]=A,this.h[5]=M,this.h[6]=E,this.h[7]=O,this.h[8]=P,this.h[9]=I},S.prototype.finish=function(e,t){var n,r,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=n,n=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,r=(1^n)-1,o=0;o<10;o++)a[o]&=r;for(r=~r,o=0;o<10;o++)this.h[o]=this.h[o]&r|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,n){var r,i;if(this.leftover){for((i=16-this.leftover)>n&&(i=n),r=0;r<i;r++)this.buffer[this.leftover+r]=e[t+r];if(n-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(i=n-n%16,this.blocks(e,t,i),t+=i,n-=i),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=e[t+r];this.leftover+=n}};var Y=M,G=E,K=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Q(e,t,n,r){for(var i,o,a,s,c,l,u,d,f,h,p,m,v,g,b,y,_,w,k,x,C,S,T,A,M,E,O=new Int32Array(16),P=new Int32Array(16),I=e[0],D=e[1],j=e[2],N=e[3],R=e[4],L=e[5],z=e[6],F=e[7],B=t[0],$=t[1],V=t[2],H=t[3],U=t[4],q=t[5],W=t[6],Y=t[7],G=0;r>=128;){for(k=0;k<16;k++)x=8*k+G,O[k]=n[x+0]<<24|n[x+1]<<16|n[x+2]<<8|n[x+3],P[k]=n[x+4]<<24|n[x+5]<<16|n[x+6]<<8|n[x+7];for(k=0;k<80;k++)if(i=I,o=D,a=j,s=N,c=R,l=L,u=z,f=B,h=$,p=V,m=H,v=U,g=q,b=W,T=65535&(S=Y),A=S>>>16,M=65535&(C=F),E=C>>>16,T+=65535&(S=(U>>>14|R<<18)^(U>>>18|R<<14)^(R>>>9|U<<23)),A+=S>>>16,M+=65535&(C=(R>>>14|U<<18)^(R>>>18|U<<14)^(U>>>9|R<<23)),E+=C>>>16,T+=65535&(S=U&q^~U&W),A+=S>>>16,M+=65535&(C=R&L^~R&z),E+=C>>>16,T+=65535&(S=K[2*k+1]),A+=S>>>16,M+=65535&(C=K[2*k]),E+=C>>>16,C=O[k%16],A+=(S=P[k%16])>>>16,M+=65535&C,E+=C>>>16,M+=(A+=(T+=65535&S)>>>16)>>>16,T=65535&(S=w=65535&T|A<<16),A=S>>>16,M=65535&(C=_=65535&M|(E+=M>>>16)<<16),E=C>>>16,T+=65535&(S=(B>>>28|I<<4)^(I>>>2|B<<30)^(I>>>7|B<<25)),A+=S>>>16,M+=65535&(C=(I>>>28|B<<4)^(B>>>2|I<<30)^(B>>>7|I<<25)),E+=C>>>16,A+=(S=B&$^B&V^$&V)>>>16,M+=65535&(C=I&D^I&j^D&j),E+=C>>>16,d=65535&(M+=(A+=(T+=65535&S)>>>16)>>>16)|(E+=M>>>16)<<16,y=65535&T|A<<16,T=65535&(S=m),A=S>>>16,M=65535&(C=s),E=C>>>16,A+=(S=w)>>>16,M+=65535&(C=_),E+=C>>>16,D=i,j=o,N=a,R=s=65535&(M+=(A+=(T+=65535&S)>>>16)>>>16)|(E+=M>>>16)<<16,L=c,z=l,F=u,I=d,$=f,V=h,H=p,U=m=65535&T|A<<16,q=v,W=g,Y=b,B=y,k%16==15)for(x=0;x<16;x++)C=O[x],T=65535&(S=P[x]),A=S>>>16,M=65535&C,E=C>>>16,C=O[(x+9)%16],T+=65535&(S=P[(x+9)%16]),A+=S>>>16,M+=65535&C,E+=C>>>16,_=O[(x+1)%16],T+=65535&(S=((w=P[(x+1)%16])>>>1|_<<31)^(w>>>8|_<<24)^(w>>>7|_<<25)),A+=S>>>16,M+=65535&(C=(_>>>1|w<<31)^(_>>>8|w<<24)^_>>>7),E+=C>>>16,_=O[(x+14)%16],A+=(S=((w=P[(x+14)%16])>>>19|_<<13)^(_>>>29|w<<3)^(w>>>6|_<<26))>>>16,M+=65535&(C=(_>>>19|w<<13)^(w>>>29|_<<3)^_>>>6),E+=C>>>16,E+=(M+=(A+=(T+=65535&S)>>>16)>>>16)>>>16,O[x]=65535&M|E<<16,P[x]=65535&T|A<<16;T=65535&(S=B),A=S>>>16,M=65535&(C=I),E=C>>>16,C=e[0],A+=(S=t[0])>>>16,M+=65535&C,E+=C>>>16,E+=(M+=(A+=(T+=65535&S)>>>16)>>>16)>>>16,e[0]=I=65535&M|E<<16,t[0]=B=65535&T|A<<16,T=65535&(S=$),A=S>>>16,M=65535&(C=D),E=C>>>16,C=e[1],A+=(S=t[1])>>>16,M+=65535&C,E+=C>>>16,E+=(M+=(A+=(T+=65535&S)>>>16)>>>16)>>>16,e[1]=D=65535&M|E<<16,t[1]=$=65535&T|A<<16,T=65535&(S=V),A=S>>>16,M=65535&(C=j),E=C>>>16,C=e[2],A+=(S=t[2])>>>16,M+=65535&C,E+=C>>>16,E+=(M+=(A+=(T+=65535&S)>>>16)>>>16)>>>16,e[2]=j=65535&M|E<<16,t[2]=V=65535&T|A<<16,T=65535&(S=H),A=S>>>16,M=65535&(C=N),E=C>>>16,C=e[3],A+=(S=t[3])>>>16,M+=65535&C,E+=C>>>16,E+=(M+=(A+=(T+=65535&S)>>>16)>>>16)>>>16,e[3]=N=65535&M|E<<16,t[3]=H=65535&T|A<<16,T=65535&(S=U),A=S>>>16,M=65535&(C=R),E=C>>>16,C=e[4],A+=(S=t[4])>>>16,M+=65535&C,E+=C>>>16,E+=(M+=(A+=(T+=65535&S)>>>16)>>>16)>>>16,e[4]=R=65535&M|E<<16,t[4]=U=65535&T|A<<16,T=65535&(S=q),A=S>>>16,M=65535&(C=L),E=C>>>16,C=e[5],A+=(S=t[5])>>>16,M+=65535&C,E+=C>>>16,E+=(M+=(A+=(T+=65535&S)>>>16)>>>16)>>>16,e[5]=L=65535&M|E<<16,t[5]=q=65535&T|A<<16,T=65535&(S=W),A=S>>>16,M=65535&(C=z),E=C>>>16,C=e[6],A+=(S=t[6])>>>16,M+=65535&C,E+=C>>>16,E+=(M+=(A+=(T+=65535&S)>>>16)>>>16)>>>16,e[6]=z=65535&M|E<<16,t[6]=W=65535&T|A<<16,T=65535&(S=Y),A=S>>>16,M=65535&(C=F),E=C>>>16,C=e[7],A+=(S=t[7])>>>16,M+=65535&C,E+=C>>>16,E+=(M+=(A+=(T+=65535&S)>>>16)>>>16)>>>16,e[7]=F=65535&M|E<<16,t[7]=Y=65535&T|A<<16,G+=128,r-=128}return r}function J(e,t,n){var r,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Q(i,o,t,n),n%=128,r=0;r<n;r++)a[r]=t[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Q(i,o,a,n),r=0;r<8;r++)p(e,8*r,i[r],o[r]);return 0}function X(e,n){var r=t(),i=t(),o=t(),a=t(),s=t(),c=t(),l=t(),d=t(),f=t();z(r,e[1],e[0]),z(f,n[1],n[0]),F(r,r,f),L(i,e[0],e[1]),L(f,n[0],n[1]),F(i,i,f),F(o,e[3],n[3]),F(o,o,u),F(a,e[2],n[2]),L(a,a,a),z(s,i,r),z(c,a,o),L(l,a,o),L(d,i,r),F(e[0],s,c),F(e[1],d,l),F(e[2],l,c),F(e[3],s,d)}function Z(e,t,n){var r;for(r=0;r<4;r++)I(e[r],t[r],n)}function ee(e,n){var r=t(),i=t(),o=t();$(o,n[2]),F(r,n[0],o),F(i,n[1],o),D(e,i),e[31]^=N(r)<<7}function te(e,t,n){var r,i;for(O(e[0],a),O(e[1],s),O(e[2],s),O(e[3],a),i=255;i>=0;--i)Z(e,t,r=n[i/8|0]>>(7&i)&1),X(t,e),X(e,e),Z(e,t,r)}function ne(e,n){var r=[t(),t(),t(),t()];O(r[0],d),O(r[1],f),O(r[2],s),F(r[3],d,f),te(e,r,n)}function re(e,n,i){var o,a=new Uint8Array(64),s=[t(),t(),t(),t()];for(i||r(n,32),J(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,ne(s,a),ee(e,s),o=0;o<32;o++)n[o+32]=e[o];return 0}var ie,oe=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function ae(e,t){var n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i<o;++i)t[i]+=n-16*t[r]*oe[i-(r-32)],n=t[i]+128>>8,t[i]-=256*n;t[i]+=n,t[r]=0}for(n=0,i=0;i<32;i++)t[i]+=n-(t[31]>>4)*oe[i],n=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=n*oe[i];for(r=0;r<32;r++)t[r+1]+=t[r]>>8,e[r]=255&t[r]}function se(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;ae(e,n)}function ce(e,n,r,i){var o,a,s=new Uint8Array(64),c=new Uint8Array(64),l=new Uint8Array(64),u=new Float64Array(64),d=[t(),t(),t(),t()];J(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var f=r+64;for(o=0;o<r;o++)e[64+o]=n[o];for(o=0;o<32;o++)e[32+o]=s[32+o];for(J(l,e.subarray(32),r+32),se(l),ne(d,l),ee(e,d),o=32;o<64;o++)e[o]=i[o];for(J(c,e,r+64),se(c),o=0;o<64;o++)u[o]=0;for(o=0;o<32;o++)u[o]=l[o];for(o=0;o<32;o++)for(a=0;a<32;a++)u[o+a]+=c[o]*s[a];return ae(e.subarray(32),u),f}function le(e,n,r,i){var o,c=new Uint8Array(32),u=new Uint8Array(64),d=[t(),t(),t(),t()],f=[t(),t(),t(),t()];if(r<64)return-1;if(function(e,n){var r=t(),i=t(),o=t(),c=t(),u=t(),d=t(),f=t();return O(e[2],s),R(e[1],n),B(o,e[1]),F(c,o,l),z(o,o,e[2]),L(c,e[2],c),B(u,c),B(d,u),F(f,d,u),F(r,f,o),F(r,r,c),V(r,r),F(r,r,o),F(r,r,c),F(r,r,c),F(e[0],r,c),B(i,e[0]),F(i,i,c),j(i,o)&&F(e[0],e[0],h),B(i,e[0]),F(i,i,c),j(i,o)?-1:(N(e[0])===n[31]>>7&&z(e[0],a,e[0]),F(e[3],e[0],e[1]),0)}(f,i))return-1;for(o=0;o<r;o++)e[o]=n[o];for(o=0;o<32;o++)e[o+32]=i[o];if(J(u,e,r),se(u),te(d,f,u),ne(f,n.subarray(32)),X(d,f),ee(c,d),r-=64,g(n,0,c,0)){for(o=0;o<r;o++)e[o]=0;return-1}for(o=0;o<r;o++)e[o]=n[o+64];return r}function ue(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function de(){for(var e=0;e<arguments.length;e++)if(!(arguments[e]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function fe(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:y,crypto_stream_xor:C,crypto_stream:x,crypto_stream_salsa20_xor:w,crypto_stream_salsa20:k,crypto_onetimeauth:T,crypto_onetimeauth_verify:A,crypto_verify_16:v,crypto_verify_32:g,crypto_secretbox:M,crypto_secretbox_open:E,crypto_scalarmult:H,crypto_scalarmult_base:U,crypto_box_beforenm:W,crypto_box_afternm:Y,crypto_box:function(e,t,n,r,i,o){var a=new Uint8Array(32);return W(a,i,o),Y(e,t,n,r,a)},crypto_box_open:function(e,t,n,r,i,o){var a=new Uint8Array(32);return W(a,i,o),G(e,t,n,r,a)},crypto_box_keypair:q,crypto_hash:J,crypto_sign:ce,crypto_sign_keypair:re,crypto_sign_open:le,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:64,crypto_sign_PUBLICKEYBYTES:32,crypto_sign_SECRETKEYBYTES:64,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:t,D:l,L:oe,pack25519:D,unpack25519:R,M:F,A:L,S:B,Z:z,pow2523:V,add:X,set25519:O,modL:ae,scalarmult:te,scalarbase:ne},e.randomBytes=function(e){var t=new Uint8Array(e);return r(t,e),t},e.secretbox=function(e,t,n){de(e,t,n),ue(n,t);for(var r=new Uint8Array(32+e.length),i=new Uint8Array(r.length),o=0;o<e.length;o++)r[o+32]=e[o];return M(i,r,r.length,t,n),i.subarray(16)},e.secretbox.open=function(e,t,n){de(e,t,n),ue(n,t);for(var r=new Uint8Array(16+e.length),i=new Uint8Array(r.length),o=0;o<e.length;o++)r[o+16]=e[o];return r.length<32||0!==E(i,r,r.length,t,n)?null:i.subarray(32)},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=16,e.scalarMult=function(e,t){if(de(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return H(n,e,t),n},e.scalarMult.base=function(e){if(de(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return U(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,r,i){var o=e.box.before(r,i);return e.secretbox(t,n,o)},e.box.before=function(e,t){de(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return W(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,r,i){var o=e.box.before(r,i);return e.secretbox.open(t,n,o)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return q(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(de(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return U(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(de(e,t),64!==t.length)throw new Error("bad secret key size");var n=new Uint8Array(64+e.length);return ce(n,e,e.length,t),n},e.sign.open=function(e,t){if(de(e,t),32!==t.length)throw new Error("bad public key size");var n=new Uint8Array(e.length),r=le(n,e,e.length,t);if(r<0)return null;for(var i=new Uint8Array(r),o=0;o<i.length;o++)i[o]=n[o];return i},e.sign.detached=function(t,n){for(var r=e.sign(t,n),i=new Uint8Array(64),o=0;o<i.length;o++)i[o]=r[o];return i},e.sign.detached.verify=function(e,t,n){if(de(e,t,n),64!==t.length)throw new Error("bad signature size");if(32!==n.length)throw new Error("bad public key size");var r,i=new Uint8Array(64+e.length),o=new Uint8Array(64+e.length);for(r=0;r<64;r++)i[r]=t[r];for(r=0;r<e.length;r++)i[r+64]=e[r];return le(o,i,i.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return re(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(de(e),64!==e.length)throw new Error("bad secret key size");for(var t=new Uint8Array(32),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(de(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(32),n=new Uint8Array(64),r=0;r<32;r++)n[r]=e[r];return re(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=32,e.sign.secretKeyLength=64,e.sign.seedLength=32,e.sign.signatureLength=64,e.hash=function(e){de(e);var t=new Uint8Array(64);return J(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return de(e,t),0!==e.length&&0!==t.length&&e.length===t.length&&0===m(e,0,t,0,e.length)},e.setPRNG=function(e){r=e},(ie="undefined"!=typeof self?self.crypto||self.msCrypto:null)&&ie.getRandomValues?e.setPRNG((function(e,t){var n,r=new Uint8Array(t);for(n=0;n<t;n+=65536)ie.getRandomValues(r.subarray(n,n+Math.min(t-n,65536)));for(n=0;n<t;n++)e[n]=r[n];fe(r)})):(ie=n(3))&&ie.randomBytes&&e.setPRNG((function(e,t){var n,r=ie.randomBytes(t);for(n=0;n<t;n++)e[n]=r[n];fe(r)}))}(e.exports?e.exports:self.nacl=self.nacl||{})},function(e,n,r){!function(t,n){"use strict";e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())}(this,(function(){"use strict";var e={};function n(e){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(e))throw new TypeError("invalid encoding")}return e.decodeUTF8=function(e){if("string"!=typeof e)throw new TypeError("expected string");var t,n=unescape(encodeURIComponent(e)),r=new Uint8Array(n.length);for(t=0;t<n.length;t++)r[t]=n.charCodeAt(t);return r},e.encodeUTF8=function(e){var t,n=[];for(t=0;t<e.length;t++)n.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(n.join("")))},"undefined"==typeof atob?void 0!==t.from?(e.encodeBase64=function(e){return t.from(e).toString("base64")},e.decodeBase64=function(e){return n(e),new Uint8Array(Array.prototype.slice.call(t.from(e,"base64"),0))}):(e.encodeBase64=function(e){return new t(e).toString("base64")},e.decodeBase64=function(e){return n(e),new Uint8Array(Array.prototype.slice.call(new t(e,"base64"),0))}):(e.encodeBase64=function(e){var t,n=[],r=e.length;for(t=0;t<r;t++)n.push(String.fromCharCode(e[t]));return btoa(n.join(""))},e.decodeBase64=function(e){n(e);var t,r=atob(e),i=new Uint8Array(r.length);for(t=0;t<r.length;t++)i[t]=r.charCodeAt(t);return i}),e}))},function(e,t,n){e.exports=n(4).default},function(e,t){},function(e,t,n){"use strict";n.r(t);for(var r=function(){function e(e,t){this.lastId=0,this.prefix=e,this.name=t}return e.prototype.create=function(e){this.lastId++;var t=this.lastId,n=this.prefix+t,r=this.name+"["+t+"]",i=!1,o=function(){i||(e.apply(null,arguments),i=!0)};return this[t]=o,{number:t,id:n,name:r,callback:o}},e.prototype.remove=function(e){delete this[e.number]},e}(),i=new r("_pusher_script_","Pusher.ScriptReceivers"),o={VERSION:"5.1.1",PROTOCOL:7,host:"ws.pusherapp.com",ws_port:80,wss_port:443,ws_path:"",sockjs_host:"sockjs.pusher.com",sockjs_http_port:80,sockjs_https_port:443,sockjs_path:"/pusher",stats_host:"stats.pusher.com",channel_auth_endpoint:"/pusher/auth",channel_auth_transport:"ajax",activity_timeout:12e4,pong_timeout:3e4,unavailable_timeout:1e4,cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},a=function(){function e(e){this.options=e,this.receivers=e.receivers||i,this.loading={}}return e.prototype.load=function(e,t,n){var r=this;if(r.loading[e]&&r.loading[e].length>0)r.loading[e].push(n);else{r.loading[e]=[n];var i=_t.createScriptRequest(r.getPath(e,t)),o=r.receivers.create((function(t){if(r.receivers.remove(o),r.loading[e]){var n=r.loading[e];delete r.loading[e];for(var a=function(e){e||i.cleanup()},s=0;s<n.length;s++)n[s](t,a)}}));i.send(o)}},e.prototype.getRoot=function(e){var t=_t.getDocument().location.protocol;return(e&&e.useTLS||"https:"===t?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version},e.prototype.getPath=function(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"},e}(),s=new r("_pusher_dependencies","Pusher.DependenciesReceivers"),c=new a({cdn_http:o.cdn_http,cdn_https:o.cdn_https,version:o.VERSION,suffix:o.dependency_suffix,receivers:s}),l=String.fromCharCode,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d={},f=0,h=u.length;f<h;f++)d[u.charAt(f)]=f;var p,m=function(e){var t=e.charCodeAt(0);return t<128?e:t<2048?l(192|t>>>6)+l(128|63&t):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|63&t)},v=function(e){return e.replace(/[^\x00-\x7F]/g,m)},g=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[u.charAt(n>>>18),u.charAt(n>>>12&63),t>=2?"=":u.charAt(n>>>6&63),t>=1?"=":u.charAt(63&n)].join("")},b=window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,g)},y=function(){function e(e,t,n,r){var i=this;this.clear=t,this.timer=e((function(){i.timer&&(i.timer=r(i.timer))}),n)}return e.prototype.isRunning=function(){return null!==this.timer},e.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},e}(),_=(p=function(e,t){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function w(e){window.clearTimeout(e)}function k(e){window.clearInterval(e)}var x=function(e){function t(t,n){return e.call(this,setTimeout,w,t,(function(e){return n(),null}))||this}return _(t,e),t}(y),C=function(e){function t(t,n){return e.call(this,setInterval,k,t,(function(e){return n(),e}))||this}return _(t,e),t}(y),S={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(e){return new x(0,e)},method:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1);return function(t){return t[e].apply(t,r.concat(arguments))}}};function T(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0;r<t.length;r++){var i=t[r];for(var o in i)i[o]&&i[o].constructor&&i[o].constructor===Object?e[o]=T(e[o]||{},i[o]):e[o]=i[o]}return e}function A(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"==typeof arguments[t]?e.push(arguments[t]):e.push(z(arguments[t]));return e.join(" : ")}function M(e,t){var n=Array.prototype.indexOf;if(null===e)return-1;if(n&&e.indexOf===n)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}function E(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],n,e)}function O(e){var t=[];return E(e,(function(e,n){t.push(n)})),t}function P(e,t,n){for(var r=0;r<e.length;r++)t.call(n||window,e[r],r,e)}function I(e,t){for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r,e,n));return n}function D(e,t){t=t||function(e){return!!e};for(var n=[],r=0;r<e.length;r++)t(e[r],r,e,n)&&n.push(e[r]);return n}function j(e,t){var n={};return E(e,(function(r,i){(t&&t(r,i,e,n)||Boolean(r))&&(n[i]=r)})),n}function N(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return!0;return!1}function R(e){return t=function(e){return"object"==typeof e&&(e=z(e)),encodeURIComponent((t=e.toString(),b(v(t))));var t},n={},E(e,(function(e,r){n[r]=t(e)})),n;var t,n}function L(e){var t,n,r=j(e,(function(e){return void 0!==e}));return I((t=R(r),n=[],E(t,(function(e,t){n.push([t,e])})),n),S.method("join","=")).join("&")}function z(e){try{return JSON.stringify(e)}catch(r){return JSON.stringify((t=[],n=[],function e(r,i){var o,a,s;switch(typeof r){case"object":if(!r)return null;for(o=0;o<t.length;o+=1)if(t[o]===r)return{$ref:n[o]};if(t.push(r),n.push(i),"[object Array]"===Object.prototype.toString.apply(r))for(s=[],o=0;o<r.length;o+=1)s[o]=e(r[o],i+"["+o+"]");else for(a in s={},r)Object.prototype.hasOwnProperty.call(r,a)&&(s[a]=e(r[a],i+"["+JSON.stringify(a)+"]"));return s;case"number":case"string":case"boolean":return r}}(e,"$")))}var t,n}var F=new(function(){function e(){this.globalLog=function(e){window.console&&window.console.log&&window.console.log(e)}}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(this.globalLog,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(this.globalLogWarn,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log(this.globalLogError,e)},e.prototype.globalLogWarn=function(e){window.console&&window.console.warn?window.console.warn(e):this.globalLog(e)},e.prototype.globalLogError=function(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)},e.prototype.log=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=A.apply(this,arguments);if(Et.log)Et.log(r);else if(Et.logToConsole){var i=e.bind(this);i(r)}},e}()),B={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/authenticating_users"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"}}},$=function(e){var t,n=B.urls[e];return n?(n.fullUrl?t=n.fullUrl:n.path&&(t=B.baseUrl+n.path),t?"See: "+t:""):""},V=function(e,t,n){var r,i=this;for(var o in(r=_t.createXHR()).open("POST",i.options.authEndpoint,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this.authOptions.headers)r.setRequestHeader(o,this.authOptions.headers[o]);return r.onreadystatechange=function(){if(4===r.readyState)if(200===r.status){var e,t=!1;try{e=JSON.parse(r.responseText),t=!0}catch(e){n(!0,"JSON returned from auth endpoint was invalid, yet status code was 200. Data was: "+r.responseText)}t&&n(!1,e)}else{var o=$("authenticationEndpoint");F.error("Unable to retrieve auth string from auth endpoint - received status "+r.status+" from "+i.options.authEndpoint+". Clients must be authenticated to join private or presence channels. "+o),n(!0,r.status)}},r.send(this.composeQuery(t)),r},H=function(e,t,n){void 0!==this.authOptions.headers&&F.warn("To send headers with the auth request, you must use AJAX, rather than JSONP.");var r=e.nextAuthCallbackID.toString();e.nextAuthCallbackID++;var i=e.getDocument(),o=i.createElement("script");e.auth_callbacks[r]=function(e){n(!1,e)};var a="Pusher.auth_callbacks['"+r+"']";o.src=this.options.authEndpoint+"?callback="+encodeURIComponent(a)+"&"+this.composeQuery(t);var s=i.getElementsByTagName("head")[0]||i.documentElement;s.insertBefore(o,s.firstChild)},U=function(){function e(e){this.src=e}return e.prototype.send=function(e){var t=this,n="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(n)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){"loaded"!==t.script.readyState&&"complete"!==t.script.readyState||e.callback(null)},void 0===t.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+n+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var r=document.getElementsByTagName("head")[0];r.insertBefore(t.script,r.firstChild),t.errorScript&&r.insertBefore(t.errorScript,t.script.nextSibling)},e.prototype.cleanup=function(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null},e}(),q=function(){function e(e,t){this.url=e,this.data=t}return e.prototype.send=function(e){if(!this.request){var t=L(this.data),n=this.url+"/"+e.number+"?"+t;this.request=_t.createScriptRequest(n),this.request.send(e)}},e.prototype.cleanup=function(){this.request&&this.request.cleanup()},e}(),W={name:"jsonp",getAgent:function(e,t){return function(n,r){var o="http"+(t?"s":"")+"://"+(e.host||e.options.host)+e.options.path,a=_t.createJSONPRequest(o,n),s=_t.ScriptReceivers.create((function(t,n){i.remove(s),a.cleanup(),n&&n.host&&(e.host=n.host),r&&r(t,n)}));a.send(s)}}};function Y(e,t,n){return e+(t.useTLS?"s":"")+"://"+(t.useTLS?t.hostTLS:t.hostNonTLS)+n}function G(e,t){return"/app/"+e+"?protocol="+o.PROTOCOL+"&client=js&version="+o.VERSION+(t?"&"+t:"")}var K={getInitial:function(e,t){return Y("ws",t,(t.httpPath||"")+G(e,"flash=false"))}},Q={getInitial:function(e,t){return Y("http",t,(t.httpPath||"/pusher")+G(e))}},J={getInitial:function(e,t){return Y("http",t,t.httpPath||"/pusher")},getPath:function(e,t){return G(e)}},X=function(){function e(){this._callbacks={}}return e.prototype.get=function(e){return this._callbacks[Z(e)]},e.prototype.add=function(e,t,n){var r=Z(e);this._callbacks[r]=this._callbacks[r]||[],this._callbacks[r].push({fn:t,context:n})},e.prototype.remove=function(e,t,n){if(e||t||n){var r=e?[Z(e)]:O(this._callbacks);t||n?this.removeCallback(r,t,n):this.removeAllCallbacks(r)}else this._callbacks={}},e.prototype.removeCallback=function(e,t,n){P(e,(function(e){this._callbacks[e]=D(this._callbacks[e]||[],(function(e){return t&&t!==e.fn||n&&n!==e.context})),0===this._callbacks[e].length&&delete this._callbacks[e]}),this)},e.prototype.removeAllCallbacks=function(e){P(e,(function(e){delete this._callbacks[e]}),this)},e}();function Z(e){return"_"+e}var ee=function(){function e(e){this.callbacks=new X,this.global_callbacks=[],this.failThrough=e}return e.prototype.bind=function(e,t,n){return this.callbacks.add(e,t,n),this},e.prototype.bind_global=function(e){return this.global_callbacks.push(e),this},e.prototype.unbind=function(e,t,n){return this.callbacks.remove(e,t,n),this},e.prototype.unbind_global=function(e){return e?(this.global_callbacks=D(this.global_callbacks||[],(function(t){return t!==e})),this):(this.global_callbacks=[],this)},e.prototype.unbind_all=function(){return this.unbind(),this.unbind_global(),this},e.prototype.emit=function(e,t,n){for(var r=0;r<this.global_callbacks.length;r++)this.global_callbacks[r](e,t);var i=this.callbacks.get(e),o=[];if(n?o.push(t,n):t&&o.push(t),i&&i.length>0)for(r=0;r<i.length;r++)i[r].fn.apply(i[r].context||window,o);else this.failThrough&&this.failThrough(e,t);return this},e}(),te=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ne=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a.initialize=_t.transportConnectionInitializer,a.hooks=t,a.name=n,a.priority=r,a.key=i,a.options=o,a.state="new",a.timeline=o.timeline,a.activityTimeout=o.activityTimeout,a.id=a.timeline.generateUniqueID(),a}return te(t,e),t.prototype.handlesActivityChecks=function(){return Boolean(this.hooks.handlesActivityChecks)},t.prototype.supportsPing=function(){return Boolean(this.hooks.supportsPing)},t.prototype.connect=function(){var e=this;if(this.socket||"initialized"!==this.state)return!1;var t=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(t,this.options)}catch(t){return S.defer((function(){e.onError(t),e.changeState("closed")})),!1}return this.bindListeners(),F.debug("Connecting",{transport:this.name,url:t}),this.changeState("connecting"),!0},t.prototype.close=function(){return!!this.socket&&(this.socket.close(),!0)},t.prototype.send=function(e){var t=this;return"open"===this.state&&(S.defer((function(){t.socket&&t.socket.send(e)})),!0)},t.prototype.ping=function(){"open"===this.state&&this.supportsPing()&&this.socket.ping()},t.prototype.onOpen=function(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0},t.prototype.onError=function(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))},t.prototype.onClose=function(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0},t.prototype.onMessage=function(e){this.emit("message",e)},t.prototype.onActivity=function(){this.emit("activity")},t.prototype.bindListeners=function(){var e=this;this.socket.onopen=function(){e.onOpen()},this.socket.onerror=function(t){e.onError(t)},this.socket.onclose=function(t){e.onClose(t)},this.socket.onmessage=function(t){e.onMessage(t)},this.supportsPing()&&(this.socket.onactivity=function(){e.onActivity()})},t.prototype.unbindListeners=function(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))},t.prototype.changeState=function(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)},t.prototype.buildTimelineMessage=function(e){return T({cid:this.id},e)},t}(ee),re=function(){function e(e){this.hooks=e}return e.prototype.isSupported=function(e){return this.hooks.isSupported(e)},e.prototype.createConnection=function(e,t,n,r){return new ne(this.hooks,e,t,n,r)},e}(),ie=new re({urls:K,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(_t.getWebSocketAPI())},isSupported:function(){return Boolean(_t.getWebSocketAPI())},getSocket:function(e){return _t.createWebSocket(e)}}),oe={urls:Q,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},ae=T({getSocket:function(e){return _t.HTTPFactory.createStreamingSocket(e)}},oe),se=T({getSocket:function(e){return _t.HTTPFactory.createPollingSocket(e)}},oe),ce={isSupported:function(){return _t.isXHRSupported()}},le={ws:ie,xhr_streaming:new re(T({},ae,ce)),xhr_polling:new re(T({},se,ce))},ue=new re({file:"sockjs",urls:J,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(e,t){return new window.SockJS(e,null,{js_path:c.getPath("sockjs",{useTLS:t.useTLS}),ignore_null_origin:t.ignoreNullOrigin})},beforeOpen:function(e,t){e.send(JSON.stringify({path:t}))}}),de={isSupported:function(e){return _t.isXDRSupported(e.useTLS)}},fe=new re(T({},ae,de)),he=new re(T({},se,de));le.xdr_streaming=fe,le.xdr_polling=he,le.sockjs=ue;var pe=le,me=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ve=new(function(e){function t(){var t=e.call(this)||this,n=t;return void 0!==window.addEventListener&&(window.addEventListener("online",(function(){n.emit("online")}),!1),window.addEventListener("offline",(function(){n.emit("offline")}),!1)),t}return me(t,e),t.prototype.isOnline=function(){return void 0===window.navigator.onLine||window.navigator.onLine},t}(ee)),ge=function(){function e(e,t,n){this.manager=e,this.transport=t,this.minPingDelay=n.minPingDelay,this.maxPingDelay=n.maxPingDelay,this.pingDelay=void 0}return e.prototype.createConnection=function(e,t,n,r){var i=this;r=T({},r,{activityTimeout:this.pingDelay});var o=this.transport.createConnection(e,t,n,r),a=null,s=function(){o.unbind("open",s),o.bind("closed",c),a=S.now()},c=function(e){if(o.unbind("closed",c),1002===e.code||1003===e.code)i.manager.reportDeath();else if(!e.wasClean&&a){var t=S.now()-a;t<2*i.maxPingDelay&&(i.manager.reportDeath(),i.pingDelay=Math.max(t/2,i.minPingDelay))}};return o.bind("open",s),o},e.prototype.isSupported=function(e){return this.manager.isAlive()&&this.transport.isSupported(e)},e}(),be={decodeMessage:function(e){try{var t=JSON.parse(e.data),n=t.data;if("string"==typeof n)try{n=JSON.parse(t.data)}catch(e){}var r={event:t.event,channel:t.channel,data:n};return t.user_id&&(r.user_id=t.user_id),r}catch(t){throw{type:"MessageParseError",error:t,data:e.data}}},encodeMessage:function(e){return JSON.stringify(e)},processHandshake:function(e){var t=be.decodeMessage(e);if("pusher:connection_established"===t.event){if(!t.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:t.data.socket_id,activityTimeout:1e3*t.data.activity_timeout}}if("pusher:error"===t.event)return{action:this.getCloseAction(t.data),error:this.getCloseError(t.data)};throw"Invalid handshake"},getCloseAction:function(e){return e.code<4e3?e.code>=1002&&e.code<=1004?"backoff":null:4e3===e.code?"tls_only":e.code<4100?"refused":e.code<4200?"backoff":e.code<4300?"retry":"refused"},getCloseError:function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}},ye=be,_e=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),we=function(e){function t(t,n){var r=e.call(this)||this;return r.id=t,r.transport=n,r.activityTimeout=n.activityTimeout,r.bindListeners(),r}return _e(t,e),t.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},t.prototype.send=function(e){return this.transport.send(e)},t.prototype.send_event=function(e,t,n){var r={event:e,data:t};return n&&(r.channel=n),F.debug("Event sent",r),this.send(ye.encodeMessage(r))},t.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},t.prototype.close=function(){this.transport.close()},t.prototype.bindListeners=function(){var e=this,t={message:function(t){var n;try{n=ye.decodeMessage(t)}catch(n){e.emit("error",{type:"MessageParseError",error:n,data:t.data})}if(void 0!==n){switch(F.debug("Event recd",n),n.event){case"pusher:error":e.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":e.emit("ping");break;case"pusher:pong":e.emit("pong")}e.emit("message",n)}},activity:function(){e.emit("activity")},error:function(t){e.emit("error",{type:"WebSocketError",error:t})},closed:function(t){n(),t&&t.code&&e.handleCloseEvent(t),e.transport=null,e.emit("closed")}},n=function(){E(t,(function(t,n){e.transport.unbind(n,t)}))};E(t,(function(t,n){e.transport.bind(n,t)}))},t.prototype.handleCloseEvent=function(e){var t=ye.getCloseAction(e),n=ye.getCloseError(e);n&&this.emit("error",n),t&&this.emit(t,{action:t,error:n})},t}(ee),ke=function(){function e(e,t){this.transport=e,this.callback=t,this.bindListeners()}return e.prototype.close=function(){this.unbindListeners(),this.transport.close()},e.prototype.bindListeners=function(){var e=this;this.onMessage=function(t){var n;e.unbindListeners();try{n=ye.processHandshake(t)}catch(t){return e.finish("error",{error:t}),void e.transport.close()}"connected"===n.action?e.finish("connected",{connection:new we(n.id,e.transport),activityTimeout:n.activityTimeout}):(e.finish(n.action,{error:n.error}),e.transport.close())},this.onClosed=function(t){e.unbindListeners();var n=ye.getCloseAction(t)||"backoff",r=ye.getCloseError(t);e.finish(n,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},e.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},e.prototype.finish=function(e,t){this.callback(T({transport:this.transport,action:e},t))},e}(),xe=function(){function e(e,t){this.channel=e;var n=t.authTransport;if(void 0===_t.getAuthorizers()[n])throw"'"+n+"' is not a recognized auth transport";this.type=n,this.options=t,this.authOptions=(t||{}).auth||{}}return e.prototype.composeQuery=function(e){var t="socket_id="+encodeURIComponent(e)+"&channel_name="+encodeURIComponent(this.channel.name);for(var n in this.authOptions.params)t+="&"+encodeURIComponent(n)+"="+encodeURIComponent(this.authOptions.params[n]);return t},e.prototype.authorize=function(t,n){e.authorizers=e.authorizers||_t.getAuthorizers(),e.authorizers[this.type].call(this,_t,t,n)},e}(),Ce=function(){function e(e,t){this.timeline=e,this.options=t||{}}return e.prototype.send=function(e,t){this.timeline.isEmpty()||this.timeline.send(_t.TimelineTransport.getAgent(this,e),t)},e}(),Se=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Te=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return Se(t,e),t}(Error),Ae=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return Se(t,e),t}(Error),Me=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return Se(t,e),t}(Error),Ee=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return Se(t,e),t}(Error),Oe=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return Se(t,e),t}(Error),Pe=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return Se(t,e),t}(Error),Ie=function(e){function t(t){var n=this.constructor,r=e.call(this,t)||this;return Object.setPrototypeOf(r,n.prototype),r}return Se(t,e),t}(Error),De=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),je=function(e){function t(t,n){var r=e.call(this,(function(e,n){F.debug("No callbacks on "+t+" for "+e)}))||this;return r.name=t,r.pusher=n,r.subscribed=!1,r.subscriptionPending=!1,r.subscriptionCancelled=!1,r}return De(t,e),t.prototype.authorize=function(e,t){return t(!1,{auth:""})},t.prototype.trigger=function(e,t){if(0!==e.indexOf("client-"))throw new Te("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var n=$("triggeringClientEvents");F.warn("Client event triggered before channel 'subscription_succeeded' event . "+n)}return this.pusher.send_event(e,t,this.name)},t.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},t.prototype.handleEvent=function(e){var t=e.event,n=e.data;"pusher_internal:subscription_succeeded"===t?this.handleSubscriptionSucceededEvent(e):0!==t.indexOf("pusher_internal:")&&this.emit(t,n,{})},t.prototype.handleSubscriptionSucceededEvent=function(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)},t.prototype.subscribe=function(){var e=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(function(t,n){t?(F.error(n),e.emit("pusher:subscription_error",n)):(n=n,e.pusher.send_event("pusher:subscribe",{auth:n.auth,channel_data:n.channel_data,channel:e.name}))})))},t.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},t.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},t.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},t}(ee),Ne=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ne(t,e),t.prototype.authorize=function(e,t){return Ye.createAuthorizer(this,this.pusher.config).authorize(e,t)},t}(je),Le=function(){function e(){this.reset()}return e.prototype.get=function(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null},e.prototype.each=function(e){var t=this;E(this.members,(function(n,r){e(t.get(r))}))},e.prototype.setMyID=function(e){this.myID=e},e.prototype.onSubscription=function(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)},e.prototype.addMember=function(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)},e.prototype.removeMember=function(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t},e.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},e}(),ze=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fe=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.members=new Le,r}return ze(t,e),t.prototype.authorize=function(t,n){var r=this;e.prototype.authorize.call(this,t,(function(e,t){if(!e){if(void 0===(t=t).channel_data){var i=$("authenticationEndpoint");return F.error("Invalid auth response for channel '"+r.name+"',expected 'channel_data' field. "+i),void n("Invalid auth response")}var o=JSON.parse(t.channel_data);r.members.setMyID(o.user_id)}n(e,t)}))},t.prototype.handleEvent=function(e){var t=e.event;if(0===t.indexOf("pusher_internal:"))this.handleInternalEvent(e);else{var n=e.data,r={};e.user_id&&(r.user_id=e.user_id),this.emit(t,n,r)}},t.prototype.handleInternalEvent=function(e){var t=e.event,n=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:member_added":var r=this.members.addMember(n);this.emit("pusher:member_added",r);break;case"pusher_internal:member_removed":var i=this.members.removeMember(n);i&&this.emit("pusher:member_removed",i)}},t.prototype.handleSubscriptionSucceededEvent=function(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))},t.prototype.disconnect=function(){this.members.reset(),e.prototype.disconnect.call(this)},t}(Re),Be=n(0),$e=n(1),Ve=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),He=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.key=null,t}return Ve(t,e),t.prototype.authorize=function(t,n){var r=this;e.prototype.authorize.call(this,t,(function(e,t){if(e)n(!0,t);else{var i=t.shared_secret;if(i)r.key=Object($e.decodeBase64)(i),delete t.shared_secret,n(!1,t);else{var o="No shared_secret key in auth payload for encrypted channel: "+r.name;n(!0,o)}}}))},t.prototype.trigger=function(e,t){throw new Oe("Client events are not currently supported for encrypted channels")},t.prototype.handleEvent=function(t){var n=t.event,r=t.data;0!==n.indexOf("pusher_internal:")&&0!==n.indexOf("pusher:")?this.handleEncryptedEvent(n,r):e.prototype.handleEvent.call(this,t)},t.prototype.handleEncryptedEvent=function(e,t){var n=this;if(this.key)if(t.ciphertext&&t.nonce){var r=Object($e.decodeBase64)(t.ciphertext);if(r.length<Be.secretbox.overheadLength)F.error("Expected encrypted event ciphertext length to be "+Be.secretbox.overheadLength+", got: "+r.length);else{var i=Object($e.decodeBase64)(t.nonce);if(i.length<Be.secretbox.nonceLength)F.error("Expected encrypted event nonce length to be "+Be.secretbox.nonceLength+", got: "+i.length);else{var o=Be.secretbox.open(r,i,this.key);if(null===o)return F.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,(function(t,a){t?F.error("Failed to make a request to the authEndpoint: "+a+". Unable to fetch new key, so dropping encrypted event"):null!==(o=Be.secretbox.open(r,i,n.key))?n.emitJSON(e,Object($e.encodeUTF8)(o)):F.error("Failed to decrypt event with new key. Dropping encrypted event")}));this.emitJSON(e,Object($e.encodeUTF8)(o))}}}else F.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);else F.debug("Received encrypted event before key has been retrieved from the authEndpoint")},t.prototype.emitJSON=function(e,t){try{this.emit(e,JSON.parse(t))}catch(n){this.emit(e,t)}return this},t}(Re),Ue=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qe=function(e){function t(t,n){var r=e.call(this)||this;r.key=t,r.options=n||{},r.state="initialized",r.connection=null,r.usingTLS=!!n.useTLS,r.timeline=r.options.timeline,r.errorCallbacks=r.buildErrorCallbacks(),r.connectionCallbacks=r.buildConnectionCallbacks(r.errorCallbacks),r.handshakeCallbacks=r.buildHandshakeCallbacks(r.errorCallbacks);var i=_t.getNetwork();return i.bind("online",(function(){r.timeline.info({netinfo:"online"}),"connecting"!==r.state&&"unavailable"!==r.state||r.retryIn(0)})),i.bind("offline",(function(){r.timeline.info({netinfo:"offline"}),r.connection&&r.sendActivityCheck()})),r.updateStrategy(),r}return Ue(t,e),t.prototype.connect=function(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))},t.prototype.send=function(e){return!!this.connection&&this.connection.send(e)},t.prototype.send_event=function(e,t,n){return!!this.connection&&this.connection.send_event(e,t,n)},t.prototype.disconnect=function(){this.disconnectInternally(),this.updateState("disconnected")},t.prototype.isUsingTLS=function(){return this.usingTLS},t.prototype.startConnecting=function(){var e=this,t=function(n,r){n?e.runner=e.strategy.connect(0,t):"error"===r.action?(e.emit("error",{type:"HandshakeError",error:r.error}),e.timeline.error({handshakeError:r.error})):(e.abortConnecting(),e.handshakeCallbacks[r.action](r))};this.runner=this.strategy.connect(0,t)},t.prototype.abortConnecting=function(){this.runner&&(this.runner.abort(),this.runner=null)},t.prototype.disconnectInternally=function(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()},t.prototype.updateStrategy=function(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})},t.prototype.retryIn=function(e){var t=this;this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new x(e||0,(function(){t.disconnectInternally(),t.connect()}))},t.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},t.prototype.setUnavailableTimer=function(){var e=this;this.unavailableTimer=new x(this.options.unavailableTimeout,(function(){e.updateState("unavailable")}))},t.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},t.prototype.sendActivityCheck=function(){var e=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new x(this.options.pongTimeout,(function(){e.timeline.error({pong_timed_out:e.options.pongTimeout}),e.retryIn(0)}))},t.prototype.resetActivityCheck=function(){var e=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new x(this.activityTimeout,(function(){e.sendActivityCheck()})))},t.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},t.prototype.buildConnectionCallbacks=function(e){var t=this;return T({},e,{message:function(e){t.resetActivityCheck(),t.emit("message",e)},ping:function(){t.send_event("pusher:pong",{})},activity:function(){t.resetActivityCheck()},error:function(e){t.emit("error",{type:"WebSocketError",error:e})},closed:function(){t.abandonConnection(),t.shouldRetry()&&t.retryIn(1e3)}})},t.prototype.buildHandshakeCallbacks=function(e){var t=this;return T({},e,{connected:function(e){t.activityTimeout=Math.min(t.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),t.clearUnavailableTimer(),t.setConnection(e.connection),t.socket_id=t.connection.id,t.updateState("connected",{socket_id:t.socket_id})}})},t.prototype.buildErrorCallbacks=function(){var e=this,t=function(t){return function(n){n.error&&e.emit("error",{type:"WebSocketError",error:n.error}),t(n)}};return{tls_only:t((function(){e.usingTLS=!0,e.updateStrategy(),e.retryIn(0)})),refused:t((function(){e.disconnect()})),backoff:t((function(){e.retryIn(1e3)})),retry:t((function(){e.retryIn(0)}))}},t.prototype.setConnection=function(e){for(var t in this.connection=e,this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()},t.prototype.abandonConnection=function(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}},t.prototype.updateState=function(e,t){var n=this.state;if(this.state=e,n!==e){var r=e;"connected"===r&&(r+=" with new socket ID "+t.socket_id),F.debug("State changed",n+" -> "+r),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:n,current:e}),this.emit(e,t)}},t.prototype.shouldRetry=function(){return"connecting"===this.state||"connected"===this.state},t}(ee),We=function(){function e(){this.channels={}}return e.prototype.add=function(e,t){return this.channels[e]||(this.channels[e]=function(e,t){return 0===e.indexOf("private-encrypted-")?Ye.createEncryptedChannel(e,t):0===e.indexOf("private-")?Ye.createPrivateChannel(e,t):0===e.indexOf("presence-")?Ye.createPresenceChannel(e,t):Ye.createChannel(e,t)}(e,t)),this.channels[e]},e.prototype.all=function(){return function(e){var t=[];return E(e,(function(e){t.push(e)})),t}(this.channels)},e.prototype.find=function(e){return this.channels[e]},e.prototype.remove=function(e){var t=this.channels[e];return delete this.channels[e],t},e.prototype.disconnect=function(){E(this.channels,(function(e){e.disconnect()}))},e}(),Ye={createChannels:function(){return new We},createConnectionManager:function(e,t){return new qe(e,t)},createChannel:function(e,t){return new je(e,t)},createPrivateChannel:function(e,t){return new Re(e,t)},createPresenceChannel:function(e,t){return new Fe(e,t)},createEncryptedChannel:function(e,t){return new He(e,t)},createTimelineSender:function(e,t){return new Ce(e,t)},createAuthorizer:function(e,t){return t.authorizer?t.authorizer(e,t):new xe(e,t)},createHandshake:function(e,t){return new ke(e,t)},createAssistantToTheTransportManager:function(e,t,n){return new ge(e,t,n)}},Ge=function(){function e(e){this.options=e||{},this.livesLeft=this.options.lives||1/0}return e.prototype.getAssistant=function(e){return Ye.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},e.prototype.isAlive=function(){return this.livesLeft>0},e.prototype.reportDeath=function(){this.livesLeft-=1},e}(),Ke=function(){function e(e,t){this.strategies=e,this.loop=Boolean(t.loop),this.failFast=Boolean(t.failFast),this.timeout=t.timeout,this.timeoutLimit=t.timeoutLimit}return e.prototype.isSupported=function(){return N(this.strategies,S.method("isSupported"))},e.prototype.connect=function(e,t){var n=this,r=this.strategies,i=0,o=this.timeout,a=null,s=function(c,l){l?t(null,l):(i+=1,n.loop&&(i%=r.length),i<r.length?(o&&(o*=2,n.timeoutLimit&&(o=Math.min(o,n.timeoutLimit))),a=n.tryStrategy(r[i],e,{timeout:o,failFast:n.failFast},s)):t(!0))};return a=this.tryStrategy(r[i],e,{timeout:o,failFast:this.failFast},s),{abort:function(){a.abort()},forceMinPriority:function(t){e=t,a&&a.forceMinPriority(t)}}},e.prototype.tryStrategy=function(e,t,n,r){var i=null,o=null;return n.timeout>0&&(i=new x(n.timeout,(function(){o.abort(),r(!0)}))),o=e.connect(t,(function(e,t){e&&i&&i.isRunning()&&!n.failFast||(i&&i.ensureAborted(),r(e,t))})),{abort:function(){i&&i.ensureAborted(),o.abort()},forceMinPriority:function(e){o.forceMinPriority(e)}}},e}(),Qe=function(){function e(e){this.strategies=e}return e.prototype.isSupported=function(){return N(this.strategies,S.method("isSupported"))},e.prototype.connect=function(e,t){return function(e,t,n){var r=I(e,(function(e,r,i,o){return e.connect(t,n(r,o))}));return{abort:function(){P(r,Je)},forceMinPriority:function(e){P(r,(function(t){t.forceMinPriority(e)}))}}}(this.strategies,e,(function(e,n){return function(r,i){n[e].error=r,r?function(e){return function(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n,e))return!1;return!0}(e,(function(e){return Boolean(e.error)}))}(n)&&t(!0):(P(n,(function(e){e.forceMinPriority(i.transport.priority)})),t(null,i))}}))},e}();function Je(e){e.error||e.aborted||(e.abort(),e.aborted=!0)}var Xe=function(){function e(e,t,n){this.strategy=e,this.transports=t,this.ttl=n.ttl||18e5,this.usingTLS=n.useTLS,this.timeline=n.timeline}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var n=this.usingTLS,r=function(e){var t=_t.getLocalStorage();if(t)try{var n=t[Ze(e)];if(n)return JSON.parse(n)}catch(t){et(e)}return null}(n),i=[this.strategy];if(r&&r.timestamp+this.ttl>=S.now()){var o=this.transports[r.transport];o&&(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),i.push(new Ke([o],{timeout:2*r.latency+1e3,failFast:!0})))}var a=S.now(),s=i.pop().connect(e,(function r(o,c){o?(et(n),i.length>0?(a=S.now(),s=i.pop().connect(e,r)):t(o)):(function(e,t,n){var r=_t.getLocalStorage();if(r)try{r[Ze(e)]=z({timestamp:S.now(),transport:t,latency:n})}catch(e){}}(n,c.transport.name,S.now()-a),t(null,c))}));return{abort:function(){s.abort()},forceMinPriority:function(t){e=t,s&&s.forceMinPriority(t)}}},e}();function Ze(e){return"pusherTransport"+(e?"TLS":"NonTLS")}function et(e){var t=_t.getLocalStorage();if(t)try{delete t[Ze(e)]}catch(e){}}var tt=function(){function e(e,t){var n=t.delay;this.strategy=e,this.options={delay:n}}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var n,r=this.strategy,i=new x(this.options.delay,(function(){n=r.connect(e,t)}));return{abort:function(){i.ensureAborted(),n&&n.abort()},forceMinPriority:function(t){e=t,n&&n.forceMinPriority(t)}}},e}(),nt=function(){function e(e,t,n){this.test=e,this.trueBranch=t,this.falseBranch=n}return e.prototype.isSupported=function(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()},e.prototype.connect=function(e,t){return(this.test()?this.trueBranch:this.falseBranch).connect(e,t)},e}(),rt=function(){function e(e){this.strategy=e}return e.prototype.isSupported=function(){return this.strategy.isSupported()},e.prototype.connect=function(e,t){var n=this.strategy.connect(e,(function(e,r){r&&n.abort(),t(e,r)}));return n},e}();function it(e){return function(){return e.isSupported()}}var ot,at=function(e,t){var n={};function r(r,i,o,a,s){var c=t(e,r,i,o,a,s);return n[r]=c,c}var i,o={hostNonTLS:e.wsHost+":"+e.wsPort,hostTLS:e.wsHost+":"+e.wssPort,httpPath:e.wsPath},a=T({},o,{useTLS:!0}),s={hostNonTLS:e.httpHost+":"+e.httpPort,hostTLS:e.httpHost+":"+e.httpsPort,httpPath:e.httpPath},c={loop:!0,timeout:15e3,timeoutLimit:6e4},l=new Ge({lives:2,minPingDelay:1e4,maxPingDelay:e.activity_timeout}),u=new Ge({lives:2,minPingDelay:1e4,maxPingDelay:e.activity_timeout}),d=r("ws","ws",3,o,l),f=r("wss","ws",3,a,l),h=r("sockjs","sockjs",1,s),p=r("xhr_streaming","xhr_streaming",1,s,u),m=r("xdr_streaming","xdr_streaming",1,s,u),v=r("xhr_polling","xhr_polling",1,s),g=r("xdr_polling","xdr_polling",1,s),b=new Ke([d],c),y=new Ke([f],c),_=new Ke([h],c),w=new Ke([new nt(it(p),p,m)],c),k=new Ke([new nt(it(v),v,g)],c),x=new Ke([new nt(it(w),new Qe([w,new tt(k,{delay:4e3})]),k)],c),C=new nt(it(x),x,_);return i=e.useTLS?new Qe([b,new tt(C,{delay:2e3})]):new Qe([b,new tt(y,{delay:2e3}),new tt(C,{delay:5e3})]),new Xe(new rt(new nt(it(d),i,C)),n,{ttl:18e5,timeline:e.timeline,useTLS:e.useTLS})},st={getRequest:function(e){var t=new window.XDomainRequest;return t.ontimeout=function(){e.emit("error",new Ae),e.close()},t.onerror=function(t){e.emit("error",t),e.close()},t.onprogress=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}},ct=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lt=function(e){function t(t,n,r){var i=e.call(this)||this;return i.hooks=t,i.method=n,i.url=r,i}return ct(t,e),t.prototype.start=function(e){var t=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){t.close()},_t.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)},t.prototype.close=function(){this.unloader&&(_t.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},t.prototype.onChunk=function(e,t){for(;;){var n=this.advanceBuffer(t);if(!n)break;this.emit("chunk",{status:e,data:n})}this.isBufferTooLong(t)&&this.emit("buffer_too_long")},t.prototype.advanceBuffer=function(e){var t=e.slice(this.position),n=t.indexOf("\n");return-1!==n?(this.position+=n+1,t.slice(0,n)):null},t.prototype.isBufferTooLong=function(e){return this.position===e.length&&e.length>262144},t}(ee);!function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSED=3]="CLOSED"}(ot||(ot={}));var ut=ot,dt=1;function ft(e){var t=-1===e.indexOf("?")?"?":"&";return e+t+"t="+ +new Date+"&n="+dt++}function ht(e){return Math.floor(Math.random()*e)}var pt,mt=function(){function e(e,t){this.hooks=e,this.session=ht(1e3)+"/"+function(e){for(var t=[],n=0;n<e;n++)t.push(ht(32).toString(32));return t.join("")}(8),this.location=function(e){var t=/([^\?]*)\/*(\??.*)/.exec(e);return{base:t[1],queryString:t[2]}}(t),this.readyState=ut.CONNECTING,this.openStream()}return e.prototype.send=function(e){return this.sendRaw(JSON.stringify([e]))},e.prototype.ping=function(){this.hooks.sendHeartbeat(this)},e.prototype.close=function(e,t){this.onClose(e,t,!0)},e.prototype.sendRaw=function(e){if(this.readyState!==ut.OPEN)return!1;try{return _t.createSocketRequest("POST",ft((t=this.location,n=this.session,t.base+"/"+n+"/xhr_send"))).start(e),!0}catch(e){return!1}var t,n},e.prototype.reconnect=function(){this.closeStream(),this.openStream()},e.prototype.onClose=function(e,t,n){this.closeStream(),this.readyState=ut.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:n})},e.prototype.onChunk=function(e){var t;if(200===e.status)switch(this.readyState===ut.OPEN&&this.onActivity(),e.data.slice(0,1)){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var n=0;n<t.length;n++)this.onEvent(t[n]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0)}},e.prototype.onOpen=function(e){var t,n,r;this.readyState===ut.CONNECTING?(e&&e.hostname&&(this.location.base=(t=this.location.base,n=e.hostname,(r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(t))[1]+n+r[3])),this.readyState=ut.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)},e.prototype.onEvent=function(e){this.readyState===ut.OPEN&&this.onmessage&&this.onmessage({data:e})},e.prototype.onActivity=function(){this.onactivity&&this.onactivity()},e.prototype.onError=function(e){this.onerror&&this.onerror(e)},e.prototype.openStream=function(){var e=this;this.stream=_t.createSocketRequest("POST",ft(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",(function(t){e.onChunk(t)})),this.stream.bind("finished",(function(t){e.hooks.onFinished(e,t)})),this.stream.bind("buffer_too_long",(function(){e.reconnect()}));try{this.stream.start()}catch(t){S.defer((function(){e.onError(t),e.onClose(1006,"Could not start streaming",!1)}))}},e.prototype.closeStream=function(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)},e}(),vt={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr_streaming"+e.queryString},onHeartbeat:function(e){e.sendRaw("[]")},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){e.onClose(1006,"Connection interrupted ("+t+")",!1)}},gt={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr"+e.queryString},onHeartbeat:function(){},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){200===t?e.reconnect():e.onClose(1006,"Connection interrupted ("+t+")",!1)}},bt={getRequest:function(e){var t=new(_t.getXHRAPI());return t.onreadystatechange=t.onprogress=function(){switch(t.readyState){case 3:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText);break;case 4:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText),e.emit("finished",t.status),e.close()}},t},abortRequest:function(e){e.onreadystatechange=null,e.abort()}},yt={createStreamingSocket:function(e){return this.createSocket(vt,e)},createPollingSocket:function(e){return this.createSocket(gt,e)},createSocket:function(e,t){return new mt(e,t)},createXHR:function(e,t){return this.createRequest(bt,e,t)},createRequest:function(e,t,n){return new lt(e,t,n)},createXDR:function(e,t){return this.createRequest(st,e,t)}},_t={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:s,getDefaultStrategy:at,Transports:pe,transportConnectionInitializer:function(){var e=this;e.timeline.info(e.buildTimelineMessage({transport:e.name+(e.options.useTLS?"s":"")})),e.hooks.isInitialized()?e.changeState("initialized"):e.hooks.file?(e.changeState("initializing"),c.load(e.hooks.file,{useTLS:e.options.useTLS},(function(t,n){e.hooks.isInitialized()?(e.changeState("initialized"),n(!0)):(t&&e.onError(t),e.onClose(),n(!1))}))):e.onClose()},HTTPFactory:yt,TimelineTransport:W,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(e){var t=this;window.Pusher=e;var n=function(){t.onDocumentBody(e.ready)};window.JSON?n():c.load("json2",{},n)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:V,jsonp:H}},onDocumentBody:function(e){var t=this;document.body?e():setTimeout((function(){t.onDocumentBody(e)}),0)},createJSONPRequest:function(e,t){return new q(e,t)},createScriptRequest:function(e){return new U(e)},getLocalStorage:function(){try{return window.localStorage}catch(e){return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){return new(this.getXHRAPI())},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return ve},createWebSocket:function(e){return new(this.getWebSocketAPI())(e)},createSocketRequest:function(e,t){if(this.isXHRSupported())return this.HTTPFactory.createXHR(e,t);if(this.isXDRSupported(0===t.indexOf("https:")))return this.HTTPFactory.createXDR(e,t);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var e=this.getXHRAPI();return Boolean(e)&&void 0!==(new e).withCredentials},isXDRSupported:function(e){var t=e?"https:":"http:",n=this.getProtocol();return Boolean(window.XDomainRequest)&&n===t},addUnloadListener:function(e){void 0!==window.addEventListener?window.addEventListener("unload",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e)},removeUnloadListener:function(e){void 0!==window.addEventListener?window.removeEventListener("unload",e,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",e)}};!function(e){e[e.ERROR=3]="ERROR",e[e.INFO=6]="INFO",e[e.DEBUG=7]="DEBUG"}(pt||(pt={}));var wt=pt,kt=function(){function e(e,t,n){this.key=e,this.session=t,this.events=[],this.options=n||{},this.sent=0,this.uniqueID=0}return e.prototype.log=function(e,t){e<=this.options.level&&(this.events.push(T({},t,{timestamp:S.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},e.prototype.error=function(e){this.log(wt.ERROR,e)},e.prototype.info=function(e){this.log(wt.INFO,e)},e.prototype.debug=function(e){this.log(wt.DEBUG,e)},e.prototype.isEmpty=function(){return 0===this.events.length},e.prototype.send=function(e,t){var n=this,r=T({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(r,(function(e,r){e||n.sent++,t&&t(e,r)})),!0},e.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},e}(),xt=function(){function e(e,t,n,r){this.name=e,this.priority=t,this.transport=n,this.options=r||{}}return e.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},e.prototype.connect=function(e,t){var n=this;if(!this.isSupported())return Ct(new Ie,t);if(this.priority<e)return Ct(new Me,t);var r=!1,i=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),o=null,a=function(){i.unbind("initialized",a),i.connect()},s=function(){o=Ye.createHandshake(i,(function(e){r=!0,u(),t(null,e)}))},c=function(e){u(),t(e)},l=function(){var e;u(),e=z(i),t(new Ee(e))},u=function(){i.unbind("initialized",a),i.unbind("open",s),i.unbind("error",c),i.unbind("closed",l)};return i.bind("initialized",a),i.bind("open",s),i.bind("error",c),i.bind("closed",l),i.initialize(),{abort:function(){r||(u(),o?o.close():i.close())},forceMinPriority:function(e){r||n.priority<e&&(o?o.close():i.close())}}},e}();function Ct(e,t){return S.defer((function(){t(e)})),{abort:function(){},forceMinPriority:function(){}}}var St=_t.Transports,Tt=function(e,t,n,r,i,o){var a=St[n];if(!a)throw new Pe(n);return e.enabledTransports&&-1===M(e.enabledTransports,t)||e.disabledTransports&&-1!==M(e.disabledTransports,t)?At:new xt(t,r,o?o.getAssistant(a):a,T({key:e.key,useTLS:e.useTLS,timeline:e.timeline,ignoreNullOrigin:e.ignoreNullOrigin},i))},At={isSupported:function(){return!1},connect:function(e,t){var n=S.defer((function(){t(new Ie)}));return{abort:function(){n.ensureAborted()},forceMinPriority:function(){}}}},Mt=function(){function e(t,n){var r,i=this;if(function(e){if(null==e)throw"You must pass your app key when you instantiate Pusher."}(t),!(n=n||{}).cluster&&!n.wsHost&&!n.httpHost){var a=$("javascriptQuickStart");F.warn("You should always specify a cluster when connecting. "+a)}"disableStats"in n&&(F.warn("The disableStats option is deprecated in favor of enableStats"),"enableStats"in n||(n.enableStats=!n.disableStats)),this.key=t,this.config=T({wsHost:o.host,wsPort:o.ws_port,wssPort:o.wss_port,wsPath:o.ws_path,httpHost:o.sockjs_host,httpPort:o.sockjs_http_port,httpsPort:o.sockjs_https_port,httpPath:o.sockjs_path,statsHost:o.stats_host,authEndpoint:o.channel_auth_endpoint,authTransport:o.channel_auth_transport,activity_timeout:o.activity_timeout,pong_timeout:o.pong_timeout,unavailable_timeout:o.unavailable_timeout},n.cluster?{wsHost:"ws-"+(r=n.cluster)+".pusher.com",httpHost:"sockjs-"+r+".pusher.com"}:{},n),this.channels=Ye.createChannels(),this.global_emitter=new ee,this.sessionID=Math.floor(1e9*Math.random()),this.timeline=new kt(this.key,this.sessionID,{cluster:this.config.cluster,features:e.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:wt.INFO,version:o.VERSION}),this.config.enableStats&&(this.timelineSender=Ye.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+_t.TimelineTransport.name})),this.connection=Ye.createConnectionManager(this.key,T({getStrategy:function(e){var t=T({},i.config,e);return _t.getDefaultStrategy(t,Tt)},timeline:this.timeline,activityTimeout:this.config.activity_timeout,pongTimeout:this.config.pong_timeout,unavailableTimeout:this.config.unavailable_timeout},this.config,{useTLS:this.shouldUseTLS()})),this.connection.bind("connected",(function(){i.subscribeAll(),i.timelineSender&&i.timelineSender.send(i.connection.isUsingTLS())})),this.connection.bind("message",(function(e){var t=0===e.event.indexOf("pusher_internal:");if(e.channel){var n=i.channel(e.channel);n&&n.handleEvent(e)}t||i.global_emitter.emit(e.event,e.data)})),this.connection.bind("connecting",(function(){i.channels.disconnect()})),this.connection.bind("disconnected",(function(){i.channels.disconnect()})),this.connection.bind("error",(function(e){F.warn(e)})),e.instances.push(this),this.timeline.info({instances:e.instances.length}),e.isReady&&this.connect()}return e.ready=function(){e.isReady=!0;for(var t=0,n=e.instances.length;t<n;t++)e.instances[t].connect()},e.getClientFeatures=function(){return O(j({ws:_t.Transports.ws},(function(e){return e.isSupported({})})))},e.prototype.channel=function(e){return this.channels.find(e)},e.prototype.allChannels=function(){return this.channels.all()},e.prototype.connect=function(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new C(6e4,(function(){t.send(e)}))}},e.prototype.disconnect=function(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)},e.prototype.bind=function(e,t,n){return this.global_emitter.bind(e,t,n),this},e.prototype.unbind=function(e,t,n){return this.global_emitter.unbind(e,t,n),this},e.prototype.bind_global=function(e){return this.global_emitter.bind_global(e),this},e.prototype.unbind_global=function(e){return this.global_emitter.unbind_global(e),this},e.prototype.unbind_all=function(e){return this.global_emitter.unbind_all(),this},e.prototype.subscribeAll=function(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)},e.prototype.subscribe=function(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.connection.state||t.subscribe(),t},e.prototype.unsubscribe=function(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e))&&"connected"===this.connection.state&&t.unsubscribe()},e.prototype.send_event=function(e,t,n){return this.connection.send_event(e,t,n)},e.prototype.shouldUseTLS=function(){return"https:"===_t.getProtocol()||!0===this.config.forceTLS||Boolean(this.config.encrypted)},e.instances=[],e.isReady=!1,e.logToConsole=!1,e.Runtime=_t,e.ScriptReceivers=_t.ScriptReceivers,e.DependenciesReceivers=_t.DependenciesReceivers,e.auth_callbacks=_t.auth_callbacks,e}(),Et=t.default=Mt;_t.setup(Mt)}])},e.exports=n()}).call(this,n(116).Buffer)},function(e,t,n){"use strict";(function(e){var r=n(117),i=n(118),o=n(119);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(t,n),i=(e=s(e,r)).write(t,n);i!==r&&(e=e.slice(0,i));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|h(t.length);return 0===(e=s(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&o(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=s(e,t<0?0:0|h(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|h(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return E(this,t,n);case"utf8":case"utf-8":return T(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return M(this,t,n);case"base64":return S(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var d=!0,f=0;f<c;f++)if(l(e,o+f)!==l(t,f)){d=!1;break}if(d)return o}return-1}function y(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function _(e,t,n,r){return V(B(t,e.length-n),e,n,r)}function w(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return w(e,t,n,r)}function x(e,t,n,r){return V($(t),e,n,r)}function C(e,t,n,r){return V(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function S(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function T(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,a,s,c,l=e[i],u=null,d=l>239?4:l>223?3:l>191?2:1;if(i+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[i+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?T(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){o=l[d],a=u[d];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return x(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function E(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=F(e[o]);return i}function O(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function D(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i<o;++i)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i<o;++i)e[n+i]=t>>>8*(r?i:3-i)&255}function N(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function R(e,t,n,r,o){return o||N(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,o){return o||N(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var i=t-e;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):j(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);I(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):D(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):D(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):j(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):j(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return R(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return R(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i,o=r-n;if(this===e&&n<t&&t<r)for(i=o-1;i>=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=c.isBuffer(e)?e:B(new c(e,r).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var z=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(7))},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=l(e),a=r[0],s=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(u(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,h=e[t+d];for(d+=f,o=h&(1<<-u)-1,h>>=-u,u+=s;u>0;o=256*o+e[t+d],d+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+d],d+=f,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,l=8*o-i-1,u=(1<<l)-1,d=u>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,i),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;e[n+h]=255&a,h+=p,a/=256,l-=8);e[n+h-p]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";(function(t,n){var r=Object.freeze({});function i(e){return null==e}function o(e){return null!=e}function a(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function c(e){return null!==e&&"object"==typeof e}var l=Object.prototype.toString;function u(e){return"[object Object]"===l.call(e)}function d(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var v=m("slot,component",!0),g=m("key,ref,slot,slot-scope,is");function b(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function _(e,t){return y.call(e,t)}function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var k=/-(\w)/g,x=w((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),C=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),S=/\B([A-Z])/g,T=w((function(e){return e.replace(S,"-$1").toLowerCase()})),A=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function M(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function E(e,t){for(var n in t)e[n]=t[n];return e}function O(e){for(var t={},n=0;n<e.length;n++)e[n]&&E(t,e[n]);return t}function P(e,t,n){}var I=function(e,t,n){return!1},D=function(e){return e};function j(e,t){if(e===t)return!0;var n=c(e),r=c(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),o=Array.isArray(t);if(i&&o)return e.length===t.length&&e.every((function(e,n){return j(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||o)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every((function(n){return j(e[n],t[n])}))}catch(e){return!1}}function N(e,t){for(var n=0;n<e.length;n++)if(j(e[n],t))return n;return-1}function R(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var L="data-server-rendered",z=["component","directive","filter"],F=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],B={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:I,isReservedAttr:I,isUnknownElement:I,getTagNamespace:P,parsePlatformTagName:D,mustUseProp:I,async:!0,_lifecycleHooks:F},$=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function V(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var H,U=new RegExp("[^"+$.source+".$_\\d]"),q="__proto__"in{},W="undefined"!=typeof window,Y="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,G=Y&&WXEnvironment.platform.toLowerCase(),K=W&&window.navigator.userAgent.toLowerCase(),Q=K&&/msie|trident/.test(K),J=K&&K.indexOf("msie 9.0")>0,X=K&&K.indexOf("edge/")>0,Z=(K&&K.indexOf("android"),K&&/iphone|ipad|ipod|ios/.test(K)||"ios"===G),ee=(K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K),K&&K.match(/firefox\/(\d+)/)),te={}.watch,ne=!1;if(W)try{var re={};Object.defineProperty(re,"passive",{get:function(){ne=!0}}),window.addEventListener("test-passive",null,re)}catch(r){}var ie=function(){return void 0===H&&(H=!W&&!Y&&void 0!==t&&t.process&&"server"===t.process.env.VUE_ENV),H},oe=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}var se,ce="undefined"!=typeof Symbol&&ae(Symbol)&&"undefined"!=typeof Reflect&&ae(Reflect.ownKeys);se="undefined"!=typeof Set&&ae(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var le=P,ue=0,de=function(){this.id=ue++,this.subs=[]};de.prototype.addSub=function(e){this.subs.push(e)},de.prototype.removeSub=function(e){b(this.subs,e)},de.prototype.depend=function(){de.target&&de.target.addDep(this)},de.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},de.target=null;var fe=[];function he(e){fe.push(e),de.target=e}function pe(){fe.pop(),de.target=fe[fe.length-1]}var me=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ve={child:{configurable:!0}};ve.child.get=function(){return this.componentInstance},Object.defineProperties(me.prototype,ve);var ge=function(e){void 0===e&&(e="");var t=new me;return t.text=e,t.isComment=!0,t};function be(e){return new me(void 0,void 0,void 0,String(e))}function ye(e){var t=new me(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var _e=Array.prototype,we=Object.create(_e);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=_e[e];V(we,e,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o}))}));var ke=Object.getOwnPropertyNames(we),xe=!0;function Ce(e){xe=e}var Se=function(e){var t;this.value=e,this.dep=new de,this.vmCount=0,V(e,"__ob__",this),Array.isArray(e)?(q?(t=we,e.__proto__=t):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];V(e,o,t[o])}}(e,we,ke),this.observeArray(e)):this.walk(e)};function Te(e,t){var n;if(c(e)&&!(e instanceof me))return _(e,"__ob__")&&e.__ob__ instanceof Se?n=e.__ob__:xe&&!ie()&&(Array.isArray(e)||u(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Se(e)),t&&n&&n.vmCount++,n}function Ae(e,t,n,r,i){var o=new de,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var l=!i&&Te(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return de.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(t)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!c||(c?c.call(e,t):n=t,l=!i&&Te(t),o.notify())}})}}function Me(e,t,n){if(Array.isArray(e)&&d(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Ae(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Ee(e,t){if(Array.isArray(e)&&d(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||_(e,t)&&(delete e[t],n&&n.dep.notify())}}Se.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ae(e,t[n])},Se.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)Te(e[t])};var Oe=B.optionMergeStrategies;function Pe(e,t){if(!t)return e;for(var n,r,i,o=ce?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],_(e,n)?r!==i&&u(r)&&u(i)&&Pe(r,i):Me(e,n,i));return e}function Ie(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Pe(r,i):i}:t?e?function(){return Pe("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function De(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function je(e,t,n,r){var i=Object.create(e||null);return t?E(i,t):i}Oe.data=function(e,t,n){return n?Ie(e,t,n):t&&"function"!=typeof t?e:Ie(e,t)},F.forEach((function(e){Oe[e]=De})),z.forEach((function(e){Oe[e+"s"]=je})),Oe.watch=function(e,t,n,r){if(e===te&&(e=void 0),t===te&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in E(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Oe.props=Oe.methods=Oe.inject=Oe.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return E(i,e),t&&E(i,t),i},Oe.provide=Ie;var Ne=function(e,t){return void 0===t?e:t};function Re(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[x(i)]={type:null});else if(u(n))for(var a in n)i=n[a],o[x(a)]=u(i)?i:{type:i};e.props=o}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(u(n))for(var o in n){var a=n[o];r[o]=u(a)?E({from:o},a):{from:a}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=Re(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Re(e,t.mixins[r],n);var o,a={};for(o in e)s(o);for(o in t)_(e,o)||s(o);function s(r){var i=Oe[r]||Ne;a[r]=i(e[r],t[r],n,r)}return a}function Le(e,t,n,r){if("string"==typeof n){var i=e[t];if(_(i,n))return i[n];var o=x(n);if(_(i,o))return i[o];var a=C(o);return _(i,a)?i[a]:i[n]||i[o]||i[a]}}function ze(e,t,n,r){var i=t[e],o=!_(n,e),a=n[e],s=$e(Boolean,i.type);if(s>-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===T(e)){var c=$e(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(_(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"==typeof r&&"Function"!==Fe(t.type)?r.call(e):r}}(r,i,e);var l=xe;Ce(!0),Te(a),Ce(l)}return a}function Fe(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Be(e,t){return Fe(e)===Fe(t)}function $e(e,t){if(!Array.isArray(t))return Be(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Be(t[n],e))return n;return-1}function Ve(e,t,n){he();try{if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){Ue(e,r,"errorCaptured hook")}}Ue(e,t,n)}finally{pe()}}function He(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&f(o)&&!o._handled&&(o.catch((function(e){return Ve(e,r,i+" (Promise/async)")})),o._handled=!0)}catch(e){Ve(e,r,i)}return o}function Ue(e,t,n){if(B.errorHandler)try{return B.errorHandler.call(null,e,t,n)}catch(t){t!==e&&qe(t,null,"config.errorHandler")}qe(e,t,n)}function qe(e,t,n){if(!W&&!Y||"undefined"==typeof console)throw e;console.error(e)}var We,Ye=!1,Ge=[],Ke=!1;function Qe(){Ke=!1;var e=Ge.slice(0);Ge.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&ae(Promise)){var Je=Promise.resolve();We=function(){Je.then(Qe),Z&&setTimeout(P)},Ye=!0}else if(Q||"undefined"==typeof MutationObserver||!ae(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())We=void 0!==n&&ae(n)?function(){n(Qe)}:function(){setTimeout(Qe,0)};else{var Xe=1,Ze=new MutationObserver(Qe),et=document.createTextNode(String(Xe));Ze.observe(et,{characterData:!0}),We=function(){Xe=(Xe+1)%2,et.data=String(Xe)},Ye=!0}function tt(e,t){var n;if(Ge.push((function(){if(e)try{e.call(t)}catch(e){Ve(e,t,"nextTick")}else n&&n(t)})),Ke||(Ke=!0,We()),!e&&"undefined"!=typeof Promise)return new Promise((function(e){n=e}))}var nt=new se;function rt(e){!function e(t,n){var r,i,o=Array.isArray(t);if(!(!o&&!c(t)||Object.isFrozen(t)||t instanceof me)){if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=t.length;r--;)e(t[r],n);else for(r=(i=Object.keys(t)).length;r--;)e(t[i[r]],n)}}(e,nt),nt.clear()}var it=w((function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function ot(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return He(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)He(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function at(e,t,n,r,o,s){var c,l,u,d;for(c in e)l=e[c],u=t[c],d=it(c),i(l)||(i(u)?(i(l.fns)&&(l=e[c]=ot(l,s)),a(d.once)&&(l=e[c]=o(d.name,l,d.capture)),n(d.name,l,d.capture,d.passive,d.params)):l!==u&&(u.fns=l,e[c]=u));for(c in t)i(e[c])&&r((d=it(c)).name,t[c],d.capture)}function st(e,t,n){var r;e instanceof me&&(e=e.data.hook||(e.data.hook={}));var s=e[t];function c(){n.apply(this,arguments),b(r.fns,c)}i(s)?r=ot([c]):o(s.fns)&&a(s.merged)?(r=s).fns.push(c):r=ot([s,c]),r.merged=!0,e[t]=r}function ct(e,t,n,r,i){if(o(t)){if(_(t,n))return e[n]=t[n],i||delete t[n],!0;if(_(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function lt(e){return s(e)?[be(e)]:Array.isArray(e)?function e(t,n){var r,c,l,u,d=[];for(r=0;r<t.length;r++)i(c=t[r])||"boolean"==typeof c||(u=d[l=d.length-1],Array.isArray(c)?c.length>0&&(ut((c=e(c,(n||"")+"_"+r))[0])&&ut(u)&&(d[l]=be(u.text+c[0].text),c.shift()),d.push.apply(d,c)):s(c)?ut(u)?d[l]=be(u.text+c):""!==c&&d.push(be(c)):ut(c)&&ut(u)?d[l]=be(u.text+c.text):(a(t._isVList)&&o(c.tag)&&i(c.key)&&o(n)&&(c.key="__vlist"+n+"_"+r+"__"),d.push(c)));return d}(e):void 0}function ut(e){return o(e)&&o(e.text)&&!1===e.isComment}function dt(e,t){if(e){for(var n=Object.create(null),r=ce?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&_(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}}}return n}}function ft(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var l in n)n[l].every(ht)&&delete n[l];return n}function ht(e){return e.isComment&&!e.asyncFactory||" "===e.text}function pt(e,t,n){var i,o=Object.keys(t).length>0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=mt(t,c,e[c]))}else i={};for(var l in t)l in i||(i[l]=vt(t,l));return e&&Object.isExtensible(e)&&(e._normalized=i),V(i,"$stable",a),V(i,"$key",s),V(i,"$hasNormal",o),i}function mt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:lt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function vt(e,t){return function(){return e[t]}}function gt(e,t){var n,r,i,a,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(c(e))if(ce&&e[Symbol.iterator]){n=[];for(var l=e[Symbol.iterator](),u=l.next();!u.done;)n.push(t(u.value,n.length)),u=l.next()}else for(a=Object.keys(e),n=new Array(a.length),r=0,i=a.length;r<i;r++)s=a[r],n[r]=t(e[s],s,r);return o(n)||(n=[]),n._isVList=!0,n}function bt(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=E(E({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function yt(e){return Le(this.$options,"filters",e)||D}function _t(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function wt(e,t,n,r,i){var o=B.keyCodes[t]||n;return i&&r&&!B.keyCodes[t]?_t(i,r):o?_t(o,e):r?T(r)!==t:void 0}function kt(e,t,n,r,i){if(n&&c(n)){var o;Array.isArray(n)&&(n=O(n));var a=function(a){if("class"===a||"style"===a||g(a))o=e;else{var s=e.attrs&&e.attrs.type;o=r||B.mustUseProp(t,s,a)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=x(a),l=T(a);c in o||l in o||(o[a]=n[a],i&&((e.on||(e.on={}))["update:"+a]=function(e){n[a]=e}))};for(var s in n)a(s)}return e}function xt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||St(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function Ct(e,t,n){return St(e,"__once__"+t+(n?"_"+n:""),!0),e}function St(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Tt(e[r],t+"_"+r,n);else Tt(e,t,n)}function Tt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function At(e,t){if(t&&u(t)){var n=e.on=e.on?E({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}return e}function Mt(e,t,n,r){t=t||{$stable:!n};for(var i=0;i<e.length;i++){var o=e[i];Array.isArray(o)?Mt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Et(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Ot(e,t){return"string"==typeof e?t+e:e}function Pt(e){e._o=Ct,e._n=p,e._s=h,e._l=gt,e._t=bt,e._q=j,e._i=N,e._m=xt,e._f=yt,e._k=wt,e._b=kt,e._v=be,e._e=ge,e._u=Mt,e._g=At,e._d=Et,e._p=Ot}function It(e,t,n,i,o){var s,c=this,l=o.options;_(i,"_uid")?(s=Object.create(i))._original=i:(s=i,i=i._original);var u=a(l._compiled),d=!u;this.data=e,this.props=t,this.children=n,this.parent=i,this.listeners=e.on||r,this.injections=dt(l.inject,i),this.slots=function(){return c.$slots||pt(e.scopedSlots,c.$slots=ft(n,i)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return pt(e.scopedSlots,this.slots())}}),u&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=pt(e.scopedSlots,this.$slots)),l._scopeId?this._c=function(e,t,n,r){var o=Ft(s,e,t,n,r,d);return o&&!Array.isArray(o)&&(o.fnScopeId=l._scopeId,o.fnContext=i),o}:this._c=function(e,t,n,r){return Ft(s,e,t,n,r,d)}}function Dt(e,t,n,r,i){var o=ye(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function jt(e,t){for(var n in t)e[x(n)]=t[n]}Pt(It.prototype);var Nt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;Nt.prepatch(n,n)}else(e.componentInstance=function(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}(e,Kt)).$mount(t?e.elm:void 0,t)},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,i,o){var a=i.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key),l=!!(o||e.$options._renderChildren||c);if(e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i),e.$options._renderChildren=o,e.$attrs=i.data.attrs||r,e.$listeners=n||r,t&&e.$options.props){Ce(!1);for(var u=e._props,d=e.$options._propKeys||[],f=0;f<d.length;f++){var h=d[f],p=e.$options.props;u[h]=ze(h,p,t,e)}Ce(!0),e.$options.propsData=t}n=n||r;var m=e.$options._parentListeners;e.$options._parentListeners=n,Gt(e,n,m),l&&(e.$slots=ft(o,i.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,Zt(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,tn.push(t)):Xt(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(!(n&&(t._directInactive=!0,Jt(t))||t._inactive)){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);Zt(t,"deactivated")}}(t,!0):t.$destroy())}},Rt=Object.keys(Nt);function Lt(e,t,n,s,l){if(!i(e)){var u=n.$options._base;if(c(e)&&(e=u.extend(e)),"function"==typeof e){var d;if(i(e.cid)&&void 0===(e=function(e,t){if(a(e.error)&&o(e.errorComp))return e.errorComp;if(o(e.resolved))return e.resolved;var n=$t;if(n&&o(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),a(e.loading)&&o(e.loadingComp))return e.loadingComp;if(n&&!o(e.owners)){var r=e.owners=[n],s=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return b(r,n)}));var d=function(e){for(var t=0,n=r.length;t<n;t++)r[t].$forceUpdate();e&&(r.length=0,null!==l&&(clearTimeout(l),l=null),null!==u&&(clearTimeout(u),u=null))},h=R((function(n){e.resolved=Vt(n,t),s?r.length=0:d(!0)})),p=R((function(t){o(e.errorComp)&&(e.error=!0,d(!0))})),m=e(h,p);return c(m)&&(f(m)?i(e.resolved)&&m.then(h,p):f(m.component)&&(m.component.then(h,p),o(m.error)&&(e.errorComp=Vt(m.error,t)),o(m.loading)&&(e.loadingComp=Vt(m.loading,t),0===m.delay?e.loading=!0:l=setTimeout((function(){l=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,d(!1))}),m.delay||200)),o(m.timeout)&&(u=setTimeout((function(){u=null,i(e.resolved)&&p(null)}),m.timeout)))),s=!1,e.loading?e.loadingComp:e.resolved}}(d=e,u)))return function(e,t,n,r,i){var o=ge();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}(d,t,n,s,l);t=t||{},wn(e),o(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var i=t.on||(t.on={}),a=i[r],s=t.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(i[r]=[s].concat(a)):i[r]=s}(e.options,t);var h=function(e,t,n){var r=t.options.props;if(!i(r)){var a={},s=e.attrs,c=e.props;if(o(s)||o(c))for(var l in r){var u=T(l);ct(a,c,l,u,!0)||ct(a,s,l,u,!1)}return a}}(t,e);if(a(e.options.functional))return function(e,t,n,i,a){var s=e.options,c={},l=s.props;if(o(l))for(var u in l)c[u]=ze(u,l,t||r);else o(n.attrs)&&jt(c,n.attrs),o(n.props)&&jt(c,n.props);var d=new It(n,c,a,i,e),f=s.render.call(null,d._c,d);if(f instanceof me)return Dt(f,n,d.parent,s);if(Array.isArray(f)){for(var h=lt(f)||[],p=new Array(h.length),m=0;m<h.length;m++)p[m]=Dt(h[m],n,d.parent,s);return p}}(e,h,t,n,s);var p=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){var m=t.slot;t={},m&&(t.slot=m)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Rt.length;n++){var r=Rt[n],i=t[r],o=Nt[r];i===o||i&&i._merged||(t[r]=i?zt(o,i):o)}}(t);var v=e.options.name||l;return new me("vue-component-"+e.cid+(v?"-"+v:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:h,listeners:p,tag:l,children:s},d)}}}function zt(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function Ft(e,t,n,r,l,u){return(Array.isArray(n)||s(n))&&(l=r,r=n,n=void 0),a(u)&&(l=2),function(e,t,n,r,s){if(o(n)&&o(n.__ob__))return ge();if(o(n)&&o(n.is)&&(t=n.is),!t)return ge();var l,u,d;(Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0),2===s?r=lt(r):1===s&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r)),"string"==typeof t)?(u=e.$vnode&&e.$vnode.ns||B.getTagNamespace(t),l=B.isReservedTag(t)?new me(B.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!o(d=Le(e.$options,"components",t))?new me(t,n,r,void 0,void 0,e):Lt(d,n,e,r,t)):l=Lt(t,n,e,r);return Array.isArray(l)?l:o(l)?(o(u)&&function e(t,n,r){if(t.ns=n,"foreignObject"===t.tag&&(n=void 0,r=!0),o(t.children))for(var s=0,c=t.children.length;s<c;s++){var l=t.children[s];o(l.tag)&&(i(l.ns)||a(r)&&"svg"!==l.tag)&&e(l,n,r)}}(l,u),o(n)&&function(e){c(e.style)&&rt(e.style),c(e.class)&&rt(e.class)}(n),l):ge()}(e,t,n,r,l)}var Bt,$t=null;function Vt(e,t){return(e.__esModule||ce&&"Module"===e[Symbol.toStringTag])&&(e=e.default),c(e)?t.extend(e):e}function Ht(e){return e.isComment&&e.asyncFactory}function Ut(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(o(n)&&(o(n.componentOptions)||Ht(n)))return n}}function qt(e,t){Bt.$on(e,t)}function Wt(e,t){Bt.$off(e,t)}function Yt(e,t){var n=Bt;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function Gt(e,t,n){Bt=e,at(t,n||{},qt,Wt,Yt,e),Bt=void 0}var Kt=null;function Qt(e){var t=Kt;return Kt=e,function(){Kt=t}}function Jt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Xt(e,t){if(t){if(e._directInactive=!1,Jt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Xt(e.$children[n]);Zt(e,"activated")}}function Zt(e,t){he();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)He(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),pe()}var en=[],tn=[],nn={},rn=!1,on=!1,an=0,sn=0,cn=Date.now;if(W&&!Q){var ln=window.performance;ln&&"function"==typeof ln.now&&cn()>document.createEvent("Event").timeStamp&&(cn=function(){return ln.now()})}function un(){var e,t;for(sn=cn(),on=!0,en.sort((function(e,t){return e.id-t.id})),an=0;an<en.length;an++)(e=en[an]).before&&e.before(),t=e.id,nn[t]=null,e.run();var n=tn.slice(),r=en.slice();an=en.length=tn.length=0,nn={},rn=on=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Xt(e[t],!0)}(n),function(e){for(var t=e.length;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Zt(r,"updated")}}(r),oe&&B.devtools&&oe.emit("flush")}var dn=0,fn=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++dn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new se,this.newDepIds=new se,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!U.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=P)),this.value=this.lazy?void 0:this.get()};fn.prototype.get=function(){var e;he(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Ve(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&rt(e),pe(),this.cleanupDeps()}return e},fn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},fn.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},fn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==nn[t]){if(nn[t]=!0,on){for(var n=en.length-1;n>an&&en[n].id>e.id;)n--;en.splice(n+1,0,e)}else en.push(e);rn||(rn=!0,tt(un))}}(this)},fn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ve(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},fn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},fn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var hn={enumerable:!0,configurable:!0,get:P,set:P};function pn(e,t,n){hn.get=function(){return this[t][n]},hn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,hn)}var mn={lazy:!0};function vn(e,t,n){var r=!ie();"function"==typeof n?(hn.get=r?gn(t):bn(n),hn.set=P):(hn.get=n.get?r&&!1!==n.cache?gn(t):bn(n.get):P,hn.set=n.set||P),Object.defineProperty(e,t,hn)}function gn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),de.target&&t.depend(),t.value}}function bn(e){return function(){return e.call(this,this)}}function yn(e,t,n,r){return u(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var _n=0;function wn(e){var t=e.options;if(e.super){var n=wn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&E(e.extendOptions,r),(t=e.options=Re(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function kn(e){this._init(e)}function xn(e){return e&&(e.Ctor.options.name||e.tag)}function Cn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===l.call(n)&&e.test(t));var n}function Sn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=xn(a.componentOptions);s&&!t(s)&&Tn(n,o,r,i)}}}function Tn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,b(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=_n++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Re(wn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Gt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=ft(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return Ft(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ft(e,t,n,r,i,!0)};var o=n&&n.data;Ae(e,"$attrs",o&&o.attrs||r,null,!0),Ae(e,"$listeners",t._parentListeners||r,null,!0)}(t),Zt(t,"beforeCreate"),function(e){var t=dt(e.$options.inject,e);t&&(Ce(!1),Object.keys(t).forEach((function(n){Ae(e,n,t[n])})),Ce(!0))}(t),function(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&Ce(!1);var o=function(o){i.push(o);var a=ze(o,t,n,e);Ae(r,o,a),o in e||pn(e,"_props",o)};for(var a in t)o(a);Ce(!0)}(e,t.props),t.methods&&function(e,t){for(var n in e.$options.props,t)e[n]="function"!=typeof t[n]?P:A(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;u(t=e._data="function"==typeof t?function(e,t){he();try{return e.call(t,t)}catch(e){return Ve(e,t,"data()"),{}}finally{pe()}}(t,e):t||{})||(t={});for(var n,r=Object.keys(t),i=e.$options.props,o=(e.$options.methods,r.length);o--;){var a=r[o];i&&_(i,a)||(void 0,36!==(n=(a+"").charCodeAt(0))&&95!==n&&pn(e,"_data",a))}Te(t,!0)}(e):Te(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ie();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new fn(e,a||P,P,mn)),i in e||vn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)yn(e,n,r[i]);else yn(e,n,r)}}(e,t.watch)}(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),Zt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(kn),function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Me,e.prototype.$delete=Ee,e.prototype.$watch=function(e,t,n){if(u(t))return yn(this,e,t,n);(n=n||{}).user=!0;var r=new fn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Ve(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(kn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var s=a.length;s--;)if((o=a[s])===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this._events[e];if(t){t=t.length>1?M(t):t;for(var n=M(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;i<o;i++)He(t[i],this,n,this,r)}return this}}(kn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Qt(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Zt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||b(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Zt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(kn),function(e){Pt(e.prototype),e.prototype.$nextTick=function(e){return tt(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=pt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{$t=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){Ve(n,t,"render"),e=t._vnode}finally{$t=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof me||(e=ge()),e.parent=i,e}}(kn);var An=[String,RegExp,Array],Mn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:An,exclude:An,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Tn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Sn(e,(function(e){return Cn(t,e)}))})),this.$watch("exclude",(function(t){Sn(e,(function(e){return!Cn(t,e)}))}))},render:function(){var e=this.$slots.default,t=Ut(e),n=t&&t.componentOptions;if(n){var r=xn(n),i=this.include,o=this.exclude;if(i&&(!r||!Cn(i,r))||o&&r&&Cn(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,b(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&Tn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return B}};Object.defineProperty(e,"config",t),e.util={warn:le,extend:E,mergeOptions:Re,defineReactive:Ae},e.set=Me,e.delete=Ee,e.nextTick=tt,e.observable=function(e){return Te(e),e},e.options=Object.create(null),z.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,E(e.options.components,Mn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=M(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Re(this.options,e),this}}(e),function(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name,a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=Re(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)pn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)vn(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,z.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=E({},a.options),i[r]=a,a}}(e),function(e){z.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(kn),Object.defineProperty(kn.prototype,"$isServer",{get:ie}),Object.defineProperty(kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kn,"FunctionalRenderContext",{value:It}),kn.version="2.6.11";var En=m("style,class"),On=m("input,textarea,option,select,progress"),Pn=function(e,t,n){return"value"===n&&On(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},In=m("contenteditable,draggable,spellcheck"),Dn=m("events,caret,typing,plaintext-only"),jn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Nn="http://www.w3.org/1999/xlink",Rn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ln=function(e){return Rn(e)?e.slice(6,e.length):""},zn=function(e){return null==e||!1===e};function Fn(e,t){return{staticClass:Bn(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Bn(e,t){return e?t?e+" "+t:e:t||""}function $n(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)o(t=$n(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):c(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Vn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Hn=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Un=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),qn=function(e){return Hn(e)||Un(e)};function Wn(e){return Un(e)?"svg":"math"===e?"math":void 0}var Yn=Object.create(null),Gn=m("text,number,password,search,email,tel,url");function Kn(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}var Qn=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Vn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Jn={create:function(e,t){Xn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Xn(e,!0),Xn(t))},destroy:function(e){Xn(e,!0)}};function Xn(e,t){var n=e.data.ref;if(o(n)){var r=e.context,i=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?b(a[n],i):a[n]===i&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}var Zn=new me("",{},[]),er=["create","activate","update","remove","destroy"];function tr(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&o(e.data)===o(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=o(n=e.data)&&o(n=n.attrs)&&n.type,i=o(n=t.data)&&o(n=n.attrs)&&n.type;return r===i||Gn(r)&&Gn(i)}(e,t)||a(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&i(t.asyncFactory.error))}function nr(e,t,n){var r,i,a={};for(r=t;r<=n;++r)o(i=e[r].key)&&(a[i]=r);return a}var rr={create:ir,update:ir,destroy:function(e){ir(e,Zn)}};function ir(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,o=e===Zn,a=t===Zn,s=ar(e.data.directives,e.context),c=ar(t.data.directives,t.context),l=[],u=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,cr(i,"update",t,e),i.def&&i.def.componentUpdated&&u.push(i)):(cr(i,"bind",t,e),i.def&&i.def.inserted&&l.push(i));if(l.length){var d=function(){for(var n=0;n<l.length;n++)cr(l[n],"inserted",t,e)};o?st(t,"insert",d):d()}if(u.length&&st(t,"postpatch",(function(){for(var n=0;n<u.length;n++)cr(u[n],"componentUpdated",t,e)})),!o)for(n in s)c[n]||cr(s[n],"unbind",e,e,a)}(e,t)}var or=Object.create(null);function ar(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=or),i[sr(r)]=r,r.def=Le(t.$options,"directives",r.name);return i}function sr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function cr(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(r){Ve(r,n.context,"directive "+e.name+" "+t+" hook")}}var lr=[Jn,rr];function ur(e,t){var n=t.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||i(e.data.attrs)&&i(t.data.attrs))){var r,a,s=t.elm,c=e.data.attrs||{},l=t.data.attrs||{};for(r in o(l.__ob__)&&(l=t.data.attrs=E({},l)),l)a=l[r],c[r]!==a&&dr(s,r,a);for(r in(Q||X)&&l.value!==c.value&&dr(s,"value",l.value),c)i(l[r])&&(Rn(r)?s.removeAttributeNS(Nn,Ln(r)):In(r)||s.removeAttribute(r))}}function dr(e,t,n){e.tagName.indexOf("-")>-1?fr(e,t,n):jn(t)?zn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):In(t)?e.setAttribute(t,function(e,t){return zn(t)||"false"===t?"false":"contenteditable"===e&&Dn(t)?t:"true"}(t,n)):Rn(t)?zn(n)?e.removeAttributeNS(Nn,Ln(t)):e.setAttributeNS(Nn,t,n):fr(e,t,n)}function fr(e,t,n){if(zn(n))e.removeAttribute(t);else{if(Q&&!J&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var hr={create:ur,update:ur};function pr(e,t){var n=t.elm,r=t.data,a=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=function(e){for(var t=e.data,n=e,r=e;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Fn(r.data,t));for(;o(n=n.parent);)n&&n.data&&(t=Fn(t,n.data));return function(e,t){return o(e)||o(t)?Bn(e,$n(t)):""}(t.staticClass,t.class)}(t),c=n._transitionClasses;o(c)&&(s=Bn(s,$n(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var mr,vr,gr,br,yr,_r,wr={create:pr,update:pr},kr=/[\w).+\-_$\]]/;function xr(e){var t,n,r,i,o,a=!1,s=!1,c=!1,l=!1,u=0,d=0,f=0,h=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(l)47===t&&92!==n&&(l=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||d||f){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:f++;break;case 41:f--;break;case 91:d++;break;case 93:d--;break;case 123:u++;break;case 125:u--}if(47===t){for(var p=r-1,m=void 0;p>=0&&" "===(m=e.charAt(p));p--);m&&kr.test(m)||(l=!0)}}else void 0===i?(h=r+1,i=e.slice(0,r).trim()):v();function v(){(o||(o=[])).push(e.slice(h,r).trim()),h=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==h&&v(),o)for(r=0;r<o.length;r++)i=Cr(i,o[r]);return i}function Cr(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function Sr(e,t){console.error("[Vue compiler]: "+e)}function Tr(e,t){return e?e.map((function(e){return e[t]})).filter((function(e){return e})):[]}function Ar(e,t,n,r,i){(e.props||(e.props=[])).push(Rr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Mr(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Rr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Er(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Rr({name:t,value:n},r))}function Or(e,t,n,r,i,o,a,s){(e.directives||(e.directives=[])).push(Rr({name:t,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function Pr(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Ir(e,t,n,i,o,a,s,c){var l;(i=i||r).right?c?t="("+t+")==='click'?'contextmenu':("+t+")":"click"===t&&(t="contextmenu",delete i.right):i.middle&&(c?t="("+t+")==='click'?'mouseup':("+t+")":"click"===t&&(t="mouseup")),i.capture&&(delete i.capture,t=Pr("!",t,c)),i.once&&(delete i.once,t=Pr("~",t,c)),i.passive&&(delete i.passive,t=Pr("&",t,c)),i.native?(delete i.native,l=e.nativeEvents||(e.nativeEvents={})):l=e.events||(e.events={});var u=Rr({value:n.trim(),dynamic:c},s);i!==r&&(u.modifiers=i);var d=l[t];Array.isArray(d)?o?d.unshift(u):d.push(u):l[t]=d?o?[u,d]:[d,u]:u,e.plain=!1}function Dr(e,t,n){var r=jr(e,":"+t)||jr(e,"v-bind:"+t);if(null!=r)return xr(r);if(!1!==n){var i=jr(e,t);if(null!=i)return JSON.stringify(i)}}function jr(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Nr(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(t.test(o.name))return n.splice(r,1),o}}function Rr(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Lr(e,t,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var a=zr(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+a+"}"}}function zr(e,t){var n=function(e){if(e=e.trim(),mr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<mr-1)return(br=e.lastIndexOf("."))>-1?{exp:e.slice(0,br),key:'"'+e.slice(br+1)+'"'}:{exp:e,key:null};for(vr=e,br=yr=_r=0;!Br();)$r(gr=Fr())?Hr(gr):91===gr&&Vr(gr);return{exp:e.slice(0,yr),key:e.slice(yr+1,_r)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Fr(){return vr.charCodeAt(++br)}function Br(){return br>=mr}function $r(e){return 34===e||39===e}function Vr(e){var t=1;for(yr=br;!Br();)if($r(e=Fr()))Hr(e);else if(91===e&&t++,93===e&&t--,0===t){_r=br;break}}function Hr(e){for(var t=e;!Br()&&(e=Fr())!==t;);}var Ur,qr="__r";function Wr(e,t,n){var r=Ur;return function i(){null!==t.apply(null,arguments)&&Kr(e,i,n,r)}}var Yr=Ye&&!(ee&&Number(ee[1])<=53);function Gr(e,t,n,r){if(Yr){var i=sn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Ur.addEventListener(e,t,ne?{capture:n,passive:r}:n)}function Kr(e,t,n,r){(r||Ur).removeEventListener(e,t._wrapper||t,n)}function Qr(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Ur=t.elm,function(e){if(o(e.__r)){var t=Q?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}o(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),at(n,r,Gr,Kr,Wr,t.context),Ur=void 0}}var Jr,Xr={create:Qr,update:Qr};function Zr(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in o(c.__ob__)&&(c=t.data.domProps=E({},c)),s)n in c||(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var l=i(r)?"":String(r);ei(a,l)&&(a.value=l)}else if("innerHTML"===n&&Un(a.tagName)&&i(a.innerHTML)){(Jr=Jr||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var u=Jr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;u.firstChild;)a.appendChild(u.firstChild)}else if(r!==s[n])try{a[n]=r}catch(e){}}}}function ei(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(o(r)){if(r.number)return p(n)!==p(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ti={create:Zr,update:Zr},ni=w((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function ri(e){var t=ii(e.style);return e.staticStyle?E(e.staticStyle,t):t}function ii(e){return Array.isArray(e)?O(e):"string"==typeof e?ni(e):e}var oi,ai=/^--/,si=/\s*!important$/,ci=function(e,t,n){if(ai.test(t))e.style.setProperty(t,n);else if(si.test(n))e.style.setProperty(T(t),n.replace(si,""),"important");else{var r=ui(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},li=["Webkit","Moz","ms"],ui=w((function(e){if(oi=oi||document.createElement("div").style,"filter"!==(e=x(e))&&e in oi)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<li.length;n++){var r=li[n]+t;if(r in oi)return r}}));function di(e,t){var n=t.data,r=e.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var a,s,c=t.elm,l=r.staticStyle,u=r.normalizedStyle||r.style||{},d=l||u,f=ii(t.data.style)||{};t.data.normalizedStyle=o(f.__ob__)?E({},f):f;var h=function(e,t){for(var n,r={},i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=ri(i.data))&&E(r,n);(n=ri(e.data))&&E(r,n);for(var o=e;o=o.parent;)o.data&&(n=ri(o.data))&&E(r,n);return r}(t);for(s in d)i(h[s])&&ci(c,s,"");for(s in h)(a=h[s])!==d[s]&&ci(c,s,null==a?"":a)}}var fi={create:di,update:di},hi=/\s+/;function pi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(hi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function mi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(hi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function vi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&E(t,gi(e.name||"v")),E(t,e),t}return"string"==typeof e?gi(e):void 0}}var gi=w((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),bi=W&&!J,yi="transition",_i="animation",wi="transition",ki="transitionend",xi="animation",Ci="animationend";bi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(wi="WebkitTransition",ki="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(xi="WebkitAnimation",Ci="webkitAnimationEnd"));var Si=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ti(e){Si((function(){Si(e)}))}function Ai(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),pi(e,t))}function Mi(e,t){e._transitionClasses&&b(e._transitionClasses,t),mi(e,t)}function Ei(e,t,n){var r=Pi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===yi?ki:Ci,c=0,l=function(){e.removeEventListener(s,u),n()},u=function(t){t.target===e&&++c>=a&&l()};setTimeout((function(){c<a&&l()}),o+1),e.addEventListener(s,u)}var Oi=/\b(transform|all)(,|$)/;function Pi(e,t){var n,r=window.getComputedStyle(e),i=(r[wi+"Delay"]||"").split(", "),o=(r[wi+"Duration"]||"").split(", "),a=Ii(i,o),s=(r[xi+"Delay"]||"").split(", "),c=(r[xi+"Duration"]||"").split(", "),l=Ii(s,c),u=0,d=0;return t===yi?a>0&&(n=yi,u=a,d=o.length):t===_i?l>0&&(n=_i,u=l,d=c.length):d=(n=(u=Math.max(a,l))>0?a>l?yi:_i:null)?n===yi?o.length:c.length:0,{type:n,timeout:u,propCount:d,hasTransform:n===yi&&Oi.test(r[wi+"Property"])}}function Ii(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Di(t)+Di(e[n])})))}function Di(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ji(e,t){var n=e.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=vi(e.data.transition);if(!i(r)&&!o(n._enterCb)&&1===n.nodeType){for(var a=r.css,s=r.type,l=r.enterClass,u=r.enterToClass,d=r.enterActiveClass,f=r.appearClass,h=r.appearToClass,m=r.appearActiveClass,v=r.beforeEnter,g=r.enter,b=r.afterEnter,y=r.enterCancelled,_=r.beforeAppear,w=r.appear,k=r.afterAppear,x=r.appearCancelled,C=r.duration,S=Kt,T=Kt.$vnode;T&&T.parent;)S=T.context,T=T.parent;var A=!S._isMounted||!e.isRootInsert;if(!A||w||""===w){var M=A&&f?f:l,E=A&&m?m:d,O=A&&h?h:u,P=A&&_||v,I=A&&"function"==typeof w?w:g,D=A&&k||b,j=A&&x||y,N=p(c(C)?C.enter:C),L=!1!==a&&!J,z=Li(I),F=n._enterCb=R((function(){L&&(Mi(n,O),Mi(n,E)),F.cancelled?(L&&Mi(n,M),j&&j(n)):D&&D(n),n._enterCb=null}));e.data.show||st(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),I&&I(n,F)})),P&&P(n),L&&(Ai(n,M),Ai(n,E),Ti((function(){Mi(n,M),F.cancelled||(Ai(n,O),z||(Ri(N)?setTimeout(F,N):Ei(n,s,F)))}))),e.data.show&&(t&&t(),I&&I(n,F)),L||z||F()}}}function Ni(e,t){var n=e.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=vi(e.data.transition);if(i(r)||1!==n.nodeType)return t();if(!o(n._leaveCb)){var a=r.css,s=r.type,l=r.leaveClass,u=r.leaveToClass,d=r.leaveActiveClass,f=r.beforeLeave,h=r.leave,m=r.afterLeave,v=r.leaveCancelled,g=r.delayLeave,b=r.duration,y=!1!==a&&!J,_=Li(h),w=p(c(b)?b.leave:b),k=n._leaveCb=R((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),y&&(Mi(n,u),Mi(n,d)),k.cancelled?(y&&Mi(n,l),v&&v(n)):(t(),m&&m(n)),n._leaveCb=null}));g?g(x):x()}function x(){k.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),f&&f(n),y&&(Ai(n,l),Ai(n,d),Ti((function(){Mi(n,l),k.cancelled||(Ai(n,u),_||(Ri(w)?setTimeout(k,w):Ei(n,s,k)))}))),h&&h(n,k),y||_||k())}}function Ri(e){return"number"==typeof e&&!isNaN(e)}function Li(e){if(i(e))return!1;var t=e.fns;return o(t)?Li(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function zi(e,t){!0!==t.data.show&&ji(t)}var Fi=function(e){var t,n,r={},c=e.modules,l=e.nodeOps;for(t=0;t<er.length;++t)for(r[er[t]]=[],n=0;n<c.length;++n)o(c[n][er[t]])&&r[er[t]].push(c[n][er[t]]);function u(e){var t=l.parentNode(e);o(t)&&l.removeChild(t,e)}function d(e,t,n,i,s,c,u){if(o(e.elm)&&o(c)&&(e=c[u]=ye(e)),e.isRootInsert=!s,!function(e,t,n,i){var s=e.data;if(o(s)){var c=o(e.componentInstance)&&s.keepAlive;if(o(s=s.hook)&&o(s=s.init)&&s(e,!1),o(e.componentInstance))return f(e,t),h(n,e.elm,i),a(c)&&function(e,t,n,i){for(var a,s=e;s.componentInstance;)if(o(a=(s=s.componentInstance._vnode).data)&&o(a=a.transition)){for(a=0;a<r.activate.length;++a)r.activate[a](Zn,s);t.push(s);break}h(n,e.elm,i)}(e,t,n,i),!0}}(e,t,n,i)){var d=e.data,m=e.children,v=e.tag;o(v)?(e.elm=e.ns?l.createElementNS(e.ns,v):l.createElement(v,e),b(e),p(e,m,t),o(d)&&g(e,t),h(n,e.elm,i)):a(e.isComment)?(e.elm=l.createComment(e.text),h(n,e.elm,i)):(e.elm=l.createTextNode(e.text),h(n,e.elm,i))}}function f(e,t){o(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,v(e)?(g(e,t),b(e)):(Xn(e),t.push(e))}function h(e,t,n){o(e)&&(o(n)?l.parentNode(n)===e&&l.insertBefore(e,t,n):l.appendChild(e,t))}function p(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)d(t[r],n,e.elm,null,!0,t,r);else s(e.text)&&l.appendChild(e.elm,l.createTextNode(String(e.text)))}function v(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return o(e.tag)}function g(e,n){for(var i=0;i<r.create.length;++i)r.create[i](Zn,e);o(t=e.data.hook)&&(o(t.create)&&t.create(Zn,e),o(t.insert)&&n.push(e))}function b(e){var t;if(o(t=e.fnScopeId))l.setStyleScope(e.elm,t);else for(var n=e;n;)o(t=n.context)&&o(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t),n=n.parent;o(t=Kt)&&t!==e.context&&t!==e.fnContext&&o(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t)}function y(e,t,n,r,i,o){for(;r<=i;++r)d(n[r],o,e,t,!1,n,r)}function _(e){var t,n,i=e.data;if(o(i))for(o(t=i.hook)&&o(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(o(t=e.children))for(n=0;n<e.children.length;++n)_(e.children[n])}function w(e,t,n){for(;t<=n;++t){var r=e[t];o(r)&&(o(r.tag)?(k(r),_(r)):u(r.elm))}}function k(e,t){if(o(t)||o(e.data)){var n,i=r.remove.length+1;for(o(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&u(e)}return n.listeners=t,n}(e.elm,i),o(n=e.componentInstance)&&o(n=n._vnode)&&o(n.data)&&k(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);o(n=e.data.hook)&&o(n=n.remove)?n(e,t):t()}else u(e.elm)}function x(e,t,n,r){for(var i=n;i<r;i++){var a=t[i];if(o(a)&&tr(e,a))return i}}function C(e,t,n,s,c,u){if(e!==t){o(t.elm)&&o(s)&&(t=s[c]=ye(t));var f=t.elm=e.elm;if(a(e.isAsyncPlaceholder))o(t.asyncFactory.resolved)?A(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(a(t.isStatic)&&a(e.isStatic)&&t.key===e.key&&(a(t.isCloned)||a(t.isOnce)))t.componentInstance=e.componentInstance;else{var h,p=t.data;o(p)&&o(h=p.hook)&&o(h=h.prepatch)&&h(e,t);var m=e.children,g=t.children;if(o(p)&&v(t)){for(h=0;h<r.update.length;++h)r.update[h](e,t);o(h=p.hook)&&o(h=h.update)&&h(e,t)}i(t.text)?o(m)&&o(g)?m!==g&&function(e,t,n,r,a){for(var s,c,u,f=0,h=0,p=t.length-1,m=t[0],v=t[p],g=n.length-1,b=n[0],_=n[g],k=!a;f<=p&&h<=g;)i(m)?m=t[++f]:i(v)?v=t[--p]:tr(m,b)?(C(m,b,r,n,h),m=t[++f],b=n[++h]):tr(v,_)?(C(v,_,r,n,g),v=t[--p],_=n[--g]):tr(m,_)?(C(m,_,r,n,g),k&&l.insertBefore(e,m.elm,l.nextSibling(v.elm)),m=t[++f],_=n[--g]):tr(v,b)?(C(v,b,r,n,h),k&&l.insertBefore(e,v.elm,m.elm),v=t[--p],b=n[++h]):(i(s)&&(s=nr(t,f,p)),i(c=o(b.key)?s[b.key]:x(b,t,f,p))?d(b,r,e,m.elm,!1,n,h):tr(u=t[c],b)?(C(u,b,r,n,h),t[c]=void 0,k&&l.insertBefore(e,u.elm,m.elm)):d(b,r,e,m.elm,!1,n,h),b=n[++h]);f>p?y(e,i(n[g+1])?null:n[g+1].elm,n,h,g,r):h>g&&w(t,f,p)}(f,m,g,n,u):o(g)?(o(e.text)&&l.setTextContent(f,""),y(f,null,g,0,g.length-1,n)):o(m)?w(m,0,m.length-1):o(e.text)&&l.setTextContent(f,""):e.text!==t.text&&l.setTextContent(f,t.text),o(p)&&o(h=p.hook)&&o(h=h.postpatch)&&h(e,t)}}}function S(e,t,n){if(a(n)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var T=m("attrs,class,staticClass,staticStyle,key");function A(e,t,n,r){var i,s=t.tag,c=t.data,l=t.children;if(r=r||c&&c.pre,t.elm=e,a(t.isComment)&&o(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(o(c)&&(o(i=c.hook)&&o(i=i.init)&&i(t,!0),o(i=t.componentInstance)))return f(t,n),!0;if(o(s)){if(o(l))if(e.hasChildNodes())if(o(i=c)&&o(i=i.domProps)&&o(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var u=!0,d=e.firstChild,h=0;h<l.length;h++){if(!d||!A(d,l[h],n,r)){u=!1;break}d=d.nextSibling}if(!u||d)return!1}else p(t,l,n);if(o(c)){var m=!1;for(var v in c)if(!T(v)){m=!0,g(t,n);break}!m&&c.class&&rt(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,s){if(!i(t)){var c,u=!1,f=[];if(i(e))u=!0,d(t,f);else{var h=o(e.nodeType);if(!h&&tr(e,t))C(e,t,f,null,null,s);else{if(h){if(1===e.nodeType&&e.hasAttribute(L)&&(e.removeAttribute(L),n=!0),a(n)&&A(e,t,f))return S(t,f,!0),e;c=e,e=new me(l.tagName(c).toLowerCase(),{},[],void 0,c)}var p=e.elm,m=l.parentNode(p);if(d(t,f,p._leaveCb?null:m,l.nextSibling(p)),o(t.parent))for(var g=t.parent,b=v(t);g;){for(var y=0;y<r.destroy.length;++y)r.destroy[y](g);if(g.elm=t.elm,b){for(var k=0;k<r.create.length;++k)r.create[k](Zn,g);var x=g.data.hook.insert;if(x.merged)for(var T=1;T<x.fns.length;T++)x.fns[T]()}else Xn(g);g=g.parent}o(m)?w([e],0,0):o(e.tag)&&_(e)}}return S(t,f,u),t.elm}o(e)&&_(e)}}({nodeOps:Qn,modules:[hr,wr,Xr,ti,fi,W?{create:zi,activate:zi,remove:function(e,t){!0!==e.data.show?Ni(e,t):t()}}:{}].concat(lr)});J&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Yi(e,"input")}));var Bi={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?st(n,"postpatch",(function(){Bi.componentUpdated(e,t,n)})):$i(e,t,n.context),e._vOptions=[].map.call(e.options,Ui)):("textarea"===n.tag||Gn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",qi),e.addEventListener("compositionend",Wi),e.addEventListener("change",Wi),J&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){$i(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Ui);i.some((function(e,t){return!j(e,r[t])}))&&(e.multiple?t.value.some((function(e){return Hi(e,i)})):t.value!==t.oldValue&&Hi(t.value,i))&&Yi(e,"change")}}};function $i(e,t,n){Vi(e,t,n),(Q||X)&&setTimeout((function(){Vi(e,t,n)}),0)}function Vi(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=N(r,Ui(a))>-1,a.selected!==o&&(a.selected=o);else if(j(Ui(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Hi(e,t){return t.every((function(t){return!j(t,e)}))}function Ui(e){return"_value"in e?e._value:e.value}function qi(e){e.target.composing=!0}function Wi(e){e.target.composing&&(e.target.composing=!1,Yi(e.target,"input"))}function Yi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Gi(e){return!e.componentInstance||e.data&&e.data.transition?e:Gi(e.componentInstance._vnode)}var Ki={model:Bi,show:{bind:function(e,t,n){var r=t.value,i=(n=Gi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,ji(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Gi(n)).data&&n.data.transition?(n.data.show=!0,r?ji(n,(function(){e.style.display=e.__vOriginalDisplay})):Ni(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Qi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ji(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ji(Ut(t.children)):e}function Xi(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[x(o)]=i[o];return t}function Zi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var eo=function(e){return e.tag||Ht(e)},to=function(e){return"show"===e.name},no={name:"transition",props:Qi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(eo)).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Ji(i);if(!o)return i;if(this._leaving)return Zi(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var c=(o.data||(o.data={})).transition=Xi(this),l=this._vnode,u=Ji(l);if(o.data.directives&&o.data.directives.some(to)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!Ht(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=E({},c);if("out-in"===r)return this._leaving=!0,st(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Zi(e,i);if("in-out"===r){if(Ht(o))return l;var f,h=function(){f()};st(c,"afterEnter",h),st(c,"enterCancelled",h),st(d,"delayLeave",(function(e){f=e}))}}return i}}},ro=E({tag:String,moveClass:String},Qi);function io(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function oo(e){e.data.newPos=e.elm.getBoundingClientRect()}function ao(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete ro.mode;var so={Transition:no,TransitionGroup:{props:ro,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Qt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Xi(this),s=0;s<i.length;s++){var c=i[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a)}if(r){for(var l=[],u=[],d=0;d<r.length;d++){var f=r[d];f.data.transition=a,f.data.pos=f.elm.getBoundingClientRect(),n[f.key]?l.push(f):u.push(f)}this.kept=e(t,null,l),this.removed=u}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(io),e.forEach(oo),e.forEach(ao),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;Ai(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(ki,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(ki,e),n._moveCb=null,Mi(n,t))})}})))},methods:{hasMove:function(e,t){if(!bi)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){mi(n,e)})),pi(n,t),n.style.display="none",this.$el.appendChild(n);var r=Pi(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};kn.config.mustUseProp=Pn,kn.config.isReservedTag=qn,kn.config.isReservedAttr=En,kn.config.getTagNamespace=Wn,kn.config.isUnknownElement=function(e){if(!W)return!0;if(qn(e))return!1;if(e=e.toLowerCase(),null!=Yn[e])return Yn[e];var t=document.createElement(e);return e.indexOf("-")>-1?Yn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Yn[e]=/HTMLUnknownElement/.test(t.toString())},E(kn.options.directives,Ki),E(kn.options.components,so),kn.prototype.__patch__=W?Fi:P,kn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ge),Zt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new fn(e,r,P,{before:function(){e._isMounted&&!e._isDestroyed&&Zt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Zt(e,"mounted")),e}(this,e=e&&W?Kn(e):void 0,t)},W&&setTimeout((function(){B.devtools&&oe&&oe.emit("init",kn)}),0);var co,lo=/\{\{((?:.|\r?\n)+?)\}\}/g,uo=/[-.*+?^${}()|[\]\/\\]/g,fo=w((function(e){var t=e[0].replace(uo,"\\$&"),n=e[1].replace(uo,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")})),ho={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=jr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Dr(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}},po={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=jr(e,"style");n&&(e.staticStyle=JSON.stringify(ni(n)));var r=Dr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},mo=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),vo=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),go=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),bo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,yo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,_o="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+$.source+"]*",wo="((?:"+_o+"\\:)?"+_o+")",ko=new RegExp("^<"+wo),xo=/^\s*(\/?)>/,Co=new RegExp("^<\\/"+wo+"[^>]*>"),So=/^<!DOCTYPE [^>]+>/i,To=/^<!\--/,Ao=/^<!\[/,Mo=m("script,style,textarea",!0),Eo={},Oo={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Po=/&(?:lt|gt|quot|amp|#39);/g,Io=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Do=m("pre,textarea",!0),jo=function(e,t){return e&&Do(e)&&"\n"===t[0]};function No(e,t){var n=t?Io:Po;return e.replace(n,(function(e){return Oo[e]}))}var Ro,Lo,zo,Fo,Bo,$o,Vo,Ho,Uo=/^@|^v-on:/,qo=/^v-|^@|^:|^#/,Wo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Yo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Go=/^\(|\)$/g,Ko=/^\[.*\]$/,Qo=/:(.*)$/,Jo=/^:|^\.|^v-bind:/,Xo=/\.[^.\]]+(?=[^\]]*$)/g,Zo=/^v-slot(:|$)|^#/,ea=/[\r\n]/,ta=/\s+/g,na=w((function(e){return(co=co||document.createElement("div")).innerHTML=e,co.textContent})),ra="_empty_";function ia(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:ua(t),rawAttrsMap:{},parent:n,children:[]}}function oa(e,t){var n,r;(r=Dr(n=e,"key"))&&(n.key=r),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Dr(e,"ref");t&&(e.ref=t,e.refInFor=function(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=jr(e,"scope"),e.slotScope=t||jr(e,"slot-scope")):(t=jr(e,"slot-scope"))&&(e.slotScope=t);var n=Dr(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Mr(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot"))),"template"===e.tag){var r=Nr(e,Zo);if(r){var i=ca(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||ra}}else{var s=Nr(e,Zo);if(s){var c=e.scopedSlots||(e.scopedSlots={}),l=ca(s),u=l.name,d=l.dynamic,f=c[u]=ia("template",[],e);f.slotTarget=u,f.slotTargetDynamic=d,f.children=e.children.filter((function(e){if(!e.slotScope)return e.parent=f,!0})),f.slotScope=s.value||ra,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=Dr(e,"name"))}(e),function(e){var t;(t=Dr(e,"is"))&&(e.component=t),null!=jr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var i=0;i<zo.length;i++)e=zo[i](e,t)||e;return function(e){var t,n,r,i,o,a,s,c,l=e.attrsList;for(t=0,n=l.length;t<n;t++)if(r=i=l[t].name,o=l[t].value,qo.test(r))if(e.hasBindings=!0,(a=la(r.replace(qo,"")))&&(r=r.replace(Xo,"")),Jo.test(r))r=r.replace(Jo,""),o=xr(o),(c=Ko.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!c&&"innerHtml"===(r=x(r))&&(r="innerHTML"),a.camel&&!c&&(r=x(r)),a.sync&&(s=zr(o,"$event"),c?Ir(e,'"update:"+('+r+")",s,null,!1,0,l[t],!0):(Ir(e,"update:"+x(r),s,null,!1,0,l[t]),T(r)!==x(r)&&Ir(e,"update:"+T(r),s,null,!1,0,l[t])))),a&&a.prop||!e.component&&Vo(e.tag,e.attrsMap.type,r)?Ar(e,r,o,l[t],c):Mr(e,r,o,l[t],c);else if(Uo.test(r))r=r.replace(Uo,""),(c=Ko.test(r))&&(r=r.slice(1,-1)),Ir(e,r,o,a,!1,0,l[t],c);else{var u=(r=r.replace(qo,"")).match(Qo),d=u&&u[1];c=!1,d&&(r=r.slice(0,-(d.length+1)),Ko.test(d)&&(d=d.slice(1,-1),c=!0)),Or(e,r,i,o,d,c,a,l[t])}else Mr(e,r,JSON.stringify(o),l[t]),!e.component&&"muted"===r&&Vo(e.tag,e.attrsMap.type,r)&&Ar(e,r,"true",l[t])}(e),e}function aa(e){var t;if(t=jr(e,"v-for")){var n=function(e){var t=e.match(Wo);if(t){var n={};n.for=t[2].trim();var r=t[1].trim().replace(Go,""),i=r.match(Yo);return i?(n.alias=r.replace(Yo,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r,n}}(t);n&&E(e,n)}}function sa(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function ca(e){var t=e.name.replace(Zo,"");return t||"#"!==e.name[0]&&(t="default"),Ko.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function la(e){var t=e.match(Xo);if(t){var n={};return t.forEach((function(e){n[e.slice(1)]=!0})),n}}function ua(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}var da=/^xmlns:NS\d+/,fa=/^NS\d+:/;function ha(e){return ia(e.tag,e.attrsList.slice(),e.parent)}var pa,ma,va=[ho,po,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Dr(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=jr(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=jr(e,"v-else",!0),s=jr(e,"v-else-if",!0),c=ha(e);aa(c),Er(c,"type","checkbox"),oa(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+o,sa(c,{exp:c.if,block:c});var l=ha(e);jr(l,"v-for",!0),Er(l,"type","radio"),oa(l,t),sa(c,{exp:"("+n+")==='radio'"+o,block:l});var u=ha(e);return jr(u,"v-for",!0),Er(u,":type",n),oa(u,t),sa(c,{exp:i,block:u}),a?c.else=!0:s&&(c.elseif=s),c}}}}],ga={expectHTML:!0,modules:va,directives:{model:function(e,t,n){var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Lr(e,r,i),!1;if("select"===o)!function(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";Ir(e,"change",r=r+" "+zr(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}(e,r,i);else if("input"===o&&"checkbox"===a)!function(e,t,n){var r=n&&n.number,i=Dr(e,"value")||"null",o=Dr(e,"true-value")||"true",a=Dr(e,"false-value")||"false";Ar(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Ir(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+zr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+zr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+zr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Dr(e,"value")||"null";Ar(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Ir(e,"change",zr(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,l=o?"change":"range"===r?qr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var d=zr(t,u);c&&(d="if($event.target.composing)return;"+d),Ar(e,"value","("+t+")"),Ir(e,l,d,null,!0),(s||a)&&Ir(e,"blur","$forceUpdate()")}(e,r,i);else if(!B.isReservedTag(o))return Lr(e,r,i),!1;return!0},text:function(e,t){t.value&&Ar(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Ar(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:mo,mustUseProp:Pn,canBeLeftOpenTag:vo,isReservedTag:qn,getTagNamespace:Wn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(va)},ba=w((function(e){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));var ya=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,_a=/\([^)]*?\);*$/,wa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ka={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},xa={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ca=function(e){return"if("+e+")return null;"},Sa={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ca("$event.target !== $event.currentTarget"),ctrl:Ca("!$event.ctrlKey"),shift:Ca("!$event.shiftKey"),alt:Ca("!$event.altKey"),meta:Ca("!$event.metaKey"),left:Ca("'button' in $event && $event.button !== 0"),middle:Ca("'button' in $event && $event.button !== 1"),right:Ca("'button' in $event && $event.button !== 2")};function Ta(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Aa(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Aa(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Aa(e)})).join(",")+"]";var t=wa.test(e.value),n=ya.test(e.value),r=wa.test(e.value.replace(_a,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(Sa[s])o+=Sa[s],ka[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=Ca(["ctrl","shift","alt","meta"].filter((function(e){return!c[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ma).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Ma(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=ka[e],r=xa[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ea={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:P},Oa=function(e){this.options=e,this.warn=e.warn||Sr,this.transforms=Tr(e.modules,"transformCode"),this.dataGenFns=Tr(e.modules,"genData"),this.directives=E(E({},Ea),e.directives);var t=e.isReservedTag||I;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Pa(e,t){var n=new Oa(t);return{render:"with(this){return "+(e?Ia(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ia(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Da(e,t);if(e.once&&!e.onceProcessed)return ja(e,t);if(e.for&&!e.forProcessed)return Ra(e,t);if(e.if&&!e.ifProcessed)return Na(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Ba(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Ha((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:x(e.name),value:e.value,dynamic:e.dynamic}}))):null,a=e.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Ba(t,n,!0);return"_c("+e+","+La(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=La(e,t));var i=e.inlineTemplate?null:Ba(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return Ba(e,t)||"void 0"}function Da(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+Ia(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function ja(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Na(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+Ia(e,t)+","+t.onceId+++","+n+")":Ia(e,t)}return Da(e,t)}function Na(e,t,n,r){return e.ifProcessed=!0,function e(t,n,r,i){if(!t.length)return i||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+a(o.block)+":"+e(t,n,r,i):""+a(o.block);function a(e){return r?r(e,n):e.once?ja(e,n):Ia(e,n)}}(e.ifConditions.slice(),t,n,r)}function Ra(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||Ia)(e,t)+"})"}function La(e,t){var n="{",r=function(e,t){var n=e.directives;if(n){var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var l=t.directives[o.name];l&&(a=!!l(e,o,t.warn)),a&&(c=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return c?s.slice(0,-1)+"]":void 0}}(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+Ha(e.attrs)+","),e.props&&(n+="domProps:"+Ha(e.props)+","),e.events&&(n+=Ta(e.events,!1)+","),e.nativeEvents&&(n+=Ta(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,t,n){var r=e.for||Object.keys(t).some((function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||za(n)})),i=!!e.if;if(!r)for(var o=e.parent;o;){if(o.slotScope&&o.slotScope!==ra||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(t).map((function(e){return Fa(t[e],n)})).join(",");return"scopedSlots:_u(["+a+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=Pa(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Ha(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function za(e){return 1===e.type&&("slot"===e.tag||e.children.some(za))}function Fa(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Na(e,t,Fa,"null");if(e.for&&!e.forProcessed)return Ra(e,t,Fa);var r=e.slotScope===ra?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Ba(e,t)||"undefined")+":undefined":Ba(e,t)||"undefined":Ia(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function Ba(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Ia)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if($a(i)||i.ifConditions&&i.ifConditions.some((function(e){return $a(e.block)}))){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some((function(e){return t(e.block)})))&&(n=1)}}return n}(o,t.maybeComponent):0,l=i||Va;return"["+o.map((function(e){return l(e,t)})).join(",")+"]"+(c?","+c:"")}}function $a(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Va(e,t){return 1===e.type?Ia(e,t):3===e.type&&e.isComment?(r=e,"_e("+JSON.stringify(r.text)+")"):"_v("+(2===(n=e).type?n.expression:Ua(JSON.stringify(n.text)))+")";var n,r}function Ha(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],o=Ua(i.value);i.dynamic?n+=i.name+","+o+",":t+='"'+i.name+'":'+o+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function Ua(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function qa(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),P}}function Wa(e){var t=Object.create(null);return function(n,r,i){(r=E({},r)).warn,delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(t[o])return t[o];var a=e(n,r),s={},c=[];return s.render=qa(a.render,c),s.staticRenderFns=a.staticRenderFns.map((function(e){return qa(e,c)})),t[o]=s}}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b");var Ya,Ga,Ka=(Ya=function(e,t){var n=function(e,t){Ro=t.warn||Sr,$o=t.isPreTag||I,Vo=t.mustUseProp||I,Ho=t.getTagNamespace||I,t.isReservedTag,zo=Tr(t.modules,"transformNode"),Fo=Tr(t.modules,"preTransformNode"),Bo=Tr(t.modules,"postTransformNode"),Lo=t.delimiters;var n,r,i=[],o=!1!==t.preserveWhitespace,a=t.whitespace,s=!1,c=!1;function l(e){if(u(e),s||e.processed||(e=oa(e,t)),i.length||e===n||n.if&&(e.elseif||e.else)&&sa(n,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)a=e,(l=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(r.children))&&l.if&&sa(l,{exp:a.elseif,block:a});else{if(e.slotScope){var o=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[o]=e}r.children.push(e),e.parent=r}var a,l;e.children=e.children.filter((function(e){return!e.slotScope})),u(e),e.pre&&(s=!1),$o(e.tag)&&(c=!1);for(var d=0;d<Bo.length;d++)Bo[d](e,t)}function u(e){if(!c)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||I,s=t.canBeLeftOpenTag||I,c=0;e;){if(n=e,r&&Mo(r)){var l=0,u=r.toLowerCase(),d=Eo[u]||(Eo[u]=new RegExp("([\\s\\S]*?)(</"+u+"[^>]*>)","i")),f=e.replace(d,(function(e,n,r){return l=r.length,Mo(u)||"noscript"===u||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),jo(u,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));c+=e.length-f.length,e=f,T(u,c-l,c)}else{var h=e.indexOf("<");if(0===h){if(To.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p),c,c+p+3),x(p+3);continue}}if(Ao.test(e)){var m=e.indexOf("]>");if(m>=0){x(m+2);continue}}var v=e.match(So);if(v){x(v[0].length);continue}var g=e.match(Co);if(g){var b=c;x(g[0].length),T(g[1],b,c);continue}var y=C();if(y){S(y),jo(y.tagName,e)&&x(1);continue}}var _=void 0,w=void 0,k=void 0;if(h>=0){for(w=e.slice(h);!(Co.test(w)||ko.test(w)||To.test(w)||Ao.test(w)||(k=w.indexOf("<",1))<0);)h+=k,w=e.slice(h);_=e.substring(0,h)}h<0&&(_=e),_&&x(_.length),t.chars&&_&&t.chars(_,c-_.length,c)}if(e===n){t.chars&&t.chars(e);break}}function x(t){c+=t,e=e.substring(t)}function C(){var t=e.match(ko);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(x(t[0].length);!(n=e.match(xo))&&(r=e.match(yo)||e.match(bo));)r.start=c,x(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=c,i}}function S(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&go(n)&&T(r),s(n)&&r===n&&T(n));for(var l=a(n)||!!c,u=e.attrs.length,d=new Array(u),f=0;f<u;f++){var h=e.attrs[f],p=h[3]||h[4]||h[5]||"",m="a"===n&&"href"===h[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;d[f]={name:h[1],value:No(p,m)}}l||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:d,start:e.start,end:e.end}),r=n),t.start&&t.start(n,d,l,e.start,e.end)}function T(e,n,o){var a,s;if(null==n&&(n=c),null==o&&(o=c),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var l=i.length-1;l>=a;l--)t.end&&t.end(i[l].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}T()}(e,{warn:Ro,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,u,d){var f=r&&r.ns||Ho(e);Q&&"svg"===f&&(o=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];da.test(r.name)||(r.name=r.name.replace(fa,""),t.push(r))}return t}(o));var h,p=ia(e,o,r);f&&(p.ns=f),"style"!==(h=p).tag&&("script"!==h.tag||h.attrsMap.type&&"text/javascript"!==h.attrsMap.type)||ie()||(p.forbidden=!0);for(var m=0;m<Fo.length;m++)p=Fo[m](p,t)||p;s||(function(e){null!=jr(e,"v-pre")&&(e.pre=!0)}(p),p.pre&&(s=!0)),$o(p.tag)&&(c=!0),s?function(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}(p):p.processed||(aa(p),function(e){var t=jr(e,"v-if");if(t)e.if=t,sa(e,{exp:t,block:e});else{null!=jr(e,"v-else")&&(e.else=!0);var n=jr(e,"v-else-if");n&&(e.elseif=n)}}(p),function(e){null!=jr(e,"v-once")&&(e.once=!0)}(p)),n||(n=p),a?l(p):(r=p,i.push(p))},end:function(e,t,n){var o=i[i.length-1];i.length-=1,r=i[i.length-1],l(o)},chars:function(e,t,n){if(r&&(!Q||"textarea"!==r.tag||r.attrsMap.placeholder!==e)){var i,l,u,d=r.children;(e=c||e.trim()?"script"===(i=r).tag||"style"===i.tag?e:na(e):d.length?a?"condense"===a&&ea.test(e)?"":" ":o?" ":"":"")&&(c||"condense"!==a||(e=e.replace(ta," ")),!s&&" "!==e&&(l=function(e,t){var n=t?fo(t):lo;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){(i=r.index)>c&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var l=xr(r[1].trim());a.push("_s("+l+")"),s.push({"@binding":l}),c=i+r[0].length}return c<e.length&&(s.push(o=e.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(e,Lo))?u={type:2,expression:l.expression,tokens:l.tokens,text:e}:" "===e&&d.length&&" "===d[d.length-1].text||(u={type:3,text:e}),u&&d.push(u))}},comment:function(e,t,n){if(r){var i={type:3,text:e,isComment:!0};r.children.push(i)}}}),n}(e.trim(),t);!1!==t.optimize&&function(e,t){e&&(pa=ba(t.staticKeys||""),ma=t.isReservedTag||I,function e(t){if(t.static=function(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!ma(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(pa))))}(t),1===t.type){if(!ma(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n<r;n++){var i=t.children[n];e(i),i.static||(t.static=!1)}if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++){var s=t.ifConditions[o].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var r=0,i=t.children.length;r<i;r++)e(t.children[r],n||!!t.for);if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++)e(t.ifConditions[o].block,n)}}(e,!1))}(n,t);var r=Pa(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),i=[],o=[];if(n)for(var a in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=E(Object.create(e.directives||null),n.directives)),n)"modules"!==a&&"directives"!==a&&(r[a]=n[a]);r.warn=function(e,t,n){(n?o:i).push(e)};var s=Ya(t.trim(),r);return s.errors=i,s.tips=o,s}return{compile:t,compileToFunctions:Wa(t)}})(ga),Qa=(Ka.compile,Ka.compileToFunctions);function Ja(e){return(Ga=Ga||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Ga.innerHTML.indexOf("&#10;")>0}var Xa=!!W&&Ja(!1),Za=!!W&&Ja(!0),es=w((function(e){var t=Kn(e);return t&&t.innerHTML})),ts=kn.prototype.$mount;kn.prototype.$mount=function(e,t){if((e=e&&Kn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=es(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=Qa(r,{outputSourceRange:!1,shouldDecodeNewlines:Xa,shouldDecodeNewlinesForHref:Za,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return ts.call(this,e,t)},kn.compile=Qa,e.exports=kn}).call(this,n(7),n(121).setImmediate)},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(122),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(7))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,c=1,l={},u=!1,d=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(i=d.documentElement,r=function(e){var t=d.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(p,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&p(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return l[c]=i,r(c),c++},f.clearImmediate=h}function h(e){delete l[e]}function p(e){if(u)setTimeout(p,0,e);else{var t=l[e];if(t){u=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{h(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(7),n(57))},function(e,t,n){var r,i,o,a,s,c,l,u,d;o={id:"sifter",exports:{},loaded:!1},r="function"==typeof(i=function(){var e=function(e,t){this.items=e,this.settings=t||{diacritics:!0}};e.prototype.tokenize=function(e){if(!(e=i(String(e||"").toLowerCase()))||!e.length)return[];var t,n,r,a,c=[],l=e.split(/ +/);for(t=0,n=l.length;t<n;t++){if(r=o(l[t]),this.settings.diacritics)for(a in s)s.hasOwnProperty(a)&&(r=r.replace(new RegExp(a,"g"),s[a]));c.push({string:l[t],regex:new RegExp(r,"i")})}return c},e.prototype.iterator=function(e,t){(a(e)?Array.prototype.forEach||function(e){for(var t=0,n=this.length;t<n;t++)e(this[t],t,this)}:function(e){for(var t in this)this.hasOwnProperty(t)&&e(this[t],t,this)}).apply(e,[t])},e.prototype.getScoreFunction=function(e,t){var n,i,o,a;e=this.prepareSearch(e,t),i=e.tokens,n=e.options.fields,o=i.length,a=e.options.nesting;var s=function(e,t){var n,r;return e?-1===(r=(e=String(e||"")).search(t.regex))?0:(n=t.string.length/e.length,0===r&&(n+=.5),n):0},c=function(){var e=n.length;return e?1===e?function(e,t){return s(r(t,n[0],a),e)}:function(t,i){for(var o=0,c=0;o<e;o++)c+=s(r(i,n[o],a),t);return c/e}:function(){return 0}}();return o?1===o?function(e){return c(i[0],e)}:"and"===e.options.conjunction?function(e){for(var t,n=0,r=0;n<o;n++){if((t=c(i[n],e))<=0)return 0;r+=t}return r/o}:function(e){for(var t=0,n=0;t<o;t++)n+=c(i[t],e);return n/o}:function(){return 0}},e.prototype.getSortFunction=function(e,n){var i,o,a,s,c,l,u,d,f,h,p;if(p=!(e=(a=this).prepareSearch(e,n)).query&&n.sort_empty||n.sort,f=function(e,t){return"$score"===e?t.score:r(a.items[t.id],e,n.nesting)},c=[],p)for(i=0,o=p.length;i<o;i++)(e.query||"$score"!==p[i].field)&&c.push(p[i]);if(e.query){for(h=!0,i=0,o=c.length;i<o;i++)if("$score"===c[i].field){h=!1;break}h&&c.unshift({field:"$score",direction:"desc"})}else for(i=0,o=c.length;i<o;i++)if("$score"===c[i].field){c.splice(i,1);break}for(d=[],i=0,o=c.length;i<o;i++)d.push("desc"===c[i].direction?-1:1);return(l=c.length)?1===l?(s=c[0].field,u=d[0],function(e,n){return u*t(f(s,e),f(s,n))}):function(e,n){var r,i,o;for(r=0;r<l;r++)if(o=c[r].field,i=d[r]*t(f(o,e),f(o,n)))return i;return 0}:null},e.prototype.prepareSearch=function(e,t){if("object"==typeof e)return e;var r=(t=n({},t)).fields,i=t.sort,o=t.sort_empty;return r&&!a(r)&&(t.fields=[r]),i&&!a(i)&&(t.sort=[i]),o&&!a(o)&&(t.sort_empty=[o]),{options:t,query:String(e||"").toLowerCase(),tokens:this.tokenize(e),total:0,items:[]}},e.prototype.search=function(e,t){var n,r,i,o,a=this;return r=this.prepareSearch(e,t),t=r.options,e=r.query,o=t.score||a.getScoreFunction(r),e.length?a.iterator(a.items,(function(e,i){n=o(e),(!1===t.filter||n>0)&&r.items.push({score:n,id:i})})):a.iterator(a.items,(function(e,t){r.items.push({score:1,id:t})})),(i=a.getSortFunction(r,t))&&r.items.sort(i),r.total=r.items.length,"number"==typeof t.limit&&(r.items=r.items.slice(0,t.limit)),r};var t=function(e,t){return"number"==typeof e&&"number"==typeof t?e>t?1:e<t?-1:0:(e=c(String(e||"")))>(t=c(String(t||"")))?1:t>e?-1:0},n=function(e,t){var n,r,i,o;for(n=1,r=arguments.length;n<r;n++)if(o=arguments[n])for(i in o)o.hasOwnProperty(i)&&(e[i]=o[i]);return e},r=function(e,t,n){if(e&&t){if(!n)return e[t];for(var r=t.split(".");r.length&&(e=e[r.shift()]););return e}},i=function(e){return(e+"").replace(/^\s+|\s+$|/g,"")},o=function(e){return(e+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},a=Array.isArray||"undefined"!=typeof $&&$.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s={a:"[aḀḁĂăÂâǍǎȺⱥȦȧẠạÄäÀàÁáĀāÃãÅåąĄÃąĄ]",b:"[b␢βΒB฿𐌁ᛒ]",c:"[cĆćĈĉČčĊċC̄c̄ÇçḈḉȻȼƇƈɕᴄCc]",d:"[dĎďḊḋḐḑḌḍḒḓḎḏĐđD̦d̦ƉɖƊɗƋƌᵭᶁᶑȡᴅDdð]",e:"[eÉéÈèÊêḘḙĚěĔĕẼẽḚḛẺẻĖėËëĒēȨȩĘęᶒɆɇȄȅẾếỀềỄễỂểḜḝḖḗḔḕȆȇẸẹỆệⱸᴇEeɘǝƏƐε]",f:"[fƑƒḞḟ]",g:"[gɢ₲ǤǥĜĝĞğĢģƓɠĠġ]",h:"[hĤĥĦħḨḩẖẖḤḥḢḣɦʰǶƕ]",i:"[iÍíÌìĬĭÎîǏǐÏïḮḯĨĩĮįĪīỈỉȈȉȊȋỊịḬḭƗɨɨ̆ᵻᶖİiIıɪIi]",j:"[jȷĴĵɈɉʝɟʲ]",k:"[kƘƙꝀꝁḰḱǨǩḲḳḴḵκϰ₭]",l:"[lŁłĽľĻļĹĺḶḷḸḹḼḽḺḻĿŀȽƚⱠⱡⱢɫɬᶅɭȴʟLl]",n:"[nŃńǸǹŇňÑñṄṅŅņṆṇṊṋṈṉN̈n̈ƝɲȠƞᵰᶇɳȵɴNnŊŋ]",o:"[oØøÖöÓóÒòÔôǑǒŐőŎŏȮȯỌọƟɵƠơỎỏŌōÕõǪǫȌȍՕօ]",p:"[pṔṕṖṗⱣᵽƤƥᵱ]",q:"[qꝖꝗʠɊɋꝘꝙq̃]",r:"[rŔŕɌɍŘřŖŗṘṙȐȑȒȓṚṛⱤɽ]",s:"[sŚśṠṡṢṣꞨꞩŜŝŠšŞşȘșS̈s̈]",t:"[tŤťṪṫŢţṬṭƮʈȚțṰṱṮṯƬƭ]",u:"[uŬŭɄʉỤụÜüÚúÙùÛûǓǔŰűŬŭƯưỦủŪūŨũŲųȔȕ∪]",v:"[vṼṽṾṿƲʋꝞꝟⱱʋ]",w:"[wẂẃẀẁŴŵẄẅẆẇẈẉ]",x:"[xẌẍẊẋχ]",y:"[yÝýỲỳŶŷŸÿỸỹẎẏỴỵɎɏƳƴ]",z:"[zŹźẐẑŽžŻżẒẓẔẕƵƶ]"},c=function(){var e,t,n,r,i="",o={};for(n in s)if(s.hasOwnProperty(n))for(i+=r=s[n].substring(2,s[n].length-1),e=0,t=r.length;e<t;e++)o[r.charAt(e)]=n;var a=new RegExp("["+i+"]","g");return function(e){return e.replace(a,(function(e){return o[e]})).toLowerCase()}}();return e})?i.call(o.exports,n,o.exports,o):i,o.loaded=!0,void 0!==r||(r=o.exports),c={id:"microplugin",exports:{},loaded:!1},a="function"==typeof(s=function(){var e={mixin:function(e){e.plugins={},e.prototype.initializePlugins=function(e){var n,r,i,o=this,a=[];if(o.plugins={names:[],settings:{},requested:{},loaded:{}},t.isArray(e))for(n=0,r=e.length;n<r;n++)"string"==typeof e[n]?a.push(e[n]):(o.plugins.settings[e[n].name]=e[n].options,a.push(e[n].name));else if(e)for(i in e)e.hasOwnProperty(i)&&(o.plugins.settings[i]=e[i],a.push(i));for(;a.length;)o.require(a.shift())},e.prototype.loadPlugin=function(t){var n=this,r=n.plugins,i=e.plugins[t];if(!e.plugins.hasOwnProperty(t))throw new Error('Unable to find "'+t+'" plugin');r.requested[t]=!0,r.loaded[t]=i.fn.apply(n,[n.plugins.settings[t]||{}]),r.names.push(t)},e.prototype.require=function(e){var t=this,n=t.plugins;if(!t.plugins.loaded.hasOwnProperty(e)){if(n.requested[e])throw new Error('Plugin has circular dependency ("'+e+'")');t.loadPlugin(e)}return n.loaded[e]},e.define=function(t,n){e.plugins[t]={name:t,fn:n}}}},t={isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}};return e})?s.call(c.exports,n,c.exports,c):s,c.loaded=!0,void 0!==a||(a=c.exports),u=[n(35),r,a],void 0===(d="function"==typeof(l=function(e,t,n){"use strict";var r=function(e,t){if("string"!=typeof t||t.length){var n="string"==typeof t?new RegExp(t,"i"):t,r=function(e){var t=0;if(3===e.nodeType){var i=e.data.search(n);if(i>=0&&e.data.length>0){var o=e.data.match(n),a=document.createElement("span");a.className="highlight";var s=e.splitText(i),c=(s.splitText(o[0].length),s.cloneNode(!0));a.appendChild(c),s.parentNode.replaceChild(a,s),t=1}}else if(1===e.nodeType&&e.childNodes&&!/(script|style)/i.test(e.tagName)&&("highlight"!==e.className||"SPAN"!==e.tagName))for(var l=0;l<e.childNodes.length;++l)l+=r(e.childNodes[l]);return t};return e.each((function(){r(this)}))}};e.fn.removeHighlight=function(){return this.find("span.highlight").each((function(){this.parentNode.firstChild.nodeName;var e=this.parentNode;e.replaceChild(this.firstChild,this),e.normalize()})).end()};var i=function(){};i.prototype={on:function(e,t){this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(t)},off:function(e,t){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[e]:(this._events=this._events||{},void(e in this._events!=0&&this._events[e].splice(this._events[e].indexOf(t),1)))},trigger:function(e){if(this._events=this._events||{},e in this._events!=0)for(var t=0;t<this._events[e].length;t++)this._events[e][t].apply(this,Array.prototype.slice.call(arguments,1))}},i.mixin=function(e){for(var t=["on","off","trigger"],n=0;n<t.length;n++)e.prototype[t[n]]=i.prototype[t[n]]};var o=/Mac/.test(navigator.userAgent),a=o?91:17,s=o?18:17,c=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("input").validity,l=function(e){return void 0!==e},u=function(e){return null==e?null:"boolean"==typeof e?e?"1":"0":e+""},d=function(e){return(e+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},f={before:function(e,t,n){var r=e[t];e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)}},after:function(e,t,n){var r=e[t];e[t]=function(){var t=r.apply(e,arguments);return n.apply(e,arguments),t}}},h=function(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}},p=function(e,t){var n;return function(){var r=this,i=arguments;window.clearTimeout(n),n=window.setTimeout((function(){e.apply(r,i)}),t)}},m=function(e,t,n){var r,i=e.trigger,o={};for(r in e.trigger=function(){var n=arguments[0];if(-1===t.indexOf(n))return i.apply(e,arguments);o[n]=arguments},n.apply(e,[]),e.trigger=i,o)o.hasOwnProperty(r)&&i.apply(e,o[r])},v=function(e){var t={};if("selectionStart"in e)t.start=e.selectionStart,t.length=e.selectionEnd-t.start;else if(document.selection){e.focus();var n=document.selection.createRange(),r=document.selection.createRange().text.length;n.moveStart("character",-e.value.length),t.start=n.text.length-r,t.length=r}return t},g=function(t,n){return t?(_.$testInput||(_.$testInput=e("<span />").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).appendTo("body")),_.$testInput.text(t),function(e,t,n){var r,i,o={};if(n)for(r=0,i=n.length;r<i;r++)o[n[r]]=e.css(n[r]);else o=e.css();t.css(o)}(n,_.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),_.$testInput.width()):0},b=function(e){var t=null,n=function(n,r){var i,o,a,s,c,l,u,d;r=r||{},(n=n||window.event||{}).metaKey||n.altKey||(r.force||!1!==e.data("grow"))&&(i=e.val(),n.type&&"keydown"===n.type.toLowerCase()&&(a=(o=n.keyCode)>=48&&o<=57||o>=65&&o<=90||o>=96&&o<=111||o>=186&&o<=222||32===o,46===o||8===o?(d=v(e[0])).length?i=i.substring(0,d.start)+i.substring(d.start+d.length):8===o&&d.start?i=i.substring(0,d.start-1)+i.substring(d.start+1):46===o&&void 0!==d.start&&(i=i.substring(0,d.start)+i.substring(d.start+1)):a&&(l=n.shiftKey,u=String.fromCharCode(n.keyCode),i+=u=l?u.toUpperCase():u.toLowerCase())),s=e.attr("placeholder"),!i&&s&&(i=s),(c=g(i,e)+4)!==t&&(t=c,e.width(c),e.triggerHandler("resize")))};e.on("keydown keyup update blur",n),n()},y=function(e){var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML},_=function(n,r){var i,o,a,s,c=this;(s=n[0]).selectize=c;var l=window.getComputedStyle&&window.getComputedStyle(s,null);if(a=(a=l?l.getPropertyValue("direction"):s.currentStyle&&s.currentStyle.direction)||n.parents("[dir]:first").attr("dir")||"",e.extend(c,{order:0,settings:r,$input:n,tabIndex:n.attr("tabindex")||"",tagType:"select"===s.tagName.toLowerCase()?1:2,rtl:/rtl/i.test(a),eventNS:".selectize"+ ++_.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===r.loadThrottle?c.onSearchChange:p(c.onSearchChange,r.loadThrottle)}),c.sifter=new t(this.options,{diacritics:r.diacritics}),c.settings.options){for(i=0,o=c.settings.options.length;i<o;i++)c.registerOption(c.settings.options[i]);delete c.settings.options}if(c.settings.optgroups){for(i=0,o=c.settings.optgroups.length;i<o;i++)c.registerOptionGroup(c.settings.optgroups[i]);delete c.settings.optgroups}c.settings.mode=c.settings.mode||(1===c.settings.maxItems?"single":"multi"),"boolean"!=typeof c.settings.hideSelected&&(c.settings.hideSelected="multi"===c.settings.mode),c.initializePlugins(c.settings.plugins),c.setupCallbacks(),c.setupTemplates(),c.setup()};return i.mixin(_),void 0!==n?n.mixin(_):function(e,t){t||(t={}),console.error("Selectize: Dependency MicroPlugin is missing"),t.explanation&&(console.group&&console.group(),console.error(t.explanation),console.group&&console.groupEnd())}(0,{explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'}),e.extend(_.prototype,{setup:function(){var t,n,r,i,l,u,d,f,h,p,m=this,v=m.settings,g=m.eventNS,y=e(window),_=e(document),w=m.$input;if(d=m.settings.mode,f=w.attr("class")||"",t=e("<div>").addClass(v.wrapperClass).addClass(f).addClass(d),n=e("<div>").addClass(v.inputClass).addClass("items").appendTo(t),r=e('<input type="text" autocomplete="off" />').appendTo(n).attr("tabindex",w.is(":disabled")?"-1":m.tabIndex),u=e(v.dropdownParent||t),i=e("<div>").addClass(v.dropdownClass).addClass(d).hide().appendTo(u),l=e("<div>").addClass(v.dropdownContentClass).appendTo(i),(p=w.attr("id"))&&(r.attr("id",p+"-selectized"),e("label[for='"+p+"']").attr("for",p+"-selectized")),m.settings.copyClassesToDropdown&&i.addClass(f),t.css({width:w[0].style.width}),m.plugins.names.length&&(h="plugin-"+m.plugins.names.join(" plugin-"),t.addClass(h),i.addClass(h)),(null===v.maxItems||v.maxItems>1)&&1===m.tagType&&w.attr("multiple","multiple"),m.settings.placeholder&&r.attr("placeholder",v.placeholder),!m.settings.splitOn&&m.settings.delimiter){var k=m.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");m.settings.splitOn=new RegExp("\\s*"+k+"+\\s*")}w.attr("autocorrect")&&r.attr("autocorrect",w.attr("autocorrect")),w.attr("autocapitalize")&&r.attr("autocapitalize",w.attr("autocapitalize")),r[0].type=w[0].type,m.$wrapper=t,m.$control=n,m.$control_input=r,m.$dropdown=i,m.$dropdown_content=l,i.on("mouseenter mousedown click","[data-disabled]>[data-selectable]",(function(e){e.stopImmediatePropagation()})),i.on("mouseenter","[data-selectable]",(function(){return m.onOptionHover.apply(m,arguments)})),i.on("mousedown click","[data-selectable]",(function(){return m.onOptionSelect.apply(m,arguments)})),function(e,t,n,r){e.on(t,n,(function(t){for(var n=t.target;n&&n.parentNode!==e[0];)n=n.parentNode;return t.currentTarget=n,r.apply(this,[t])}))}(n,"mousedown","*:not(input)",(function(){return m.onItemSelect.apply(m,arguments)})),b(r),n.on({mousedown:function(){return m.onMouseDown.apply(m,arguments)},click:function(){return m.onClick.apply(m,arguments)}}),r.on({mousedown:function(e){e.stopPropagation()},keydown:function(){return m.onKeyDown.apply(m,arguments)},keyup:function(){return m.onKeyUp.apply(m,arguments)},keypress:function(){return m.onKeyPress.apply(m,arguments)},resize:function(){m.positionDropdown.apply(m,[])},blur:function(){return m.onBlur.apply(m,arguments)},focus:function(){return m.ignoreBlur=!1,m.onFocus.apply(m,arguments)},paste:function(){return m.onPaste.apply(m,arguments)}}),_.on("keydown"+g,(function(e){m.isCmdDown=e[o?"metaKey":"ctrlKey"],m.isCtrlDown=e[o?"altKey":"ctrlKey"],m.isShiftDown=e.shiftKey})),_.on("keyup"+g,(function(e){e.keyCode===s&&(m.isCtrlDown=!1),16===e.keyCode&&(m.isShiftDown=!1),e.keyCode===a&&(m.isCmdDown=!1)})),_.on("mousedown"+g,(function(e){if(m.isFocused){if(e.target===m.$dropdown[0]||e.target.parentNode===m.$dropdown[0])return!1;m.$control.has(e.target).length||e.target===m.$control[0]||m.blur(e.target)}})),y.on(["scroll"+g,"resize"+g].join(" "),(function(){m.isOpen&&m.positionDropdown.apply(m,arguments)})),y.on("mousemove"+g,(function(){m.ignoreHover=!1})),this.revertSettings={$children:w.children().detach(),tabindex:w.attr("tabindex")},w.attr("tabindex",-1).hide().after(m.$wrapper),e.isArray(v.items)&&(m.setValue(v.items),delete v.items),c&&w.on("invalid"+g,(function(e){e.preventDefault(),m.isInvalid=!0,m.refreshState()})),m.updateOriginalInput(),m.refreshItems(),m.refreshState(),m.updatePlaceholder(),m.isSetup=!0,w.is(":disabled")&&m.disable(),m.on("change",this.onChange),w.data("selectize",m),w.addClass("selectized"),m.trigger("initialize"),!0===v.preload&&m.onSearchChange("")},setupTemplates:function(){var t=this,n=t.settings.labelField,r=t.settings.optgroupLabelField,i={optgroup:function(e){return'<div class="optgroup">'+e.html+"</div>"},optgroup_header:function(e,t){return'<div class="optgroup-header">'+t(e[r])+"</div>"},option:function(e,t){return'<div class="option">'+t(e[n])+"</div>"},item:function(e,t){return'<div class="item">'+t(e[n])+"</div>"},option_create:function(e,t){return'<div class="create">Add <strong>'+t(e.input)+"</strong>&hellip;</div>"}};t.settings.render=e.extend({},i,t.settings.render)},setupCallbacks:function(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in n)n.hasOwnProperty(e)&&(t=this.settings[n[e]])&&this.on(e,t)},onClick:function(e){var t=this;t.isFocused&&t.isOpen||(t.focus(),e.preventDefault())},onMouseDown:function(t){var n=this,r=t.isDefaultPrevented();if(e(t.target),n.isFocused){if(t.target!==n.$control_input[0])return"single"===n.settings.mode?n.isOpen?n.close():n.open():r||n.setActiveItem(null),!1}else r||window.setTimeout((function(){n.focus()}),0)},onChange:function(){this.$input.trigger("change")},onPaste:function(t){var n=this;n.isFull()||n.isInputHidden||n.isLocked?t.preventDefault():n.settings.splitOn&&setTimeout((function(){var t=n.$control_input.val();if(t.match(n.settings.splitOn))for(var r=e.trim(t).split(n.settings.splitOn),i=0,o=r.length;i<o;i++)n.createItem(r[i])}),0)},onKeyPress:function(e){if(this.isLocked)return e&&e.preventDefault();var t=String.fromCharCode(e.keyCode||e.which);return this.settings.create&&"multi"===this.settings.mode&&t===this.settings.delimiter?(this.createItem(),e.preventDefault(),!1):void 0},onKeyDown:function(e){var t=(e.target,this.$control_input[0],this);if(!t.isLocked){switch(e.keyCode){case 65:if(t.isCmdDown)return void t.selectAll();break;case 27:return void(t.isOpen&&(e.preventDefault(),e.stopPropagation(),t.close()));case 78:if(!e.ctrlKey||e.altKey)break;case 40:if(!t.isOpen&&t.hasOptions)t.open();else if(t.$activeOption){t.ignoreHover=!0;var n=t.getAdjacentOption(t.$activeOption,1);n.length&&t.setActiveOption(n,!0,!0)}return void e.preventDefault();case 80:if(!e.ctrlKey||e.altKey)break;case 38:if(t.$activeOption){t.ignoreHover=!0;var r=t.getAdjacentOption(t.$activeOption,-1);r.length&&t.setActiveOption(r,!0,!0)}return void e.preventDefault();case 13:return void(t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),e.preventDefault()));case 37:return void t.advanceSelection(-1,e);case 39:return void t.advanceSelection(1,e);case 9:return t.settings.selectOnTab&&t.isOpen&&t.$activeOption&&(t.onOptionSelect({currentTarget:t.$activeOption}),t.isFull()||e.preventDefault()),void(t.settings.create&&t.createItem()&&e.preventDefault());case 8:case 46:return void t.deleteSelection(e)}return!t.isFull()&&!t.isInputHidden||(o?e.metaKey:e.ctrlKey)?void 0:void e.preventDefault()}9!==e.keyCode&&e.preventDefault()},onKeyUp:function(e){var t=this;if(t.isLocked)return e&&e.preventDefault();var n=t.$control_input.val()||"";t.lastValue!==n&&(t.lastValue=n,t.onSearchChange(n),t.refreshOptions(),t.trigger("type",n))},onSearchChange:function(e){var t=this,n=t.settings.load;n&&(t.loadedSearches.hasOwnProperty(e)||(t.loadedSearches[e]=!0,t.load((function(r){n.apply(t,[e,r])}))))},onFocus:function(e){var t=this,n=t.isFocused;if(t.isDisabled)return t.blur(),e&&e.preventDefault(),!1;t.ignoreFocus||(t.isFocused=!0,"focus"===t.settings.preload&&t.onSearchChange(""),n||t.trigger("focus"),t.$activeItems.length||(t.showInput(),t.setActiveItem(null),t.refreshOptions(!!t.settings.openOnFocus)),t.refreshState())},onBlur:function(e,t){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus)){if(!n.ignoreBlur&&document.activeElement===n.$dropdown_content[0])return n.ignoreBlur=!0,void n.onFocus(e);var r=function(){n.close(),n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),t&&t.focus&&t.focus(),n.isBlurring=!1,n.ignoreFocus=!1,n.trigger("blur")};n.isBlurring=!0,n.ignoreFocus=!0,n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,r):r()}},onOptionHover:function(e){this.ignoreHover||this.setActiveOption(e.currentTarget,!1)},onOptionSelect:function(t){var n,r,i=this;t.preventDefault&&(t.preventDefault(),t.stopPropagation()),(r=e(t.currentTarget)).hasClass("create")?i.createItem(null,(function(){i.settings.closeAfterSelect&&i.close()})):void 0!==(n=r.attr("data-value"))&&(i.lastQuery=null,i.setTextboxValue(""),i.addItem(n),i.settings.closeAfterSelect?i.close():!i.settings.hideSelected&&t.type&&/mouse/.test(t.type)&&i.setActiveOption(i.getOption(n)))},onItemSelect:function(e){var t=this;t.isLocked||"multi"===t.settings.mode&&(e.preventDefault(),t.setActiveItem(e.currentTarget,e))},load:function(e){var t=this,n=t.$wrapper.addClass(t.settings.loadingClass);t.loading++,e.apply(t,[function(e){t.loading=Math.max(t.loading-1,0),e&&e.length&&(t.addOption(e),t.refreshOptions(t.isFocused&&!t.isInputHidden)),t.loading||n.removeClass(t.settings.loadingClass),t.trigger("load",e)}])},setTextboxValue:function(e){var t=this.$control_input;t.val()!==e&&(t.val(e).triggerHandler("update"),this.lastValue=e)},getValue:function(){return 1===this.tagType&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(e,t){m(this,t?[]:["change"],(function(){this.clear(t),this.addItems(e,t)}))},setActiveItem:function(t,n){var r,i,o,a,s,c,l,u,d=this;if("single"!==d.settings.mode){if(!(t=e(t)).length)return e(d.$activeItems).removeClass("active"),d.$activeItems=[],void(d.isFocused&&d.showInput());if("mousedown"===(r=n&&n.type.toLowerCase())&&d.isShiftDown&&d.$activeItems.length){for(u=d.$control.children(".active:last"),(a=Array.prototype.indexOf.apply(d.$control[0].childNodes,[u[0]]))>(s=Array.prototype.indexOf.apply(d.$control[0].childNodes,[t[0]]))&&(l=a,a=s,s=l),i=a;i<=s;i++)c=d.$control[0].childNodes[i],-1===d.$activeItems.indexOf(c)&&(e(c).addClass("active"),d.$activeItems.push(c));n.preventDefault()}else"mousedown"===r&&d.isCtrlDown||"keydown"===r&&this.isShiftDown?t.hasClass("active")?(o=d.$activeItems.indexOf(t[0]),d.$activeItems.splice(o,1),t.removeClass("active")):d.$activeItems.push(t.addClass("active")[0]):(e(d.$activeItems).removeClass("active"),d.$activeItems=[t.addClass("active")[0]]);d.hideInput(),this.isFocused||d.focus()}},setActiveOption:function(t,n,r){var i,o,a,s,c,u=this;u.$activeOption&&u.$activeOption.removeClass("active"),u.$activeOption=null,(t=e(t)).length&&(u.$activeOption=t.addClass("active"),!n&&l(n)||(i=u.$dropdown_content.height(),o=u.$activeOption.outerHeight(!0),n=u.$dropdown_content.scrollTop()||0,s=a=u.$activeOption.offset().top-u.$dropdown_content.offset().top+n,c=a-i+o,a+o>i+n?u.$dropdown_content.stop().animate({scrollTop:c},r?u.settings.scrollDuration:0):a<n&&u.$dropdown_content.stop().animate({scrollTop:s},r?u.settings.scrollDuration:0)))},selectAll:function(){var e=this;"single"!==e.settings.mode&&(e.$activeItems=Array.prototype.slice.apply(e.$control.children(":not(input)").addClass("active")),e.$activeItems.length&&(e.hideInput(),e.close()),e.focus())},hideInput:function(){var e=this;e.setTextboxValue(""),e.$control_input.css({opacity:0,position:"absolute",left:e.rtl?1e4:-1e4}),e.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var e=this;e.isDisabled||(e.ignoreFocus=!0,e.$control_input[0].focus(),window.setTimeout((function(){e.ignoreFocus=!1,e.onFocus()}),0))},blur:function(e){this.$control_input[0].blur(),this.onBlur(null,e)},getScoreFunction:function(e){return this.sifter.getScoreFunction(e,this.getSearchOptions())},getSearchOptions:function(){var e=this.settings,t=e.sortField;return"string"==typeof t&&(t=[{field:t}]),{fields:e.searchField,conjunction:e.searchConjunction,sort:t,nesting:e.nesting}},search:function(t){var n,r,i,o=this,a=o.settings,s=this.getSearchOptions();if(a.score&&"function"!=typeof(i=o.settings.score.apply(this,[t])))throw new Error('Selectize "score" setting must be a function that returns a function');if(t!==o.lastQuery?(o.lastQuery=t,r=o.sifter.search(t,e.extend(s,{score:i})),o.currentResults=r):r=e.extend(!0,{},o.currentResults),a.hideSelected)for(n=r.items.length-1;n>=0;n--)-1!==o.items.indexOf(u(r.items[n].id))&&r.items.splice(n,1);return r},refreshOptions:function(t){var n,i,o,a,s,c,l,d,f,h,p,m,v,g,b,_;void 0===t&&(t=!0);var w=this,k=e.trim(w.$control_input.val()),x=w.search(k),C=w.$dropdown_content,S=w.$activeOption&&u(w.$activeOption.attr("data-value"));for(a=x.items.length,"number"==typeof w.settings.maxOptions&&(a=Math.min(a,w.settings.maxOptions)),s={},c=[],n=0;n<a;n++)for(l=w.options[x.items[n].id],d=w.render("option",l),f=l[w.settings.optgroupField]||"",i=0,o=(h=e.isArray(f)?f:[f])&&h.length;i<o;i++)f=h[i],w.optgroups.hasOwnProperty(f)||(f=""),s.hasOwnProperty(f)||(s[f]=document.createDocumentFragment(),c.push(f)),s[f].appendChild(d);for(this.settings.lockOptgroupOrder&&c.sort((function(e,t){return(w.optgroups[e].$order||0)-(w.optgroups[t].$order||0)})),p=document.createDocumentFragment(),n=0,a=c.length;n<a;n++)f=c[n],w.optgroups.hasOwnProperty(f)&&s[f].childNodes.length?((m=document.createDocumentFragment()).appendChild(w.render("optgroup_header",w.optgroups[f])),m.appendChild(s[f]),p.appendChild(w.render("optgroup",e.extend({},w.optgroups[f],{html:y(m),dom:m})))):p.appendChild(s[f]);if(C.html(p),w.settings.highlight&&(C.removeHighlight(),x.query.length&&x.tokens.length))for(n=0,a=x.tokens.length;n<a;n++)r(C,x.tokens[n].regex);if(!w.settings.hideSelected)for(n=0,a=w.items.length;n<a;n++)w.getOption(w.items[n]).addClass("selected");(v=w.canCreate(k))&&(C.prepend(w.render("option_create",{input:k})),_=e(C[0].childNodes[0])),w.hasOptions=x.items.length>0||v,w.hasOptions?(x.items.length>0?((b=S&&w.getOption(S))&&b.length?g=b:"single"===w.settings.mode&&w.items.length&&(g=w.getOption(w.items[0])),g&&g.length||(g=_&&!w.settings.addPrecedence?w.getAdjacentOption(_,1):C.find("[data-selectable]:first"))):g=_,w.setActiveOption(g),t&&!w.isOpen&&w.open()):(w.setActiveOption(null),t&&w.isOpen&&w.close())},addOption:function(t){var n,r,i,o=this;if(e.isArray(t))for(n=0,r=t.length;n<r;n++)o.addOption(t[n]);else(i=o.registerOption(t))&&(o.userOptions[i]=!0,o.lastQuery=null,o.trigger("option_add",i,t))},registerOption:function(e){var t=u(e[this.settings.valueField]);return null!=t&&!this.options.hasOwnProperty(t)&&(e.$order=e.$order||++this.order,this.options[t]=e,t)},registerOptionGroup:function(e){var t=u(e[this.settings.optgroupValueField]);return!!t&&(e.$order=e.$order||++this.order,this.optgroups[t]=e,t)},addOptionGroup:function(e,t){t[this.settings.optgroupValueField]=e,(e=this.registerOptionGroup(t))&&this.trigger("optgroup_add",e,t)},removeOptionGroup:function(e){this.optgroups.hasOwnProperty(e)&&(delete this.optgroups[e],this.renderCache={},this.trigger("optgroup_remove",e))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(t,n){var r,i,o,a,s,c,l,d=this;if(t=u(t),o=u(n[d.settings.valueField]),null!==t&&d.options.hasOwnProperty(t)){if("string"!=typeof o)throw new Error("Value must be set in option data");l=d.options[t].$order,o!==t&&(delete d.options[t],-1!==(a=d.items.indexOf(t))&&d.items.splice(a,1,o)),n.$order=n.$order||l,d.options[o]=n,s=d.renderCache.item,c=d.renderCache.option,s&&(delete s[t],delete s[o]),c&&(delete c[t],delete c[o]),-1!==d.items.indexOf(o)&&(r=d.getItem(t),i=e(d.render("item",n)),r.hasClass("active")&&i.addClass("active"),r.replaceWith(i)),d.lastQuery=null,d.isOpen&&d.refreshOptions(!1)}},removeOption:function(e,t){var n=this;e=u(e);var r=n.renderCache.item,i=n.renderCache.option;r&&delete r[e],i&&delete i[e],delete n.userOptions[e],delete n.options[e],n.lastQuery=null,n.trigger("option_remove",e),n.removeItem(e,t)},clearOptions:function(){var t=this;t.loadedSearches={},t.userOptions={},t.renderCache={};var n=t.options;e.each(t.options,(function(e,r){-1==t.items.indexOf(e)&&delete n[e]})),t.options=t.sifter.items=n,t.lastQuery=null,t.trigger("option_clear")},getOption:function(e){return this.getElementWithValue(e,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(t,n){var r=this.$dropdown.find("[data-selectable]"),i=r.index(t)+n;return i>=0&&i<r.length?r.eq(i):e()},getElementWithValue:function(t,n){if(void 0!==(t=u(t))&&null!==t)for(var r=0,i=n.length;r<i;r++)if(n[r].getAttribute("data-value")===t)return e(n[r]);return e()},getItem:function(e){return this.getElementWithValue(e,this.$control.children())},addItems:function(t,n){this.buffer=document.createDocumentFragment();for(var r=this.$control[0].childNodes,i=0;i<r.length;i++)this.buffer.appendChild(r[i]);for(var o=e.isArray(t)?t:[t],a=(i=0,o.length);i<a;i++)this.isPending=i<a-1,this.addItem(o[i],n);var s=this.$control[0];s.insertBefore(this.buffer,s.firstChild),this.buffer=null},addItem:function(t,n){m(this,n?[]:["change"],(function(){var r,i,o,a,s,c=this,l=c.settings.mode;t=u(t),-1===c.items.indexOf(t)?c.options.hasOwnProperty(t)&&("single"===l&&c.clear(n),"multi"===l&&c.isFull()||(r=e(c.render("item",c.options[t])),s=c.isFull(),c.items.splice(c.caretPos,0,t),c.insertAtCaret(r),(!c.isPending||!s&&c.isFull())&&c.refreshState(),c.isSetup&&(o=c.$dropdown_content.find("[data-selectable]"),c.isPending||(i=c.getOption(t),a=c.getAdjacentOption(i,1).attr("data-value"),c.refreshOptions(c.isFocused&&"single"!==l),a&&c.setActiveOption(c.getOption(a))),!o.length||c.isFull()?c.close():c.isPending||c.positionDropdown(),c.updatePlaceholder(),c.trigger("item_add",t,r),c.isPending||c.updateOriginalInput({silent:n})))):"single"===l&&c.close()}))},removeItem:function(t,n){var r,i,o,a=this;r=t instanceof e?t:a.getItem(t),t=u(r.attr("data-value")),-1!==(i=a.items.indexOf(t))&&(r.remove(),r.hasClass("active")&&(o=a.$activeItems.indexOf(r[0]),a.$activeItems.splice(o,1)),a.items.splice(i,1),a.lastQuery=null,!a.settings.persist&&a.userOptions.hasOwnProperty(t)&&a.removeOption(t,n),i<a.caretPos&&a.setCaret(a.caretPos-1),a.refreshState(),a.updatePlaceholder(),a.updateOriginalInput({silent:n}),a.positionDropdown(),a.trigger("item_remove",t,r))},createItem:function(t,n){var r=this,i=r.caretPos;t=t||e.trim(r.$control_input.val()||"");var o=arguments[arguments.length-1];if("function"!=typeof o&&(o=function(){}),"boolean"!=typeof n&&(n=!0),!r.canCreate(t))return o(),!1;r.lock();var a="function"==typeof r.settings.create?this.settings.create:function(e){var t={};return t[r.settings.labelField]=e,t[r.settings.valueField]=e,t},s=h((function(e){if(r.unlock(),!e||"object"!=typeof e)return o();var t=u(e[r.settings.valueField]);if("string"!=typeof t)return o();r.setTextboxValue(""),r.addOption(e),r.setCaret(i),r.addItem(t),r.refreshOptions(n&&"single"!==r.settings.mode),o(e)})),c=a.apply(this,[t,s]);return void 0!==c&&s(c),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var e=!this.items.length;this.isInvalid=e,this.$control_input.prop("required",e),this.$input.prop("required",!e)},refreshClasses:function(){var t=this,n=t.isFull(),r=t.isLocked;t.$wrapper.toggleClass("rtl",t.rtl),t.$control.toggleClass("focus",t.isFocused).toggleClass("disabled",t.isDisabled).toggleClass("required",t.isRequired).toggleClass("invalid",t.isInvalid).toggleClass("locked",r).toggleClass("full",n).toggleClass("not-full",!n).toggleClass("input-active",t.isFocused&&!t.isInputHidden).toggleClass("dropdown-active",t.isOpen).toggleClass("has-options",!e.isEmptyObject(t.options)).toggleClass("has-items",t.items.length>0),t.$control_input.data("grow",!n&&!r)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(e){var t,n,r,i,o=this;if(e=e||{},1===o.tagType){for(r=[],t=0,n=o.items.length;t<n;t++)i=o.options[o.items[t]][o.settings.labelField]||"",r.push('<option value="'+d(o.items[t])+'" selected="selected">'+d(i)+"</option>");r.length||this.$input.attr("multiple")||r.push('<option value="" selected="selected"></option>'),o.$input.html(r.join(""))}else o.$input.val(o.getValue()),o.$input.attr("value",o.$input.val());o.isSetup&&(e.silent||o.trigger("change",o.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var e=this.$control_input;this.items.length?e.removeAttr("placeholder"):e.attr("placeholder",this.settings.placeholder),e.triggerHandler("update",{force:!0})}},open:function(){var e=this;e.isLocked||e.isOpen||"multi"===e.settings.mode&&e.isFull()||(e.focus(),e.isOpen=!0,e.refreshState(),e.$dropdown.css({visibility:"hidden",display:"block"}),e.positionDropdown(),e.$dropdown.css({visibility:"visible"}),e.trigger("dropdown_open",e.$dropdown))},close:function(){var e=this,t=e.isOpen;"single"===e.settings.mode&&e.items.length&&(e.hideInput(),e.isBlurring||e.$control_input.blur()),e.isOpen=!1,e.$dropdown.hide(),e.setActiveOption(null),e.refreshState(),t&&e.trigger("dropdown_close",e.$dropdown)},positionDropdown:function(){var e=this.$control,t="body"===this.settings.dropdownParent?e.offset():e.position();t.top+=e.outerHeight(!0),this.$dropdown.css({width:e[0].getBoundingClientRect().width,top:t.top,left:t.left})},clear:function(e){var t=this;t.items.length&&(t.$control.children(":not(input)").remove(),t.items=[],t.lastQuery=null,t.setCaret(0),t.setActiveItem(null),t.updatePlaceholder(),t.updateOriginalInput({silent:e}),t.refreshState(),t.showInput(),t.trigger("clear"))},insertAtCaret:function(e){var t=Math.min(this.caretPos,this.items.length),n=e[0],r=this.buffer||this.$control[0];0===t?r.insertBefore(n,r.firstChild):r.insertBefore(n,r.childNodes[t]),this.setCaret(t+1)},deleteSelection:function(t){var n,r,i,o,a,s,c,l,u,d=this;if(i=t&&8===t.keyCode?-1:1,o=v(d.$control_input[0]),d.$activeOption&&!d.settings.hideSelected&&(c=d.getAdjacentOption(d.$activeOption,-1).attr("data-value")),a=[],d.$activeItems.length){for(u=d.$control.children(".active:"+(i>0?"last":"first")),s=d.$control.children(":not(input)").index(u),i>0&&s++,n=0,r=d.$activeItems.length;n<r;n++)a.push(e(d.$activeItems[n]).attr("data-value"));t&&(t.preventDefault(),t.stopPropagation())}else(d.isFocused||"single"===d.settings.mode)&&d.items.length&&(i<0&&0===o.start&&0===o.length?a.push(d.items[d.caretPos-1]):i>0&&o.start===d.$control_input.val().length&&a.push(d.items[d.caretPos]));if(!a.length||"function"==typeof d.settings.onDelete&&!1===d.settings.onDelete.apply(d,[a]))return!1;for(void 0!==s&&d.setCaret(s);a.length;)d.removeItem(a.pop());return d.showInput(),d.positionDropdown(),d.refreshOptions(!0),c&&(l=d.getOption(c)).length&&d.setActiveOption(l),!0},advanceSelection:function(e,t){var n,r,i,o,a,s=this;0!==e&&(s.rtl&&(e*=-1),n=e>0?"last":"first",r=v(s.$control_input[0]),s.isFocused&&!s.isInputHidden?(o=s.$control_input.val().length,(e<0?0===r.start&&0===r.length:r.start===o)&&!o&&s.advanceCaret(e,t)):(a=s.$control.children(".active:"+n)).length&&(i=s.$control.children(":not(input)").index(a),s.setActiveItem(null),s.setCaret(e>0?i+1:i)))},advanceCaret:function(e,t){var n,r,i=this;0!==e&&(n=e>0?"next":"prev",i.isShiftDown?(r=i.$control_input[n]()).length&&(i.hideInput(),i.setActiveItem(r),t&&t.preventDefault()):i.setCaret(i.caretPos+e))},setCaret:function(t){var n,r,i,o,a=this;if(t="single"===a.settings.mode?a.items.length:Math.max(0,Math.min(a.items.length,t)),!a.isPending)for(n=0,r=(i=a.$control.children(":not(input)")).length;n<r;n++)o=e(i[n]).detach(),n<t?a.$control_input.before(o):a.$control.append(o);a.caretPos=t},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var e=this;e.$input.prop("disabled",!0),e.$control_input.prop("disabled",!0).prop("tabindex",-1),e.isDisabled=!0,e.lock()},enable:function(){var e=this;e.$input.prop("disabled",!1),e.$control_input.prop("disabled",!1).prop("tabindex",e.tabIndex),e.isDisabled=!1,e.unlock()},destroy:function(){var t=this,n=t.eventNS,r=t.revertSettings;t.trigger("destroy"),t.off(),t.$wrapper.remove(),t.$dropdown.remove(),t.$input.html("").append(r.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:r.tabindex}).show(),t.$control_input.removeData("grow"),t.$input.removeData("selectize"),0==--_.count&&_.$testInput&&(_.$testInput.remove(),_.$testInput=void 0),e(window).off(n),e(document).off(n),e(document.body).off(n),delete t.$input[0].selectize},render:function(t,n){var r,i,o="",a=!1,s=this;return"option"!==t&&"item"!==t||(a=!!(r=u(n[s.settings.valueField]))),a&&(l(s.renderCache[t])||(s.renderCache[t]={}),s.renderCache[t].hasOwnProperty(r))?s.renderCache[t][r]:(o=e(s.settings.render[t].apply(this,[n,d])),"option"===t||"option_create"===t?n[s.settings.disabledField]||o.attr("data-selectable",""):"optgroup"===t&&(i=n[s.settings.optgroupValueField]||"",o.attr("data-group",i),n[s.settings.disabledField]&&o.attr("data-disabled","")),"option"!==t&&"item"!==t||o.attr("data-value",r||""),a&&(s.renderCache[t][r]=o[0]),o[0])},clearCache:function(e){void 0===e?this.renderCache={}:delete this.renderCache[e]},canCreate:function(e){var t=this;if(!t.settings.create)return!1;var n=t.settings.createFilter;return e.length&&("function"!=typeof n||n.apply(t,[e]))&&("string"!=typeof n||new RegExp(n).test(e))&&(!(n instanceof RegExp)||n.test(e))}}),_.count=0,_.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},e.fn.selectize=function(t){var n=e.fn.selectize.defaults,r=e.extend({},n,t),i=r.dataAttr,o=r.labelField,a=r.valueField,s=r.disabledField,c=r.optgroupField,l=r.optgroupLabelField,d=r.optgroupValueField,f=function(t,n){var s,c,l,u,d=t.attr(i);if(d)for(n.options=JSON.parse(d),s=0,c=n.options.length;s<c;s++)n.items.push(n.options[s][a]);else{var f=e.trim(t.val()||"");if(!r.allowEmptyOption&&!f.length)return;for(s=0,c=(l=f.split(r.delimiter)).length;s<c;s++)(u={})[o]=l[s],u[a]=l[s],n.options.push(u);n.items=l}},h=function(t,n){var f,h,p,m,v=n.options,g={},b=function(e){var t=i&&e.attr(i);return"string"==typeof t&&t.length?JSON.parse(t):null},y=function(t,i){t=e(t);var l=u(t.val());if(l||r.allowEmptyOption)if(g.hasOwnProperty(l)){if(i){var d=g[l][c];d?e.isArray(d)?d.push(i):g[l][c]=[d,i]:g[l][c]=i}}else{var f=b(t)||{};f[o]=f[o]||t.text(),f[a]=f[a]||l,f[s]=f[s]||t.prop("disabled"),f[c]=f[c]||i,g[l]=f,v.push(f),t.is(":selected")&&n.items.push(l)}};for(n.maxItems=t.attr("multiple")?null:1,f=0,h=(m=t.children()).length;f<h;f++)"optgroup"===(p=m[f].tagName.toLowerCase())?function(t){var r,i,o,a,c;for((o=(t=e(t)).attr("label"))&&((a=b(t)||{})[l]=o,a[d]=o,a[s]=t.prop("disabled"),n.optgroups.push(a)),r=0,i=(c=e("option",t)).length;r<i;r++)y(c[r],o)}(m[f]):"option"===p&&y(m[f])};return this.each((function(){if(!this.selectize){var i=e(this),o=this.tagName.toLowerCase(),a=i.attr("placeholder")||i.attr("data-placeholder");a||r.allowEmptyOption||(a=i.children('option[value=""]').text());var s={placeholder:a,options:[],optgroups:[],items:[]};"select"===o?h(i,s):f(i,s),new _(i,e.extend(!0,{},n,s,t))}}))},e.fn.selectize.defaults=_.defaults,e.fn.selectize.support={validity:c},_.define("drag_drop",(function(t){if(!e.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var n=this;n.lock=function(){var e=n.lock;return function(){var t=n.$control.data("sortable");return t&&t.disable(),e.apply(n,arguments)}}(),n.unlock=function(){var e=n.unlock;return function(){var t=n.$control.data("sortable");return t&&t.enable(),e.apply(n,arguments)}}(),n.setup=function(){var t=n.setup;return function(){t.apply(this,arguments);var r=n.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:n.isLocked,start:function(e,t){t.placeholder.css("width",t.helper.css("width")),r.css({overflow:"visible"})},stop:function(){r.css({overflow:"hidden"});var t=n.$activeItems?n.$activeItems.slice():null,i=[];r.children("[data-value]").each((function(){i.push(e(this).attr("data-value"))})),n.setValue(i),n.setActiveItem(t)}})}}()}})),_.define("dropdown_header",(function(t){var n=this;t=e.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(e){return'<div class="'+e.headerClass+'"><div class="'+e.titleRowClass+'"><span class="'+e.labelClass+'">'+e.title+'</span><a href="javascript:void(0)" class="'+e.closeClass+'">&times;</a></div></div>'}},t),n.setup=function(){var r=n.setup;return function(){r.apply(n,arguments),n.$dropdown_header=e(t.html(t)),n.$dropdown.prepend(n.$dropdown_header)}}()})),_.define("optgroup_columns",(function(t){var n=this;t=e.extend({equalizeWidth:!0,equalizeHeight:!0},t),this.getAdjacentOption=function(t,n){var r=t.closest("[data-group]").find("[data-selectable]"),i=r.index(t)+n;return i>=0&&i<r.length?r.eq(i):e()},this.onKeyDown=function(){var e=n.onKeyDown;return function(t){var r,i,o,a;return!this.isOpen||37!==t.keyCode&&39!==t.keyCode?e.apply(this,arguments):(n.ignoreHover=!0,r=(a=this.$activeOption.closest("[data-group]")).find("[data-selectable]").index(this.$activeOption),void((i=(o=(a=37===t.keyCode?a.prev("[data-group]"):a.next("[data-group]")).find("[data-selectable]")).eq(Math.min(o.length-1,r))).length&&this.setActiveOption(i)))}}();var r=function(){var e,t=r.width,n=document;return void 0===t&&((e=n.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',e=e.firstChild,n.body.appendChild(e),t=r.width=e.offsetWidth-e.clientWidth,n.body.removeChild(e)),t},i=function(){var i,o,a,s,c,l,u;if((o=(u=e("[data-group]",n.$dropdown_content)).length)&&n.$dropdown_content.width()){if(t.equalizeHeight){for(a=0,i=0;i<o;i++)a=Math.max(a,u.eq(i).height());u.css({height:a})}t.equalizeWidth&&(l=n.$dropdown_content.innerWidth()-r(),s=Math.round(l/o),u.css({width:s}),o>1&&(c=l-s*(o-1),u.eq(o-1).css({width:c})))}};(t.equalizeHeight||t.equalizeWidth)&&(f.after(this,"positionDropdown",i),f.after(this,"refreshOptions",i))})),_.define("remove_button",(function(t){t=e.extend({label:"&times;",title:"Remove",className:"remove",append:!0},t),"single"!==this.settings.mode?function(t,n){var r=t,i='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+d(n.title)+'">'+n.label+"</a>",o=function(e,t){var n=e.search(/(<\/[^>]+>\s*)$/);return e.substring(0,n)+t+e.substring(n)};t.setup=function(){var a=r.setup;return function(){if(n.append){var s=r.settings.render.item;r.settings.render.item=function(e){return o(s.apply(t,arguments),i)}}a.apply(t,arguments),t.$control.on("click","."+n.className,(function(t){if(t.preventDefault(),!r.isLocked){var n=e(t.currentTarget).parent();r.setActiveItem(n),r.deleteSelection()&&r.setCaret(r.items.length)}}))}}()}(this,t):function(t,n){n.className="remove-single";var r=t,i='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+d(n.title)+'">'+n.label+"</a>",o=function(t,n){return e("<span>").append(t).append(n)};t.setup=function(){var a=r.setup;return function(){if(n.append){var s=e(r.$input.context).attr("id"),c=(e("#"+s),r.settings.render.item);r.settings.render.item=function(e){return o(c.apply(t,arguments),i)}}a.apply(t,arguments),t.$control.on("click","."+n.className,(function(e){e.preventDefault(),r.isLocked||r.clear()}))}}()}(this,t)})),_.define("restore_on_backspace",(function(e){var t=this;e.text=e.text||function(e){return e[this.settings.labelField]},this.onKeyDown=function(){var n=t.onKeyDown;return function(t){var r,i;return 8===t.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&(r=this.caretPos-1)>=0&&r<this.items.length?(i=this.options[this.items[r]],this.deleteSelection(t)&&(this.setTextboxValue(e.text.apply(this,[i])),this.refreshOptions(!0)),void t.preventDefault()):n.apply(this,arguments)}}()})),_})?l.apply(t,u):l)||(e.exports=d)},function(e,t,n){var r=n(3),i=n(125);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(4)(!1)).push([e.i,'.selectize-control.plugin-drag_drop.multi>.selectize-input>div.ui-sortable-placeholder{visibility:visible!important;background:#f2f2f2!important;background:rgba(0,0,0,.06)!important;border:0!important;box-shadow:inset 0 0 12px 4px #fff}.selectize-control.plugin-drag_drop .ui-sortable-placeholder:after{content:"!";visibility:hidden}.selectize-control.plugin-drag_drop .ui-sortable-helper{box-shadow:0 2px 5px rgba(0,0,0,.2)}.selectize-dropdown-header{position:relative;padding:5px 8px;border-bottom:1px solid #d0d0d0;background:#f8f8f8;border-radius:3px 3px 0 0}.selectize-dropdown-header-close{position:absolute;right:8px;top:50%;color:#303030;opacity:.4;margin-top:-12px;line-height:20px;font-size:20px!important}.selectize-dropdown-header-close:hover{color:#000}.selectize-dropdown.plugin-optgroup_columns .optgroup{border-right:1px solid #f2f2f2;border-top:0;float:left;box-sizing:border-box}.selectize-dropdown.plugin-optgroup_columns .optgroup:last-child{border-right:0}.selectize-dropdown.plugin-optgroup_columns .optgroup:before{display:none}.selectize-dropdown.plugin-optgroup_columns .optgroup-header{border-top:0}.selectize-control.plugin-remove_button [data-value]{position:relative;padding-right:24px!important}.selectize-control.plugin-remove_button [data-value] .remove{z-index:1;position:absolute;top:0;right:0;bottom:0;width:17px;text-align:center;font-weight:700;font-size:12px;color:inherit;text-decoration:none;vertical-align:middle;display:inline-block;padding:2px 0 0;border-left:1px solid #d0d0d0;border-radius:0 2px 2px 0;box-sizing:border-box}.selectize-control.plugin-remove_button [data-value] .remove:hover{background:rgba(0,0,0,.05)}.selectize-control.plugin-remove_button [data-value].active .remove{border-left-color:#cacaca}.selectize-control.plugin-remove_button .disabled [data-value] .remove:hover{background:none}.selectize-control.plugin-remove_button .disabled [data-value] .remove{border-left-color:#fff}.selectize-control.plugin-remove_button .remove-single{position:absolute;right:0;top:0;font-size:23px}.selectize-control{position:relative}.selectize-dropdown,.selectize-input,.selectize-input input{color:#303030;font-family:inherit;font-size:13px;line-height:18px;-webkit-font-smoothing:inherit}.selectize-control.single .selectize-input.input-active,.selectize-input{background:#fff;cursor:text;display:inline-block}.selectize-input{border:1px solid #d0d0d0;padding:8px;display:inline-block;width:100%;overflow:hidden;position:relative;z-index:1;box-sizing:border-box;box-shadow:inset 0 1px 1px rgba(0,0,0,.1);border-radius:3px}.selectize-control.multi .selectize-input.has-items{padding:6px 8px 3px}.selectize-input.full{background-color:#fff}.selectize-input.disabled,.selectize-input.disabled *{cursor:default!important}.selectize-input.focus{box-shadow:inset 0 1px 2px rgba(0,0,0,.15)}.selectize-input.dropdown-active{border-radius:3px 3px 0 0}.selectize-input>*{vertical-align:baseline;display:-moz-inline-stack;display:inline-block;zoom:1;*display:inline}.selectize-control.multi .selectize-input>div{cursor:pointer;margin:0 3px 3px 0;padding:2px 6px;background:#f2f2f2;color:#303030;border:0 solid #d0d0d0}.selectize-control.multi .selectize-input>div.active{background:#e8e8e8;color:#303030;border:0 solid #cacaca}.selectize-control.multi .selectize-input.disabled>div,.selectize-control.multi .selectize-input.disabled>div.active{color:#7d7d7d;background:#fff;border:0 solid #fff}.selectize-input>input{display:inline-block!important;padding:0!important;min-height:0!important;max-height:none!important;max-width:100%!important;margin:0 2px 0 0!important;text-indent:0!important;border:0!important;background:none!important;line-height:inherit!important;-webkit-user-select:auto!important;box-shadow:none!important}.selectize-input>input::-ms-clear{display:none}.selectize-input>input:focus{outline:none!important}.selectize-input:after{content:" ";display:block;clear:left}.selectize-input.dropdown-active:before{content:" ";display:block;position:absolute;background:#f0f0f0;height:1px;bottom:0;left:0;right:0}.selectize-dropdown{position:absolute;z-index:10;background:#fff;margin:-1px 0 0;border:1px solid #d0d0d0;border-top:0;box-sizing:border-box;box-shadow:0 1px 3px rgba(0,0,0,.1);border-radius:0 0 3px 3px}.selectize-dropdown [data-selectable]{cursor:pointer;overflow:hidden}.selectize-dropdown [data-selectable] .highlight{background:rgba(125,168,208,.2);border-radius:1px}.selectize-dropdown .optgroup-header,.selectize-dropdown .option{padding:5px 8px}.selectize-dropdown .option,.selectize-dropdown [data-disabled],.selectize-dropdown [data-disabled] [data-selectable].option{cursor:inherit;opacity:.5}.selectize-dropdown [data-selectable].option{opacity:1}.selectize-dropdown .optgroup:first-child .optgroup-header{border-top:0}.selectize-dropdown .optgroup-header{color:#303030;background:#fff;cursor:default}.selectize-dropdown .active{background-color:#f5fafd;color:#495c68}.selectize-dropdown .active.create{color:#495c68}.selectize-dropdown .create{color:rgba(48,48,48,.5)}.selectize-dropdown-content{overflow-y:auto;overflow-x:hidden;max-height:200px;-webkit-overflow-scrolling:touch}.selectize-control.single .selectize-input,.selectize-control.single .selectize-input input{cursor:pointer}.selectize-control.single .selectize-input.input-active,.selectize-control.single .selectize-input.input-active input{cursor:text}.selectize-control.single .selectize-input:after{content:" ";display:block;position:absolute;top:50%;right:15px;margin-top:-3px;width:0;height:0;border-color:grey transparent transparent;border-style:solid;border-width:5px 5px 0}.selectize-control.single .selectize-input.dropdown-active:after{margin-top:-4px;border-width:0 5px 5px;border-color:transparent transparent grey}.selectize-control.rtl.single .selectize-input:after{left:15px;right:auto}.selectize-control.rtl .selectize-input>input{margin:0 4px 0 -2px!important}.selectize-control .selectize-input.disabled{opacity:.5;background-color:#fafafa}',""]),e.exports=t},function(e,t,n){var r=n(3),i=n(127);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){var r=n(4),i=n(128),o=n(129),a=n(130),s=n(131),c=n(132),l=n(133),u=n(134),d=n(135),f=n(136),h=n(137),p=n(138),m=n(139),v=n(140),g=n(141),b=n(142),y=n(143);t=r(!1);var _=i(o),w=i(o,{hash:"?#iefix"}),k=i(a),x=i(s),C=i(c),S=i(l,{hash:"#fontawesome"}),T=i(u),A=i(u,{hash:"?#iefix"}),M=i(d),E=i(f),O=i(h),P=i(p,{hash:"#fontawesome"}),I=i(m),D=i(m,{hash:"?#iefix"}),j=i(v),N=i(g),R=i(b),L=i(y,{hash:"#fontawesome"});t.push([e.i,'/*!\n * Font Awesome Free 5.13.0 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */.fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\\f26e"}.fa-accessible-icon:before{content:"\\f368"}.fa-accusoft:before{content:"\\f369"}.fa-acquisitions-incorporated:before{content:"\\f6af"}.fa-ad:before{content:"\\f641"}.fa-address-book:before{content:"\\f2b9"}.fa-address-card:before{content:"\\f2bb"}.fa-adjust:before{content:"\\f042"}.fa-adn:before{content:"\\f170"}.fa-adobe:before{content:"\\f778"}.fa-adversal:before{content:"\\f36a"}.fa-affiliatetheme:before{content:"\\f36b"}.fa-air-freshener:before{content:"\\f5d0"}.fa-airbnb:before{content:"\\f834"}.fa-algolia:before{content:"\\f36c"}.fa-align-center:before{content:"\\f037"}.fa-align-justify:before{content:"\\f039"}.fa-align-left:before{content:"\\f036"}.fa-align-right:before{content:"\\f038"}.fa-alipay:before{content:"\\f642"}.fa-allergies:before{content:"\\f461"}.fa-amazon:before{content:"\\f270"}.fa-amazon-pay:before{content:"\\f42c"}.fa-ambulance:before{content:"\\f0f9"}.fa-american-sign-language-interpreting:before{content:"\\f2a3"}.fa-amilia:before{content:"\\f36d"}.fa-anchor:before{content:"\\f13d"}.fa-android:before{content:"\\f17b"}.fa-angellist:before{content:"\\f209"}.fa-angle-double-down:before{content:"\\f103"}.fa-angle-double-left:before{content:"\\f100"}.fa-angle-double-right:before{content:"\\f101"}.fa-angle-double-up:before{content:"\\f102"}.fa-angle-down:before{content:"\\f107"}.fa-angle-left:before{content:"\\f104"}.fa-angle-right:before{content:"\\f105"}.fa-angle-up:before{content:"\\f106"}.fa-angry:before{content:"\\f556"}.fa-angrycreative:before{content:"\\f36e"}.fa-angular:before{content:"\\f420"}.fa-ankh:before{content:"\\f644"}.fa-app-store:before{content:"\\f36f"}.fa-app-store-ios:before{content:"\\f370"}.fa-apper:before{content:"\\f371"}.fa-apple:before{content:"\\f179"}.fa-apple-alt:before{content:"\\f5d1"}.fa-apple-pay:before{content:"\\f415"}.fa-archive:before{content:"\\f187"}.fa-archway:before{content:"\\f557"}.fa-arrow-alt-circle-down:before{content:"\\f358"}.fa-arrow-alt-circle-left:before{content:"\\f359"}.fa-arrow-alt-circle-right:before{content:"\\f35a"}.fa-arrow-alt-circle-up:before{content:"\\f35b"}.fa-arrow-circle-down:before{content:"\\f0ab"}.fa-arrow-circle-left:before{content:"\\f0a8"}.fa-arrow-circle-right:before{content:"\\f0a9"}.fa-arrow-circle-up:before{content:"\\f0aa"}.fa-arrow-down:before{content:"\\f063"}.fa-arrow-left:before{content:"\\f060"}.fa-arrow-right:before{content:"\\f061"}.fa-arrow-up:before{content:"\\f062"}.fa-arrows-alt:before{content:"\\f0b2"}.fa-arrows-alt-h:before{content:"\\f337"}.fa-arrows-alt-v:before{content:"\\f338"}.fa-artstation:before{content:"\\f77a"}.fa-assistive-listening-systems:before{content:"\\f2a2"}.fa-asterisk:before{content:"\\f069"}.fa-asymmetrik:before{content:"\\f372"}.fa-at:before{content:"\\f1fa"}.fa-atlas:before{content:"\\f558"}.fa-atlassian:before{content:"\\f77b"}.fa-atom:before{content:"\\f5d2"}.fa-audible:before{content:"\\f373"}.fa-audio-description:before{content:"\\f29e"}.fa-autoprefixer:before{content:"\\f41c"}.fa-avianex:before{content:"\\f374"}.fa-aviato:before{content:"\\f421"}.fa-award:before{content:"\\f559"}.fa-aws:before{content:"\\f375"}.fa-baby:before{content:"\\f77c"}.fa-baby-carriage:before{content:"\\f77d"}.fa-backspace:before{content:"\\f55a"}.fa-backward:before{content:"\\f04a"}.fa-bacon:before{content:"\\f7e5"}.fa-bahai:before{content:"\\f666"}.fa-balance-scale:before{content:"\\f24e"}.fa-balance-scale-left:before{content:"\\f515"}.fa-balance-scale-right:before{content:"\\f516"}.fa-ban:before{content:"\\f05e"}.fa-band-aid:before{content:"\\f462"}.fa-bandcamp:before{content:"\\f2d5"}.fa-barcode:before{content:"\\f02a"}.fa-bars:before{content:"\\f0c9"}.fa-baseball-ball:before{content:"\\f433"}.fa-basketball-ball:before{content:"\\f434"}.fa-bath:before{content:"\\f2cd"}.fa-battery-empty:before{content:"\\f244"}.fa-battery-full:before{content:"\\f240"}.fa-battery-half:before{content:"\\f242"}.fa-battery-quarter:before{content:"\\f243"}.fa-battery-three-quarters:before{content:"\\f241"}.fa-battle-net:before{content:"\\f835"}.fa-bed:before{content:"\\f236"}.fa-beer:before{content:"\\f0fc"}.fa-behance:before{content:"\\f1b4"}.fa-behance-square:before{content:"\\f1b5"}.fa-bell:before{content:"\\f0f3"}.fa-bell-slash:before{content:"\\f1f6"}.fa-bezier-curve:before{content:"\\f55b"}.fa-bible:before{content:"\\f647"}.fa-bicycle:before{content:"\\f206"}.fa-biking:before{content:"\\f84a"}.fa-bimobject:before{content:"\\f378"}.fa-binoculars:before{content:"\\f1e5"}.fa-biohazard:before{content:"\\f780"}.fa-birthday-cake:before{content:"\\f1fd"}.fa-bitbucket:before{content:"\\f171"}.fa-bitcoin:before{content:"\\f379"}.fa-bity:before{content:"\\f37a"}.fa-black-tie:before{content:"\\f27e"}.fa-blackberry:before{content:"\\f37b"}.fa-blender:before{content:"\\f517"}.fa-blender-phone:before{content:"\\f6b6"}.fa-blind:before{content:"\\f29d"}.fa-blog:before{content:"\\f781"}.fa-blogger:before{content:"\\f37c"}.fa-blogger-b:before{content:"\\f37d"}.fa-bluetooth:before{content:"\\f293"}.fa-bluetooth-b:before{content:"\\f294"}.fa-bold:before{content:"\\f032"}.fa-bolt:before{content:"\\f0e7"}.fa-bomb:before{content:"\\f1e2"}.fa-bone:before{content:"\\f5d7"}.fa-bong:before{content:"\\f55c"}.fa-book:before{content:"\\f02d"}.fa-book-dead:before{content:"\\f6b7"}.fa-book-medical:before{content:"\\f7e6"}.fa-book-open:before{content:"\\f518"}.fa-book-reader:before{content:"\\f5da"}.fa-bookmark:before{content:"\\f02e"}.fa-bootstrap:before{content:"\\f836"}.fa-border-all:before{content:"\\f84c"}.fa-border-none:before{content:"\\f850"}.fa-border-style:before{content:"\\f853"}.fa-bowling-ball:before{content:"\\f436"}.fa-box:before{content:"\\f466"}.fa-box-open:before{content:"\\f49e"}.fa-box-tissue:before{content:"\\f95b"}.fa-boxes:before{content:"\\f468"}.fa-braille:before{content:"\\f2a1"}.fa-brain:before{content:"\\f5dc"}.fa-bread-slice:before{content:"\\f7ec"}.fa-briefcase:before{content:"\\f0b1"}.fa-briefcase-medical:before{content:"\\f469"}.fa-broadcast-tower:before{content:"\\f519"}.fa-broom:before{content:"\\f51a"}.fa-brush:before{content:"\\f55d"}.fa-btc:before{content:"\\f15a"}.fa-buffer:before{content:"\\f837"}.fa-bug:before{content:"\\f188"}.fa-building:before{content:"\\f1ad"}.fa-bullhorn:before{content:"\\f0a1"}.fa-bullseye:before{content:"\\f140"}.fa-burn:before{content:"\\f46a"}.fa-buromobelexperte:before{content:"\\f37f"}.fa-bus:before{content:"\\f207"}.fa-bus-alt:before{content:"\\f55e"}.fa-business-time:before{content:"\\f64a"}.fa-buy-n-large:before{content:"\\f8a6"}.fa-buysellads:before{content:"\\f20d"}.fa-calculator:before{content:"\\f1ec"}.fa-calendar:before{content:"\\f133"}.fa-calendar-alt:before{content:"\\f073"}.fa-calendar-check:before{content:"\\f274"}.fa-calendar-day:before{content:"\\f783"}.fa-calendar-minus:before{content:"\\f272"}.fa-calendar-plus:before{content:"\\f271"}.fa-calendar-times:before{content:"\\f273"}.fa-calendar-week:before{content:"\\f784"}.fa-camera:before{content:"\\f030"}.fa-camera-retro:before{content:"\\f083"}.fa-campground:before{content:"\\f6bb"}.fa-canadian-maple-leaf:before{content:"\\f785"}.fa-candy-cane:before{content:"\\f786"}.fa-cannabis:before{content:"\\f55f"}.fa-capsules:before{content:"\\f46b"}.fa-car:before{content:"\\f1b9"}.fa-car-alt:before{content:"\\f5de"}.fa-car-battery:before{content:"\\f5df"}.fa-car-crash:before{content:"\\f5e1"}.fa-car-side:before{content:"\\f5e4"}.fa-caravan:before{content:"\\f8ff"}.fa-caret-down:before{content:"\\f0d7"}.fa-caret-left:before{content:"\\f0d9"}.fa-caret-right:before{content:"\\f0da"}.fa-caret-square-down:before{content:"\\f150"}.fa-caret-square-left:before{content:"\\f191"}.fa-caret-square-right:before{content:"\\f152"}.fa-caret-square-up:before{content:"\\f151"}.fa-caret-up:before{content:"\\f0d8"}.fa-carrot:before{content:"\\f787"}.fa-cart-arrow-down:before{content:"\\f218"}.fa-cart-plus:before{content:"\\f217"}.fa-cash-register:before{content:"\\f788"}.fa-cat:before{content:"\\f6be"}.fa-cc-amazon-pay:before{content:"\\f42d"}.fa-cc-amex:before{content:"\\f1f3"}.fa-cc-apple-pay:before{content:"\\f416"}.fa-cc-diners-club:before{content:"\\f24c"}.fa-cc-discover:before{content:"\\f1f2"}.fa-cc-jcb:before{content:"\\f24b"}.fa-cc-mastercard:before{content:"\\f1f1"}.fa-cc-paypal:before{content:"\\f1f4"}.fa-cc-stripe:before{content:"\\f1f5"}.fa-cc-visa:before{content:"\\f1f0"}.fa-centercode:before{content:"\\f380"}.fa-centos:before{content:"\\f789"}.fa-certificate:before{content:"\\f0a3"}.fa-chair:before{content:"\\f6c0"}.fa-chalkboard:before{content:"\\f51b"}.fa-chalkboard-teacher:before{content:"\\f51c"}.fa-charging-station:before{content:"\\f5e7"}.fa-chart-area:before{content:"\\f1fe"}.fa-chart-bar:before{content:"\\f080"}.fa-chart-line:before{content:"\\f201"}.fa-chart-pie:before{content:"\\f200"}.fa-check:before{content:"\\f00c"}.fa-check-circle:before{content:"\\f058"}.fa-check-double:before{content:"\\f560"}.fa-check-square:before{content:"\\f14a"}.fa-cheese:before{content:"\\f7ef"}.fa-chess:before{content:"\\f439"}.fa-chess-bishop:before{content:"\\f43a"}.fa-chess-board:before{content:"\\f43c"}.fa-chess-king:before{content:"\\f43f"}.fa-chess-knight:before{content:"\\f441"}.fa-chess-pawn:before{content:"\\f443"}.fa-chess-queen:before{content:"\\f445"}.fa-chess-rook:before{content:"\\f447"}.fa-chevron-circle-down:before{content:"\\f13a"}.fa-chevron-circle-left:before{content:"\\f137"}.fa-chevron-circle-right:before{content:"\\f138"}.fa-chevron-circle-up:before{content:"\\f139"}.fa-chevron-down:before{content:"\\f078"}.fa-chevron-left:before{content:"\\f053"}.fa-chevron-right:before{content:"\\f054"}.fa-chevron-up:before{content:"\\f077"}.fa-child:before{content:"\\f1ae"}.fa-chrome:before{content:"\\f268"}.fa-chromecast:before{content:"\\f838"}.fa-church:before{content:"\\f51d"}.fa-circle:before{content:"\\f111"}.fa-circle-notch:before{content:"\\f1ce"}.fa-city:before{content:"\\f64f"}.fa-clinic-medical:before{content:"\\f7f2"}.fa-clipboard:before{content:"\\f328"}.fa-clipboard-check:before{content:"\\f46c"}.fa-clipboard-list:before{content:"\\f46d"}.fa-clock:before{content:"\\f017"}.fa-clone:before{content:"\\f24d"}.fa-closed-captioning:before{content:"\\f20a"}.fa-cloud:before{content:"\\f0c2"}.fa-cloud-download-alt:before{content:"\\f381"}.fa-cloud-meatball:before{content:"\\f73b"}.fa-cloud-moon:before{content:"\\f6c3"}.fa-cloud-moon-rain:before{content:"\\f73c"}.fa-cloud-rain:before{content:"\\f73d"}.fa-cloud-showers-heavy:before{content:"\\f740"}.fa-cloud-sun:before{content:"\\f6c4"}.fa-cloud-sun-rain:before{content:"\\f743"}.fa-cloud-upload-alt:before{content:"\\f382"}.fa-cloudscale:before{content:"\\f383"}.fa-cloudsmith:before{content:"\\f384"}.fa-cloudversify:before{content:"\\f385"}.fa-cocktail:before{content:"\\f561"}.fa-code:before{content:"\\f121"}.fa-code-branch:before{content:"\\f126"}.fa-codepen:before{content:"\\f1cb"}.fa-codiepie:before{content:"\\f284"}.fa-coffee:before{content:"\\f0f4"}.fa-cog:before{content:"\\f013"}.fa-cogs:before{content:"\\f085"}.fa-coins:before{content:"\\f51e"}.fa-columns:before{content:"\\f0db"}.fa-comment:before{content:"\\f075"}.fa-comment-alt:before{content:"\\f27a"}.fa-comment-dollar:before{content:"\\f651"}.fa-comment-dots:before{content:"\\f4ad"}.fa-comment-medical:before{content:"\\f7f5"}.fa-comment-slash:before{content:"\\f4b3"}.fa-comments:before{content:"\\f086"}.fa-comments-dollar:before{content:"\\f653"}.fa-compact-disc:before{content:"\\f51f"}.fa-compass:before{content:"\\f14e"}.fa-compress:before{content:"\\f066"}.fa-compress-alt:before{content:"\\f422"}.fa-compress-arrows-alt:before{content:"\\f78c"}.fa-concierge-bell:before{content:"\\f562"}.fa-confluence:before{content:"\\f78d"}.fa-connectdevelop:before{content:"\\f20e"}.fa-contao:before{content:"\\f26d"}.fa-cookie:before{content:"\\f563"}.fa-cookie-bite:before{content:"\\f564"}.fa-copy:before{content:"\\f0c5"}.fa-copyright:before{content:"\\f1f9"}.fa-cotton-bureau:before{content:"\\f89e"}.fa-couch:before{content:"\\f4b8"}.fa-cpanel:before{content:"\\f388"}.fa-creative-commons:before{content:"\\f25e"}.fa-creative-commons-by:before{content:"\\f4e7"}.fa-creative-commons-nc:before{content:"\\f4e8"}.fa-creative-commons-nc-eu:before{content:"\\f4e9"}.fa-creative-commons-nc-jp:before{content:"\\f4ea"}.fa-creative-commons-nd:before{content:"\\f4eb"}.fa-creative-commons-pd:before{content:"\\f4ec"}.fa-creative-commons-pd-alt:before{content:"\\f4ed"}.fa-creative-commons-remix:before{content:"\\f4ee"}.fa-creative-commons-sa:before{content:"\\f4ef"}.fa-creative-commons-sampling:before{content:"\\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\\f4f1"}.fa-creative-commons-share:before{content:"\\f4f2"}.fa-creative-commons-zero:before{content:"\\f4f3"}.fa-credit-card:before{content:"\\f09d"}.fa-critical-role:before{content:"\\f6c9"}.fa-crop:before{content:"\\f125"}.fa-crop-alt:before{content:"\\f565"}.fa-cross:before{content:"\\f654"}.fa-crosshairs:before{content:"\\f05b"}.fa-crow:before{content:"\\f520"}.fa-crown:before{content:"\\f521"}.fa-crutch:before{content:"\\f7f7"}.fa-css3:before{content:"\\f13c"}.fa-css3-alt:before{content:"\\f38b"}.fa-cube:before{content:"\\f1b2"}.fa-cubes:before{content:"\\f1b3"}.fa-cut:before{content:"\\f0c4"}.fa-cuttlefish:before{content:"\\f38c"}.fa-d-and-d:before{content:"\\f38d"}.fa-d-and-d-beyond:before{content:"\\f6ca"}.fa-dailymotion:before{content:"\\f952"}.fa-dashcube:before{content:"\\f210"}.fa-database:before{content:"\\f1c0"}.fa-deaf:before{content:"\\f2a4"}.fa-delicious:before{content:"\\f1a5"}.fa-democrat:before{content:"\\f747"}.fa-deploydog:before{content:"\\f38e"}.fa-deskpro:before{content:"\\f38f"}.fa-desktop:before{content:"\\f108"}.fa-dev:before{content:"\\f6cc"}.fa-deviantart:before{content:"\\f1bd"}.fa-dharmachakra:before{content:"\\f655"}.fa-dhl:before{content:"\\f790"}.fa-diagnoses:before{content:"\\f470"}.fa-diaspora:before{content:"\\f791"}.fa-dice:before{content:"\\f522"}.fa-dice-d20:before{content:"\\f6cf"}.fa-dice-d6:before{content:"\\f6d1"}.fa-dice-five:before{content:"\\f523"}.fa-dice-four:before{content:"\\f524"}.fa-dice-one:before{content:"\\f525"}.fa-dice-six:before{content:"\\f526"}.fa-dice-three:before{content:"\\f527"}.fa-dice-two:before{content:"\\f528"}.fa-digg:before{content:"\\f1a6"}.fa-digital-ocean:before{content:"\\f391"}.fa-digital-tachograph:before{content:"\\f566"}.fa-directions:before{content:"\\f5eb"}.fa-discord:before{content:"\\f392"}.fa-discourse:before{content:"\\f393"}.fa-disease:before{content:"\\f7fa"}.fa-divide:before{content:"\\f529"}.fa-dizzy:before{content:"\\f567"}.fa-dna:before{content:"\\f471"}.fa-dochub:before{content:"\\f394"}.fa-docker:before{content:"\\f395"}.fa-dog:before{content:"\\f6d3"}.fa-dollar-sign:before{content:"\\f155"}.fa-dolly:before{content:"\\f472"}.fa-dolly-flatbed:before{content:"\\f474"}.fa-donate:before{content:"\\f4b9"}.fa-door-closed:before{content:"\\f52a"}.fa-door-open:before{content:"\\f52b"}.fa-dot-circle:before{content:"\\f192"}.fa-dove:before{content:"\\f4ba"}.fa-download:before{content:"\\f019"}.fa-draft2digital:before{content:"\\f396"}.fa-drafting-compass:before{content:"\\f568"}.fa-dragon:before{content:"\\f6d5"}.fa-draw-polygon:before{content:"\\f5ee"}.fa-dribbble:before{content:"\\f17d"}.fa-dribbble-square:before{content:"\\f397"}.fa-dropbox:before{content:"\\f16b"}.fa-drum:before{content:"\\f569"}.fa-drum-steelpan:before{content:"\\f56a"}.fa-drumstick-bite:before{content:"\\f6d7"}.fa-drupal:before{content:"\\f1a9"}.fa-dumbbell:before{content:"\\f44b"}.fa-dumpster:before{content:"\\f793"}.fa-dumpster-fire:before{content:"\\f794"}.fa-dungeon:before{content:"\\f6d9"}.fa-dyalog:before{content:"\\f399"}.fa-earlybirds:before{content:"\\f39a"}.fa-ebay:before{content:"\\f4f4"}.fa-edge:before{content:"\\f282"}.fa-edit:before{content:"\\f044"}.fa-egg:before{content:"\\f7fb"}.fa-eject:before{content:"\\f052"}.fa-elementor:before{content:"\\f430"}.fa-ellipsis-h:before{content:"\\f141"}.fa-ellipsis-v:before{content:"\\f142"}.fa-ello:before{content:"\\f5f1"}.fa-ember:before{content:"\\f423"}.fa-empire:before{content:"\\f1d1"}.fa-envelope:before{content:"\\f0e0"}.fa-envelope-open:before{content:"\\f2b6"}.fa-envelope-open-text:before{content:"\\f658"}.fa-envelope-square:before{content:"\\f199"}.fa-envira:before{content:"\\f299"}.fa-equals:before{content:"\\f52c"}.fa-eraser:before{content:"\\f12d"}.fa-erlang:before{content:"\\f39d"}.fa-ethereum:before{content:"\\f42e"}.fa-ethernet:before{content:"\\f796"}.fa-etsy:before{content:"\\f2d7"}.fa-euro-sign:before{content:"\\f153"}.fa-evernote:before{content:"\\f839"}.fa-exchange-alt:before{content:"\\f362"}.fa-exclamation:before{content:"\\f12a"}.fa-exclamation-circle:before{content:"\\f06a"}.fa-exclamation-triangle:before{content:"\\f071"}.fa-expand:before{content:"\\f065"}.fa-expand-alt:before{content:"\\f424"}.fa-expand-arrows-alt:before{content:"\\f31e"}.fa-expeditedssl:before{content:"\\f23e"}.fa-external-link-alt:before{content:"\\f35d"}.fa-external-link-square-alt:before{content:"\\f360"}.fa-eye:before{content:"\\f06e"}.fa-eye-dropper:before{content:"\\f1fb"}.fa-eye-slash:before{content:"\\f070"}.fa-facebook:before{content:"\\f09a"}.fa-facebook-f:before{content:"\\f39e"}.fa-facebook-messenger:before{content:"\\f39f"}.fa-facebook-square:before{content:"\\f082"}.fa-fan:before{content:"\\f863"}.fa-fantasy-flight-games:before{content:"\\f6dc"}.fa-fast-backward:before{content:"\\f049"}.fa-fast-forward:before{content:"\\f050"}.fa-faucet:before{content:"\\f905"}.fa-fax:before{content:"\\f1ac"}.fa-feather:before{content:"\\f52d"}.fa-feather-alt:before{content:"\\f56b"}.fa-fedex:before{content:"\\f797"}.fa-fedora:before{content:"\\f798"}.fa-female:before{content:"\\f182"}.fa-fighter-jet:before{content:"\\f0fb"}.fa-figma:before{content:"\\f799"}.fa-file:before{content:"\\f15b"}.fa-file-alt:before{content:"\\f15c"}.fa-file-archive:before{content:"\\f1c6"}.fa-file-audio:before{content:"\\f1c7"}.fa-file-code:before{content:"\\f1c9"}.fa-file-contract:before{content:"\\f56c"}.fa-file-csv:before{content:"\\f6dd"}.fa-file-download:before{content:"\\f56d"}.fa-file-excel:before{content:"\\f1c3"}.fa-file-export:before{content:"\\f56e"}.fa-file-image:before{content:"\\f1c5"}.fa-file-import:before{content:"\\f56f"}.fa-file-invoice:before{content:"\\f570"}.fa-file-invoice-dollar:before{content:"\\f571"}.fa-file-medical:before{content:"\\f477"}.fa-file-medical-alt:before{content:"\\f478"}.fa-file-pdf:before{content:"\\f1c1"}.fa-file-powerpoint:before{content:"\\f1c4"}.fa-file-prescription:before{content:"\\f572"}.fa-file-signature:before{content:"\\f573"}.fa-file-upload:before{content:"\\f574"}.fa-file-video:before{content:"\\f1c8"}.fa-file-word:before{content:"\\f1c2"}.fa-fill:before{content:"\\f575"}.fa-fill-drip:before{content:"\\f576"}.fa-film:before{content:"\\f008"}.fa-filter:before{content:"\\f0b0"}.fa-fingerprint:before{content:"\\f577"}.fa-fire:before{content:"\\f06d"}.fa-fire-alt:before{content:"\\f7e4"}.fa-fire-extinguisher:before{content:"\\f134"}.fa-firefox:before{content:"\\f269"}.fa-firefox-browser:before{content:"\\f907"}.fa-first-aid:before{content:"\\f479"}.fa-first-order:before{content:"\\f2b0"}.fa-first-order-alt:before{content:"\\f50a"}.fa-firstdraft:before{content:"\\f3a1"}.fa-fish:before{content:"\\f578"}.fa-fist-raised:before{content:"\\f6de"}.fa-flag:before{content:"\\f024"}.fa-flag-checkered:before{content:"\\f11e"}.fa-flag-usa:before{content:"\\f74d"}.fa-flask:before{content:"\\f0c3"}.fa-flickr:before{content:"\\f16e"}.fa-flipboard:before{content:"\\f44d"}.fa-flushed:before{content:"\\f579"}.fa-fly:before{content:"\\f417"}.fa-folder:before{content:"\\f07b"}.fa-folder-minus:before{content:"\\f65d"}.fa-folder-open:before{content:"\\f07c"}.fa-folder-plus:before{content:"\\f65e"}.fa-font:before{content:"\\f031"}.fa-font-awesome:before{content:"\\f2b4"}.fa-font-awesome-alt:before{content:"\\f35c"}.fa-font-awesome-flag:before{content:"\\f425"}.fa-font-awesome-logo-full:before{content:"\\f4e6"}.fa-fonticons:before{content:"\\f280"}.fa-fonticons-fi:before{content:"\\f3a2"}.fa-football-ball:before{content:"\\f44e"}.fa-fort-awesome:before{content:"\\f286"}.fa-fort-awesome-alt:before{content:"\\f3a3"}.fa-forumbee:before{content:"\\f211"}.fa-forward:before{content:"\\f04e"}.fa-foursquare:before{content:"\\f180"}.fa-free-code-camp:before{content:"\\f2c5"}.fa-freebsd:before{content:"\\f3a4"}.fa-frog:before{content:"\\f52e"}.fa-frown:before{content:"\\f119"}.fa-frown-open:before{content:"\\f57a"}.fa-fulcrum:before{content:"\\f50b"}.fa-funnel-dollar:before{content:"\\f662"}.fa-futbol:before{content:"\\f1e3"}.fa-galactic-republic:before{content:"\\f50c"}.fa-galactic-senate:before{content:"\\f50d"}.fa-gamepad:before{content:"\\f11b"}.fa-gas-pump:before{content:"\\f52f"}.fa-gavel:before{content:"\\f0e3"}.fa-gem:before{content:"\\f3a5"}.fa-genderless:before{content:"\\f22d"}.fa-get-pocket:before{content:"\\f265"}.fa-gg:before{content:"\\f260"}.fa-gg-circle:before{content:"\\f261"}.fa-ghost:before{content:"\\f6e2"}.fa-gift:before{content:"\\f06b"}.fa-gifts:before{content:"\\f79c"}.fa-git:before{content:"\\f1d3"}.fa-git-alt:before{content:"\\f841"}.fa-git-square:before{content:"\\f1d2"}.fa-github:before{content:"\\f09b"}.fa-github-alt:before{content:"\\f113"}.fa-github-square:before{content:"\\f092"}.fa-gitkraken:before{content:"\\f3a6"}.fa-gitlab:before{content:"\\f296"}.fa-gitter:before{content:"\\f426"}.fa-glass-cheers:before{content:"\\f79f"}.fa-glass-martini:before{content:"\\f000"}.fa-glass-martini-alt:before{content:"\\f57b"}.fa-glass-whiskey:before{content:"\\f7a0"}.fa-glasses:before{content:"\\f530"}.fa-glide:before{content:"\\f2a5"}.fa-glide-g:before{content:"\\f2a6"}.fa-globe:before{content:"\\f0ac"}.fa-globe-africa:before{content:"\\f57c"}.fa-globe-americas:before{content:"\\f57d"}.fa-globe-asia:before{content:"\\f57e"}.fa-globe-europe:before{content:"\\f7a2"}.fa-gofore:before{content:"\\f3a7"}.fa-golf-ball:before{content:"\\f450"}.fa-goodreads:before{content:"\\f3a8"}.fa-goodreads-g:before{content:"\\f3a9"}.fa-google:before{content:"\\f1a0"}.fa-google-drive:before{content:"\\f3aa"}.fa-google-play:before{content:"\\f3ab"}.fa-google-plus:before{content:"\\f2b3"}.fa-google-plus-g:before{content:"\\f0d5"}.fa-google-plus-square:before{content:"\\f0d4"}.fa-google-wallet:before{content:"\\f1ee"}.fa-gopuram:before{content:"\\f664"}.fa-graduation-cap:before{content:"\\f19d"}.fa-gratipay:before{content:"\\f184"}.fa-grav:before{content:"\\f2d6"}.fa-greater-than:before{content:"\\f531"}.fa-greater-than-equal:before{content:"\\f532"}.fa-grimace:before{content:"\\f57f"}.fa-grin:before{content:"\\f580"}.fa-grin-alt:before{content:"\\f581"}.fa-grin-beam:before{content:"\\f582"}.fa-grin-beam-sweat:before{content:"\\f583"}.fa-grin-hearts:before{content:"\\f584"}.fa-grin-squint:before{content:"\\f585"}.fa-grin-squint-tears:before{content:"\\f586"}.fa-grin-stars:before{content:"\\f587"}.fa-grin-tears:before{content:"\\f588"}.fa-grin-tongue:before{content:"\\f589"}.fa-grin-tongue-squint:before{content:"\\f58a"}.fa-grin-tongue-wink:before{content:"\\f58b"}.fa-grin-wink:before{content:"\\f58c"}.fa-grip-horizontal:before{content:"\\f58d"}.fa-grip-lines:before{content:"\\f7a4"}.fa-grip-lines-vertical:before{content:"\\f7a5"}.fa-grip-vertical:before{content:"\\f58e"}.fa-gripfire:before{content:"\\f3ac"}.fa-grunt:before{content:"\\f3ad"}.fa-guitar:before{content:"\\f7a6"}.fa-gulp:before{content:"\\f3ae"}.fa-h-square:before{content:"\\f0fd"}.fa-hacker-news:before{content:"\\f1d4"}.fa-hacker-news-square:before{content:"\\f3af"}.fa-hackerrank:before{content:"\\f5f7"}.fa-hamburger:before{content:"\\f805"}.fa-hammer:before{content:"\\f6e3"}.fa-hamsa:before{content:"\\f665"}.fa-hand-holding:before{content:"\\f4bd"}.fa-hand-holding-heart:before{content:"\\f4be"}.fa-hand-holding-medical:before{content:"\\f95c"}.fa-hand-holding-usd:before{content:"\\f4c0"}.fa-hand-holding-water:before{content:"\\f4c1"}.fa-hand-lizard:before{content:"\\f258"}.fa-hand-middle-finger:before{content:"\\f806"}.fa-hand-paper:before{content:"\\f256"}.fa-hand-peace:before{content:"\\f25b"}.fa-hand-point-down:before{content:"\\f0a7"}.fa-hand-point-left:before{content:"\\f0a5"}.fa-hand-point-right:before{content:"\\f0a4"}.fa-hand-point-up:before{content:"\\f0a6"}.fa-hand-pointer:before{content:"\\f25a"}.fa-hand-rock:before{content:"\\f255"}.fa-hand-scissors:before{content:"\\f257"}.fa-hand-sparkles:before{content:"\\f95d"}.fa-hand-spock:before{content:"\\f259"}.fa-hands:before{content:"\\f4c2"}.fa-hands-helping:before{content:"\\f4c4"}.fa-hands-wash:before{content:"\\f95e"}.fa-handshake:before{content:"\\f2b5"}.fa-handshake-alt-slash:before{content:"\\f95f"}.fa-handshake-slash:before{content:"\\f960"}.fa-hanukiah:before{content:"\\f6e6"}.fa-hard-hat:before{content:"\\f807"}.fa-hashtag:before{content:"\\f292"}.fa-hat-cowboy:before{content:"\\f8c0"}.fa-hat-cowboy-side:before{content:"\\f8c1"}.fa-hat-wizard:before{content:"\\f6e8"}.fa-hdd:before{content:"\\f0a0"}.fa-head-side-cough:before{content:"\\f961"}.fa-head-side-cough-slash:before{content:"\\f962"}.fa-head-side-mask:before{content:"\\f963"}.fa-head-side-virus:before{content:"\\f964"}.fa-heading:before{content:"\\f1dc"}.fa-headphones:before{content:"\\f025"}.fa-headphones-alt:before{content:"\\f58f"}.fa-headset:before{content:"\\f590"}.fa-heart:before{content:"\\f004"}.fa-heart-broken:before{content:"\\f7a9"}.fa-heartbeat:before{content:"\\f21e"}.fa-helicopter:before{content:"\\f533"}.fa-highlighter:before{content:"\\f591"}.fa-hiking:before{content:"\\f6ec"}.fa-hippo:before{content:"\\f6ed"}.fa-hips:before{content:"\\f452"}.fa-hire-a-helper:before{content:"\\f3b0"}.fa-history:before{content:"\\f1da"}.fa-hockey-puck:before{content:"\\f453"}.fa-holly-berry:before{content:"\\f7aa"}.fa-home:before{content:"\\f015"}.fa-hooli:before{content:"\\f427"}.fa-hornbill:before{content:"\\f592"}.fa-horse:before{content:"\\f6f0"}.fa-horse-head:before{content:"\\f7ab"}.fa-hospital:before{content:"\\f0f8"}.fa-hospital-alt:before{content:"\\f47d"}.fa-hospital-symbol:before{content:"\\f47e"}.fa-hospital-user:before{content:"\\f80d"}.fa-hot-tub:before{content:"\\f593"}.fa-hotdog:before{content:"\\f80f"}.fa-hotel:before{content:"\\f594"}.fa-hotjar:before{content:"\\f3b1"}.fa-hourglass:before{content:"\\f254"}.fa-hourglass-end:before{content:"\\f253"}.fa-hourglass-half:before{content:"\\f252"}.fa-hourglass-start:before{content:"\\f251"}.fa-house-damage:before{content:"\\f6f1"}.fa-house-user:before{content:"\\f965"}.fa-houzz:before{content:"\\f27c"}.fa-hryvnia:before{content:"\\f6f2"}.fa-html5:before{content:"\\f13b"}.fa-hubspot:before{content:"\\f3b2"}.fa-i-cursor:before{content:"\\f246"}.fa-ice-cream:before{content:"\\f810"}.fa-icicles:before{content:"\\f7ad"}.fa-icons:before{content:"\\f86d"}.fa-id-badge:before{content:"\\f2c1"}.fa-id-card:before{content:"\\f2c2"}.fa-id-card-alt:before{content:"\\f47f"}.fa-ideal:before{content:"\\f913"}.fa-igloo:before{content:"\\f7ae"}.fa-image:before{content:"\\f03e"}.fa-images:before{content:"\\f302"}.fa-imdb:before{content:"\\f2d8"}.fa-inbox:before{content:"\\f01c"}.fa-indent:before{content:"\\f03c"}.fa-industry:before{content:"\\f275"}.fa-infinity:before{content:"\\f534"}.fa-info:before{content:"\\f129"}.fa-info-circle:before{content:"\\f05a"}.fa-instagram:before{content:"\\f16d"}.fa-instagram-square:before{content:"\\f955"}.fa-intercom:before{content:"\\f7af"}.fa-internet-explorer:before{content:"\\f26b"}.fa-invision:before{content:"\\f7b0"}.fa-ioxhost:before{content:"\\f208"}.fa-italic:before{content:"\\f033"}.fa-itch-io:before{content:"\\f83a"}.fa-itunes:before{content:"\\f3b4"}.fa-itunes-note:before{content:"\\f3b5"}.fa-java:before{content:"\\f4e4"}.fa-jedi:before{content:"\\f669"}.fa-jedi-order:before{content:"\\f50e"}.fa-jenkins:before{content:"\\f3b6"}.fa-jira:before{content:"\\f7b1"}.fa-joget:before{content:"\\f3b7"}.fa-joint:before{content:"\\f595"}.fa-joomla:before{content:"\\f1aa"}.fa-journal-whills:before{content:"\\f66a"}.fa-js:before{content:"\\f3b8"}.fa-js-square:before{content:"\\f3b9"}.fa-jsfiddle:before{content:"\\f1cc"}.fa-kaaba:before{content:"\\f66b"}.fa-kaggle:before{content:"\\f5fa"}.fa-key:before{content:"\\f084"}.fa-keybase:before{content:"\\f4f5"}.fa-keyboard:before{content:"\\f11c"}.fa-keycdn:before{content:"\\f3ba"}.fa-khanda:before{content:"\\f66d"}.fa-kickstarter:before{content:"\\f3bb"}.fa-kickstarter-k:before{content:"\\f3bc"}.fa-kiss:before{content:"\\f596"}.fa-kiss-beam:before{content:"\\f597"}.fa-kiss-wink-heart:before{content:"\\f598"}.fa-kiwi-bird:before{content:"\\f535"}.fa-korvue:before{content:"\\f42f"}.fa-landmark:before{content:"\\f66f"}.fa-language:before{content:"\\f1ab"}.fa-laptop:before{content:"\\f109"}.fa-laptop-code:before{content:"\\f5fc"}.fa-laptop-house:before{content:"\\f966"}.fa-laptop-medical:before{content:"\\f812"}.fa-laravel:before{content:"\\f3bd"}.fa-lastfm:before{content:"\\f202"}.fa-lastfm-square:before{content:"\\f203"}.fa-laugh:before{content:"\\f599"}.fa-laugh-beam:before{content:"\\f59a"}.fa-laugh-squint:before{content:"\\f59b"}.fa-laugh-wink:before{content:"\\f59c"}.fa-layer-group:before{content:"\\f5fd"}.fa-leaf:before{content:"\\f06c"}.fa-leanpub:before{content:"\\f212"}.fa-lemon:before{content:"\\f094"}.fa-less:before{content:"\\f41d"}.fa-less-than:before{content:"\\f536"}.fa-less-than-equal:before{content:"\\f537"}.fa-level-down-alt:before{content:"\\f3be"}.fa-level-up-alt:before{content:"\\f3bf"}.fa-life-ring:before{content:"\\f1cd"}.fa-lightbulb:before{content:"\\f0eb"}.fa-line:before{content:"\\f3c0"}.fa-link:before{content:"\\f0c1"}.fa-linkedin:before{content:"\\f08c"}.fa-linkedin-in:before{content:"\\f0e1"}.fa-linode:before{content:"\\f2b8"}.fa-linux:before{content:"\\f17c"}.fa-lira-sign:before{content:"\\f195"}.fa-list:before{content:"\\f03a"}.fa-list-alt:before{content:"\\f022"}.fa-list-ol:before{content:"\\f0cb"}.fa-list-ul:before{content:"\\f0ca"}.fa-location-arrow:before{content:"\\f124"}.fa-lock:before{content:"\\f023"}.fa-lock-open:before{content:"\\f3c1"}.fa-long-arrow-alt-down:before{content:"\\f309"}.fa-long-arrow-alt-left:before{content:"\\f30a"}.fa-long-arrow-alt-right:before{content:"\\f30b"}.fa-long-arrow-alt-up:before{content:"\\f30c"}.fa-low-vision:before{content:"\\f2a8"}.fa-luggage-cart:before{content:"\\f59d"}.fa-lungs:before{content:"\\f604"}.fa-lungs-virus:before{content:"\\f967"}.fa-lyft:before{content:"\\f3c3"}.fa-magento:before{content:"\\f3c4"}.fa-magic:before{content:"\\f0d0"}.fa-magnet:before{content:"\\f076"}.fa-mail-bulk:before{content:"\\f674"}.fa-mailchimp:before{content:"\\f59e"}.fa-male:before{content:"\\f183"}.fa-mandalorian:before{content:"\\f50f"}.fa-map:before{content:"\\f279"}.fa-map-marked:before{content:"\\f59f"}.fa-map-marked-alt:before{content:"\\f5a0"}.fa-map-marker:before{content:"\\f041"}.fa-map-marker-alt:before{content:"\\f3c5"}.fa-map-pin:before{content:"\\f276"}.fa-map-signs:before{content:"\\f277"}.fa-markdown:before{content:"\\f60f"}.fa-marker:before{content:"\\f5a1"}.fa-mars:before{content:"\\f222"}.fa-mars-double:before{content:"\\f227"}.fa-mars-stroke:before{content:"\\f229"}.fa-mars-stroke-h:before{content:"\\f22b"}.fa-mars-stroke-v:before{content:"\\f22a"}.fa-mask:before{content:"\\f6fa"}.fa-mastodon:before{content:"\\f4f6"}.fa-maxcdn:before{content:"\\f136"}.fa-mdb:before{content:"\\f8ca"}.fa-medal:before{content:"\\f5a2"}.fa-medapps:before{content:"\\f3c6"}.fa-medium:before{content:"\\f23a"}.fa-medium-m:before{content:"\\f3c7"}.fa-medkit:before{content:"\\f0fa"}.fa-medrt:before{content:"\\f3c8"}.fa-meetup:before{content:"\\f2e0"}.fa-megaport:before{content:"\\f5a3"}.fa-meh:before{content:"\\f11a"}.fa-meh-blank:before{content:"\\f5a4"}.fa-meh-rolling-eyes:before{content:"\\f5a5"}.fa-memory:before{content:"\\f538"}.fa-mendeley:before{content:"\\f7b3"}.fa-menorah:before{content:"\\f676"}.fa-mercury:before{content:"\\f223"}.fa-meteor:before{content:"\\f753"}.fa-microblog:before{content:"\\f91a"}.fa-microchip:before{content:"\\f2db"}.fa-microphone:before{content:"\\f130"}.fa-microphone-alt:before{content:"\\f3c9"}.fa-microphone-alt-slash:before{content:"\\f539"}.fa-microphone-slash:before{content:"\\f131"}.fa-microscope:before{content:"\\f610"}.fa-microsoft:before{content:"\\f3ca"}.fa-minus:before{content:"\\f068"}.fa-minus-circle:before{content:"\\f056"}.fa-minus-square:before{content:"\\f146"}.fa-mitten:before{content:"\\f7b5"}.fa-mix:before{content:"\\f3cb"}.fa-mixcloud:before{content:"\\f289"}.fa-mixer:before{content:"\\f956"}.fa-mizuni:before{content:"\\f3cc"}.fa-mobile:before{content:"\\f10b"}.fa-mobile-alt:before{content:"\\f3cd"}.fa-modx:before{content:"\\f285"}.fa-monero:before{content:"\\f3d0"}.fa-money-bill:before{content:"\\f0d6"}.fa-money-bill-alt:before{content:"\\f3d1"}.fa-money-bill-wave:before{content:"\\f53a"}.fa-money-bill-wave-alt:before{content:"\\f53b"}.fa-money-check:before{content:"\\f53c"}.fa-money-check-alt:before{content:"\\f53d"}.fa-monument:before{content:"\\f5a6"}.fa-moon:before{content:"\\f186"}.fa-mortar-pestle:before{content:"\\f5a7"}.fa-mosque:before{content:"\\f678"}.fa-motorcycle:before{content:"\\f21c"}.fa-mountain:before{content:"\\f6fc"}.fa-mouse:before{content:"\\f8cc"}.fa-mouse-pointer:before{content:"\\f245"}.fa-mug-hot:before{content:"\\f7b6"}.fa-music:before{content:"\\f001"}.fa-napster:before{content:"\\f3d2"}.fa-neos:before{content:"\\f612"}.fa-network-wired:before{content:"\\f6ff"}.fa-neuter:before{content:"\\f22c"}.fa-newspaper:before{content:"\\f1ea"}.fa-nimblr:before{content:"\\f5a8"}.fa-node:before{content:"\\f419"}.fa-node-js:before{content:"\\f3d3"}.fa-not-equal:before{content:"\\f53e"}.fa-notes-medical:before{content:"\\f481"}.fa-npm:before{content:"\\f3d4"}.fa-ns8:before{content:"\\f3d5"}.fa-nutritionix:before{content:"\\f3d6"}.fa-object-group:before{content:"\\f247"}.fa-object-ungroup:before{content:"\\f248"}.fa-odnoklassniki:before{content:"\\f263"}.fa-odnoklassniki-square:before{content:"\\f264"}.fa-oil-can:before{content:"\\f613"}.fa-old-republic:before{content:"\\f510"}.fa-om:before{content:"\\f679"}.fa-opencart:before{content:"\\f23d"}.fa-openid:before{content:"\\f19b"}.fa-opera:before{content:"\\f26a"}.fa-optin-monster:before{content:"\\f23c"}.fa-orcid:before{content:"\\f8d2"}.fa-osi:before{content:"\\f41a"}.fa-otter:before{content:"\\f700"}.fa-outdent:before{content:"\\f03b"}.fa-page4:before{content:"\\f3d7"}.fa-pagelines:before{content:"\\f18c"}.fa-pager:before{content:"\\f815"}.fa-paint-brush:before{content:"\\f1fc"}.fa-paint-roller:before{content:"\\f5aa"}.fa-palette:before{content:"\\f53f"}.fa-palfed:before{content:"\\f3d8"}.fa-pallet:before{content:"\\f482"}.fa-paper-plane:before{content:"\\f1d8"}.fa-paperclip:before{content:"\\f0c6"}.fa-parachute-box:before{content:"\\f4cd"}.fa-paragraph:before{content:"\\f1dd"}.fa-parking:before{content:"\\f540"}.fa-passport:before{content:"\\f5ab"}.fa-pastafarianism:before{content:"\\f67b"}.fa-paste:before{content:"\\f0ea"}.fa-patreon:before{content:"\\f3d9"}.fa-pause:before{content:"\\f04c"}.fa-pause-circle:before{content:"\\f28b"}.fa-paw:before{content:"\\f1b0"}.fa-paypal:before{content:"\\f1ed"}.fa-peace:before{content:"\\f67c"}.fa-pen:before{content:"\\f304"}.fa-pen-alt:before{content:"\\f305"}.fa-pen-fancy:before{content:"\\f5ac"}.fa-pen-nib:before{content:"\\f5ad"}.fa-pen-square:before{content:"\\f14b"}.fa-pencil-alt:before{content:"\\f303"}.fa-pencil-ruler:before{content:"\\f5ae"}.fa-penny-arcade:before{content:"\\f704"}.fa-people-arrows:before{content:"\\f968"}.fa-people-carry:before{content:"\\f4ce"}.fa-pepper-hot:before{content:"\\f816"}.fa-percent:before{content:"\\f295"}.fa-percentage:before{content:"\\f541"}.fa-periscope:before{content:"\\f3da"}.fa-person-booth:before{content:"\\f756"}.fa-phabricator:before{content:"\\f3db"}.fa-phoenix-framework:before{content:"\\f3dc"}.fa-phoenix-squadron:before{content:"\\f511"}.fa-phone:before{content:"\\f095"}.fa-phone-alt:before{content:"\\f879"}.fa-phone-slash:before{content:"\\f3dd"}.fa-phone-square:before{content:"\\f098"}.fa-phone-square-alt:before{content:"\\f87b"}.fa-phone-volume:before{content:"\\f2a0"}.fa-photo-video:before{content:"\\f87c"}.fa-php:before{content:"\\f457"}.fa-pied-piper:before{content:"\\f2ae"}.fa-pied-piper-alt:before{content:"\\f1a8"}.fa-pied-piper-hat:before{content:"\\f4e5"}.fa-pied-piper-pp:before{content:"\\f1a7"}.fa-pied-piper-square:before{content:"\\f91e"}.fa-piggy-bank:before{content:"\\f4d3"}.fa-pills:before{content:"\\f484"}.fa-pinterest:before{content:"\\f0d2"}.fa-pinterest-p:before{content:"\\f231"}.fa-pinterest-square:before{content:"\\f0d3"}.fa-pizza-slice:before{content:"\\f818"}.fa-place-of-worship:before{content:"\\f67f"}.fa-plane:before{content:"\\f072"}.fa-plane-arrival:before{content:"\\f5af"}.fa-plane-departure:before{content:"\\f5b0"}.fa-plane-slash:before{content:"\\f969"}.fa-play:before{content:"\\f04b"}.fa-play-circle:before{content:"\\f144"}.fa-playstation:before{content:"\\f3df"}.fa-plug:before{content:"\\f1e6"}.fa-plus:before{content:"\\f067"}.fa-plus-circle:before{content:"\\f055"}.fa-plus-square:before{content:"\\f0fe"}.fa-podcast:before{content:"\\f2ce"}.fa-poll:before{content:"\\f681"}.fa-poll-h:before{content:"\\f682"}.fa-poo:before{content:"\\f2fe"}.fa-poo-storm:before{content:"\\f75a"}.fa-poop:before{content:"\\f619"}.fa-portrait:before{content:"\\f3e0"}.fa-pound-sign:before{content:"\\f154"}.fa-power-off:before{content:"\\f011"}.fa-pray:before{content:"\\f683"}.fa-praying-hands:before{content:"\\f684"}.fa-prescription:before{content:"\\f5b1"}.fa-prescription-bottle:before{content:"\\f485"}.fa-prescription-bottle-alt:before{content:"\\f486"}.fa-print:before{content:"\\f02f"}.fa-procedures:before{content:"\\f487"}.fa-product-hunt:before{content:"\\f288"}.fa-project-diagram:before{content:"\\f542"}.fa-pump-medical:before{content:"\\f96a"}.fa-pump-soap:before{content:"\\f96b"}.fa-pushed:before{content:"\\f3e1"}.fa-puzzle-piece:before{content:"\\f12e"}.fa-python:before{content:"\\f3e2"}.fa-qq:before{content:"\\f1d6"}.fa-qrcode:before{content:"\\f029"}.fa-question:before{content:"\\f128"}.fa-question-circle:before{content:"\\f059"}.fa-quidditch:before{content:"\\f458"}.fa-quinscape:before{content:"\\f459"}.fa-quora:before{content:"\\f2c4"}.fa-quote-left:before{content:"\\f10d"}.fa-quote-right:before{content:"\\f10e"}.fa-quran:before{content:"\\f687"}.fa-r-project:before{content:"\\f4f7"}.fa-radiation:before{content:"\\f7b9"}.fa-radiation-alt:before{content:"\\f7ba"}.fa-rainbow:before{content:"\\f75b"}.fa-random:before{content:"\\f074"}.fa-raspberry-pi:before{content:"\\f7bb"}.fa-ravelry:before{content:"\\f2d9"}.fa-react:before{content:"\\f41b"}.fa-reacteurope:before{content:"\\f75d"}.fa-readme:before{content:"\\f4d5"}.fa-rebel:before{content:"\\f1d0"}.fa-receipt:before{content:"\\f543"}.fa-record-vinyl:before{content:"\\f8d9"}.fa-recycle:before{content:"\\f1b8"}.fa-red-river:before{content:"\\f3e3"}.fa-reddit:before{content:"\\f1a1"}.fa-reddit-alien:before{content:"\\f281"}.fa-reddit-square:before{content:"\\f1a2"}.fa-redhat:before{content:"\\f7bc"}.fa-redo:before{content:"\\f01e"}.fa-redo-alt:before{content:"\\f2f9"}.fa-registered:before{content:"\\f25d"}.fa-remove-format:before{content:"\\f87d"}.fa-renren:before{content:"\\f18b"}.fa-reply:before{content:"\\f3e5"}.fa-reply-all:before{content:"\\f122"}.fa-replyd:before{content:"\\f3e6"}.fa-republican:before{content:"\\f75e"}.fa-researchgate:before{content:"\\f4f8"}.fa-resolving:before{content:"\\f3e7"}.fa-restroom:before{content:"\\f7bd"}.fa-retweet:before{content:"\\f079"}.fa-rev:before{content:"\\f5b2"}.fa-ribbon:before{content:"\\f4d6"}.fa-ring:before{content:"\\f70b"}.fa-road:before{content:"\\f018"}.fa-robot:before{content:"\\f544"}.fa-rocket:before{content:"\\f135"}.fa-rocketchat:before{content:"\\f3e8"}.fa-rockrms:before{content:"\\f3e9"}.fa-route:before{content:"\\f4d7"}.fa-rss:before{content:"\\f09e"}.fa-rss-square:before{content:"\\f143"}.fa-ruble-sign:before{content:"\\f158"}.fa-ruler:before{content:"\\f545"}.fa-ruler-combined:before{content:"\\f546"}.fa-ruler-horizontal:before{content:"\\f547"}.fa-ruler-vertical:before{content:"\\f548"}.fa-running:before{content:"\\f70c"}.fa-rupee-sign:before{content:"\\f156"}.fa-sad-cry:before{content:"\\f5b3"}.fa-sad-tear:before{content:"\\f5b4"}.fa-safari:before{content:"\\f267"}.fa-salesforce:before{content:"\\f83b"}.fa-sass:before{content:"\\f41e"}.fa-satellite:before{content:"\\f7bf"}.fa-satellite-dish:before{content:"\\f7c0"}.fa-save:before{content:"\\f0c7"}.fa-schlix:before{content:"\\f3ea"}.fa-school:before{content:"\\f549"}.fa-screwdriver:before{content:"\\f54a"}.fa-scribd:before{content:"\\f28a"}.fa-scroll:before{content:"\\f70e"}.fa-sd-card:before{content:"\\f7c2"}.fa-search:before{content:"\\f002"}.fa-search-dollar:before{content:"\\f688"}.fa-search-location:before{content:"\\f689"}.fa-search-minus:before{content:"\\f010"}.fa-search-plus:before{content:"\\f00e"}.fa-searchengin:before{content:"\\f3eb"}.fa-seedling:before{content:"\\f4d8"}.fa-sellcast:before{content:"\\f2da"}.fa-sellsy:before{content:"\\f213"}.fa-server:before{content:"\\f233"}.fa-servicestack:before{content:"\\f3ec"}.fa-shapes:before{content:"\\f61f"}.fa-share:before{content:"\\f064"}.fa-share-alt:before{content:"\\f1e0"}.fa-share-alt-square:before{content:"\\f1e1"}.fa-share-square:before{content:"\\f14d"}.fa-shekel-sign:before{content:"\\f20b"}.fa-shield-alt:before{content:"\\f3ed"}.fa-shield-virus:before{content:"\\f96c"}.fa-ship:before{content:"\\f21a"}.fa-shipping-fast:before{content:"\\f48b"}.fa-shirtsinbulk:before{content:"\\f214"}.fa-shoe-prints:before{content:"\\f54b"}.fa-shopify:before{content:"\\f957"}.fa-shopping-bag:before{content:"\\f290"}.fa-shopping-basket:before{content:"\\f291"}.fa-shopping-cart:before{content:"\\f07a"}.fa-shopware:before{content:"\\f5b5"}.fa-shower:before{content:"\\f2cc"}.fa-shuttle-van:before{content:"\\f5b6"}.fa-sign:before{content:"\\f4d9"}.fa-sign-in-alt:before{content:"\\f2f6"}.fa-sign-language:before{content:"\\f2a7"}.fa-sign-out-alt:before{content:"\\f2f5"}.fa-signal:before{content:"\\f012"}.fa-signature:before{content:"\\f5b7"}.fa-sim-card:before{content:"\\f7c4"}.fa-simplybuilt:before{content:"\\f215"}.fa-sistrix:before{content:"\\f3ee"}.fa-sitemap:before{content:"\\f0e8"}.fa-sith:before{content:"\\f512"}.fa-skating:before{content:"\\f7c5"}.fa-sketch:before{content:"\\f7c6"}.fa-skiing:before{content:"\\f7c9"}.fa-skiing-nordic:before{content:"\\f7ca"}.fa-skull:before{content:"\\f54c"}.fa-skull-crossbones:before{content:"\\f714"}.fa-skyatlas:before{content:"\\f216"}.fa-skype:before{content:"\\f17e"}.fa-slack:before{content:"\\f198"}.fa-slack-hash:before{content:"\\f3ef"}.fa-slash:before{content:"\\f715"}.fa-sleigh:before{content:"\\f7cc"}.fa-sliders-h:before{content:"\\f1de"}.fa-slideshare:before{content:"\\f1e7"}.fa-smile:before{content:"\\f118"}.fa-smile-beam:before{content:"\\f5b8"}.fa-smile-wink:before{content:"\\f4da"}.fa-smog:before{content:"\\f75f"}.fa-smoking:before{content:"\\f48d"}.fa-smoking-ban:before{content:"\\f54d"}.fa-sms:before{content:"\\f7cd"}.fa-snapchat:before{content:"\\f2ab"}.fa-snapchat-ghost:before{content:"\\f2ac"}.fa-snapchat-square:before{content:"\\f2ad"}.fa-snowboarding:before{content:"\\f7ce"}.fa-snowflake:before{content:"\\f2dc"}.fa-snowman:before{content:"\\f7d0"}.fa-snowplow:before{content:"\\f7d2"}.fa-soap:before{content:"\\f96e"}.fa-socks:before{content:"\\f696"}.fa-solar-panel:before{content:"\\f5ba"}.fa-sort:before{content:"\\f0dc"}.fa-sort-alpha-down:before{content:"\\f15d"}.fa-sort-alpha-down-alt:before{content:"\\f881"}.fa-sort-alpha-up:before{content:"\\f15e"}.fa-sort-alpha-up-alt:before{content:"\\f882"}.fa-sort-amount-down:before{content:"\\f160"}.fa-sort-amount-down-alt:before{content:"\\f884"}.fa-sort-amount-up:before{content:"\\f161"}.fa-sort-amount-up-alt:before{content:"\\f885"}.fa-sort-down:before{content:"\\f0dd"}.fa-sort-numeric-down:before{content:"\\f162"}.fa-sort-numeric-down-alt:before{content:"\\f886"}.fa-sort-numeric-up:before{content:"\\f163"}.fa-sort-numeric-up-alt:before{content:"\\f887"}.fa-sort-up:before{content:"\\f0de"}.fa-soundcloud:before{content:"\\f1be"}.fa-sourcetree:before{content:"\\f7d3"}.fa-spa:before{content:"\\f5bb"}.fa-space-shuttle:before{content:"\\f197"}.fa-speakap:before{content:"\\f3f3"}.fa-speaker-deck:before{content:"\\f83c"}.fa-spell-check:before{content:"\\f891"}.fa-spider:before{content:"\\f717"}.fa-spinner:before{content:"\\f110"}.fa-splotch:before{content:"\\f5bc"}.fa-spotify:before{content:"\\f1bc"}.fa-spray-can:before{content:"\\f5bd"}.fa-square:before{content:"\\f0c8"}.fa-square-full:before{content:"\\f45c"}.fa-square-root-alt:before{content:"\\f698"}.fa-squarespace:before{content:"\\f5be"}.fa-stack-exchange:before{content:"\\f18d"}.fa-stack-overflow:before{content:"\\f16c"}.fa-stackpath:before{content:"\\f842"}.fa-stamp:before{content:"\\f5bf"}.fa-star:before{content:"\\f005"}.fa-star-and-crescent:before{content:"\\f699"}.fa-star-half:before{content:"\\f089"}.fa-star-half-alt:before{content:"\\f5c0"}.fa-star-of-david:before{content:"\\f69a"}.fa-star-of-life:before{content:"\\f621"}.fa-staylinked:before{content:"\\f3f5"}.fa-steam:before{content:"\\f1b6"}.fa-steam-square:before{content:"\\f1b7"}.fa-steam-symbol:before{content:"\\f3f6"}.fa-step-backward:before{content:"\\f048"}.fa-step-forward:before{content:"\\f051"}.fa-stethoscope:before{content:"\\f0f1"}.fa-sticker-mule:before{content:"\\f3f7"}.fa-sticky-note:before{content:"\\f249"}.fa-stop:before{content:"\\f04d"}.fa-stop-circle:before{content:"\\f28d"}.fa-stopwatch:before{content:"\\f2f2"}.fa-stopwatch-20:before{content:"\\f96f"}.fa-store:before{content:"\\f54e"}.fa-store-alt:before{content:"\\f54f"}.fa-store-alt-slash:before{content:"\\f970"}.fa-store-slash:before{content:"\\f971"}.fa-strava:before{content:"\\f428"}.fa-stream:before{content:"\\f550"}.fa-street-view:before{content:"\\f21d"}.fa-strikethrough:before{content:"\\f0cc"}.fa-stripe:before{content:"\\f429"}.fa-stripe-s:before{content:"\\f42a"}.fa-stroopwafel:before{content:"\\f551"}.fa-studiovinari:before{content:"\\f3f8"}.fa-stumbleupon:before{content:"\\f1a4"}.fa-stumbleupon-circle:before{content:"\\f1a3"}.fa-subscript:before{content:"\\f12c"}.fa-subway:before{content:"\\f239"}.fa-suitcase:before{content:"\\f0f2"}.fa-suitcase-rolling:before{content:"\\f5c1"}.fa-sun:before{content:"\\f185"}.fa-superpowers:before{content:"\\f2dd"}.fa-superscript:before{content:"\\f12b"}.fa-supple:before{content:"\\f3f9"}.fa-surprise:before{content:"\\f5c2"}.fa-suse:before{content:"\\f7d6"}.fa-swatchbook:before{content:"\\f5c3"}.fa-swift:before{content:"\\f8e1"}.fa-swimmer:before{content:"\\f5c4"}.fa-swimming-pool:before{content:"\\f5c5"}.fa-symfony:before{content:"\\f83d"}.fa-synagogue:before{content:"\\f69b"}.fa-sync:before{content:"\\f021"}.fa-sync-alt:before{content:"\\f2f1"}.fa-syringe:before{content:"\\f48e"}.fa-table:before{content:"\\f0ce"}.fa-table-tennis:before{content:"\\f45d"}.fa-tablet:before{content:"\\f10a"}.fa-tablet-alt:before{content:"\\f3fa"}.fa-tablets:before{content:"\\f490"}.fa-tachometer-alt:before{content:"\\f3fd"}.fa-tag:before{content:"\\f02b"}.fa-tags:before{content:"\\f02c"}.fa-tape:before{content:"\\f4db"}.fa-tasks:before{content:"\\f0ae"}.fa-taxi:before{content:"\\f1ba"}.fa-teamspeak:before{content:"\\f4f9"}.fa-teeth:before{content:"\\f62e"}.fa-teeth-open:before{content:"\\f62f"}.fa-telegram:before{content:"\\f2c6"}.fa-telegram-plane:before{content:"\\f3fe"}.fa-temperature-high:before{content:"\\f769"}.fa-temperature-low:before{content:"\\f76b"}.fa-tencent-weibo:before{content:"\\f1d5"}.fa-tenge:before{content:"\\f7d7"}.fa-terminal:before{content:"\\f120"}.fa-text-height:before{content:"\\f034"}.fa-text-width:before{content:"\\f035"}.fa-th:before{content:"\\f00a"}.fa-th-large:before{content:"\\f009"}.fa-th-list:before{content:"\\f00b"}.fa-the-red-yeti:before{content:"\\f69d"}.fa-theater-masks:before{content:"\\f630"}.fa-themeco:before{content:"\\f5c6"}.fa-themeisle:before{content:"\\f2b2"}.fa-thermometer:before{content:"\\f491"}.fa-thermometer-empty:before{content:"\\f2cb"}.fa-thermometer-full:before{content:"\\f2c7"}.fa-thermometer-half:before{content:"\\f2c9"}.fa-thermometer-quarter:before{content:"\\f2ca"}.fa-thermometer-three-quarters:before{content:"\\f2c8"}.fa-think-peaks:before{content:"\\f731"}.fa-thumbs-down:before{content:"\\f165"}.fa-thumbs-up:before{content:"\\f164"}.fa-thumbtack:before{content:"\\f08d"}.fa-ticket-alt:before{content:"\\f3ff"}.fa-times:before{content:"\\f00d"}.fa-times-circle:before{content:"\\f057"}.fa-tint:before{content:"\\f043"}.fa-tint-slash:before{content:"\\f5c7"}.fa-tired:before{content:"\\f5c8"}.fa-toggle-off:before{content:"\\f204"}.fa-toggle-on:before{content:"\\f205"}.fa-toilet:before{content:"\\f7d8"}.fa-toilet-paper:before{content:"\\f71e"}.fa-toilet-paper-slash:before{content:"\\f972"}.fa-toolbox:before{content:"\\f552"}.fa-tools:before{content:"\\f7d9"}.fa-tooth:before{content:"\\f5c9"}.fa-torah:before{content:"\\f6a0"}.fa-torii-gate:before{content:"\\f6a1"}.fa-tractor:before{content:"\\f722"}.fa-trade-federation:before{content:"\\f513"}.fa-trademark:before{content:"\\f25c"}.fa-traffic-light:before{content:"\\f637"}.fa-trailer:before{content:"\\f941"}.fa-train:before{content:"\\f238"}.fa-tram:before{content:"\\f7da"}.fa-transgender:before{content:"\\f224"}.fa-transgender-alt:before{content:"\\f225"}.fa-trash:before{content:"\\f1f8"}.fa-trash-alt:before{content:"\\f2ed"}.fa-trash-restore:before{content:"\\f829"}.fa-trash-restore-alt:before{content:"\\f82a"}.fa-tree:before{content:"\\f1bb"}.fa-trello:before{content:"\\f181"}.fa-tripadvisor:before{content:"\\f262"}.fa-trophy:before{content:"\\f091"}.fa-truck:before{content:"\\f0d1"}.fa-truck-loading:before{content:"\\f4de"}.fa-truck-monster:before{content:"\\f63b"}.fa-truck-moving:before{content:"\\f4df"}.fa-truck-pickup:before{content:"\\f63c"}.fa-tshirt:before{content:"\\f553"}.fa-tty:before{content:"\\f1e4"}.fa-tumblr:before{content:"\\f173"}.fa-tumblr-square:before{content:"\\f174"}.fa-tv:before{content:"\\f26c"}.fa-twitch:before{content:"\\f1e8"}.fa-twitter:before{content:"\\f099"}.fa-twitter-square:before{content:"\\f081"}.fa-typo3:before{content:"\\f42b"}.fa-uber:before{content:"\\f402"}.fa-ubuntu:before{content:"\\f7df"}.fa-uikit:before{content:"\\f403"}.fa-umbraco:before{content:"\\f8e8"}.fa-umbrella:before{content:"\\f0e9"}.fa-umbrella-beach:before{content:"\\f5ca"}.fa-underline:before{content:"\\f0cd"}.fa-undo:before{content:"\\f0e2"}.fa-undo-alt:before{content:"\\f2ea"}.fa-uniregistry:before{content:"\\f404"}.fa-unity:before{content:"\\f949"}.fa-universal-access:before{content:"\\f29a"}.fa-university:before{content:"\\f19c"}.fa-unlink:before{content:"\\f127"}.fa-unlock:before{content:"\\f09c"}.fa-unlock-alt:before{content:"\\f13e"}.fa-untappd:before{content:"\\f405"}.fa-upload:before{content:"\\f093"}.fa-ups:before{content:"\\f7e0"}.fa-usb:before{content:"\\f287"}.fa-user:before{content:"\\f007"}.fa-user-alt:before{content:"\\f406"}.fa-user-alt-slash:before{content:"\\f4fa"}.fa-user-astronaut:before{content:"\\f4fb"}.fa-user-check:before{content:"\\f4fc"}.fa-user-circle:before{content:"\\f2bd"}.fa-user-clock:before{content:"\\f4fd"}.fa-user-cog:before{content:"\\f4fe"}.fa-user-edit:before{content:"\\f4ff"}.fa-user-friends:before{content:"\\f500"}.fa-user-graduate:before{content:"\\f501"}.fa-user-injured:before{content:"\\f728"}.fa-user-lock:before{content:"\\f502"}.fa-user-md:before{content:"\\f0f0"}.fa-user-minus:before{content:"\\f503"}.fa-user-ninja:before{content:"\\f504"}.fa-user-nurse:before{content:"\\f82f"}.fa-user-plus:before{content:"\\f234"}.fa-user-secret:before{content:"\\f21b"}.fa-user-shield:before{content:"\\f505"}.fa-user-slash:before{content:"\\f506"}.fa-user-tag:before{content:"\\f507"}.fa-user-tie:before{content:"\\f508"}.fa-user-times:before{content:"\\f235"}.fa-users:before{content:"\\f0c0"}.fa-users-cog:before{content:"\\f509"}.fa-usps:before{content:"\\f7e1"}.fa-ussunnah:before{content:"\\f407"}.fa-utensil-spoon:before{content:"\\f2e5"}.fa-utensils:before{content:"\\f2e7"}.fa-vaadin:before{content:"\\f408"}.fa-vector-square:before{content:"\\f5cb"}.fa-venus:before{content:"\\f221"}.fa-venus-double:before{content:"\\f226"}.fa-venus-mars:before{content:"\\f228"}.fa-viacoin:before{content:"\\f237"}.fa-viadeo:before{content:"\\f2a9"}.fa-viadeo-square:before{content:"\\f2aa"}.fa-vial:before{content:"\\f492"}.fa-vials:before{content:"\\f493"}.fa-viber:before{content:"\\f409"}.fa-video:before{content:"\\f03d"}.fa-video-slash:before{content:"\\f4e2"}.fa-vihara:before{content:"\\f6a7"}.fa-vimeo:before{content:"\\f40a"}.fa-vimeo-square:before{content:"\\f194"}.fa-vimeo-v:before{content:"\\f27d"}.fa-vine:before{content:"\\f1ca"}.fa-virus:before{content:"\\f974"}.fa-virus-slash:before{content:"\\f975"}.fa-viruses:before{content:"\\f976"}.fa-vk:before{content:"\\f189"}.fa-vnv:before{content:"\\f40b"}.fa-voicemail:before{content:"\\f897"}.fa-volleyball-ball:before{content:"\\f45f"}.fa-volume-down:before{content:"\\f027"}.fa-volume-mute:before{content:"\\f6a9"}.fa-volume-off:before{content:"\\f026"}.fa-volume-up:before{content:"\\f028"}.fa-vote-yea:before{content:"\\f772"}.fa-vr-cardboard:before{content:"\\f729"}.fa-vuejs:before{content:"\\f41f"}.fa-walking:before{content:"\\f554"}.fa-wallet:before{content:"\\f555"}.fa-warehouse:before{content:"\\f494"}.fa-water:before{content:"\\f773"}.fa-wave-square:before{content:"\\f83e"}.fa-waze:before{content:"\\f83f"}.fa-weebly:before{content:"\\f5cc"}.fa-weibo:before{content:"\\f18a"}.fa-weight:before{content:"\\f496"}.fa-weight-hanging:before{content:"\\f5cd"}.fa-weixin:before{content:"\\f1d7"}.fa-whatsapp:before{content:"\\f232"}.fa-whatsapp-square:before{content:"\\f40c"}.fa-wheelchair:before{content:"\\f193"}.fa-whmcs:before{content:"\\f40d"}.fa-wifi:before{content:"\\f1eb"}.fa-wikipedia-w:before{content:"\\f266"}.fa-wind:before{content:"\\f72e"}.fa-window-close:before{content:"\\f410"}.fa-window-maximize:before{content:"\\f2d0"}.fa-window-minimize:before{content:"\\f2d1"}.fa-window-restore:before{content:"\\f2d2"}.fa-windows:before{content:"\\f17a"}.fa-wine-bottle:before{content:"\\f72f"}.fa-wine-glass:before{content:"\\f4e3"}.fa-wine-glass-alt:before{content:"\\f5ce"}.fa-wix:before{content:"\\f5cf"}.fa-wizards-of-the-coast:before{content:"\\f730"}.fa-wolf-pack-battalion:before{content:"\\f514"}.fa-won-sign:before{content:"\\f159"}.fa-wordpress:before{content:"\\f19a"}.fa-wordpress-simple:before{content:"\\f411"}.fa-wpbeginner:before{content:"\\f297"}.fa-wpexplorer:before{content:"\\f2de"}.fa-wpforms:before{content:"\\f298"}.fa-wpressr:before{content:"\\f3e4"}.fa-wrench:before{content:"\\f0ad"}.fa-x-ray:before{content:"\\f497"}.fa-xbox:before{content:"\\f412"}.fa-xing:before{content:"\\f168"}.fa-xing-square:before{content:"\\f169"}.fa-y-combinator:before{content:"\\f23b"}.fa-yahoo:before{content:"\\f19e"}.fa-yammer:before{content:"\\f840"}.fa-yandex:before{content:"\\f413"}.fa-yandex-international:before{content:"\\f414"}.fa-yarn:before{content:"\\f7e3"}.fa-yelp:before{content:"\\f1e9"}.fa-yen-sign:before{content:"\\f157"}.fa-yin-yang:before{content:"\\f6ad"}.fa-yoast:before{content:"\\f2b1"}.fa-youtube:before{content:"\\f167"}.fa-youtube-square:before{content:"\\f431"}.fa-zhihu:before{content:"\\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:Font Awesome\\ 5 Brands;font-style:normal;font-weight:400;font-display:block;src:url('+_+");src:url("+w+') format("embedded-opentype"),url('+k+') format("woff2"),url('+x+') format("woff"),url('+C+') format("truetype"),url('+S+') format("svg")}.fab{font-family:Font Awesome\\ 5 Brands}@font-face{font-family:Font Awesome\\ 5 Free;font-style:normal;font-weight:400;font-display:block;src:url('+T+");src:url("+A+') format("embedded-opentype"),url('+M+') format("woff2"),url('+E+') format("woff"),url('+O+') format("truetype"),url('+P+') format("svg")}.fab,.far{font-weight:400}@font-face{font-family:Font Awesome\\ 5 Free;font-style:normal;font-weight:900;font-display:block;src:url('+I+");src:url("+D+') format("embedded-opentype"),url('+j+') format("woff2"),url('+N+') format("woff"),url('+R+') format("truetype"),url('+L+') format("svg")}.fa,.far,.fas{font-family:Font Awesome\\ 5 Free}.fa,.fas{font-weight:900}',""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot?c1868c9545d2de1cf8488f1dadd8c9d0"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2?a06da7f0950f9dd366fc9db9d56d618a"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff?ec3cfddedb8bebd2d7a3fdf511f7c1cc"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf?13685372945d816a2b474fc082fd9aaa"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.svg?0cb5a5c0d251c109458c85c6afeffbaa"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot?261d666b0147c6c5cda07265f98b8f8c"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2?c20b5b7362d8d7bb7eddf94344ace33e"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff?f89ea91ecd1ca2db7e09baa2c4b156d1"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf?db78b9359171f24936b16d84f63af378"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.svg?89ffa3aba80d30ee0a9371b25c968bbb"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot?a0369ea57eb6d3843d6474c035111f29"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2?b15db15f746f29ffa02638cb455b8ec0"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff?bea989e82b07e9687c26fc58a4805021"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf?1ab236ed440ee51810c56bd16628aef0"},function(e,t){e.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.svg?ec763292e583294612f124c0b0def500"},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r={"./components/ActuLabos/ActuLaboInstantSearch.vue":194,"./components/ActuLabos/ActuLabosHit.vue":195,"./components/AdCampaign/CampaignHit.vue":196,"./components/AdCampaign/CampaignInstantSearch.vue":197,"./components/FileSearch/FileHit.vue":198,"./components/FileSearch/FileInstantSearch.vue":199,"./components/Home/cover.vue":200,"./components/LiveStats.vue":201,"./components/PollAnswers/PollAnswers.vue":202,"./components/Publish/HeadlineRepeater.vue":203,"./components/Publish/PublishLetter.vue":204,"./components/Publish/PublishNewsletter.vue":205,"./components/Publish/Step1UploadFile.vue":38,"./components/Publish/Step1WriteNewsletter.vue":40,"./components/Publish/Step2PrepareMail.vue":39,"./components/Publish/Step3Send.vue":12,"./components/Stats/EmailStatistics.vue":206,"./components/Stats/MgStats.vue":207};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=170},function(e,t,n){"use strict";var r=n(17);n.n(r).a},function(e,t,n){(t=n(4)(!1)).push([e.i,"h4[data-v-6009d5bd]{font-variant:small-caps}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(18);n.n(r).a},function(e,t,n){(t=n(4)(!1)).push([e.i,'.title[data-v-1a8b3214]{font-family:Raleway;font-size:24px;font-weight:700;color:#5d4037;text-align:center}*[data-v-1a8b3214]{-webkit-font-smoothing:antialiased}p[data-v-1a8b3214]{line-height:1.5em}h1+p[data-v-1a8b3214],p+p[data-v-1a8b3214]{margin-top:10px}.card-wrap[data-v-1a8b3214]{transform:perspective(800px);transform-style:preserve-3d;cursor:pointer}.card-wrap:hover .card-info[data-v-1a8b3214]{transform:translateY(0)}.card-wrap:hover .card-info p[data-v-1a8b3214]{opacity:1}.card-wrap:hover .card-info[data-v-1a8b3214],.card-wrap:hover .card-info p[data-v-1a8b3214]{transition:.6s cubic-bezier(.23,1,.32,1)}.card-wrap:hover .card-info[data-v-1a8b3214]:after{transition:5s cubic-bezier(.23,1,.32,1);opacity:1;transform:translateY(0)}.card-wrap:hover .card-bg[data-v-1a8b3214]{transition:.6s cubic-bezier(.23,1,.32,1),opacity 5s cubic-bezier(.23,1,.32,1);opacity:.8}.card-wrap:hover .cover[data-v-1a8b3214]{transition:.6s cubic-bezier(.23,1,.32,1),box-shadow 2s cubic-bezier(.23,1,.32,1);box-shadow:0 0 40px 5px hsla(0,0%,100%,.2),0 30px 60px 0 rgba(0,0,0,.3),inset 0 0 0 5px #333}.cover[data-v-1a8b3214]{position:relative;flex:0 0 100%;background-color:#333;overflow:hidden;box-shadow:0 30px 60px 0 rgba(0,0,0,.3),inset 0 0 0 5px #333;transition:.5s cubic-bezier(.445,.05,.55,.95)}.card-bg[data-v-1a8b3214],.cover[data-v-1a8b3214]{width:100%;height:100%}.card-bg[data-v-1a8b3214]{opacity:.8;position:absolute;background-repeat:no-repeat;background-position:50%;background-size:cover;transition:1s cubic-bezier(.445,.05,.55,.95),opacity 5s cubic-bezier(.445,.05,.55,.95) 1s;pointer-events:none}.card-bg[data-v-1a8b3214] :hover{opacity:.5}.card-info[data-v-1a8b3214]{padding:10px;position:absolute;bottom:0;color:#fff;transform:translateY(40%);box-sizing:border-box!important}.card-info[data-v-1a8b3214],.card-info p[data-v-1a8b3214]{transition:.6s cubic-bezier(.215,.61,.355,1) 1.6s}.card-info p[data-v-1a8b3214]{opacity:0;text-shadow:#000 0 2px 3px}.card-info *[data-v-1a8b3214]{position:relative;z-index:1}.card-info[data-v-1a8b3214]:after{content:"";position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.6));background-blend-mode:overlay;opacity:0;transform:translateY(100%);transition:5s cubic-bezier(.445,.05,.55,.95) 1s}.card-info h1[data-v-1a8b3214]{font-family:Playfair Display;font-size:36px;font-weight:700;text-shadow:rgba(0,0,0,.5) 0 10px 10px}',""]),e.exports=t},function(e,t,n){"use strict";var r=n(19);n.n(r).a},function(e,t,n){(t=n(4)(!1)).push([e.i,".stepper-box[data-v-0cd2e8d8]{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);min-height:200px}.stepper-box .top[data-v-0cd2e8d8]{display:flex;align-items:center;position:relative;justify-content:center}.stepper-box .top .stepper-button-top[data-v-0cd2e8d8]{z-index:20;padding:.4rem;border-radius:100rem;cursor:pointer;position:absolute;display:flex;align-items:center;justify-content:space-between}.stepper-box .top .stepper-button-top.next[data-v-0cd2e8d8]{border:2px solid #3383c8;color:#3383c8;right:1%}.stepper-box .top .stepper-button-top.next.deactivated[data-v-0cd2e8d8]{border:2px solid #ccc!important;color:#ccc;cursor:not-allowed!important}.stepper-box .top .stepper-button-top.previous[data-v-0cd2e8d8]{color:#333;left:1%}.stepper-box .top .divider-line[data-v-0cd2e8d8]{border-bottom:1px solid #ccc;height:2px;position:absolute}@media (max-width:767px){.stepper-box .top .divider-line[data-v-0cd2e8d8]{width:90%}}.stepper-box .top .steps-wrapper[data-v-0cd2e8d8]{display:flex;align-items:center;justify-content:space-between;position:relative;width:95%;left:0;padding:2% 4%}@media (max-width:767px){.stepper-box .top .steps-wrapper[data-v-0cd2e8d8]{width:90%;justify-content:center}}.stepper-box .top .steps-wrapper .step[data-v-0cd2e8d8]{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}@media (max-width:767px){.stepper-box .top .steps-wrapper .step[data-v-0cd2e8d8]{width:100%!important}}@media (max-width:767px){.stepper-box .top .steps-wrapper .step.deactivated[data-v-0cd2e8d8]{display:none}}.stepper-box .top .steps-wrapper .step.deactivated .circle i[data-v-0cd2e8d8]{background-color:#bbb!important}.stepper-box .top .steps-wrapper .step.deactivated .step-title[data-v-0cd2e8d8]{opacity:.35}.stepper-box .top .steps-wrapper .step .circle[data-v-0cd2e8d8]{margin-bottom:1rem;padding:0 1rem;background-color:#fff}.stepper-box .top .steps-wrapper .step .circle i[data-v-0cd2e8d8]{background-color:#3383c8;color:#fff;border-radius:100rem;padding:1rem}.stepper-box .top .steps-wrapper .step .step-title[data-v-0cd2e8d8]{position:absolute;top:90%;width:100%}.stepper-box .top .steps-wrapper .step .step-title h1[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h2[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h3[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h4[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h5[data-v-0cd2e8d8]{margin:0 0 .2rem;color:#333;font-weight:700}.stepper-box .top .steps-wrapper .step .step-title .step-subtitle[data-v-0cd2e8d8]{font-weight:lighter;margin:0;color:#555}.stepper-box .content[data-v-0cd2e8d8]{overflow:hidden;margin:1.5rem 0}.stepper-box .bottom[data-v-0cd2e8d8]{position:relative;display:flex;justify-content:space-between;align-items:center;padding:2rem;border-top:1px solid #ccc}.stepper-box .bottom.only-next[data-v-0cd2e8d8]{justify-content:flex-end}.stepper-box .bottom .stepper-button[data-v-0cd2e8d8]{padding:.5rem 1rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between}.stepper-box .bottom .stepper-button.next[data-v-0cd2e8d8]{background-color:#3383c8;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.stepper-box .bottom .stepper-button.next.deactivated[data-v-0cd2e8d8]{background-color:#ccc!important;cursor:not-allowed!important}.stepper-box .bottom .stepper-button.previous[data-v-0cd2e8d8]{color:#333}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(20);n.n(r).a},function(e,t,n){(t=n(4)(!1)).push([e.i,'@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v17/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format("woff2")}.material-icons[data-v-0cd2e8d8]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}',""]),e.exports=t},function(e,t,n){"use strict";var r=n(21);n.n(r).a},function(e,t,n){(t=n(4)(!1)).push([e.i,".repeater[data-v-4a9146e1]{margin-left:-18px;margin-right:-16px;margin-top:-20px}a[data-v-4a9146e1]{color:inherit!important}a.btn[data-v-4a9146e1]{color:#fff!important}.file-selected>div[data-v-4a9146e1]{margin-bottom:2rem}.file-upload label.btn[data-v-4a9146e1]{margin-bottom:0;margin-right:1rem}.file-upload .drop-active[data-v-4a9146e1]{top:0;bottom:0;right:0;left:0;position:fixed;z-index:9999;opacity:.6;text-align:center;background:#000}.file-upload .drop-active h3[data-v-4a9146e1]{margin:-.5em 0 0;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);font-size:40px;color:#fff;padding:0}",""]),e.exports=t},function(e,t,n){"use strict";(function(e){var t,r,i=n(0),o=n.n(i);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=C(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function c(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function d(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&x(e,t)}function g(e){var t=k();return function(){var n,r=C(e);if(t){var i=C(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e){var t="function"==typeof Map?new Map:void 0;return(_=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return w(e,arguments,C(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),x(r,e)})(e)}function w(e,t,n){return(w=k()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&x(i,n.prototype),i}).apply(null,arguments)}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t=window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}),(r=t.fr=t.fr||{}).dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 sur %1","Align center":"Centrer","Align left":"Aligner à gauche","Align right":"Aligner à droite",Aquamarine:"Bleu vert",Big:"Grand",Black:"Noir",Blue:"Bleu",Bold:"Gras","Bulleted List":"Liste à puces",Cancel:"Annuler","Cannot upload file:":"Envoi du fichier échoué :","Centered image":"Image centrée","Change image text alternative":"Changer le texte alternatif à l’image","Characters: %0":"Caractères : %0","Choose heading":"Choisir l'en-tête",Column:"Colonne","Could not insert image at the current position.":"Impossible d'insérer l'image à la position courante.","Could not obtain resized image URL.":"Impossible d'obtenir l'image redimensionnée","Decrease indent":"Diminuer le retrait",Default:"Par défaut","Delete column":"Supprimer la colonne","Delete row":"Supprimer la ligne","Dim grey":"Gris pâle","Document colors":"Couleurs du document",Downloadable:"Fichier téléchargeable","Dropdown toolbar":"Barre d'outils dans un menu déroulant","Edit link":"Modifier le lien","Editor toolbar":"Barre d'outils de l'éditeur","Enter image caption":"Saisir la légende de l’image","Font Color":"Couleur de police","Font Size":"Taille de police","Full size image":"Image taille réelle",Green:"Vert",Grey:"Gris","Header column":"Colonne d'entête","Header row":"Ligne d'entête",Heading:"En-tête","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4","Heading 5":"Titre 5","Heading 6":"Titre 6","Horizontal line":"Ligne horizontale",Huge:"Enorme","Image resize list":"","Image toolbar":"Barre d'outils des images","image widget":"Objet image","Increase indent":"Augmenter le retrait",Insert:"","Insert column left":"Insérer une colonne à gauche","Insert column right":"Insérer une colonne à droite","Insert image":"Insérer une image","Insert image or file":"Insérer une image ou un fichier","Insert image via URL":"","Insert media":"Insérer un média","Insert paragraph after block":"","Insert paragraph before block":"","Insert row above":"Insérer une ligne au-dessus","Insert row below":"Insérer une ligne en-dessous","Insert table":"Insérer un tableau","Inserting image failed":"L'insertion d'image a échoué.",Italic:"Italique",Justify:"Justifier","Left aligned image":"Image alignée à gauche","Light blue":"Bleu clair","Light green":"Vert clair","Light grey":"Gris clair",Link:"Lien","Link image":"","Link URL":"URL du lien","Media URL":"URL de média","media widget":"widget média","Merge cell down":"Fusionner la cellule en-dessous","Merge cell left":"Fusionner la cellule à gauche","Merge cell right":"Fusionner la cellule à droite","Merge cell up":"Fusionner la cellule au-dessus","Merge cells":"Fusionner les cellules",Next:"Suivant","Numbered List":"Liste numérotée","Open in a new tab":"Ouvrir dans un nouvel onglet","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Orange:"Orange",Original:"",Paragraph:"Paragraphe","Paste the image source URL.":"","Paste the media URL in the input.":"Coller l'URL du média",Previous:"Précedent",Purple:"Violet",Red:"Rouge",Redo:"Restaurer","Remove color":"Enlever la couleur","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Rich Text Editor":"Éditeur de texte enrichi","Rich Text Editor, %0":"Éditeur de texte enrichi, %0","Right aligned image":"Image alignée à droite",Row:"Ligne",Save:"Enregistrer","Select column":"","Select row":"","Selecting resized image failed":"La sélection de l'image redimensionnée a échoué.","Show more items":"Montrer plus d'éléments","Side image":"Image latérale",Small:"Petit","Split cell horizontally":"Scinder la cellule horizontalement","Split cell vertically":"Scinder la cellule verticalement","Table toolbar":"Barre d'outils des tableaux","Text alignment":"Alignement du texte","Text alignment toolbar":"Barre d'outils d'alignement du texte","Text alternative":"Texte alternatif","The URL must not be empty.":"L'URL ne doit pas être vide.","This link has no URL":"Ce lien n'a pas d'URL","This media URL is not supported.":"Cette URL de média n'est pas supportée.",Tiny:"Minuscule","Tip: Paste the URL into the content to embed faster.":"Astuce : Copier l'URL du média dans le contenu pour l'insérer plus rapidement",Turquoise:"Turquoise",Undo:"Annuler",Unlink:"Supprimer le lien",Update:"","Upload failed":"Échec de l'envoi","Upload in progress":"Téléchargement en cours",White:"Blanc","Widget toolbar":"Barre d'outils du widget","Words: %0":"Mots : %0",Yellow:"Jaune"}),r.getPluralForm=function(e){return e>1},function(t,r){"object"==("undefined"==typeof exports?"undefined":S(exports))&&"object"==S(e)?e.exports=r():"function"==typeof define&&n(184)?define([],r):"object"==("undefined"==typeof exports?"undefined":S(exports))?exports.ClassicEditor=r():t.ClassicEditor=r()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==S(e)&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=112)}([function(e,t,n){n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));var r=function(e){v(n,e);var t=g(n);function n(e,r,o){var a;return h(this,n),e=i(e),o&&(e+=" "+JSON.stringify(o)),(a=t.call(this,e)).name="CKEditorError",a.context=r,a.data=o,a}return m(n,[{key:"is",value:function(e){return"CKEditorError"===e}}],[{key:"rethrowUnexpectedError",value:function(e,t){if(e.is&&e.is("CKEditorError"))throw e;var r=new n(e.message,t);throw r.stack=e.stack,r}}]),n}(_(Error));function i(e){var t=e.match(/^([^:]+):/);return t?e+" Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-".concat(t[1],"\n"):e}},function(e,t,n){var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),o=[];function a(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function s(e,t){for(var n={},r=[],i=0;i<e.length;i++){var s=e[i],c=t.base?s[0]+t.base:s[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var d=a(u),f={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(o[d].references++,o[d].updater(f)):o.push({identifier:u,updater:m(f,t),references:1}),r.push(u)}return r}function c(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(e){t.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var l,u=(l=[],function(e,t){return l[e]=t,l.filter(Boolean).join("\n")});function d(e,t,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=u(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function f(e,t,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?e.setAttribute("media",i):e.removeAttribute("media"),o&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,p=0;function m(e,t){var n,r,i;if(t.singleton){var o=p++;n=h||(h=c(t)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=c(t),r=f.bind(null,n,t),i=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var c=s(e,t),l=0;l<n.length;l++){var u=a(n[l]);0===o[u].references&&(o[u].updater(),o.splice(u,1))}n=c}}}},,function(e,t,n){var r=n(7),i="object"==("undefined"==typeof self?"undefined":S(self))&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();t.a=o},function(e,t,n){(function(e){var r=n(3),i=n(12),o="object"==("undefined"==typeof exports?"undefined":S(exports))&&exports&&!exports.nodeType&&exports,a=o&&"object"==S(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.a.Buffer:void 0,c=(s?s.isBuffer:void 0)||i.a;t.a=c}).call(this,n(9)(e))},function(e,t,n){(function(e){var r=n(7),i="object"==("undefined"==typeof exports?"undefined":S(exports))&&exports&&!exports.nodeType&&exports,o=i&&"object"==S(e)&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.a.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();t.a=s}).call(this,n(9)(e))},function(e,t,n){(function(e){var t=n(0),r="object"==("undefined"==typeof window?"undefined":S(window))?window:e;if(r.CKEDITOR_VERSION)throw new t.b("ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated.",null);r.CKEDITOR_VERSION="22.0.0"}).call(this,n(10))},function(e,t,n){(function(e){var n="object"==S(e)&&e&&e.Object===Object&&e;t.a=n}).call(this,n(10))},function(e,t,n){(function(e){var r=n(3),i="object"==("undefined"==typeof exports?"undefined":S(exports))&&exports&&!exports.nodeType&&exports,o=i&&"object"==S(e)&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.a.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(9)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==("undefined"==typeof window?"undefined":S(window))&&(n=window)}e.exports=n},function(e,t,n){var r=n(1),i=n(55);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t,n){t.a=function(){return!1}},function(e,t,n){var r=n(1),i=n(14);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-placeholder:before,.ck .ck-placeholder:before{content:attr(data-placeholder);pointer-events:none}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-placeholder:before,.ck .ck-placeholder:before{cursor:text;color:var(--ck-color-engine-placeholder-text)}"},function(e,t,n){var r=n(1),i=n(16);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{box-sizing:border-box;width:auto;height:auto;position:static}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999);--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#5c5c5c;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-color-link-fake-selection:rgba(31,177,255,0.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none;word-wrap:break-word}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}"},function(e,t,n){var r=n(1),i=n(18);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}"},function(e,t,n){var r=n(1),i=n(20);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(e,t,n){var r=n(1),i=n(22);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var r=n(1),i=n(24);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(0.5*var(--ck-icon-size))}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}"},function(e,t,n){var r=n(1),i=n(26);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}"},function(e,t,n){var r=n(1),i=n(28);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports='.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_n{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}'},function(e,t,n){var r=n(1),i=n(30);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(-1*var(--ck-spacing-small));margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(-1*var(--ck-spacing-small));margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}"},function(e,t,n){var r=n(1),i=n(32);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(0.2*var(--ck-line-height-base)*var(--ck-font-size-base)) calc(0.4*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(1.2*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}"},function(e,t,n){var r=n(1),i=n(34);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2*var(--ck-switch-button-toggle-spacing))}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(2*var(--ck-spacing-large))}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(2*var(--ck-spacing-large))}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(0.5*var(--ck-border-radius))}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(-1*var(--ck-switch-button-translation)))}"},function(e,t,n){var r=n(1),i=n(36);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-toolbar-dropdown .ck.ck-toolbar .ck.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}"},function(e,t,n){var r=n(1),i=n(38);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var r=n(1),i=n(40);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items>*{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>*,.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}"},function(e,t,n){var r=n(1),i=n(42);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}"},function(e,t,n){var r=n(1),i=n(44);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}'},function(e,t,n){var r=n(1),i=n(46);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}"},function(e,t,n){var r=n(1),i=n(48);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-editor__editable .ck-horizontal-line{display:flow-root}.ck-content hr{margin:15px 0;height:4px;background:#dedede;border:0}"},function(e,t,n){var r=n(1),i=n(50);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#000}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{width:var(--ck-color-grid-tile-size);height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;border:0}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{display:none;color:var(--ck-color-color-grid-check-icon)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}"},function(e,t,n){var r=n(1),i=n(52);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck .ck-button.ck-color-table__remove-color{display:flex;align-items:center;width:100%}label.ck.ck-color-grid__label{font-weight:unset}.ck .ck-button.ck-color-table__remove-color{padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck .ck-button.ck-color-table__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-base-border)}[dir=ltr] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard)}"},function(e,t,n){var r=n(1),i=n(54);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}"},function(e,t){e.exports=".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}"},function(e,t,n){var r=n(1),i=n(57);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports='.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(-0.5*var(--ck-widget-outline-thickness));left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(-0.5*var(--ck-widget-outline-thickness));right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(-1*var(--ck-widget-outline-thickness));right:calc(-1*var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(-1*var(--ck-widget-outline-thickness) - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(-1*var(--ck-widget-outline-thickness) - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}'},function(e,t,n){var r=n(1),i=n(59);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-resizer-size:10px;--ck-resizer-border-width:1px;--ck-resizer-border-radius:2px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-tooltip-offset:10px;--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}"},function(e,t,n){var r=n(1),i=n(61);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view>.ck.ck-label{width:100%;text-overflow:ellipsis;overflow:hidden}"},function(e,t,n){var r=n(1),i=n(63);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{box-shadow:var(--ck-inner-shadow),0 0;background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .2s ease-in-out,border .2s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),var(--ck-inner-shadow)}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}"},function(e,t,n){var r=n(1),i=n(65);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}.ck.ck-text-alternative-form{padding:var(--ck-spacing-standard)}.ck.ck-text-alternative-form:focus{outline:none}[dir=ltr] .ck.ck-text-alternative-form>:not(:first-child),[dir=rtl] .ck.ck-text-alternative-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-text-alternative-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-text-alternative-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-text-alternative-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-text-alternative-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-text-alternative-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-text-alternative-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(e,t,n){var r=n(1),i=n(67);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}"},function(e,t,n){var r=n(1),i=n(69);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}"},function(e,t,n){var r=n(1),i=n(71);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:50px}"},function(e,t,n){var r=n(1),i=n(73);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}"},function(e,t,n){var r=n(1),i=n(75);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;position:absolute;pointer-events:none;left:0;top:0;outline:1px solid var(--ck-color-resizer)}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{position:absolute;pointer-events:all;width:var(--ck-resizer-size);height:var(--ck-resizer-size);background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{top:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{top:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nesw-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nesw-resize}"},function(e,t,n){var r=n(1),i=n(77);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-content .image.image_resized{max-width:100%;display:block;box-sizing:border-box}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}"},function(e,t,n){var r=n(1),i=n(79);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}"},function(e,t,n){var r=n(1),i=n(81);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-radius:0}.ck-rounded-corners [dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow,[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-left-color:var(--ck-color-split-button-hover-border)}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-right-color:var(--ck-color-split-button-hover-border)}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}"},function(e,t,n){var r=n(1),i=n(83);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-upload-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-upload-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-upload-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-upload-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}"},function(e,t,n){var r=n(1),i=n(85);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-image-upload__panel{padding:var(--ck-spacing-standard)}.ck.ck-image-upload__ck-finder-button{display:block;width:100%;margin:var(--ck-spacing-standard) auto;border:1px solid #ccc;border-radius:var(--ck-border-radius)}"},function(e,t,n){var r=n(1),i=n(87);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}"},function(e,t,n){var r=n(1),i=n(89);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}'},function(e,t,n){var r=n(1),i=n(91);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports='.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}'},function(e,t,n){var r=n(1),i=n(93);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form{padding:var(--ck-spacing-standard)}.ck.ck-link-form:focus{outline:none}[dir=ltr] .ck.ck-link-form>:not(:first-child),[dir=rtl] .ck.ck-link-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin-left:0}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}"},function(e,t,n){var r=n(1),i=n(95);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions{padding:var(--ck-spacing-standard)}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}.ck.ck-link-actions:focus{outline:none}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(e,t,n){var r=n(1),i=n(97);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-link-image_icon{position:absolute;top:var(--ck-spacing-medium);right:var(--ck-spacing-medium);width:28px;height:28px;padding:4px;box-sizing:border-box;border-radius:var(--ck-border-radius)}.ck.ck-link-image_icon svg{fill:currentColor}.ck.ck-link-image_icon{color:#fff;background:rgba(0,0,0,.4)}"},function(e,t,n){var r=n(1),i=n(99);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports='.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(3*var(--ck-spacing-standard));background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}'},function(e,t,n){var r=n(1),i=n(101);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}.ck.ck-media-form{padding:var(--ck-spacing-standard)}.ck.ck-media-form:focus{outline:none}[dir=ltr] .ck.ck-media-form>:not(:first-child),[dir=rtl] .ck.ck-media-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-media-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-media-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-media-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-media-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-media-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-media-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-media-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-media-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-media-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(e,t,n){var r=n(1),i=n(103);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}"},function(e,t,n){var r=n(1),i=n(105);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}"},function(e,t,n){var r=n(1),i=n(107);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}"},function(e,t,n){var r=n(1),i=n(109);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}'},function(e,t,n){var r=n(1),i=n(111);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),e.exports=i.locals||{}},function(e,t){e.exports=".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}"},function(e,t,n){var r=o.a.mark(os),i=o.a.mark(as),d=o.a.mark(Qd);n.r(t);var f=n(3),p=f.a.Symbol,_=Object.prototype,k=_.hasOwnProperty,x=_.toString,T=p?p.toStringTag:void 0,A=Object.prototype.toString,M=p?p.toStringTag:void 0,E=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":M&&M in Object(e)?function(e){var t=k.call(e,T),n=e[T];try{e[T]=void 0;var r=!0}catch(e){}var i=x.call(e);return r&&(t?e[T]=n:delete e[T]),i}(e):function(e){return A.call(e)}(e)},O=function(e,t){return function(n){return e(t(n))}},P=O(Object.getPrototypeOf,Object),I=function(e){return null!=e&&"object"==S(e)},D=Function.prototype,j=Object.prototype,N=D.toString,R=j.hasOwnProperty,L=N.call(Object),z=function(e){if(!I(e)||"[object Object]"!=E(e))return!1;var t=P(e);if(null===t)return!0;var n=R.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&N.call(n)==L},F=function(e,t){return e===t||e!=e&&t!=t},B=function(e,t){for(var n=e.length;n--;)if(F(e[n][0],t))return n;return-1},$=Array.prototype.splice;function V(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}V.prototype.clear=function(){this.__data__=[],this.size=0},V.prototype.delete=function(e){var t=this.__data__,n=B(t,e);return!(n<0||(n==t.length-1?t.pop():$.call(t,n,1),--this.size,0))},V.prototype.get=function(e){var t=this.__data__,n=B(t,e);return n<0?void 0:t[n][1]},V.prototype.has=function(e){return B(this.__data__,e)>-1},V.prototype.set=function(e,t){var n=this.__data__,r=B(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var H,U=V,q=function(e){var t=S(e);return null!=e&&("object"==t||"function"==t)},W=function(e){if(!q(e))return!1;var t=E(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Y=f.a["__core-js_shared__"],G=(H=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+H:"",K=Function.prototype.toString,Q=function(e){if(null!=e){try{return K.call(e)}catch(e){}try{return e+""}catch(e){}}return""},J=/^\[object .+?Constructor\]$/,X=Function.prototype,Z=Object.prototype,ee=X.toString,te=Z.hasOwnProperty,ne=RegExp("^"+ee.call(te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=function(e){return!(!q(e)||function(e){return!!G&&G in e}(e))&&(W(e)?ne:J).test(Q(e))},ie=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return re(n)?n:void 0},oe=ie(f.a,"Map"),ae=ie(Object,"create"),se=Object.prototype.hasOwnProperty,ce=Object.prototype.hasOwnProperty;function le(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}le.prototype.clear=function(){this.__data__=ae?ae(null):{},this.size=0},le.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},le.prototype.get=function(e){var t=this.__data__;if(ae){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return se.call(t,e)?t[e]:void 0},le.prototype.has=function(e){var t=this.__data__;return ae?void 0!==t[e]:ce.call(t,e)},le.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ae&&void 0===t?"__lodash_hash_undefined__":t,this};var ue=le,de=function(e,t){var n=e.__data__;return function(e){var t=S(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map};function fe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}fe.prototype.clear=function(){this.size=0,this.__data__={hash:new ue,map:new(oe||U),string:new ue}},fe.prototype.delete=function(e){var t=de(this,e).delete(e);return this.size-=t?1:0,t},fe.prototype.get=function(e){return de(this,e).get(e)},fe.prototype.has=function(e){return de(this,e).has(e)},fe.prototype.set=function(e,t){var n=de(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var he=fe;function pe(e){var t=this.__data__=new U(e);this.size=t.size}pe.prototype.clear=function(){this.__data__=new U,this.size=0},pe.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},pe.prototype.get=function(e){return this.__data__.get(e)},pe.prototype.has=function(e){return this.__data__.has(e)},pe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof U){var r=n.__data__;if(!oe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new he(r)}return n.set(e,t),this.size=n.size,this};var me=pe,ve=function(){try{var e=ie(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ge=function(e,t,n){"__proto__"==t&&ve?ve(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},be=Object.prototype.hasOwnProperty,ye=function(e,t,n){var r=e[t];be.call(e,t)&&F(r,n)&&(void 0!==n||t in e)||ge(e,t,n)},_e=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?ge(n,s,c):ye(n,s,c)}return n},we=function(e){return I(e)&&"[object Arguments]"==E(e)},ke=Object.prototype,xe=ke.hasOwnProperty,Ce=ke.propertyIsEnumerable,Se=we(function(){return arguments}())?we:function(e){return I(e)&&xe.call(e,"callee")&&!Ce.call(e,"callee")},Te=Array.isArray,Ae=n(4),Me=/^(?:0|[1-9]\d*)$/,Ee=function(e,t){var n=S(e);return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Me.test(e))&&e>-1&&e%1==0&&e<t},Oe=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Pe={};Pe["[object Float32Array]"]=Pe["[object Float64Array]"]=Pe["[object Int8Array]"]=Pe["[object Int16Array]"]=Pe["[object Int32Array]"]=Pe["[object Uint8Array]"]=Pe["[object Uint8ClampedArray]"]=Pe["[object Uint16Array]"]=Pe["[object Uint32Array]"]=!0,Pe["[object Arguments]"]=Pe["[object Array]"]=Pe["[object ArrayBuffer]"]=Pe["[object Boolean]"]=Pe["[object DataView]"]=Pe["[object Date]"]=Pe["[object Error]"]=Pe["[object Function]"]=Pe["[object Map]"]=Pe["[object Number]"]=Pe["[object Object]"]=Pe["[object RegExp]"]=Pe["[object Set]"]=Pe["[object String]"]=Pe["[object WeakMap]"]=!1;var Ie=function(e){return function(t){return e(t)}},De=n(5),je=De.a&&De.a.isTypedArray,Ne=je?Ie(je):function(e){return I(e)&&Oe(e.length)&&!!Pe[E(e)]},Re=Object.prototype.hasOwnProperty,Le=function(e,t){var n=Te(e),r=!n&&Se(e),i=!n&&!r&&Object(Ae.a)(e),o=!n&&!r&&!i&&Ne(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)!t&&!Re.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Ee(l,c))||s.push(l);return s},ze=Object.prototype,Fe=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ze)},Be=O(Object.keys,Object),$e=Object.prototype.hasOwnProperty,Ve=function(e){return null!=e&&Oe(e.length)&&!W(e)},He=function(e){return Ve(e)?Le(e):function(e){if(!Fe(e))return Be(e);var t=[];for(var n in Object(e))$e.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},Ue=Object.prototype.hasOwnProperty,qe=function(e){if(!q(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Fe(e),n=[];for(var r in e)("constructor"!=r||!t&&Ue.call(e,r))&&n.push(r);return n},We=function(e){return Ve(e)?Le(e,!0):qe(e)},Ye=n(8),Ge=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Ke=function(){return[]},Qe=Object.prototype.propertyIsEnumerable,Je=Object.getOwnPropertySymbols,Xe=Je?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(Je(e),(function(t){return Qe.call(e,t)})))}:Ke,Ze=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},et=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Ze(t,Xe(e)),e=P(e);return t}:Ke,tt=function(e,t,n){var r=t(e);return Te(e)?r:Ze(r,n(e))},nt=function(e){return tt(e,He,Xe)},rt=function(e){return tt(e,We,et)},it=ie(f.a,"DataView"),ot=ie(f.a,"Promise"),at=ie(f.a,"Set"),st=ie(f.a,"WeakMap"),ct="[object Map]",lt="[object Promise]",ut="[object Set]",dt="[object WeakMap]",ft="[object DataView]",ht=Q(it),pt=Q(oe),mt=Q(ot),vt=Q(at),gt=Q(st),bt=E;(it&&bt(new it(new ArrayBuffer(1)))!=ft||oe&&bt(new oe)!=ct||ot&&bt(ot.resolve())!=lt||at&&bt(new at)!=ut||st&&bt(new st)!=dt)&&(bt=function(e){var t=E(e),n="[object Object]"==t?e.constructor:void 0,r=n?Q(n):"";if(r)switch(r){case ht:return ft;case pt:return ct;case mt:return lt;case vt:return ut;case gt:return dt}return t});var yt=bt,_t=Object.prototype.hasOwnProperty,wt=f.a.Uint8Array,kt=function(e){var t=new e.constructor(e.byteLength);return new wt(t).set(new wt(e)),t},xt=/\w*$/,Ct=p?p.prototype:void 0,St=Ct?Ct.valueOf:void 0,Tt=function(e,t){var n=t?kt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},At=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return kt(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return function(e,t){var n=t?kt(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Tt(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,xt.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Set]":return new r;case"[object Symbol]":return function(e){return St?Object(St.call(e)):{}}(e)}},Mt=Object.create,Et=function(){function e(){}return function(t){if(!q(t))return{};if(Mt)return Mt(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),Ot=function(e){return"function"!=typeof e.constructor||Fe(e)?{}:Et(P(e))},Pt=De.a&&De.a.isMap,It=Pt?Ie(Pt):function(e){return I(e)&&"[object Map]"==yt(e)},Dt=De.a&&De.a.isSet,jt=Dt?Ie(Dt):function(e){return I(e)&&"[object Set]"==yt(e)},Nt="[object Arguments]",Rt="[object Function]",Lt={};Lt[Nt]=Lt["[object Array]"]=Lt["[object ArrayBuffer]"]=Lt["[object DataView]"]=Lt["[object Boolean]"]=Lt["[object Date]"]=Lt["[object Float32Array]"]=Lt["[object Float64Array]"]=Lt["[object Int8Array]"]=Lt["[object Int16Array]"]=Lt["[object Int32Array]"]=Lt["[object Map]"]=Lt["[object Number]"]=Lt["[object Object]"]=Lt["[object RegExp]"]=Lt["[object Set]"]=Lt["[object String]"]=Lt["[object Symbol]"]=Lt["[object Uint8Array]"]=Lt["[object Uint8ClampedArray]"]=Lt["[object Uint16Array]"]=Lt["[object Uint32Array]"]=!0,Lt["[object Error]"]=Lt[Rt]=Lt["[object WeakMap]"]=!1;var zt=function e(t,n,r,i,o,a){var s,c=1&n,l=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!q(t))return t;var d=Te(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&_t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!c)return Ge(t,s)}else{var f=yt(t),h=f==Rt||"[object GeneratorFunction]"==f;if(Object(Ae.a)(t))return Object(Ye.a)(t,c);if("[object Object]"==f||f==Nt||h&&!o){if(s=l||h?{}:Ot(t),!c)return l?function(e,t){return _e(e,et(e),t)}(t,function(e,t){return e&&_e(t,We(t),e)}(s,t)):function(e,t){return _e(e,Xe(e),t)}(t,function(e,t){return e&&_e(t,He(t),e)}(s,t))}else{if(!Lt[f])return o?t:{};s=At(t,f,c)}}a||(a=new me);var p=a.get(t);if(p)return p;a.set(t,s),jt(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):It(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var m=u?l?rt:nt:l?keysIn:He,v=d?void 0:m(t);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(v||t,(function(i,o){v&&(i=t[o=i]),ye(s,o,e(i,n,r,o,t,a))})),s},Ft=function(e,t){return zt(e,5,t="function"==typeof t?t:void 0)},Bt=function(e){return I(e)&&1===e.nodeType&&!z(e)},$t=function(){function e(t,n){h(this,e),this._config={},n&&this.define(Vt(n)),t&&this._setObjectToTarget(this._config,t)}return m(e,[{key:"set",value:function(e,t){this._setToTarget(this._config,e,t)}},{key:"define",value:function(e,t){this._setToTarget(this._config,e,t,!0)}},{key:"get",value:function(e){return this._getFromSource(this._config,e)}},{key:"names",value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0,n=Object.keys(this._config);case 1:if(!(t<n.length)){e.next=8;break}return r=n[t],e.next=5,r;case 5:t++,e.next=1;break;case 8:case"end":return e.stop()}}),e,this)}))},{key:"_setToTarget",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(z(t))this._setObjectToTarget(e,t,r);else{var i=t.split(".");t=i.pop();var o,a=u(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;z(e[s])||(e[s]={}),e=e[s]}}catch(e){a.e(e)}finally{a.f()}if(z(n))return z(e[t])||(e[t]={}),e=e[t],void this._setObjectToTarget(e,n,r);r&&void 0!==e[t]||(e[t]=n)}}},{key:"_getFromSource",value:function(e,t){var n=t.split(".");t=n.pop();var r,i=u(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(!z(e[o])){e=null;break}e=e[o]}}catch(e){i.e(e)}finally{i.f()}return e?Vt(e[t]):void 0}},{key:"_setObjectToTarget",value:function(e,t,n){var r=this;Object.keys(t).forEach((function(i){r._setToTarget(e,i,t[i],n)}))}}]),e}();function Vt(e){return Ft(e,Ht)}function Ht(e){return Bt(e)?e:void 0}var Ut=function e(t,n){h(this,e),this.source=t,this.name=n,this.path=[],this.stop=function e(){e.called=!0},this.off=function e(){e.called=!0}},qt=new Array(256).fill().map((function(e,t){return("0"+t.toString(16)).slice(-2)}));function Wt(){var e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0;return"e"+qt[e>>0&255]+qt[e>>8&255]+qt[e>>16&255]+qt[e>>24&255]+qt[t>>0&255]+qt[t>>8&255]+qt[t>>16&255]+qt[t>>24&255]+qt[n>>0&255]+qt[n>>8&255]+qt[n>>16&255]+qt[n>>24&255]+qt[r>>0&255]+qt[r>>8&255]+qt[r>>16&255]+qt[r>>24&255]}var Yt={get:function(e){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},Gt=(n(6),n(0)),Kt=Symbol("listeningTo"),Qt=Symbol("emitterId"),Jt={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,e,t,n)},once:function(e,t,n){var r=!1;this.listenTo(this,e,(function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=!0,e.off(),t.call.apply(t,[this,e].concat(i)))}),n)},off:function(e,t){this.stopListening(this,e,t)},listenTo:function(e,t,n){var r,i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this[Kt]||(this[Kt]={});var a=this[Kt];Zt(e)||Xt(e);var s=Zt(e);(r=a[s])||(r=a[s]={emitter:e,callbacks:{}}),(i=r.callbacks[t])||(i=r.callbacks[t]=[]),i.push(n),function(e,t){var n=en(e);if(!n[t]){for(var r=t,i=null,o=[];""!==r&&!n[r];)n[r]={callbacks:[],childEvents:[]},o.push(n[r]),i&&n[r].childEvents.push(i),i=r,r=r.substr(0,r.lastIndexOf(":"));if(""!==r){var a,s=u(o);try{for(s.s();!(a=s.n()).done;){a.value.callbacks=n[r].callbacks.slice()}}catch(e){s.e(e)}finally{s.f()}n[r].childEvents.push(i)}}}(e,t);var c,l=tn(e,t),d=Yt.get(o.priority),f={callback:n,priority:d},h=u(l);try{for(h.s();!(c=h.n()).done;){for(var p=c.value,m=!1,v=0;v<p.length;v++)if(p[v].priority<d){p.splice(v,0,f),m=!0;break}m||p.push(f)}}catch(e){h.e(e)}finally{h.f()}},stopListening:function(e,t,n){var r=this[Kt],i=e&&Zt(e),o=r&&i&&r[i],a=o&&t&&o.callbacks[t];if(!(!r||e&&!o||t&&!a))if(n)rn(e,t,n);else if(a){for(;n=a.pop();)rn(e,t,n);delete o.callbacks[t]}else if(o){for(t in o.callbacks)this.stopListening(e,t);delete r[i]}else{for(i in r)this.stopListening(r[i].emitter);delete this[Kt]}},fire:function(e){try{for(var t=e instanceof Ut?e:new Ut(this,e),n=t.name,r=function e(t,n){var r;return t._events&&(r=t._events[n])&&r.callbacks.length?r.callbacks:n.indexOf(":")>-1?e(t,n.substr(0,n.lastIndexOf(":"))):null}(this,n),i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(t.path.push(this),r){var s=[t].concat(o);r=Array.from(r);for(var c=0;c<r.length&&(r[c].callback.apply(this,s),t.off.called&&(delete t.off.called,rn(this,n,r[c].callback)),!t.stop.called);c++);}if(this._delegations){var l=this._delegations.get(n),u=this._delegations.get("*");l&&nn(l,t,o),u&&nn(u,t,o)}return t.return}catch(e){Gt.b.rethrowUnexpectedError(e,this)}},delegate:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return{to:function(t,r){e._delegations||(e._delegations=new Map),n.forEach((function(n){var i=e._delegations.get(n);i?i.set(t,r):e._delegations.set(n,new Map([[t,r]]))}))}}},stopDelegating:function(e,t){if(this._delegations)if(e)if(t){var n=this._delegations.get(e);n&&n.delete(t)}else this._delegations.delete(e);else this._delegations.clear()}};function Xt(e,t){e[Qt]||(e[Qt]=t||Wt())}function Zt(e){return e[Qt]}function en(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function tn(e,t){var n=en(e)[t];if(!n)return[];for(var r=[n.callbacks],i=0;i<n.childEvents.length;i++){var o=tn(e,n.childEvents[i]);r=r.concat(o)}return r}function nn(e,t,n){var r,i=u(e);try{for(i.s();!(r=i.n()).done;){var o=l(r.value,2),a=o[0],s=o[1];s?"function"==typeof s&&(s=s(t.name)):s=t.name;var d=new Ut(t.source,s);d.path=c(t.path),a.fire.apply(a,[d].concat(c(n)))}}catch(e){i.e(e)}finally{i.f()}}function rn(e,t,n){var r,i=u(tn(e,t));try{for(i.s();!(r=i.n()).done;)for(var o=r.value,a=0;a<o.length;a++)o[a].callback==n&&(o.splice(a,1),a--)}catch(e){i.e(e)}finally{i.f()}}function on(e){return!(!e||!e[Symbol.iterator])}function an(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];n.forEach((function(t){Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)).forEach((function(n){if(!(n in e.prototype)){var r=Object.getOwnPropertyDescriptor(t,n);r.enumerable=!1,Object.defineProperty(e.prototype,n,r)}}))}))}var sn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e);var r=on(t);if(r||(n=t),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],r){var i,o=u(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._items.push(a),this._itemMap.set(this._getItemIdBeforeAdding(a),a)}}catch(e){o.e(e)}finally{o.f()}}}return m(e,[{key:"add",value:function(e,t){return this.addMany([e],t)}},{key:"addMany",value:function(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new Gt.b("collection-add-item-invalid-index: The index passed to Collection#addMany() is invalid.",this);for(var n=0;n<e.length;n++){var r=e[n],i=this._getItemIdBeforeAdding(r),o=t+n;this._items.splice(o,0,r),this._itemMap.set(i,r),this.fire("add",r,o)}return this.fire("change",{added:e,removed:[],index:t}),this}},{key:"get",value:function(e){var t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new Gt.b("collection-get-invalid-arg: Index or id must be given.",this);t=this._items[e]}return t||null}},{key:"has",value:function(e){if("string"==typeof e)return this._itemMap.has(e);var t=e[this._idProperty];return this._itemMap.has(t)}},{key:"getIndex",value:function(e){var t;return t="string"==typeof e?this._itemMap.get(e):e,this._items.indexOf(t)}},{key:"remove",value:function(e){var t=l(this._remove(e),2),n=t[0],r=t[1];return this.fire("change",{added:[],removed:[n],index:r}),n}},{key:"map",value:function(e,t){return this._items.map(e,t)}},{key:"find",value:function(e,t){return this._items.find(e,t)}},{key:"filter",value:function(e,t){return this._items.filter(e,t)}},{key:"clear",value:function(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);for(var e=Array.from(this._items);this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}},{key:"bindTo",value:function(e){var t=this;if(this._bindToCollection)throw new Gt.b("collection-bind-to-rebind: The collection cannot be bound more than once.",this);return this._bindToCollection=e,{as:function(e){t._setUpBindToBinding((function(t){return new e(t)}))},using:function(e){"function"==typeof e?t._setUpBindToBinding((function(t){return e(t)})):t._setUpBindToBinding((function(t){return t[e]}))}}}},{key:"_setUpBindToBinding",value:function(e){var t,n=this,r=this._bindToCollection,i=function(t,i,o){var a=r._bindToCollection==n,s=r._bindToInternalToExternalMap.get(i);if(a&&s)n._bindToExternalToInternalMap.set(i,s),n._bindToInternalToExternalMap.set(s,i);else{var c=e(i);if(!c)return void n._skippedIndexesFromExternal.push(o);var l,d=o,f=u(n._skippedIndexesFromExternal);try{for(f.s();!(l=f.n()).done;){o>l.value&&d--}}catch(e){f.e(e)}finally{f.f()}var h,p=u(r._skippedIndexesFromExternal);try{for(p.s();!(h=p.n()).done;){d>=h.value&&d++}}catch(e){p.e(e)}finally{p.f()}n._bindToExternalToInternalMap.set(i,c),n._bindToInternalToExternalMap.set(c,i),n.add(c,d);for(var m=0;m<r._skippedIndexesFromExternal.length;m++)d<=r._skippedIndexesFromExternal[m]&&r._skippedIndexesFromExternal[m]++}},o=u(r);try{for(o.s();!(t=o.n()).done;){var a=t.value;i(0,a,r.getIndex(a))}}catch(e){o.e(e)}finally{o.f()}this.listenTo(r,"add",i),this.listenTo(r,"remove",(function(e,t,r){var i=n._bindToExternalToInternalMap.get(t);i&&n.remove(i),n._skippedIndexesFromExternal=n._skippedIndexesFromExternal.reduce((function(e,t){return r<t&&e.push(t-1),r>t&&e.push(t),e}),[])}))}},{key:"_getItemIdBeforeAdding",value:function(e){var t,n=this._idProperty;if(n in e){if("string"!=typeof(t=e[n]))throw new Gt.b("collection-add-invalid-id: This item's id should be a string.",this);if(this.get(t))throw new Gt.b("collection-add-item-already-exists: This item already exists in the collection.",this)}else e[n]=t=Wt();return t}},{key:"_remove",value:function(e){var t,n,r,i=!1,o=this._idProperty;if("string"==typeof e?(n=e,i=!(r=this._itemMap.get(n)),r&&(t=this._items.indexOf(r))):"number"==typeof e?(t=e,i=!(r=this._items[t]),r&&(n=r[o])):(n=(r=e)[o],i=-1==(t=this._items.indexOf(r))||!this._itemMap.get(n)),i)throw new Gt.b("collection-remove-404: Item not found.",this);this._items.splice(t,1),this._itemMap.delete(n);var a=this._bindToInternalToExternalMap.get(r);return this._bindToInternalToExternalMap.delete(r),this._bindToExternalToInternalMap.delete(a),this.fire("remove",r,t),[r,t]}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"length",get:function(){return this._items.length}},{key:"first",get:function(){return this._items[0]||null}},{key:"last",get:function(){return this._items[this.length-1]||null}}]),e}();an(sn,Jt);var cn=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];h(this,e),this._context=t,this._plugins=new Map,this._availablePlugins=new Map;var i,o=u(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;a.pluginName&&this._availablePlugins.set(a.pluginName,a)}}catch(e){o.e(e)}finally{o.f()}this._contextPlugins=new Map;var s,c=u(r);try{for(c.s();!(s=c.n()).done;){var d=l(s.value,2),f=d[0],p=d[1];this._contextPlugins.set(f,p),this._contextPlugins.set(p,f),f.pluginName&&this._availablePlugins.set(f.pluginName,f)}}catch(e){c.e(e)}finally{c.f()}}return m(e,[{key:Symbol.iterator,value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=u(this._plugins),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=11;break}if(r=n.value,e.t0="function"==typeof r[0],!e.t0){e.next=9;break}return e.next=9,r;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"get",value:function(e){var t=this._plugins.get(e);if(!t){var n=e;throw"function"==typeof e&&(n=e.pluginName||e.name),new Gt.b("plugincollection-plugin-not-loaded: The requested plugin is not loaded.",this._context,{plugin:n})}return t}},{key:"has",value:function(e){return this._plugins.has(e)}},{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this,r=this._context,i=new Set,o=[],a=p(e),s=p(t),c=function(e){var t,n=[],r=u(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;h(i)||n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n.length?n:null}(e);if(c){var l="plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.";return console.error(Object(Gt.a)(l),{plugins:c}),Promise.reject(new Gt.b(l,r,{plugins:c}))}return Promise.all(a.map(d)).then((function(){return f(o,"init")})).then((function(){return f(o,"afterInit")})).then((function(){return o}));function d(e){if(!s.includes(e)&&!n._plugins.has(e)&&!i.has(e))return function(e){return new Promise((function(a){i.add(e),e.requires&&e.requires.forEach((function(n){var i=h(n);if(e.isContextPlugin&&!i.isContextPlugin)throw new Gt.b("plugincollection-context-required: Context plugin can not require plugin which is not a context plugin",null,{plugin:i.name,requiredBy:e.name});if(t.includes(i))throw new Gt.b("plugincollection-required: Cannot load a plugin because one of its dependencies is listed inthe `removePlugins` option.",r,{plugin:i.name,requiredBy:e.name});d(i)}));var s=n._contextPlugins.get(e)||new e(r);n._add(e,s),o.push(s),a()}))}(e).catch((function(t){throw console.error(Object(Gt.a)("plugincollection-load: It was not possible to load the plugin."),{plugin:e}),t}))}function f(e,t){return e.reduce((function(e,r){return r[t]?n._contextPlugins.has(r)?e:e.then(r[t].bind(r)):e}),Promise.resolve())}function h(e){return"function"==typeof e?e:n._availablePlugins.get(e)}function p(e){return e.map((function(e){return h(e)})).filter((function(e){return!!e}))}}},{key:"destroy",value:function(){var e,t=[],n=u(this);try{for(n.s();!(e=n.n()).done;){var r=l(e.value,2)[1];"function"!=typeof r.destroy||this._contextPlugins.has(r)||t.push(r.destroy())}}catch(e){n.e(e)}finally{n.f()}return Promise.all(t)}},{key:"_add",value:function(e,t){this._plugins.set(e,t);var n=e.pluginName;if(n){if(this._plugins.has(n))throw new Gt.b("plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}}]),e}();function ln(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof n)throw new Gt.b("translation-service-quantity-not-a-number: Expecting `quantity` to be a number.",null,{quantity:n});var r=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===r&&(e=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);var i=t.id||t.string;if(0===r||!function(e,t){return!!window.CKEDITOR_TRANSLATIONS[e]&&!!window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,i))return 1!==n?t.plural:t.string;var o=window.CKEDITOR_TRANSLATIONS[e].dictionary,a=window.CKEDITOR_TRANSLATIONS[e].getPluralForm||function(e){return 1===e?0:1};if("string"==typeof o[i])return o[i];var s=Number(a(n));return o[i][s]}an(cn,Jt),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});var un=["ar","fa","he","ku","ug"],dn=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,e),this.uiLanguage=n.uiLanguage||"en",this.contentLanguage=n.contentLanguage||this.uiLanguage,this.uiLanguageDirection=fn(this.uiLanguage),this.contentLanguageDirection=fn(this.contentLanguage),this.t=function(e,n){return t._t(e,n)}}return m(e,[{key:"_t",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(t)||(t=[t]),"string"==typeof e&&(e={string:e});var n=e.plural?t[0]:1;return function(e,t){return e.replace(/%(\d+)/g,(function(e,n){return n<t.length?t[n]:e}))}(ln(this.uiLanguage,e,n),t)}},{key:"language",get:function(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}}]),e}();function fn(e){return un.includes(e)?"rtl":"ltr"}var hn=function(){function e(t){h(this,e),this.config=new $t(t,this.constructor.defaultConfig);var n=this.constructor.builtinPlugins;this.config.define("plugins",n),this.plugins=new cn(this,n);var r=this.config.get("language")||{};this.locale=new dn({uiLanguage:"string"==typeof r?r:r.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new sn,this._contextOwner=null}return m(e,[{key:"initPlugins",value:function(){var e,t=this.config.get("plugins")||[],n=u(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if("function"!=typeof r)throw new Gt.b("context-initplugins-constructor-only: Only a constructor function is allowed as a context plugin.",null,{Plugin:r});if(!0!==r.isContextPlugin)throw new Gt.b("context-initplugins-invalid-plugin: Only a plugin marked as a context plugin is allowed to be used with a context.",null,{Plugin:r})}}catch(e){n.e(e)}finally{n.f()}return this.plugins.init(t)}},{key:"destroy",value:function(){var e=this;return Promise.all(Array.from(this.editors,(function(e){return e.destroy()}))).then((function(){return e.plugins.destroy()}))}},{key:"_addEditor",value:function(e,t){if(this._contextOwner)throw new Gt.b("context-addEditor-private-context: Cannot add multiple editors to the context which is created by the editor.");this.editors.add(e),t&&(this._contextOwner=e)}},{key:"_removeEditor",value:function(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}},{key:"_getEditorConfig",value:function(){var e,t={},n=u(this.config.names());try{for(n.s();!(e=n.n()).done;){var r=e.value;["plugins","removePlugins","extraPlugins"].includes(r)||(t[r]=this.config.get(r))}}catch(e){n.e(e)}finally{n.f()}return t}}],[{key:"create",value:function(e){var t=this;return new Promise((function(n){var r=new t(e);n(r.initPlugins().then((function(){return r})))}))}}]),e}();function pn(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)if(e[r]!=t[r])return r;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}var mn=function(e){return zt(e,4)},vn=function(){function e(t){h(this,e),this.document=t,this.parent=null}return m(e,[{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var e=[],t=this;t.parent;)e.unshift(t.index),t=t.parent;return e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),r=e.getAncestors(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),r=pn(t,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return t[r]<n[r]}}},{key:"isAfter",value:function(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_fireChange",value:function(e,t){this.fire("change:"+e,t),this.parent&&this.parent._fireChange(e,t)}},{key:"toJSON",value:function(){var e=mn(this);return delete e.parent,e}},{key:"is",value:function(e){return"node"===e||"view:node"===e}},{key:"index",get:function(){var e;if(!this.parent)return null;if(-1==(e=this.parent.getChildIndex(this)))throw new Gt.b("view-node-not-found-in-parent: The node's parent does not contain this node.",this);return e}},{key:"nextSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e+1)||null}},{key:"previousSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e-1)||null}},{key:"root",get:function(){for(var e=this;e.parent;)e=e.parent;return e}}]),e}();an(vn,Jt);var gn=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e))._textData=r,i}return m(n,[{key:"is",value:function(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e}},{key:"isSimilar",value:function(e){return e instanceof n&&(this===e||this.data===e.data)}},{key:"_clone",value:function(){return new n(this.document,this.data)}},{key:"data",get:function(){return this._textData}},{key:"_data",get:function(){return this.data},set:function(e){this._fireChange("text",this),this._textData=e}}]),n}(vn),bn=function(){function e(t,n,r){if(h(this,e),this.textNode=t,n<0||n>t.data.length)throw new Gt.b("view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(r<0||n+r>t.data.length)throw new Gt.b("view-textproxy-wrong-length: Given length value is incorrect.",this);this.data=t.data.substring(n,n+r),this.offsetInText=n}return m(e,[{key:"is",value:function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this.textNode:this.parent;null!==n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"offsetSize",get:function(){return this.data.length}},{key:"isPartial",get:function(){return this.data.length!==this.textNode.data.length}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"document",get:function(){return this.textNode.document}}]),e}();function yn(e){return on(e)?new Map(e):function(e){var t=new Map;for(var n in e)t.set(n,e[n]);return t}(e)}var _n=function(){function e(){h(this,e),this._patterns=[],this.add.apply(this,arguments)}return m(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];("string"==typeof o||o instanceof RegExp)&&(o={name:o}),o.classes&&("string"==typeof o.classes||o.classes instanceof RegExp)&&(o.classes=[o.classes]),this._patterns.push(o)}}},{key:"match",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o,a=i[r],s=u(this._patterns);try{for(s.s();!(o=s.n()).done;){var c=o.value,l=wn(a,c);if(l)return{element:a,pattern:c,match:l}}}catch(e){s.e(e)}finally{s.f()}}return null}},{key:"matchAll",value:function(){for(var e=[],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a,s=o[i],c=u(this._patterns);try{for(c.s();!(a=c.n()).done;){var l=a.value,d=wn(s,l);d&&e.push({element:s,pattern:l,match:d})}}catch(e){c.e(e)}finally{c.f()}}return e.length>0?e:null}},{key:"getElementName",value:function(){if(1!==this._patterns.length)return null;var e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}]),e}();function wn(e,t){if("function"==typeof t)return t(e);var n={};return t.name&&(n.name=function(e,t){return e instanceof RegExp?e.test(t):e===t}(t.name,e.name),!n.name)||t.attributes&&(n.attributes=function(e,t){var n=[];for(var r in e){var i=e[r];if(!t.hasAttribute(r))return null;var o=t.getAttribute(r);if(!0===i)n.push(r);else if(i instanceof RegExp){if(!i.test(o))return null;n.push(r)}else{if(o!==i)return null;n.push(r)}}return n}(t.attributes,e),!n.attributes)?null:!(t.classes&&(n.classes=function(e,t){var n,r=[],i=u(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o instanceof RegExp){var a,s=u(t.getClassNames());try{for(s.s();!(a=s.n()).done;){var c=a.value;o.test(c)&&r.push(c)}}catch(e){s.e(e)}finally{s.f()}if(0===r.length)return null}else{if(!t.hasClass(o))return null;r.push(o)}}}catch(e){i.e(e)}finally{i.f()}return r}(t.classes,e),!n.classes))&&!(t.styles&&(n.styles=function(e,t){var n=[];for(var r in e){var i=e[r];if(!t.hasStyle(r))return null;var o=t.getStyle(r);if(i instanceof RegExp){if(!i.test(o))return null;n.push(r)}else{if(o!==i)return null;n.push(r)}}return n}(t.styles,e),!n.styles))&&n}var kn=function(e){return"symbol"==S(e)||I(e)&&"[object Symbol]"==E(e)},xn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Cn=/^\w*$/;function Sn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Sn.Cache||he),n}Sn.Cache=he;var Tn=Sn,An=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mn=/\\(\\)?/g,En=function(e){var t=Tn((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(An,(function(e,n,r,i){t.push(r?i.replace(Mn,"$1"):n||e)})),t}),(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}(),On=p?p.prototype:void 0,Pn=On?On.toString:void 0,In=function e(t){if("string"==typeof t)return t;if(Te(t))return function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(t,e)+"";if(kn(t))return Pn?Pn.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},Dn=function(e){return null==e?"":In(e)},jn=function(e,t){return Te(e)?e:function(e,t){if(Te(e))return!1;var n=S(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!kn(e))||Cn.test(e)||!xn.test(e)||null!=t&&e in Object(t)}(e,t)?[e]:En(Dn(e))},Nn=function(e){if("string"==typeof e||kn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Rn=function(e,t){for(var n=0,r=(t=jn(t,e)).length;null!=e&&n<r;)e=e[Nn(t[n++])];return n&&n==r?e:void 0},Ln=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},zn=function(e,t){return null==(e=function(e,t){return t.length<2?e:Rn(e,Ln(t,0,-1))}(e,t=jn(t,e)))||delete e[Nn(function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}(t))]},Fn=function(e,t,n){var r=null==e?void 0:Rn(e,t);return void 0===r?n:r},Bn=function(e,t,n){(void 0!==n&&!F(e[t],n)||void 0===n&&!(t in e))&&ge(e,t,n)},$n=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e},Vn=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Hn=function(e,t,n,r,i,o,a){var s=Vn(e,n),c=Vn(t,n),l=a.get(c);if(l)Bn(e,n,l);else{var u=o?o(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var f=Te(c),h=!f&&Object(Ae.a)(c),p=!f&&!h&&Ne(c);u=c,f||h||p?Te(s)?u=s:function(e){return I(e)&&Ve(e)}(s)?u=Ge(s):h?(d=!1,u=Object(Ye.a)(c,!0)):p?(d=!1,u=Tt(c,!0)):u=[]:z(c)||Se(c)?(u=s,Se(s)?u=function(e){return _e(e,We(e))}(s):q(s)&&!W(s)||(u=Ot(c))):d=!1}d&&(a.set(c,u),i(u,c,r,o,a),a.delete(c)),Bn(e,n,u)}},Un=function(e){return e},qn=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Wn=Math.max,Yn=function(e){return function(){return e}},Gn=ve?function(e,t){return ve(e,"toString",{configurable:!0,enumerable:!1,value:Yn(t),writable:!0})}:Un,Kn=Date.now,Qn=function(e){var t=0,n=0;return function(){var r=Kn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Gn),Jn=function(e,t){return Qn(function(e,t,n){return t=Wn(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Wn(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),qn(e,this,s)}}(e,t,Un),e+"")},Xn=function(e){return Jn((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!q(n))return!1;var r=S(t);return!!("number"==r?Ve(n)&&Ee(t,n.length):"string"==r&&t in n)&&F(n[t],e)}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))},Zn=Xn((function(e,t,n){!function e(t,n,r,i,o){t!==n&&$n(n,(function(a,s){if(o||(o=new me),q(a))Hn(t,n,s,r,e,i,o);else{var c=i?i(Vn(t,s),a,s+"",t,n,o):void 0;void 0===c&&(c=a),Bn(t,s,c)}}),We)}(e,t,n)})),er=function(e,t,n){return null==e?e:function(e,t,n,r){if(!q(e))return e;for(var i=-1,o=(t=jn(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var c=Nn(t[i]),l=n;if(i!=a){var u=s[c];void 0===(l=r?r(u,c,s):void 0)&&(l=q(u)?u:Ee(t[i+1])?[]:{})}ye(s,c,l),s=s[c]}return e}(e,t,n)},tr=function(){function e(t){h(this,e),this._styles={},this._styleProcessor=t}return m(e,[{key:"setTo",value:function(e){this.clear();for(var t=0,n=Array.from(function(e){var t=null,n=0,r=0,i=null,o=new Map;if(""===e)return o;";"!=e.charAt(e.length-1)&&(e+=";");for(var a=0;a<e.length;a++){var s=e.charAt(a);if(null===t)switch(s){case":":i||(i=e.substr(n,a-n),r=a+1);break;case'"':case"'":t=s;break;case";":var c=e.substr(r,a-r);i&&o.set(i.trim(),c.trim()),i=null,n=a+1}else s===t&&(t=null)}return o}(e).entries());t<n.length;t++){var r=l(n[t],2),i=r[0],o=r[1];this._styleProcessor.toNormalizedForm(i,o,this._styles)}}},{key:"has",value:function(e){if(this.isEmpty)return!1;var t=this._styleProcessor.getReducedForm(e,this._styles).find((function(t){return l(t,1)[0]===e}));return Array.isArray(t)}},{key:"set",value:function(e,t){if(q(e))for(var n=0,r=Object.entries(e);n<r.length;n++){var i=l(r[n],2),o=i[0],a=i[1];this._styleProcessor.toNormalizedForm(o,a,this._styles)}else this._styleProcessor.toNormalizedForm(e,t,this._styles)}},{key:"remove",value:function(e){var t=rr(e);(function(e,t){null==e||zn(e,t)})(this._styles,t),delete this._styles[e],this._cleanEmptyObjectsOnPath(t)}},{key:"getNormalized",value:function(e){return this._styleProcessor.getNormalized(e,this._styles)}},{key:"toString",value:function(){return this.isEmpty?"":this._getStylesEntries().map((function(e){return e.join(":")})).sort().join(";")+";"}},{key:"getAsString",value:function(e){if(!this.isEmpty){if(this._styles[e]&&!q(this._styles[e]))return this._styles[e];var t=this._styleProcessor.getReducedForm(e,this._styles).find((function(t){return l(t,1)[0]===e}));return Array.isArray(t)?t[1]:void 0}}},{key:"getStyleNames",value:function(){return this.isEmpty?[]:this._getStylesEntries().map((function(e){return l(e,1)[0]}))}},{key:"clear",value:function(){this._styles={}}},{key:"_getStylesEntries",value:function(){for(var e=[],t=0,n=Object.keys(this._styles);t<n.length;t++){var r=n[t];e.push.apply(e,c(this._styleProcessor.getReducedForm(r,this._styles)))}return e}},{key:"_cleanEmptyObjectsOnPath",value:function(e){var t=e.split(".");if(t.length>1){var n=t.splice(0,t.length-1).join("."),r=Fn(this._styles,n);r&&!Array.from(Object.keys(r)).length&&this.remove(n)}}},{key:"isEmpty",get:function(){var e=Object.entries(this._styles);return!Array.from(e).length}},{key:"size",get:function(){return this.isEmpty?0:this.getStyleNames().length}}]),e}(),nr=function(){function e(){h(this,e),this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}return m(e,[{key:"toNormalizedForm",value:function(e,t,n){if(q(t))ir(n,rr(e),t);else if(this._normalizers.has(e)){var r=this._normalizers.get(e)(t);ir(n,r.path,r.value)}else ir(n,e,t)}},{key:"getNormalized",value:function(e,t){if(!e)return Zn({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){var n=this._extractors.get(e);if("string"==typeof n)return Fn(t,n);var r=n(e,t);if(r)return r}return Fn(t,rr(e))}},{key:"getReducedForm",value:function(e,t){var n=this.getNormalized(e,t);return void 0===n?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}},{key:"getRelatedStyles",value:function(e){return this._consumables.get(e)||[]}},{key:"setNormalizer",value:function(e,t){this._normalizers.set(e,t)}},{key:"setExtractor",value:function(e,t){this._extractors.set(e,t)}},{key:"setReducer",value:function(e,t){this._reducers.set(e,t)}},{key:"setStyleRelation",value:function(e,t){this._mapStyleNames(e,t);var n,r=u(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._mapStyleNames(i,[e])}}catch(e){r.e(e)}finally{r.f()}}},{key:"_mapStyleNames",value:function(e,t){var n;this._consumables.has(e)||this._consumables.set(e,[]),(n=this._consumables.get(e)).push.apply(n,c(t))}}]),e}();function rr(e){return e.replace("-",".")}function ir(e,t,n){var r=n;q(n)&&(r=Zn({},Fn(e,t),n)),er(e,t,r)}var or=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;if(h(this,n),(a=t.call(this,e)).name=r,a._attrs=function(e){var t,n=u(e=yn(e));try{for(n.s();!(t=n.n()).done;){var r=l(t.value,2),i=r[0],o=r[1];null===o?e.delete(i):"string"!=typeof o&&e.set(i,String(o))}}catch(e){n.e(e)}finally{n.f()}return e}(i),a._children=[],o&&a._insertChild(0,o),a._classes=new Set,a._attrs.has("class")){var s=a._attrs.get("class");ar(a._classes,s),a._attrs.delete("class")}return a._styles=new tr(a.document.stylesProcessor),a._attrs.has("style")&&(a._styles.setTo(a._attrs.get("style")),a._attrs.delete("style")),a._customProperties=new Map,b(a)}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getAttributeKeys",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this._classes.size>0,!e.t0){e.next=4;break}return e.next=4,"class";case 4:if(e.t1=this._styles.isEmpty,e.t1){e.next=8;break}return e.next=8,"style";case 8:return e.delegateYield(this._attrs.keys(),"t2",9);case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttributes",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._attrs.entries(),"t0",1);case 1:if(e.t1=this._classes.size>0,!e.t1){e.next=5;break}return e.next=5,["class",this.getAttribute("class")];case 5:if(e.t2=this._styles.isEmpty,e.t2){e.next=9;break}return e.next=9,["style",this.getAttribute("style")];case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttribute",value:function(e){if("class"==e)return this._classes.size>0?c(this._classes).join(" "):void 0;if("style"==e){var t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(e)}},{key:"hasAttribute",value:function(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}},{key:"isSimilar",value:function(e){if(!(e instanceof n))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;var t,r=u(this._attrs);try{for(r.s();!(t=r.n()).done;){var i=l(t.value,2),o=i[0],a=i[1];if(!e._attrs.has(o)||e._attrs.get(o)!==a)return!1}}catch(e){r.e(e)}finally{r.f()}var s,c=u(this._classes);try{for(c.s();!(s=c.n()).done;){var d=s.value;if(!e._classes.has(d))return!1}}catch(e){c.e(e)}finally{c.f()}var f,h=u(this._styles.getStyleNames());try{for(h.s();!(f=h.n()).done;){var p=f.value;if(!e._styles.has(p)||e._styles.getAsString(p)!==this._styles.getAsString(p))return!1}}catch(e){h.e(e)}finally{h.f()}return!0}},{key:"hasClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];if(!this._classes.has(o))return!1}return!0}},{key:"getClassNames",value:function(){return this._classes.keys()}},{key:"getStyle",value:function(e){return this._styles.getAsString(e)}},{key:"getNormalizedStyle",value:function(e){return this._styles.getNormalized(e)}},{key:"getStyleNames",value:function(){return this._styles.getStyleNames()}},{key:"hasStyle",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];if(!this._styles.has(o))return!1}return!0}},{key:"findAncestor",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=w(_n,t),i=this.parent;i;){if(r.match(i))return i;i=i.parent}return null}},{key:"getCustomProperty",value:function(e){return this._customProperties.get(e)}},{key:"getCustomProperties",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._customProperties.entries(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getIdentity",value:function(){var e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),n=Array.from(this._attrs).map((function(e){return"".concat(e[0],'="').concat(e[1],'"')})).sort().join(" ");return this.name+(""==e?"":' class="'.concat(e,'"'))+(t?' style="'.concat(t,'"'):"")+(""==n?"":" "+n)}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[];if(e){var n,r=u(this.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;t.push(i._clone(e))}}catch(e){r.e(e)}finally{r.f()}}var o=new this.constructor(this.document,this.name,this._attrs,t);return o._classes=new Set(this._classes),o._styles.set(this._styles.getNormalized()),o._customProperties=new Map(this._customProperties),o.getFillerOffset=this.getFillerOffset,o}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,r=0,i=u(function(e,t){return"string"==typeof t?[new gn(e,t)]:(on(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new gn(e,t):t instanceof bn?new gn(e,t.data):t})))}(this.document,t));try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this,o.document=this.document,this._children.splice(e,0,o),e++,r++}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}},{key:"_setAttribute",value:function(e,t){t=String(t),this._fireChange("attributes",this),"class"==e?ar(this._classes,t):"style"==e?this._styles.setTo(t):this._attrs.set(e,t)}},{key:"_removeAttribute",value:function(e){return this._fireChange("attributes",this),"class"==e?this._classes.size>0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}},{key:"_addClass",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._classes.add(e)}))}},{key:"_removeClass",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._classes.delete(e)}))}},{key:"_setStyle",value:function(e,t){this._fireChange("attributes",this),this._styles.set(e,t)}},{key:"_removeStyle",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._styles.remove(e)}))}},{key:"_setCustomProperty",value:function(e,t){this._customProperties.set(e,t)}},{key:"_removeCustomProperty",value:function(e){return this._customProperties.delete(e)}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this._children.length}}]),n}(vn);function ar(e,t){var n=t.split(/\s+/);e.clear(),n.forEach((function(t){return e.add(t)}))}var sr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=cr,a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}}]),n}(or);function cr(){var e=c(this.getChildren()),t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;var n,r=u(e);try{for(r.s();!(n=r.n()).done;){if(!n.value.is("uiElement"))return null}}catch(e){r.e(e)}finally{r.f()}return this.childCount}var lr=Xn((function(e,t){_e(t,We(t),e)})),ur=Symbol("observableProperties"),dr=Symbol("boundObservables"),fr=Symbol("boundProperties"),hr={set:function(e,t){var n=this;if(q(e))Object.keys(e).forEach((function(t){n.set(t,e[t])}),this);else{mr(this);var r=this[ur];if(e in this&&!r.has(e))throw new Gt.b("observable-set-cannot-override: Cannot override an existing property.",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:function(){return r.get(e)},set:function(t){var n=r.get(e),i=this.fire("set:"+e,e,t,n);void 0===i&&(i=t),n===i&&r.has(e)||(r.set(e,i),this.fire("change:"+e,e,i,n))}}),this[e]=t}},bind:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length||!br(n))throw new Gt.b("observable-bind-wrong-properties: All properties must be strings.",this);if(new Set(n).size!==n.length)throw new Gt.b("observable-bind-duplicate-properties: Properties must be unique.",this);mr(this);var i=this[fr];n.forEach((function(t){if(i.has(t))throw new Gt.b("observable-bind-rebind: Cannot bind the same property more than once.",e)}));var o=new Map;return n.forEach((function(e){var t={property:e,to:[]};i.set(e,t),o.set(e,t)})),{to:vr,toMany:gr,_observable:this,_bindProperties:n,_to:[],_bindings:o}},unbind:function(){var e=this;if(this[ur]){for(var t=this[fr],n=this[dr],r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(i.length){if(!br(i))throw new Gt.b("observable-unbind-wrong-properties: Properties must be strings.",this);i.forEach((function(r){var i,o,a,s,c=t.get(r);c&&(c.to.forEach((function(t){i=t[0],o=t[1],a=n.get(i),(s=a[o]).delete(c),s.size||delete a[o],Object.keys(a).length||(n.delete(i),e.stopListening(i,"change"))})),t.delete(r))}))}else n.forEach((function(t,n){e.stopListening(n,"change")})),n.clear(),t.clear()}},decorate:function(e){var t=this,n=this[e];if(!n)throw new Gt.b("observablemixin-cannot-decorate-undefined: Cannot decorate an undefined method.",this,{object:this,methodName:e});this.on(e,(function(e,r){e.return=n.apply(t,r)})),this[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.fire(e,n)}}};lr(hr,Jt);var pr=hr;function mr(e){e[ur]||(Object.defineProperty(e,ur,{value:new Map}),Object.defineProperty(e,dr,{value:new Map}),Object.defineProperty(e,fr,{value:new Map}))}function vr(){var e,t=this,n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)throw new Gt.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);var r,i={to:[]};return"function"==typeof t[t.length-1]&&(i.callback=t.pop()),t.forEach((function(e){if("string"==typeof e)r.properties.push(e);else{if("object"!=S(e))throw new Gt.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);r={observable:e,properties:[]},i.to.push(r)}})),i}.apply(void 0,arguments),r=Array.from(this._bindings.keys()),i=r.length;if(!n.callback&&n.to.length>1)throw new Gt.b("observable-bind-to-no-callback: Binding multiple observables only possible with callback.",this);if(i>1&&n.callback)throw new Gt.b("observable-bind-to-extra-callback: Cannot bind multiple properties and use a callback in one binding.",this);n.to.forEach((function(e){if(e.properties.length&&e.properties.length!==i)throw new Gt.b("observable-bind-to-properties-length: The number of properties must match.",t);e.properties.length||(e.properties=t._bindProperties)})),this._to=n.to,n.callback&&(this._bindings.get(r[0]).callback=n.callback),e=this._observable,this._to.forEach((function(t){var n,r=e[dr];r.get(t.observable)||e.listenTo(t.observable,"change",(function(i,o){(n=r.get(t.observable)[o])&&n.forEach((function(t){yr(e,t.property)}))}))})),function(e){var t;e._bindings.forEach((function(n,r){e._to.forEach((function(i){t=i.properties[n.callback?0:e._bindProperties.indexOf(r)],n.to.push([i.observable,t]),function(e,t,n,r){var i=e[dr],o=i.get(n),a=o||{};a[r]||(a[r]=new Set),a[r].add(t),o||i.set(n,a)}(e._observable,n,i.observable,t)}))}))}(this),this._bindProperties.forEach((function(e){yr(t._observable,e)}))}function gr(e,t,n){if(this._bindings.size>1)throw new Gt.b("observable-bind-to-many-not-one-binding: Cannot bind multiple properties with toMany().",this);this.to.apply(this,c(function(e,t){var n=e.map((function(e){return[e,t]}));return Array.prototype.concat.apply([],n)}(e,t)).concat([n]))}function br(e){return e.every((function(e){return"string"==typeof e}))}function yr(e,t){var n,r=e[fr].get(t);r.callback?n=r.callback.apply(e,r.to.map((function(e){return e[0][e[1]]}))):n=(n=r.to[0])[0][n[1]],Object.prototype.hasOwnProperty.call(e,t)?e[t]=n:e.set(t,n)}var _r=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).set("isReadOnly",!1),a.set("isFocused",!1),a.bind("isReadOnly").to(e),a.bind("isFocused").to(e,"isFocused",(function(t){return t&&e.selection.editableElement==y(a)})),a.listenTo(e.selection,"change",(function(){a.isFocused=e.isFocused&&e.selection.editableElement==y(a)})),a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"destroy",value:function(){this.stopListening()}}]),n}(sr);an(_r,pr);var wr=Symbol("rootName"),kr=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e,r)).rootName="main",i}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"rootName",get:function(){return this.getCustomProperty(wr)},set:function(e){this._setCustomProperty(wr,e)}},{key:"_name",set:function(e){this.name=e}}]),n}(_r),xr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(h(this,e),!t.boundaries&&!t.startPosition)throw new Gt.b("view-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new Gt.b("view-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this.position=Cr._createAt(t.startPosition):this.position=Cr._createAt(t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}return m(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,r;do{var i;r=this.position,t=(i=this.next()).done,n=i.value}while(!t&&e(n));t||(this.position=r)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e,t=this.position.clone(),n=this.position,r=t.parent;if(null===r.parent&&t.offset===r.childCount)return{done:!0};if(r===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};if(r instanceof gn){if(t.isAtEnd)return this.position=Cr._createAfter(r),this._next();e=r.data[t.offset]}else e=r.getChild(t.offset);if(e instanceof or)return this.shallow?t.offset++:t=new Cr(e,0),this.position=t,this._formatReturnValue("elementStart",e,n,t,1);if(e instanceof gn){if(this.singleCharacters)return t=new Cr(e,0),this.position=t,this._next();var i,o=e.data.length;return e==this._boundaryEndParent?(o=this.boundaries.end.offset,i=new bn(e,0,o),t=Cr._createAfter(i)):(i=new bn(e,0,e.data.length),t.offset++),this.position=t,this._formatReturnValue("text",i,n,t,o)}if("string"==typeof e){var a;a=this.singleCharacters?1:(r===this._boundaryEndParent?this.boundaries.end.offset:r.data.length)-t.offset;var s=new bn(r,t.offset,a);return t.offset+=a,this.position=t,this._formatReturnValue("text",s,n,t,a)}return t=Cr._createAfter(r),this.position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",r,n,t)}},{key:"_previous",value:function(){var e,t=this.position.clone(),n=this.position,r=t.parent;if(null===r.parent&&0===t.offset)return{done:!0};if(r==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};if(r instanceof gn){if(t.isAtStart)return this.position=Cr._createBefore(r),this._previous();e=r.data[t.offset-1]}else e=r.getChild(t.offset-1);if(e instanceof or)return this.shallow?(t.offset--,this.position=t,this._formatReturnValue("elementStart",e,n,t,1)):(t=new Cr(e,e.childCount),this.position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",e,n,t));if(e instanceof gn){if(this.singleCharacters)return t=new Cr(e,e.data.length),this.position=t,this._previous();var i,o=e.data.length;if(e==this._boundaryStartParent){var a=this.boundaries.start.offset;o=(i=new bn(e,a,e.data.length-a)).data.length,t=Cr._createBefore(i)}else i=new bn(e,0,e.data.length),t.offset--;return this.position=t,this._formatReturnValue("text",i,n,t,o)}if("string"==typeof e){var s;if(this.singleCharacters)s=1;else{var c=r===this._boundaryStartParent?this.boundaries.start.offset:0;s=t.offset-c}t.offset-=s;var l=new bn(r,t.offset,s);return this.position=t,this._formatReturnValue("text",l,n,t,s)}return t=Cr._createBefore(r),this.position=t,this._formatReturnValue("elementStart",r,n,t,1)}},{key:"_formatReturnValue",value:function(e,t,n,r,i){return t instanceof bn&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=Cr._createAfter(t.textNode):(r=Cr._createAfter(t.textNode),this.position=r)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=Cr._createBefore(t.textNode):(r=Cr._createBefore(t.textNode),this.position=r))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:i}}}}]),e}(),Cr=function(){function e(t,n){h(this,e),this.parent=t,this.offset=n}return m(e,[{key:"getShiftedBy",value:function(t){var n=e._createAt(this),r=n.offset+t;return n.offset=r<0?0:r,n}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new xr(t);return n.skip(e),n.position}},{key:"getAncestors",value:function(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),r=0;t[r]==n[r]&&t[r];)r++;return 0===r?null:t[r-1]}},{key:"is",value:function(e){return"position"===e||"view:position"===e}},{key:"isEqual",value:function(e){return this.parent==e.parent&&this.offset==e.offset}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"compareWith",value:function(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";var t=this.parent.is("node")?this.parent.getPath():[],n=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);var r=pn(t,n);switch(r){case"prefix":return"before";case"extension":return"after";default:return t[r]<n[r]?"before":"after"}}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.startPosition=this,new xr(e)}},{key:"clone",value:function(){return new e(this.parent,this.offset)}},{key:"nodeAfter",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}},{key:"nodeBefore",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){var e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}},{key:"root",get:function(){return this.parent.root}},{key:"editableElement",get:function(){for(var e=this.parent;!(e instanceof _r);){if(!e.parent)return null;e=e.parent}return e}}],[{key:"_createAt",value:function(t,n){if(t instanceof e)return new this(t.parent,t.offset);var r=t;if("end"==n)n=r.is("$text")?r.data.length:r.childCount;else{if("before"==n)return this._createBefore(r);if("after"==n)return this._createAfter(r);if(0!==n&&!n)throw new Gt.b("view-createPositionAt-offset-required: View#createPositionAt() requires the offset when the first parameter is a view item.",r)}return new e(r,n)}},{key:"_createAfter",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new Gt.b("view-position-after-root: You can not make position after root.",t,{root:t});return new e(t.parent,t.index+1)}},{key:"_createBefore",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText);if(!t.parent)throw new Gt.b("view-position-before-root: You can not make position before root.",t,{root:t});return new e(t.parent,t.index)}}]),e}(),Sr=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;h(this,e),this.start=t.clone(),this.end=n?n.clone():t.clone()}return m(e,[{key:Symbol.iterator,value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(new xr({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getEnlarged",value:function(){var t=this.start.getLastMatchingPosition(Tr,{direction:"backward"}),n=this.end.getLastMatchingPosition(Tr);return t.parent.is("$text")&&t.isAtStart&&(t=Cr._createBefore(t.parent)),n.parent.is("$text")&&n.isAtEnd&&(n=Cr._createAfter(n.parent)),new e(t,n)}},{key:"getTrimmed",value:function(){var t=this.start.getLastMatchingPosition(Tr);if(t.isAfter(this.end)||t.isEqual(this.end))return new e(t,t);var n=this.end.getLastMatchingPosition(Tr,{direction:"backward"}),r=t.nodeAfter,i=n.nodeBefore;return r&&r.is("$text")&&(t=new Cr(r,0)),i&&i.is("$text")&&(n=new Cr(i,i.data.length)),new e(t,n)}},{key:"isEqual",value:function(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),r=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&r}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(this.clone()),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,r=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(r=t.end),new e(n,r)}return null}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new xr(e)}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}},{key:"clone",value:function(){return new e(this.start,this.end)}},{key:"getItems",value:o.a.mark((function e(){var t,n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,t.ignoreElementEnd=!0,n=new xr(t),r=u(n),e.prev=4,r.s();case 6:if((i=r.n()).done){e.next=12;break}return a=i.value,e.next=10,a.item;case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),r.e(e.t0);case 17:return e.prev=17,r.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))},{key:"getPositions",value:o.a.mark((function e(){var t,n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,n=new xr(t),e.next=5,n.position;case 5:r=u(n),e.prev=6,r.s();case 8:if((i=r.n()).done){e.next=14;break}return a=i.value,e.next=12,a.nextPosition;case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),r.e(e.t0);case 19:return e.prev=19,r.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[6,16,19,22]])}))},{key:"is",value:function(e){return"range"===e||"view:range"===e}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return this.start.parent===this.end.parent}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromParentsAndOffsets",value:function(e,t,n,r){return new this(new Cr(e,t),new Cr(n,r))}},{key:"_createFromPositionAndShift",value:function(e,t){var n=e,r=e.getShiftedBy(t);return t>0?new this(n,r):new this(r,n)}},{key:"_createIn",value:function(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}},{key:"_createOn",value:function(e){var t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(Cr._createBefore(e),t)}}]),e}();function Tr(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}function Ar(e){var t,n=0,r=u(e);try{for(r.s();!(t=r.n()).done;){t.value;n++}}catch(e){r.e(e)}finally{r.f()}return n}var Mr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;h(this,e),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(t,n,r)}return m(e,[{key:"getRanges",value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=u(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,r.clone();case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=u(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.start.isBefore(t.start)||(t=r)}}catch(e){n.e(e)}finally{n.f()}return t?t.clone():null}},{key:"getLastRange",value:function(){var e,t=null,n=u(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.end.isAfter(t.end)||(t=r)}}catch(e){n.e(e)}finally{n.f()}return t?t.clone():null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"isEqual",value:function(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=u(this._ranges);try{for(n.s();!(t=n.n()).done;){var r,i=t.value,o=!1,a=u(e._ranges);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(i.isEqual(s)){o=!0;break}}}catch(e){a.e(e)}finally{a.f()}if(!o)return!1}}catch(e){n.e(e)}finally{n.f()}return!0}},{key:"isSimilar",value:function(e){if(this.isBackward!=e.isBackward)return!1;var t=Ar(this.getRanges());if(t!=Ar(e.getRanges()))return!1;if(0==t)return!0;var n,r=u(this.getRanges());try{for(r.s();!(n=r.n()).done;){var i=n.value;i=i.getTrimmed();var o,a=!1,s=u(e.getRanges());try{for(s.s();!(o=s.n()).done;){var c=o.value;if(c=c.getTrimmed(),i.start.isEqual(c.start)&&i.end.isEqual(c.end)){a=!0;break}}}catch(e){s.e(e)}finally{s.f()}if(!a)return!1}}catch(e){r.e(e)}finally{r.f()}return!0}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"setTo",value:function(t,n,r){if(null===t)this._setRanges([]),this._setFakeOptions(n);else if(t instanceof e||t instanceof Er)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof Sr)this._setRanges([t],n&&n.backward),this._setFakeOptions(n);else if(t instanceof Cr)this._setRanges([new Sr(t)]),this._setFakeOptions(n);else if(t instanceof vn){var i,o=!!r&&!!r.backward;if(void 0===n)throw new Gt.b("view-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",this);i="in"==n?Sr._createIn(t):"on"==n?Sr._createOn(t):new Sr(Cr._createAt(t,n)),this._setRanges([i],o),this._setFakeOptions(r)}else{if(!on(t))throw new Gt.b("view-selection-setTo-not-selectable: Cannot set selection to given place.",this);this._setRanges(t,n&&n.backward),this._setFakeOptions(n)}this.fire("change")}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new Gt.b("view-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",this);var n=Cr._createAt(e,t);if("same"!=n.compareWith(this.focus)){var r=this.anchor;this._ranges.pop(),"before"==n.compareWith(r)?this._addRange(new Sr(n,r),!0):this._addRange(new Sr(r,n)),this.fire("change")}}},{key:"is",value:function(e){return"selection"===e||"view:selection"===e}},{key:"_setRanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e),this._ranges=[];var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._addRange(i)}}catch(e){r.e(e)}finally{r.f()}this._lastRangeBackward=!!t}},{key:"_setFakeOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}},{key:"_addRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof Sr))throw new Gt.b("view-selection-add-range-not-range: Selection range set to an object that is not an instance of view.Range",this);this._pushRange(e),this._lastRangeBackward=!!t}},{key:"_pushRange",value:function(e){var t,n=u(this._ranges);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e.isIntersecting(r))throw new Gt.b("view-selection-range-intersects: Trying to add a range that intersects with another range from selection.",this,{addedRange:e,intersectingRange:r})}}catch(e){n.e(e)}finally{n.f()}this._ranges.push(new Sr(e.start,e.end))}},{key:"isFake",get:function(){return this._isFake}},{key:"fakeSelectionLabel",get:function(){return this._fakeSelectionLabel}},{key:"anchor",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}},{key:"focus",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}},{key:"isCollapsed",get:function(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"editableElement",get:function(){return this.anchor?this.anchor.editableElement:null}}]),e}();an(Mr,Jt);var Er=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;h(this,e),this._selection=new Mr,this._selection.delegate("change").to(this),this._selection.setTo(t,n,r)}return m(e,[{key:"getRanges",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._selection.getRanges(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"isEqual",value:function(e){return this._selection.isEqual(e)}},{key:"isSimilar",value:function(e){return this._selection.isSimilar(e)}},{key:"is",value:function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"isFake",get:function(){return this._selection.isFake}},{key:"fakeSelectionLabel",get:function(){return this._selection.fakeSelectionLabel}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"editableElement",get:function(){return this._selection.editableElement}},{key:"_ranges",get:function(){return this._selection._ranges}}]),e}();an(Er,Jt);var Or=function(){function e(t){h(this,e),this.selection=new Er,this.roots=new sn({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}return m(e,[{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"destroy",value:function(){this.roots.map((function(e){return e.destroy()})),this.stopListening()}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,r=u(this._postFixers);try{for(r.s();!(n=r.n()).done;){if(t=(0,n.value)(e))break}}catch(e){r.e(e)}finally{r.f()}}while(t)}}]),e}();an(Or,pr);var Pr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=Ir,a._priority=10,a._id=null,a._clonesGroup=null,a}return m(n,[{key:"getElementsWithSameId",value:function(){if(null===this.id)throw new Gt.b("attribute-element-get-elements-with-same-id-no-id: Cannot get elements with the same id for an attribute element without id.",this);return new Set(this._clonesGroup)}},{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"isSimilar",value:function(e){return null!==this.id||null!==e.id?this.id===e.id:s(C(n.prototype),"isSimilar",this).call(this,e)&&this.priority==e.priority}},{key:"_clone",value:function(e){var t=s(C(n.prototype),"_clone",this).call(this,e);return t._priority=this._priority,t._id=this._id,t}},{key:"priority",get:function(){return this._priority}},{key:"id",get:function(){return this._id}}]),n}(or);function Ir(){if(Dr(this))return null;for(var e=this.parent;e&&e.is("attributeElement");){if(Dr(e)>1)return null;e=e.parent}return!e||Dr(e)>1?null:this.childCount}function Dr(e){return Array.from(e.getChildren()).filter((function(e){return!e.is("uiElement")})).length}Pr.DEFAULT_PRIORITY=10;var jr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=Nr,a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof vn||Array.from(t).length>0))throw new Gt.b("view-emptyelement-cannot-add: Cannot add child nodes to EmptyElement instance.",[this,t])}}]),n}(or);function Nr(){return null}var Rr=navigator.userAgent.toLowerCase(),Lr=function(e){return e.indexOf("macintosh")>-1}(Rr),zr=function(e){return!!e.match(/gecko\/\d+/)}(Rr),Fr=function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(Rr),Br=function(e){return e.indexOf("android")>-1}(Rr),$r={isRegExpUnicodePropertySupported:function(){var e=!1;try{e=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(e){}return e}()},Vr={"⌘":"ctrl","⇧":"shift","⌥":"alt"},Hr={ctrl:"⌘",shift:"⇧",alt:"⌥"},Ur=function(){for(var e={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448},t=65;t<=90;t++){e[String.fromCharCode(t).toLowerCase()]=t}for(var n=48;n<=57;n++)e[n-48]=n;for(var r=112;r<=123;r++)e["f"+(r-111)]=r;return e}();function qr(e){var t;if("string"==typeof e){if(!(t=Ur[e.toLowerCase()]))throw new Gt.b("keyboard-unknown-key: Unknown key name.",null,{key:e})}else t=e.keyCode+(e.altKey?Ur.alt:0)+(e.ctrlKey?Ur.ctrl:0)+(e.shiftKey?Ur.shift:0);return t}function Wr(e){return"string"==typeof e&&(e=Jr(e)),e.map((function(e){return"string"==typeof e?qr(e):e})).reduce((function(e,t){return t+e}),0)}function Yr(e){return Lr?Jr(e).map((function(e){return Hr[e.toLowerCase()]||e})).reduce((function(e,t){return e.slice(-1)in Vr?e+t:e+"+"+t})):e}function Gr(e){return e==Ur.arrowright||e==Ur.arrowleft||e==Ur.arrowup||e==Ur.arrowdown}function Kr(e,t){var n="ltr"===t;switch(e){case Ur.arrowleft:return n?"left":"right";case Ur.arrowright:return n?"right":"left";case Ur.arrowup:return"up";case Ur.arrowdown:return"down"}}function Qr(e,t){var n=Kr(e,t);return"down"===n||"right"===n}function Jr(e){return e.split(/\s*\+\s*/)}var Xr=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=Zr,a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof vn||Array.from(t).length>0))throw new Gt.b("view-uielement-cannot-add: Cannot add child nodes to UIElement instance.",this)}},{key:"render",value:function(e){return this.toDomElement(e)}},{key:"toDomElement",value:function(e){var t,n=e.createElement(this.name),r=u(this.getAttributeKeys());try{for(r.s();!(t=r.n()).done;){var i=t.value;n.setAttribute(i,this.getAttribute(i))}}catch(e){r.e(e)}finally{r.f()}return n}}]),n}(or);function Zr(){return null}var ei=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=ti,a}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof vn||Array.from(t).length>0))throw new Gt.b("view-rawelement-cannot-add: Cannot add child nodes to a RawElement instance.",[this,t])}}]),n}(or);function ti(){return null}var ni=function(){function e(t,n){h(this,e),this.document=t,this._children=[],n&&this._insertChild(0,n)}return m(e,[{key:Symbol.iterator,value:function(){return this._children[Symbol.iterator]()}},{key:"is",value:function(e){return"documentFragment"===e||"view:documentFragment"===e}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,r=0,i=u(function(e,t){return"string"==typeof t?[new gn(e,t)]:(on(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new gn(e,t):t instanceof bn?new gn(e,t.data):t})))}(this.document,t));try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this,this._children.splice(e,0,o),e++,r++}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}},{key:"_fireChange",value:function(e,t){this.fire("change:"+e,t)}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}}]),e}();an(ni,Jt);var ri=function(){function e(t){h(this,e),this.document=t,this._cloneGroups=new Map}return m(e,[{key:"setSelection",value:function(e,t,n){this.document.selection._setTo(e,t,n)}},{key:"setSelectionFocus",value:function(e,t){this.document.selection._setFocus(e,t)}},{key:"createText",value:function(e){return new gn(this.document,e)}},{key:"createAttributeElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Pr(this.document,e,t);return n.priority&&(r._priority=n.priority),n.id&&(r._id=n.id),r}},{key:"createContainerElement",value:function(e,t){return new sr(this.document,e,t)}},{key:"createEditableElement",value:function(e,t){var n=new _r(this.document,e,t);return n._document=this.document,n}},{key:"createEmptyElement",value:function(e,t){return new jr(this.document,e,t)}},{key:"createUIElement",value:function(e,t,n){var r=new Xr(this.document,e,t);return n&&(r.render=n),r}},{key:"createRawElement",value:function(e,t,n){var r=new ei(this.document,e,t);return r.render=n||function(){},r}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){z(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"breakAttributes",value:function(e){return e instanceof Cr?this._breakAttributes(e):this._breakAttributesRange(e)}},{key:"breakContainer",value:function(e){var t=e.parent;if(!t.is("containerElement"))throw new Gt.b("view-writer-break-non-container-element: Trying to break an element which is not a container element.",this.document);if(!t.parent)throw new Gt.b("view-writer-break-root: Trying to break root element.",this.document);if(e.isAtStart)return Cr._createBefore(t);if(!e.isAtEnd){var n=t._clone(!1);this.insert(Cr._createAfter(t),n);var r=new Sr(e,Cr._createAt(t,"end")),i=new Cr(n,0);this.move(r,i)}return Cr._createAfter(t)}},{key:"mergeAttributes",value:function(e){var t=e.offset,n=e.parent;if(n.is("$text"))return e;if(n.is("attributeElement")&&0===n.childCount){var r=n.parent,i=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new Cr(r,i))}var o=n.getChild(t-1),a=n.getChild(t);if(!o||!a)return e;if(o.is("$text")&&a.is("$text"))return ci(o,a);if(o.is("attributeElement")&&a.is("attributeElement")&&o.isSimilar(a)){var s=o.childCount;return o._appendChild(a.getChildren()),a._remove(),this._removeFromClonedElementsGroup(a),this.mergeAttributes(new Cr(o,s))}return e}},{key:"mergeContainers",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;if(!(t&&n&&t.is("containerElement")&&n.is("containerElement")))throw new Gt.b("view-writer-merge-containers-invalid-position: Element before and after given position cannot be merged.",this.document);var r=t.getChild(t.childCount-1),i=r instanceof gn?Cr._createAt(r,"end"):Cr._createAt(t,"end");return this.move(Sr._createIn(n),Cr._createAt(t,"end")),this.remove(Sr._createOn(n)),i}},{key:"insert",value:function(e,t){!function e(t,n){var r,i=u(t);try{var o=function(){var t=r.value;if(!li.some((function(e){return t instanceof e})))throw new Gt.b("view-writer-insert-invalid-node-type: One of the nodes to be inserted is of invalid type.",n);t.is("$text")||e(t.getChildren(),n)};for(i.s();!(r=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}}(t=on(t)?c(t):[t],this.document);var n=ii(e);if(!n)throw new Gt.b("view-writer-invalid-position-container: Position's parent container cannot be found.",this.document);var r,i=this._breakAttributes(e,!0),o=n._insertChild(i.offset,t),a=u(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;this._addToClonedElementsGroup(s)}}catch(e){a.e(e)}finally{a.f()}var l=i.getShiftedBy(o),d=this.mergeAttributes(i);if(0===o)return new Sr(d,d);d.isEqual(i)||l.offset--;var f=this.mergeAttributes(l);return new Sr(d,f)}},{key:"remove",value:function(e){var t=e instanceof Sr?e:Sr._createOn(e);if(di(t,this.document),t.isCollapsed)return new ni(this.document);var n,r=this._breakAttributesRange(t,!0),i=r.start,o=r.end,a=i.parent,s=o.offset-i.offset,c=a._removeChildren(i.offset,s),l=u(c);try{for(l.s();!(n=l.n()).done;){var d=n.value;this._removeFromClonedElementsGroup(d)}}catch(e){l.e(e)}finally{l.f()}var f=this.mergeAttributes(i);return t.start=f,t.end=f.clone(),new ni(this.document,c)}},{key:"clear",value:function(e,t){di(e,this.document);var n,r=u(e.getWalker({direction:"backward",ignoreElementEnd:!0}));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.item,a=void 0;if(o.is("element")&&t.isSimilar(o))a=Sr._createOn(o);else if(!i.nextPosition.isAfter(e.start)&&o.is("$textProxy")){var s=o.getAncestors().find((function(e){return e.is("element")&&t.isSimilar(e)}));s&&(a=Sr._createIn(s))}a&&(a.end.isAfter(e.end)&&(a.end=e.end),a.start.isBefore(e.start)&&(a.start=e.start),this.remove(a))}}catch(e){r.e(e)}finally{r.f()}}},{key:"move",value:function(e,t){var n;if(t.isAfter(e.end)){var r=(t=this._breakAttributes(t,!0)).parent,i=r.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=r.childCount-i}else n=this.remove(e);return this.insert(t,n)}},{key:"wrap",value:function(e,t){if(!(t instanceof Pr))throw new Gt.b("view-writer-wrap-invalid-attribute: DowncastWriter#wrap() must be called with an attribute element.",this.document);if(di(e,this.document),e.isCollapsed){var n=e.start;n.parent.is("element")&&(i=n.parent,!Array.from(i.getChildren()).some((function(e){return!e.is("uiElement")})))&&(n=n.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))),n=this._wrapPosition(n,t);var r=this.document.selection;return r.isCollapsed&&r.getFirstPosition().isEqual(e.start)&&this.setSelection(n),new Sr(n)}return this._wrapRange(e,t);var i}},{key:"unwrap",value:function(e,t){if(!(t instanceof Pr))throw new Gt.b("view-writer-unwrap-invalid-attribute: DowncastWriter#unwrap() must be called with an attribute element.",this.document);if(di(e,this.document),e.isCollapsed)return e;var n=this._breakAttributesRange(e,!0),r=n.start,i=n.end,o=r.parent,a=this._unwrapChildren(o,r.offset,i.offset,t),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var c=this.mergeAttributes(a.end);return new Sr(s,c)}},{key:"rename",value:function(e,t){var n=new sr(this.document,e,t.getAttributes());return this.insert(Cr._createAfter(t),n),this.move(Sr._createIn(t),Cr._createAt(n,0)),this.remove(Sr._createOn(t)),n}},{key:"clearClonedElementsGroup",value:function(e){this._cloneGroups.delete(e)}},{key:"createPositionAt",value:function(e,t){return Cr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Cr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Cr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Sr(e,t)}},{key:"createRangeOn",value:function(e){return Sr._createOn(e)}},{key:"createRangeIn",value:function(e){return Sr._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Mr(e,t,n)}},{key:"_wrapChildren",value:function(e,t,n,r){for(var i=t,o=[];i<n;){var a=e.getChild(i),s=a.is("$text"),c=a.is("attributeElement"),l=a.is("emptyElement"),u=a.is("uiElement"),d=a.is("rawElement");if(c&&this._wrapAttributeElement(r,a))o.push(new Cr(e,i));else if(s||l||u||d||c&&oi(r,a)){var f=r._clone();a._remove(),f._appendChild(a),e._insertChild(i,f),this._addToClonedElementsGroup(f),o.push(new Cr(e,i))}else c&&this._wrapChildren(a,0,a.childCount,r);i++}for(var h=0,p=0,m=o;p<m.length;p++){var v=m[p];(v.offset-=h,v.offset!=t)&&(this.mergeAttributes(v).isEqual(v)||(h++,n--))}return Sr._createFromParentsAndOffsets(e,t,e,n)}},{key:"_unwrapChildren",value:function(e,t,n,r){for(var i=t,o=[];i<n;){var a=e.getChild(i);if(a.is("attributeElement"))if(a.isSimilar(r)){var s=a.getChildren(),c=a.childCount;a._remove(),e._insertChild(i,s),this._removeFromClonedElementsGroup(a),o.push(new Cr(e,i),new Cr(e,i+c)),i+=c,n+=c-1}else this._unwrapAttributeElement(r,a)?(o.push(new Cr(e,i),new Cr(e,i+1)),i++):(this._unwrapChildren(a,0,a.childCount,r),i++);else i++}for(var l=0,u=0,d=o;u<d.length;u++){var f=d[u];(f.offset-=l,f.offset!=t&&f.offset!=n)&&(this.mergeAttributes(f).isEqual(f)||(l++,n--))}return Sr._createFromParentsAndOffsets(e,t,e,n)}},{key:"_wrapRange",value:function(e,t){var n=this._breakAttributesRange(e,!0),r=n.start,i=n.end,o=r.parent,a=this._wrapChildren(o,r.offset,i.offset,t),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var c=this.mergeAttributes(a.end);return new Sr(s,c)}},{key:"_wrapPosition",value:function(e,t){if(t.isSimilar(e.parent))return ai(e.clone());e.parent.is("$text")&&(e=si(e));var n=this.createAttributeElement();n._priority=Number.POSITIVE_INFINITY,n.isSimilar=function(){return!1},e.parent._insertChild(e.offset,n);var r=new Sr(e,e.getShiftedBy(1));this.wrap(r,t);var i=new Cr(n.parent,n.index);n._remove();var o=i.nodeBefore,a=i.nodeAfter;return o instanceof gn&&a instanceof gn?ci(o,a):ai(i)}},{key:"_wrapAttributeElement",value:function(e,t){if(!fi(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;var n,r=u(e.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var i=n.value;if("class"!==i&&"style"!==i&&t.hasAttribute(i)&&t.getAttribute(i)!==e.getAttribute(i))return!1}}catch(e){r.e(e)}finally{r.f()}var o,a=u(e.getStyleNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(t.hasStyle(s)&&t.getStyle(s)!==e.getStyle(s))return!1}}catch(e){a.e(e)}finally{a.f()}var c,l=u(e.getAttributeKeys());try{for(l.s();!(c=l.n()).done;){var d=c.value;"class"!==d&&"style"!==d&&(t.hasAttribute(d)||this.setAttribute(d,e.getAttribute(d),t))}}catch(e){l.e(e)}finally{l.f()}var f,h=u(e.getStyleNames());try{for(h.s();!(f=h.n()).done;){var p=f.value;t.hasStyle(p)||this.setStyle(p,e.getStyle(p),t)}}catch(e){h.e(e)}finally{h.f()}var m,v=u(e.getClassNames());try{for(v.s();!(m=v.n()).done;){var g=m.value;t.hasClass(g)||this.addClass(g,t)}}catch(e){v.e(e)}finally{v.f()}return!0}},{key:"_unwrapAttributeElement",value:function(e,t){if(!fi(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;var n,r=u(e.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var i=n.value;if("class"!==i&&"style"!==i&&(!t.hasAttribute(i)||t.getAttribute(i)!==e.getAttribute(i)))return!1}}catch(e){r.e(e)}finally{r.f()}if(!t.hasClass.apply(t,c(e.getClassNames())))return!1;var o,a=u(e.getStyleNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(!t.hasStyle(s)||t.getStyle(s)!==e.getStyle(s))return!1}}catch(e){a.e(e)}finally{a.f()}var l,d=u(e.getAttributeKeys());try{for(d.s();!(l=d.n()).done;){var f=l.value;"class"!==f&&"style"!==f&&this.removeAttribute(f,t)}}catch(e){d.e(e)}finally{d.f()}return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}},{key:"_breakAttributesRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.start,r=e.end;if(di(e,this.document),e.isCollapsed){var i=this._breakAttributes(e.start,t);return new Sr(i,i)}var o=this._breakAttributes(r,t),a=o.parent.childCount,s=this._breakAttributes(n,t);return o.offset+=o.parent.childCount-a,new Sr(s,o)}},{key:"_breakAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.offset,r=e.parent;if(e.parent.is("emptyElement"))throw new Gt.b("view-writer-cannot-break-empty-element: Cannot break an EmptyElement instance.",this.document);if(e.parent.is("uiElement"))throw new Gt.b("view-writer-cannot-break-ui-element: Cannot break a UIElement instance.",this.document);if(e.parent.is("rawElement"))throw new Gt.b("view-writer-cannot-break-raw-element: Cannot break a RawElement instance.",this.document);if(!t&&r.is("$text")&&ui(r.parent))return e.clone();if(ui(r))return e.clone();if(r.is("$text"))return this._breakAttributes(si(e),t);if(n==r.childCount){var i=new Cr(r.parent,r.index+1);return this._breakAttributes(i,t)}if(0===n){var o=new Cr(r.parent,r.index);return this._breakAttributes(o,t)}var a=r.index+1,s=r._clone();r.parent._insertChild(a,s),this._addToClonedElementsGroup(s);var c=r.childCount-n,l=r._removeChildren(n,c);s._appendChild(l);var u=new Cr(r.parent,a);return this._breakAttributes(u,t)}},{key:"_addToClonedElementsGroup",value:function(e){if(e.root.is("rootElement")){if(e.is("element")){var t,n=u(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._addToClonedElementsGroup(r)}}catch(e){n.e(e)}finally{n.f()}}var i=e.id;if(i){var o=this._cloneGroups.get(i);o||(o=new Set,this._cloneGroups.set(i,o)),o.add(e),e._clonesGroup=o}}}},{key:"_removeFromClonedElementsGroup",value:function(e){if(e.is("element")){var t,n=u(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._removeFromClonedElementsGroup(r)}}catch(e){n.e(e)}finally{n.f()}}var i=e.id;if(i){var o=this._cloneGroups.get(i);o&&o.delete(e)}}}]),e}();function ii(e){for(var t=e.parent;!ui(t);){if(!t)return;t=t.parent}return t}function oi(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function ai(e){var t=e.nodeBefore;if(t&&t.is("$text"))return new Cr(t,t.data.length);var n=e.nodeAfter;return n&&n.is("$text")?new Cr(n,0):e}function si(e){if(e.offset==e.parent.data.length)return new Cr(e.parent.parent,e.parent.index+1);if(0===e.offset)return new Cr(e.parent.parent,e.parent.index);var t=e.parent.data.slice(e.offset);return e.parent._data=e.parent.data.slice(0,e.offset),e.parent.parent._insertChild(e.parent.index+1,new gn(e.root.document,t)),new Cr(e.parent.parent,e.parent.index+1)}function ci(e,t){var n=e.data.length;return e._data+=t.data,t._remove(),new Cr(e,n)}var li=[gn,Pr,sr,jr,ei,Xr];function ui(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function di(e,t){var n=ii(e.start),r=ii(e.end);if(!n||!r||n!==r)throw new Gt.b("view-writer-invalid-range-container: The container of the given range is invalid.",t)}function fi(e,t){return null===e.id&&null===t.id}function hi(e){return"[object Text]"==Object.prototype.toString.call(e)}var pi=function(e){return e.createTextNode(" ")},mi=function(e){var t=e.createElement("br");return t.dataset.ckeFiller=!0,t},vi=function(){for(var e="",t=0;t<7;t++)e+="​";return e}();function gi(e){return hi(e)&&e.data.substr(0,7)===vi}function bi(e){return 7==e.data.length&&gi(e)}function yi(e){return gi(e)?e.data.slice(7):e.data}function _i(e,t){if(t.keyCode==Ur.arrowleft){var n=t.domTarget.ownerDocument.defaultView.getSelection();if(1==n.rangeCount&&n.getRangeAt(0).collapsed){var r=n.getRangeAt(0).startContainer,i=n.getRangeAt(0).startOffset;gi(r)&&i<=7&&n.collapse(r,0)}}}function wi(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=n||function(e,t){return e===t},Array.isArray(e)||(e=Array.prototype.slice.call(e)),Array.isArray(t)||(t=Array.prototype.slice.call(t));var i=function(e,t,n){var r=ki(e,t,n);if(-1===r)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};var i=ki(xi(e,r),xi(t,r),n);return{firstIndex:r,lastIndexOld:e.length-i,lastIndexNew:t.length-i}}(e,t,n);return r?function(e,t){var n=e.firstIndex,r=e.lastIndexOld,i=e.lastIndexNew;if(-1===n)return Array(t).fill("equal");var o=[];return n>0&&(o=o.concat(Array(n).fill("equal"))),i-n>0&&(o=o.concat(Array(i-n).fill("insert"))),r-n>0&&(o=o.concat(Array(r-n).fill("delete"))),i<t&&(o=o.concat(Array(t-i).fill("equal"))),o}(i,t.length):function(e,t){var n=[],r=t.firstIndex,i=t.lastIndexOld,o=t.lastIndexNew;return o-r>0&&n.push({index:r,type:"insert",values:e.slice(r,o)}),i-r>0&&n.push({index:r+(o-r),type:"delete",howMany:i-r}),n}(t,i)}function ki(e,t,n){for(var r=0;r<Math.max(e.length,t.length);r++)if(void 0===e[r]||void 0===t[r]||!n(e[r],t[r]))return r;return-1}function xi(e,t){return e.slice(t).reverse()}function Ci(e,t,n){n=n||function(e,t){return e===t};var r,i,o=e.length,a=t.length;if(o>200||a>200||o+a>300)return Ci.fastDiff(e,t,n,!0);if(a<o){var s=e;e=t,t=s,r="delete",i="insert"}else r="insert",i="delete";var c=e.length,l=t.length,u=l-c,d={},f={};function h(o){var a=(void 0!==f[o-1]?f[o-1]:-1)+1,s=void 0!==f[o+1]?f[o+1]:-1,u=a>s?-1:1;d[o+u]&&(d[o]=d[o+u].slice(0)),d[o]||(d[o]=[]),d[o].push(a>s?r:i);for(var h=Math.max(a,s),p=h-o;p<c&&h<l&&n(e[p],t[h]);)p++,h++,d[o].push("equal");return h}var p,m=0;do{for(p=-m;p<u;p++)f[p]=h(p);for(p=u+m;p>u;p--)f[p]=h(p);f[u]=h(u),m++}while(f[u]!==l);return d[u].slice(1)}function Si(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function Ti(e){var t=e.parentNode;t&&t.removeChild(e)}function Ai(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}Ci.fastDiff=wi;var Mi=function(){function e(t,n){h(this,e),this.domDocuments=new Set,this.domConverter=t,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=n,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}return m(e,[{key:"markToSync",value:function(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e)throw new Gt.b("view-renderer-unknown-type: Unknown type passed to Renderer.markToSync.",this);this.markedChildren.add(t)}}}},{key:"render",value:function(){var e,t,n=u(this.markedChildren);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._updateChildrenMappings(r)}}catch(e){n.e(e)}finally{n.f()}this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent));var i,o=u(this.markedAttributes);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._updateAttrs(a)}}catch(e){o.e(e)}finally{o.f()}var s,c=u(this.markedChildren);try{for(c.s();!(s=c.n()).done;){var l=s.value;this._updateChildren(l,{inlineFillerPosition:e})}}catch(e){c.e(e)}finally{c.f()}var d,f=u(this.markedTexts);try{for(f.s();!(d=f.n()).done;){var h=d.value;!this.markedChildren.has(h.parent)&&this.domConverter.mapViewToDom(h.parent)&&this._updateText(h,{inlineFillerPosition:e})}}catch(e){f.e(e)}finally{f.f()}if(e){var p=this.domConverter.viewPositionToDom(e),m=p.parent.ownerDocument;gi(p.parent)?this._inlineFiller=p.parent:this._inlineFiller=Ei(m,p.parent,p.offset)}else this._inlineFiller=null;this._updateSelection(),this._updateFocus(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}},{key:"_updateChildrenMappings",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n=this.domConverter.mapViewToDom(e).childNodes,r=Array.from(this.domConverter.viewChildrenToDom(e,t.ownerDocument,{withChildren:!1})),i=this._diffNodeLists(n,r),o=this._findReplaceActions(i,n,r);if(-1!==o.indexOf("replace")){var a,s={equal:0,insert:0,delete:0},c=u(o);try{for(c.s();!(a=c.n()).done;){var l=a.value;if("replace"===l){var d=s.equal+s.insert,f=s.equal+s.delete,h=e.getChild(d);!h||h.is("uiElement")||h.is("rawElement")||this._updateElementMappings(h,n[f]),Ti(r[d]),s.equal++}else s[l]++}}catch(e){c.e(e)}finally{c.f()}}}}},{key:"_updateElementMappings",value:function(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}},{key:"_getInlineFillerPosition",value:function(){var e=this.selection.getFirstPosition();return e.parent.is("$text")?Cr._createBefore(this.selection.getFirstPosition().parent):e}},{key:"_isSelectionInInlineFiller",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&hi(t.parent)&&gi(t.parent))}},{key:"_removeInlineFiller",value:function(){var e=this._inlineFiller;if(!gi(e))throw new Gt.b("view-renderer-filler-was-lost: The inline filler node was lost.",this);bi(e)?e.parentNode.removeChild(e):e.data=e.data.substr(7),this._inlineFiller=null}},{key:"_needsInlineFillerAtSelection",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;if(!this.domConverter.mapViewToDom(t.root))return!1;if(!t.is("element"))return!1;if(!function(e){if("false"==e.getAttribute("contenteditable"))return!1;var t=e.findAncestor((function(e){return e.hasAttribute("contenteditable")}));return!t||"true"==t.getAttribute("contenteditable")}(t))return!1;if(n===t.getFillerOffset())return!1;var r=e.nodeBefore,i=e.nodeAfter;return!(r instanceof gn||i instanceof gn)}},{key:"_updateText",value:function(e,t){var n=this.domConverter.findCorrespondingDomText(e),r=this.domConverter.viewToDom(e,n.ownerDocument),i=n.data,o=r.data,a=t.inlineFillerPosition;if(a&&a.parent==e.parent&&a.offset==e.index&&(o=vi+o),i!=o){var s,c=u(wi(i,o));try{for(c.s();!(s=c.n()).done;){var l=s.value;"insert"===l.type?n.insertData(l.index,l.values.join("")):n.deleteData(l.index,l.howMany)}}catch(e){c.e(e)}finally{c.f()}}}},{key:"_updateAttrs",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n,r=Array.from(t.attributes).map((function(e){return e.name})),i=u(e.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var o=n.value;t.setAttribute(o,e.getAttribute(o))}}catch(e){i.e(e)}finally{i.f()}var a,s=u(r);try{for(s.s();!(a=s.n()).done;){var c=a.value;e.hasAttribute(c)||t.removeAttribute(c)}}catch(e){s.e(e)}finally{s.f()}}}},{key:"_updateChildren",value:function(e,t){var n=this.domConverter.mapViewToDom(e);if(n){var r=t.inlineFillerPosition,i=this.domConverter.mapViewToDom(e).childNodes,o=Array.from(this.domConverter.viewChildrenToDom(e,n.ownerDocument,{bind:!0,inlineFillerPosition:r}));r&&r.parent===e&&Ei(n.ownerDocument,o,r.offset);var a,s=this._diffNodeLists(i,o),c=0,l=new Set,d=u(s);try{for(d.s();!(a=d.n()).done;){var f=a.value;"delete"===f?(l.add(i[c]),Ti(i[c])):"equal"===f&&c++}}catch(e){d.e(e)}finally{d.f()}c=0;var h,p=u(s);try{for(p.s();!(h=p.n()).done;){var m=h.value;"insert"===m?(Si(n,c,o[c]),c++):"equal"===m&&(this._markDescendantTextToSync(this.domConverter.domToView(o[c])),c++)}}catch(e){p.e(e)}finally{p.f()}var v,g=u(l);try{for(g.s();!(v=g.n()).done;){var b=v.value;b.parentNode||this.domConverter.unbindDomElement(b)}}catch(e){g.e(e)}finally{g.f()}}}},{key:"_diffNodeLists",value:function(e,t){return Ci(e=function(e,t){var n=Array.from(e);return 0!=n.length&&t?(n[n.length-1]==t&&n.pop(),n):n}(e,this._fakeSelectionContainer),t,Pi.bind(null,this.domConverter))}},{key:"_findReplaceActions",value:function(e,t,n){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;var r,i=[],o=[],a=[],s={equal:0,insert:0,delete:0},c=u(e);try{for(c.s();!(r=c.n()).done;){var l=r.value;"insert"===l?a.push(n[s.equal+s.insert]):"delete"===l?o.push(t[s.equal+s.delete]):((i=i.concat(Ci(o,a,Oi).map((function(e){return"equal"===e?"replace":e})))).push("equal"),o=[],a=[]),s[l]++}}catch(e){c.e(e)}finally{c.f()}return i.concat(Ci(o,a,Oi).map((function(e){return"equal"===e?"replace":e})))}},{key:"_markDescendantTextToSync",value:function(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element")){var t,n=u(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._markDescendantTextToSync(r)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"_updateSelection",value:function(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();var e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):(this._removeFakeSelection(),this._updateDomSelection(e)))}},{key:"_updateFakeSelection",value:function(e){var t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){var t=e.createElement("div");return Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent=" ",t}(t));var n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),this._fakeSelectionNeedsUpdate(e)){n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";var r=t.getSelection(),i=t.createRange();r.removeAllRanges(),i.selectNodeContents(n),r.addRange(i)}}},{key:"_updateDomSelection",value:function(e){var t=e.ownerDocument.defaultView.getSelection();if(this._domSelectionNeedsUpdate(t)){var n=this.domConverter.viewPositionToDom(this.selection.anchor),r=this.domConverter.viewPositionToDom(this.selection.focus);e.focus(),t.collapse(n.parent,n.offset),t.extend(r.parent,r.offset),zr&&function(e,t){var n=e.parent;if(n.nodeType==Node.ELEMENT_NODE&&e.offset==n.childNodes.length-1){var r=n.childNodes[e.offset];r&&"BR"==r.tagName&&t.addRange(t.getRangeAt(0))}}(r,t)}}},{key:"_domSelectionNeedsUpdate",value:function(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;var t=e&&this.domConverter.domSelectionToView(e);return!(t&&this.selection.isEqual(t)||!this.selection.isCollapsed&&this.selection.isSimilar(t))}},{key:"_fakeSelectionNeedsUpdate",value:function(e){var t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}},{key:"_removeDomSelection",value:function(){var e,t=u(this.domDocuments);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.getSelection().rangeCount){var r=n.activeElement,i=this.domConverter.mapDomToView(r);r&&i&&n.getSelection().removeAllRanges()}}}catch(e){t.e(e)}finally{t.f()}}},{key:"_removeFakeSelection",value:function(){var e=this._fakeSelectionContainer;e&&e.remove()}},{key:"_updateFocus",value:function(){if(this.isFocused){var e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}]),e}();function Ei(e,t,n){var r=t instanceof Array?t:t.childNodes,i=r[n];if(hi(i))return i.data=vi+i.data,i;var o=e.createTextNode(vi);return Array.isArray(t)?r.splice(n,0,o):Si(t,n,o),o}function Oi(e,t){return Ai(e)&&Ai(t)&&!hi(e)&&!hi(t)&&e.nodeType!==Node.COMMENT_NODE&&t.nodeType!==Node.COMMENT_NODE&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function Pi(e,t,n){return t===n||(hi(t)&&hi(n)?t.data===n.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(n)))}an(Mi,pr);var Ii={window:window,document:document};function Di(e){for(var t=0;e.previousSibling;)e=e.previousSibling,t++;return t}function ji(e){for(var t=[];e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}var Ni=mi(document),Ri=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e),this.document=t,this.blockFillerMode=n.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6","li","dd","dt","figcaption","td","th"],this._blockFiller="br"==this.blockFillerMode?mi:pi,this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}return m(e,[{key:"bindFakeSelection",value:function(e,t){this._fakeSelectionMapping.set(e,new Mr(t))}},{key:"fakeSelectionToView",value:function(e){return this._fakeSelectionMapping.get(e)}},{key:"bindElements",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"unbindDomElement",value:function(e){var t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);var n,r=u(e.childNodes);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.unbindDomElement(i)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"bindDocumentFragments",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"viewToDom",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.is("$text")){var i=this._processDataFromViewText(e);return t.createTextNode(i)}if(this.mapViewToDom(e))return this.mapViewToDom(e);if(e.is("documentFragment"))n=t.createDocumentFragment(),r.bind&&this.bindDocumentFragments(n,e);else{if(e.is("uiElement"))return n=e.render(t),r.bind&&this.bindElements(n,e),n;n=e.hasAttribute("xmlns")?t.createElementNS(e.getAttribute("xmlns"),e.name):t.createElement(e.name),e.is("rawElement")&&e.render(n),r.bind&&this.bindElements(n,e);var o,a=u(e.getAttributeKeys());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.setAttribute(s,e.getAttribute(s))}}catch(e){a.e(e)}finally{a.f()}}if(r.withChildren||void 0===r.withChildren){var c,l=u(this.viewChildrenToDom(e,t,r));try{for(l.s();!(c=l.n()).done;){var d=c.value;n.appendChild(d)}}catch(e){l.e(e)}finally{l.f()}}return n}},{key:"viewChildrenToDom",value:o.a.mark((function e(t,n){var r,i,a,s,c,l,d=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=d.length>2&&void 0!==d[2]?d[2]:{},i=t.getFillerOffset&&t.getFillerOffset(),a=0,s=u(t.getChildren()),e.prev=4,s.s();case 6:if((c=s.n()).done){e.next=17;break}if(l=c.value,e.t0=i===a,!e.t0){e.next=12;break}return e.next=12,this._blockFiller(n);case 12:return e.next=14,this.viewToDom(l,n,r);case 14:a++;case 15:e.next=6;break;case 17:e.next=22;break;case 19:e.prev=19,e.t1=e.catch(4),s.e(e.t1);case 22:return e.prev=22,s.f(),e.finish(22);case 25:if(e.t2=i===a,!e.t2){e.next=29;break}return e.next=29,this._blockFiller(n);case 29:case"end":return e.stop()}}),e,this,[[4,19,22,25]])}))},{key:"viewRangeToDom",value:function(e){var t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),r=document.createRange();return r.setStart(t.parent,t.offset),r.setEnd(n.parent,n.offset),r}},{key:"viewPositionToDom",value:function(e){var t,n,r,i=e.parent;if(i.is("$text")){var o=this.findCorrespondingDomText(i);if(!o)return null;var a=e.offset;return gi(o)&&(a+=7),{parent:o,offset:a}}if(0===e.offset){if(!(t=this.mapViewToDom(i)))return null;r=t.childNodes[0]}else{var s=e.nodeBefore;if(!(n=s.is("$text")?this.findCorrespondingDomText(s):this.mapViewToDom(e.nodeBefore)))return null;t=n.parentNode,r=n.nextSibling}return hi(r)&&gi(r)?{parent:r,offset:7}:{parent:t,offset:n?Di(n)+1:0}}},{key:"domToView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(e,this.blockFillerMode))return null;var n,r=this.getHostViewElement(e,this._domToViewMapping);if(r)return r;if(hi(e)){if(bi(e))return null;var i=this._processDataFromDomText(e);return""===i?null:new gn(this.document,i)}if(this.isComment(e))return null;if(this.mapDomToView(e))return this.mapDomToView(e);if(this.isDocumentFragment(e))n=new ni(this.document),t.bind&&this.bindDocumentFragments(e,n);else{var o=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();n=new or(this.document,o),t.bind&&this.bindElements(e,n);for(var a=e.attributes,s=a.length-1;s>=0;s--)n._setAttribute(a[s].name,a[s].value)}if(t.withChildren||void 0===t.withChildren){var c,l=u(this.domChildrenToView(e,t));try{for(l.s();!(c=l.n()).done;){var d=c.value;n._appendChild(d)}}catch(e){l.e(e)}finally{l.f()}}return n}},{key:"domChildrenToView",value:o.a.mark((function e(t){var n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=s.length>1&&void 0!==s[1]?s[1]:{},r=0;case 2:if(!(r<t.childNodes.length)){e.next=11;break}if(i=t.childNodes[r],a=this.domToView(i,n),e.t0=null!==a,!e.t0){e.next=8;break}return e.next=8,a;case 8:r++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)}))},{key:"domSelectionToView",value:function(e){if(1===e.rangeCount){var t=e.getRangeAt(0).startContainer;hi(t)&&(t=t.parentNode);var n=this.fakeSelectionToView(t);if(n)return n}for(var r=this.isDomSelectionBackward(e),i=[],o=0;o<e.rangeCount;o++){var a=e.getRangeAt(o),s=this.domRangeToView(a);s&&i.push(s)}return new Mr(i,{backward:r})}},{key:"domRangeToView",value:function(e){var t=this.domPositionToView(e.startContainer,e.startOffset),n=this.domPositionToView(e.endContainer,e.endOffset);return t&&n?new Sr(t,n):null}},{key:"domPositionToView",value:function(e,t){if(this.isBlockFiller(e,this.blockFillerMode))return this.domPositionToView(e.parentNode,Di(e));var n=this.mapDomToView(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return Cr._createBefore(n);if(hi(e)){if(bi(e))return this.domPositionToView(e.parentNode,Di(e));var r=this.findCorrespondingViewText(e),i=t;return r?(gi(e)&&(i=(i-=7)<0?0:i),new Cr(r,i)):null}if(0===t){var o=this.mapDomToView(e);if(o)return new Cr(o,0)}else{var a=e.childNodes[t-1],s=hi(a)?this.findCorrespondingViewText(a):this.mapDomToView(a);if(s&&s.parent)return new Cr(s.parent,s.index+1)}return null}},{key:"mapDomToView",value:function(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}},{key:"findCorrespondingViewText",value:function(e){if(bi(e))return null;var t=this.getHostViewElement(e);if(t)return t;var n=e.previousSibling;if(n){if(!this.isElement(n))return null;var r=this.mapDomToView(n);if(r)return r.nextSibling instanceof gn?r.nextSibling:null}else{var i=this.mapDomToView(e.parentNode);if(i){var o=i.getChild(0);return o instanceof gn?o:null}}return null}},{key:"mapViewToDom",value:function(e){return this._viewToDomMapping.get(e)}},{key:"findCorrespondingDomText",value:function(e){var t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}},{key:"focus",value:function(e){var t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){var n=Ii.window,r=n.scrollX,i=n.scrollY,o=[];zi(t,(function(e){var t=e.scrollLeft,n=e.scrollTop;o.push([t,n])})),t.focus(),zi(t,(function(e){var t=l(o.shift(),2),n=t[0],r=t[1];e.scrollLeft=n,e.scrollTop=r})),Ii.window.scrollTo(r,i)}}},{key:"isElement",value:function(e){return e&&e.nodeType==Node.ELEMENT_NODE}},{key:"isDocumentFragment",value:function(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}},{key:"isComment",value:function(e){return e&&e.nodeType==Node.COMMENT_NODE}},{key:"isBlockFiller",value:function(e){return"br"==this.blockFillerMode?e.isEqualNode(Ni):!("BR"!==e.tagName||!Fi(e,this.blockElements)||1!==e.parentNode.childNodes.length)||function(e,t){return hi(e)&&" "==e.data&&Fi(e,t)&&1===e.parentNode.childNodes.length}(e,this.blockElements)}},{key:"isDomSelectionBackward",value:function(e){if(e.isCollapsed)return!1;var t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);var n=t.collapsed;return t.detach(),n}},{key:"getHostViewElement",value:function(e){var t=ji(e);for(t.pop();t.length;){var n=t.pop(),r=this._domToViewMapping.get(n);if(r&&(r.is("uiElement")||r.is("rawElement")))return r}return null}},{key:"isDomSelectionCorrect",value:function(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}},{key:"_isDomSelectionPositionCorrect",value:function(e,t){if(hi(e)&&gi(e)&&t<7)return!1;if(this.isElement(e)&&gi(e.childNodes[t]))return!1;var n=this.mapDomToView(e);return!n||!n.is("uiElement")&&!n.is("rawElement")}},{key:"_processDataFromViewText",value:function(e){var t=this,n=e.data;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return n;if(" "==n.charAt(0)){var r=this._getTouchingViewTextNode(e,!1);(!r||!this._nodeEndsWithSpace(r))&&r||(n=" "+n.substr(1))}if(" "==n.charAt(n.length-1)){var i=this._getTouchingViewTextNode(e,!0);" "!=n.charAt(n.length-2)&&i&&" "!=i.data.charAt(0)||(n=n.substr(0,n.length-1)+" ")}return n.replace(/ {2}/g,"  ")}},{key:"_nodeEndsWithSpace",value:function(e){var t=this;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return!1;var n=this._processDataFromViewText(e);return" "==n.charAt(n.length-1)}},{key:"_processDataFromDomText",value:function(e){var t=e.data;if(Li(e,this.preElements))return yi(e);t=t.replace(/[ \n\t\r]{1,}/g," ");var n=this._getTouchingInlineDomNode(e,!1),r=this._getTouchingInlineDomNode(e,!0),i=this._checkShouldLeftTrimDomText(n),o=this._checkShouldRightTrimDomText(e,r);return i&&(t=t.replace(/^ /,"")),o&&(t=t.replace(/ $/,"")),t=(t=yi(new Text(t))).replace(/ \u00A0/g,"  "),(/( |\u00A0)\u00A0$/.test(t)||!r||r.data&&" "==r.data.charAt(0))&&(t=t.replace(/\u00A0$/," ")),i&&(t=t.replace(/^\u00A0/," ")),t}},{key:"_checkShouldLeftTrimDomText",value:function(e){return!e||!!Bt(e)||/[^\S\u00A0]/.test(e.data.charAt(e.data.length-1))}},{key:"_checkShouldRightTrimDomText",value:function(e,t){return!t&&!gi(e)}},{key:"_getTouchingViewTextNode",value:function(e,t){var n,r=u(new xr({startPosition:t?Cr._createAfter(e):Cr._createBefore(e),direction:t?"forward":"backward"}));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.item.is("containerElement"))return null;if(i.item.is("element","br"))return null;if(i.item.is("$textProxy"))return i.item}}catch(e){r.e(e)}finally{r.f()}return null}},{key:"_getTouchingInlineDomNode",value:function(e,t){if(!e.parentNode)return null;var n=t?"nextNode":"previousNode",r=e.ownerDocument,i=ji(e)[0],o=r.createTreeWalker(i,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){return hi(e)||"BR"==e.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});o.currentNode=e;var a=o[n]();if(null!==a){var s=function(e,t){for(var n=ji(e),r=ji(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}(e,a);if(s&&!Li(e,this.blockElements,s)&&!Li(a,this.blockElements,s))return a}return null}}]),e}();function Li(e,t,n){var r=ji(e);return n&&(r=r.slice(r.indexOf(n)+1)),r.some((function(e){return e.tagName&&t.includes(e.tagName.toLowerCase())}))}function zi(e,t){for(;e&&e!=Ii.document;)t(e),e=e.parentNode}function Fi(e,t){var n=e.parentNode;return n&&n.tagName&&t.includes(n.tagName.toLowerCase())}function Bi(e){var t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}var $i=lr({},Jt,{listenTo:function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(Ai(e)||Bi(e)){var o=this._getProxyEmitter(e)||new Vi(e);o.attach.apply(o,r),e=o}(t=Jt.listenTo).call.apply(t,[this,e].concat(r))},stopListening:function(e,t,n){if(Ai(e)||Bi(e)){var r=this._getProxyEmitter(e);if(!r)return;e=r}Jt.stopListening.call(this,e,t,n),e instanceof Vi&&e.detach(t)},_getProxyEmitter:function(e){return t=this,n=Hi(e),t[Kt]&&t[Kt][n]?t[Kt][n].emitter:null;var t,n}}),Vi=function e(t){h(this,e),Xt(this,Hi(t)),this._domNode=t};function Hi(e){return e["data-ck-expando"]||(e["data-ck-expando"]=Wt())}lr(Vi.prototype,Jt,{attach:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._domListeners||!this._domListeners[e]){var r={capture:!!n.useCapture,passive:!!n.usePassive},i=this._createDomListener(e,r);this._domNode.addEventListener(e,i,r),this._domListeners||(this._domListeners={}),this._domListeners[e]=i}},detach:function(e){var t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()},_createDomListener:function(e,t){var n=this,r=function(t){n.fire(e,t)};return r.removeListener=function(){n._domNode.removeEventListener(e,r,t),delete n._domListeners[e]},r}});var Ui=function(){function e(t){h(this,e),this.view=t,this.document=t.document,this.isEnabled=!1}return m(e,[{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"destroy",value:function(){this.disable(),this.stopListening()}}]),e}();an(Ui,$i);function qi(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new he;++t<n;)this.add(e[t])}qi.prototype.add=qi.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},qi.prototype.has=function(e){return this.__data__.has(e)};var Wi=qi,Yi=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Gi=function(e,t){return e.has(t)},Ki=function(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var u=-1,d=!0,f=2&n?new Wi:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var h=e[u],p=t[u];if(r)var m=a?r(p,h,u,t,e,o):r(h,p,u,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!Yi(t,(function(e,t){if(!Gi(f,t)&&(h===e||i(h,e,n,r,o)))return f.push(t)}))){d=!1;break}}else if(h!==p&&!i(h,p,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d},Qi=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Ji=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Xi=p?p.prototype:void 0,Zi=Xi?Xi.valueOf:void 0,eo=Object.prototype.hasOwnProperty,to="[object Arguments]",no="[object Array]",ro="[object Object]",io=Object.prototype.hasOwnProperty,oo=function(e,t,n,r,i,o){var a=Te(e),s=Te(t),c=a?no:yt(e),l=s?no:yt(t),u=(c=c==to?ro:c)==ro,d=(l=l==to?ro:l)==ro,f=c==l;if(f&&Object(Ae.a)(e)){if(!Object(Ae.a)(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new me),a||Ne(e)?Ki(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new wt(e),new wt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return F(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Qi;case"[object Set]":var c=1&r;if(s||(s=Ji),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var u=Ki(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(Zi)return Zi.call(e)==Zi.call(t)}return!1}(e,t,c,n,r,i,o);if(!(1&n)){var h=u&&io.call(e,"__wrapped__"),p=d&&io.call(t,"__wrapped__");if(h||p){var m=h?e.value():e,v=p?t.value():t;return o||(o=new me),i(m,v,n,r,o)}}return!!f&&(o||(o=new me),function(e,t,n,r,i,o){var a=1&n,s=nt(e),c=s.length;if(c!=nt(t).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in t:eo.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var h=a;++l<c;){var p=e[u=s[l]],m=t[u];if(r)var v=a?r(m,p,u,t,e,o):r(p,m,u,e,t,o);if(!(void 0===v?p===m||i(p,m,n,r,o):v)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var g=e.constructor,b=t.constructor;g==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o))},ao=function e(t,n,r,i,o){return t===n||(null==t||null==n||!I(t)&&!I(n)?t!=t&&n!=n:oo(t,n,r,i,e,o))},so=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?ao(e,t,void 0,n):!!r},co=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},r.domConverter=e.domConverter,r.renderer=e._renderer,r._domElements=[],r._mutationObserver=new window.MutationObserver(r._onMutations.bind(y(r))),r}return m(n,[{key:"flush",value:function(){this._onMutations(this._mutationObserver.takeRecords())}},{key:"observe",value:function(e){this._domElements.push(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}},{key:"enable",value:function(){s(C(n.prototype),"enable",this).call(this);var e,t=u(this._domElements);try{for(t.s();!(e=t.n()).done;){var r=e.value;this._mutationObserver.observe(r,this._config)}}catch(e){t.e(e)}finally{t.f()}}},{key:"disable",value:function(){s(C(n.prototype),"disable",this).call(this),this._mutationObserver.disconnect()}},{key:"destroy",value:function(){s(C(n.prototype),"destroy",this).call(this),this._mutationObserver.disconnect()}},{key:"_onMutations",value:function(e){if(0!==e.length){var t,n=this.domConverter,r=new Map,i=new Set,o=u(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;if("childList"===a.type){var s=n.mapDomToView(a.target);if(s&&(s.is("uiElement")||s.is("rawElement")))continue;s&&!this._isBogusBrMutation(a)&&i.add(s)}}}catch(e){o.e(e)}finally{o.f()}var c,l=u(e);try{for(l.s();!(c=l.n()).done;){var d=c.value,f=n.mapDomToView(d.target);if((!f||!f.is("uiElement")&&!f.is("rawElement"))&&"characterData"===d.type){var h=n.findCorrespondingViewText(d.target);h&&!i.has(h.parent)?r.set(h,{type:"text",oldText:h.data,newText:yi(d.target),node:h}):!h&&gi(d.target)&&i.add(n.mapDomToView(d.target.parentNode))}}}catch(e){l.e(e)}finally{l.f()}var p,m=[],v=u(r.values());try{for(v.s();!(p=v.n()).done;){var g=p.value;this.renderer.markToSync("text",g.node),m.push(g)}}catch(e){v.e(e)}finally{v.f()}var b,y=u(i);try{for(y.s();!(b=y.n()).done;){var _=b.value,w=n.mapViewToDom(_),k=Array.from(_.getChildren()),x=Array.from(n.domChildrenToView(w,{withChildren:!1}));so(k,x,M)||(this.renderer.markToSync("children",_),m.push({type:"children",oldChildren:k,newChildren:x,node:_}))}}catch(e){y.e(e)}finally{y.f()}var C=e[0].target.ownerDocument.getSelection(),S=null;if(C&&C.anchorNode){var T=n.domPositionToView(C.anchorNode,C.anchorOffset),A=n.domPositionToView(C.focusNode,C.focusOffset);T&&A&&(S=new Mr(T)).setFocus(A)}m.length&&(this.document.fire("mutations",m,S),this.view.forceRender())}function M(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}}},{key:"_isBogusBrMutation",value:function(e){var t=null;return null===e.nextSibling&&0===e.removedNodes.length&&1==e.addedNodes.length&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}]),n}(Ui),lo=function(){function e(t,n,r){h(this,e),this.view=t,this.document=t.document,this.domEvent=n,this.domTarget=n.target,lr(this,r)}return m(e,[{key:"preventDefault",value:function(){this.domEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.domEvent.stopPropagation()}},{key:"target",get:function(){return this.view.domConverter.mapDomToView(this.domTarget)}}]),e}(),uo=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).useCapture=!1,r}return m(n,[{key:"observe",value:function(e){var t=this;("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((function(n){t.listenTo(e,n,(function(e,n){t.isEnabled&&t.onDomEvent(n)}),{useCapture:t.useCapture})}))}},{key:"fire",value:function(e,t,n){this.isEnabled&&this.document.fire(e,new lo(this.view,t,n))}}]),n}(Ui),fo=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType=["keydown","keyup"],r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e,{keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey||e.metaKey,shiftKey:e.shiftKey,get keystroke(){return qr(this)}})}}]),n}(uo),ho=function(){return f.a.Date.now()},po=/^\s+|\s+$/g,mo=/^[-+]0x[0-9a-f]+$/i,vo=/^0b[01]+$/i,go=/^0o[0-7]+$/i,bo=parseInt,yo=function(e){if("number"==typeof e)return e;if(kn(e))return NaN;if(q(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=q(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(po,"");var n=vo.test(e);return n||go.test(e)?bo(e.slice(2),n?2:8):mo.test(e)?NaN:+e},_o=Math.max,wo=Math.min,ko=function(e,t,n){var r,i,o,a,s,c,l=0,u=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,o=i;return r=i=void 0,l=t,a=e.apply(o,n)}function p(e){return l=e,s=setTimeout(v,t),u?h(e):a}function m(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=o}function v(){var e=ho();if(m(e))return g(e);s=setTimeout(v,function(e){var n=t-(e-c);return d?wo(n,o-(e-l)):n}(e))}function g(e){return s=void 0,f&&r?h(e):(r=i=void 0,a)}function b(){var e=ho(),n=m(e);if(r=arguments,i=this,c=e,n){if(void 0===s)return p(c);if(d)return clearTimeout(s),s=setTimeout(v,t),h(c)}return void 0===s&&(s=setTimeout(v,t)),a}return t=yo(t)||0,q(n)&&(u=!!n.leading,o=(d="maxWait"in n)?_o(yo(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),b.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=c=i=s=void 0},b.flush=function(){return void 0===s?a:g(ho())},b},xo=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._fireSelectionChangeDoneDebounced=ko((function(e){return r.document.fire("selectionChangeDone",e)}),200),r}return m(n,[{key:"observe",value:function(){var e=this,t=this.document;t.on("keydown",(function(n,r){var i;t.selection.isFake&&((i=r.keyCode)==Ur.arrowright||i==Ur.arrowleft||i==Ur.arrowup||i==Ur.arrowdown)&&e.isEnabled&&(r.preventDefault(),e._handleSelectionMove(r.keyCode))}),{priority:"lowest"})}},{key:"destroy",value:function(){s(C(n.prototype),"destroy",this).call(this),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionMove",value:function(e){var t=this.document.selection,n=new Mr(t.getRanges(),{backward:t.isBackward,fake:!1});e!=Ur.arrowleft&&e!=Ur.arrowup||n.setTo(n.getFirstPosition()),e!=Ur.arrowright&&e!=Ur.arrowdown||n.setTo(n.getLastPosition());var r={oldSelection:t,newSelection:n,domSelection:null};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}]),n}(Ui),Co=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).mutationObserver=e.getObserver(co),r.selection=r.document.selection,r.domConverter=e.domConverter,r._documents=new WeakSet,r._fireSelectionChangeDoneDebounced=ko((function(e){return r.document.fire("selectionChangeDone",e)}),200),r._clearInfiniteLoopInterval=setInterval((function(){return r._clearInfiniteLoop()}),1e3),r._loopbackCounter=0,r}return m(n,[{key:"observe",value:function(e){var t=this,n=e.ownerDocument;this._documents.has(n)||(this.listenTo(n,"selectionchange",(function(){t._handleSelectionChange(n)})),this._documents.add(n))}},{key:"destroy",value:function(){s(C(n.prototype),"destroy",this).call(this),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionChange",value:function(e){if(this.isEnabled){this.mutationObserver.flush();var t=e.defaultView.getSelection(),n=this.domConverter.domSelectionToView(t);if(0!=n.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(n)&&this.domConverter.isDomSelectionCorrect(t)||++this._loopbackCounter>60))if(this.selection.isSimilar(n))this.view.forceRender();else{var r={oldSelection:this.selection,newSelection:n,domSelection:t};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}else this.view.hasDomSelection=!1}}},{key:"_clearInfiniteLoop",value:function(){this._loopbackCounter=0}}]),n}(Ui),So=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).domEventType=["focus","blur"],r.useCapture=!0;var i=r.document;return i.on("focus",(function(){i.isFocused=!0,r._renderTimeoutId=setTimeout((function(){return e.forceRender()}),50)})),i.on("blur",(function(t,n){var r=i.selection.editableElement;null!==r&&r!==n.target||(i.isFocused=!1,e.forceRender())})),r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}},{key:"destroy",value:function(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),s(C(n.prototype),"destroy",this).call(this)}}]),n}(uo),To=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).domEventType=["compositionstart","compositionupdate","compositionend"];var i=r.document;return i.on("compositionstart",(function(){i.isComposing=!0})),i.on("compositionend",(function(){i.isComposing=!1})),r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo),Ao=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType=["beforeinput"],r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo);function Mo(e){return"[object Range]"==Object.prototype.toString.apply(e)}function Eo(e){var t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}var Oo=["top","right","bottom","left","width","height"],Po=function(){function e(t){h(this,e);var n=Mo(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),Bt(t)||n)if(n){var r=e.getDomRangeRects(t);Io(this,e.getBoundingRect(r))}else Io(this,t.getBoundingClientRect());else if(Bi(t)){var i=t.innerWidth,o=t.innerHeight;Io(this,{top:0,right:i,bottom:o,left:0,width:i,height:o})}else Io(this,t)}return m(e,[{key:"clone",value:function(){return new e(this)}},{key:"moveTo",value:function(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}},{key:"moveBy",value:function(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}},{key:"getIntersection",value:function(t){var n={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0?null:new e(n)}},{key:"getIntersectionArea",value:function(e){var t=this.getIntersection(e);return t?t.getArea():0}},{key:"getArea",value:function(){return this.width*this.height}},{key:"getVisible",value:function(){var t=this._source,n=this.clone();if(!Do(t))for(var r=t.parentNode||t.commonAncestorContainer;r&&!Do(r);){var i=new e(r),o=n.getIntersection(i);if(!o)return null;o.getArea()<n.getArea()&&(n=o),r=r.parentNode}return n}},{key:"isEqual",value:function(e){var t,n=u(Oo);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(this[r]!==e[r])return!1}}catch(e){n.e(e)}finally{n.f()}return!0}},{key:"contains",value:function(e){var t=this.getIntersection(e);return!(!t||!t.isEqual(e))}},{key:"excludeScrollbarsAndBorders",value:function(){var e,t,n,r=this._source;if(Bi(r))e=r.innerWidth-r.document.documentElement.clientWidth,t=r.innerHeight-r.document.documentElement.clientHeight,n=r.getComputedStyle(r.document.documentElement).direction;else{var i=Eo(this._source);e=r.offsetWidth-r.clientWidth-i.left-i.right,t=r.offsetHeight-r.clientHeight-i.top-i.bottom,n=r.ownerDocument.defaultView.getComputedStyle(r).direction,this.left+=i.left,this.top+=i.top,this.right-=i.right,this.bottom-=i.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,"ltr"===n?this.right-=e:this.left+=e,this.height-=t,this.bottom-=t,this}}],[{key:"getDomRangeRects",value:function(t){var n=[],r=Array.from(t.getClientRects());if(r.length){var i,o=u(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;n.push(new e(a))}}catch(e){o.e(e)}finally{o.f()}}else{var s=t.startContainer;hi(s)&&(s=s.parentNode);var c=new e(s.getBoundingClientRect());c.right=c.left,c.width=0,n.push(c)}return n}},{key:"getBoundingRect",value:function(t){var n,r={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY},i=0,o=u(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;i++,r.left=Math.min(r.left,a.left),r.top=Math.min(r.top,a.top),r.right=Math.max(r.right,a.right),r.bottom=Math.max(r.bottom,a.bottom)}}catch(e){o.e(e)}finally{o.f()}return 0==i?null:(r.width=r.right-r.left,r.height=r.bottom-r.top,new e(r))}}]),e}();function Io(e,t){var n,r=u(Oo);try{for(r.s();!(n=r.n()).done;){var i=n.value;e[i]=t[i]}}catch(e){r.e(e)}finally{r.f()}}function Do(e){return!!Bt(e)&&e===e.ownerDocument.body}function jo(e){for(var t=e.target,n=e.viewportOffset,r=void 0===n?0:n,i=$o(t),o=i,a=null;o;){Ro(Vo(o==i?t:a),(function(){return Ho(t,o)}));var s=Ho(t,o);if(No(o,s,r),o.parent!=o){if(a=o.frameElement,o=o.parent,!a)return}else o=null}}function No(e,t,n){var r=t.clone().moveBy(0,n),i=t.clone().moveBy(0,-n),o=new Po(e).excludeScrollbarsAndBorders();if(![i,r].every((function(e){return o.contains(e)}))){var a=e.scrollX,s=e.scrollY;zo(i,o)?s-=o.top-t.top+n:Lo(r,o)&&(s+=t.bottom-o.bottom+n),Fo(t,o)?a-=o.left-t.left+n:Bo(t,o)&&(a+=t.right-o.right+n),e.scrollTo(a,s)}}function Ro(e,t){for(var n,r,i=$o(e);e!=i.document.body;)r=t(),(n=new Po(e).excludeScrollbarsAndBorders()).contains(r)||(zo(r,n)?e.scrollTop-=n.top-r.top:Lo(r,n)&&(e.scrollTop+=r.bottom-n.bottom),Fo(r,n)?e.scrollLeft-=n.left-r.left:Bo(r,n)&&(e.scrollLeft+=r.right-n.right)),e=e.parentNode}function Lo(e,t){return e.bottom>t.bottom}function zo(e,t){return e.top<t.top}function Fo(e,t){return e.left<t.left}function Bo(e,t){return e.right>t.right}function $o(e){return Mo(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function Vo(e){if(Mo(e)){var t=e.commonAncestorContainer;return hi(t)&&(t=t.parentNode),t}return e.parentNode}function Ho(e,t){var n=$o(e),r=new Po(e);if(n===t)return r;for(var i=n;i!=t;){var o=i.frameElement,a=new Po(o).excludeScrollbarsAndBorders();r.moveBy(a.left,a.top),i=i.parent}return r}Object.assign({},{scrollViewportToShowTarget:jo,scrollAncestorsToShowTarget:function(e){Ro(Vo(e),(function(){return new Po(e)}))}});var Uo=function(){function e(t){var n=this;h(this,e),this.document=new Or(t),this.domConverter=new Ri(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Mi(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new ri(this.document),this.addObserver(co),this.addObserver(Co),this.addObserver(So),this.addObserver(fo),this.addObserver(xo),this.addObserver(To),Br&&this.addObserver(Ao),this.document.on("keydown",_i),function(e){e.document.on("keydown",(function(t,n){return function(e,t,n){if(t.keyCode==Ur.arrowright){var r=t.domTarget.ownerDocument.defaultView.getSelection(),i=1==r.rangeCount&&r.getRangeAt(0).collapsed;if(i||t.shiftKey){var o=r.focusNode,a=r.focusOffset,s=n.domPositionToView(o,a);if(null===s)return;var c=!1,l=s.getLastMatchingPosition((function(e){return e.item.is("uiElement")&&(c=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))}));if(c){var u=n.viewPositionToDom(l);i?r.collapse(u.parent,u.offset):r.extend(u.parent,u.offset)}}}}(0,n,e.domConverter)}))}(this),this.on("render",(function(){n._render(),n.document.fire("layoutChanged"),n._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(function(){n._hasChangedSinceTheLastRendering=!0}))}return m(e,[{key:"attachDomRoot",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",r=this.document.getRoot(n);r._name=e.tagName.toLowerCase();for(var i={},o=0,a=Array.from(e.attributes);o<a.length;o++){var s=a[o],c=s.name,l=s.value;i[c]=l,"class"===c?this._writer.addClass(l.split(" "),r):this._writer.setAttribute(c,l,r)}this._initialDomRootAttributes.set(e,i);var d=function(){t._writer.setAttribute("contenteditable",!r.isReadOnly,r),r.isReadOnly?t._writer.addClass("ck-read-only",r):t._writer.removeClass("ck-read-only",r)};d(),this.domRoots.set(n,e),this.domConverter.bindElements(e,r),this._renderer.markToSync("children",r),this._renderer.markToSync("attributes",r),this._renderer.domDocuments.add(e.ownerDocument),r.on("change:children",(function(e,n){return t._renderer.markToSync("children",n)})),r.on("change:attributes",(function(e,n){return t._renderer.markToSync("attributes",n)})),r.on("change:text",(function(e,n){return t._renderer.markToSync("text",n)})),r.on("change:isReadOnly",(function(){return t.change(d)})),r.on("change",(function(){t._hasChangedSinceTheLastRendering=!0}));var f,h=u(this._observers.values());try{for(h.s();!(f=h.n()).done;){var p=f.value;p.observe(e,n)}}catch(e){h.e(e)}finally{h.f()}}},{key:"detachDomRoot",value:function(e){var t=this.domRoots.get(e);Array.from(t.attributes).forEach((function(e){var n=e.name;return t.removeAttribute(n)}));var n=this._initialDomRootAttributes.get(t);for(var r in n)t.setAttribute(r,n[r]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t)}},{key:"getDomRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(e)}},{key:"addObserver",value:function(e){var t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);var n,r=u(this.domRoots);try{for(r.s();!(n=r.n()).done;){var i=l(n.value,2),o=i[0],a=i[1];t.observe(a,o)}}catch(e){r.e(e)}finally{r.f()}return t.enable(),t}},{key:"getObserver",value:function(e){return this._observers.get(e)}},{key:"disableObservers",value:function(){var e,t=u(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.disable()}}catch(e){t.e(e)}finally{t.f()}}},{key:"enableObservers",value:function(){var e,t=u(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.enable()}}catch(e){t.e(e)}finally{t.f()}}},{key:"scrollToTheSelection",value:function(){var e=this.document.selection.getFirstRange();e&&jo({target:this.domConverter.viewRangeToDom(e),viewportOffset:20})}},{key:"focus",value:function(){if(!this.document.isFocused){var e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}},{key:"change",value:function(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new Gt.b("cannot-change-view-tree: Attempting to make changes to the view when it is in an incorrect state: rendering or post-fixers are in progress. This may cause some unexpected behavior and inconsistency between the DOM and the view.",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;var t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){Gt.b.rethrowUnexpectedError(e,this)}}},{key:"forceRender",value:function(){this._hasChangedSinceTheLastRendering=!0,this.change((function(){}))}},{key:"destroy",value:function(){var e,t=u(this._observers.values());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}this.document.destroy(),this.stopListening()}},{key:"createPositionAt",value:function(e,t){return Cr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Cr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Cr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Sr(e,t)}},{key:"createRangeOn",value:function(e){return Sr._createOn(e)}},{key:"createRangeIn",value:function(e){return Sr._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Mr(e,t,n)}},{key:"_disableRendering",value:function(e){this._renderingDisabled=e,0==e&&this.change((function(){}))}},{key:"_render",value:function(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}]),e}();an(Uo,pr);var qo=function(){function e(t){h(this,e),this.parent=null,this._attrs=yn(t)}return m(e,[{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var e=[],t=this;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),r=e.getAncestors(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),r=pn(t,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return t[r]<n[r]}}},{key:"isAfter",value:function(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"toJSON",value:function(){var e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce((function(e,t){return e[t[0]]=t[1],e}),{})),e}},{key:"is",value:function(e){return"node"===e||"model:node"===e}},{key:"_clone",value:function(){return new e(this._attrs)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_setAttribute",value:function(e,t){this._attrs.set(e,t)}},{key:"_setAttributesTo",value:function(e){this._attrs=yn(e)}},{key:"_removeAttribute",value:function(e){return this._attrs.delete(e)}},{key:"_clearAttributes",value:function(){this._attrs.clear()}},{key:"index",get:function(){var e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new Gt.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return e}},{key:"startOffset",get:function(){var e;if(!this.parent)return null;if(null===(e=this.parent.getChildStartOffset(this)))throw new Gt.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return e}},{key:"offsetSize",get:function(){return 1}},{key:"endOffset",get:function(){return this.parent?this.startOffset+this.offsetSize:null}},{key:"nextSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e+1)||null}},{key:"previousSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e-1)||null}},{key:"root",get:function(){for(var e=this;e.parent;)e=e.parent;return e}}]),e}(),Wo=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,r))._data=e||"",i}return m(n,[{key:"is",value:function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e}},{key:"toJSON",value:function(){var e=s(C(n.prototype),"toJSON",this).call(this);return e.data=this.data,e}},{key:"_clone",value:function(){return new n(this.data,this.getAttributes())}},{key:"offsetSize",get:function(){return this.data.length}},{key:"data",get:function(){return this._data}}],[{key:"fromJSON",value:function(e){return new n(e.data,e.attributes)}}]),n}(qo),Yo=function(){function e(t,n,r){if(h(this,e),this.textNode=t,n<0||n>t.offsetSize)throw new Gt.b("model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(r<0||n+r>t.offsetSize)throw new Gt.b("model-textproxy-wrong-length: Given length value is incorrect.",this);this.data=t.data.substring(n,n+r),this.offsetInText=n}return m(e,[{key:"is",value:function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e}},{key:"getPath",value:function(){var e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"hasAttribute",value:function(e){return this.textNode.hasAttribute(e)}},{key:"getAttribute",value:function(e){return this.textNode.getAttribute(e)}},{key:"getAttributes",value:function(){return this.textNode.getAttributes()}},{key:"getAttributeKeys",value:function(){return this.textNode.getAttributeKeys()}},{key:"startOffset",get:function(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}},{key:"offsetSize",get:function(){return this.data.length}},{key:"endOffset",get:function(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}},{key:"isPartial",get:function(){return this.offsetSize!==this.textNode.offsetSize}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}}]),e}(),Go=function(){function e(t){h(this,e),this._nodes=[],t&&this._insertNodes(0,t)}return m(e,[{key:Symbol.iterator,value:function(){return this._nodes[Symbol.iterator]()}},{key:"getNode",value:function(e){return this._nodes[e]||null}},{key:"getNodeIndex",value:function(e){var t=this._nodes.indexOf(e);return-1==t?null:t}},{key:"getNodeStartOffset",value:function(e){var t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce((function(e,t){return e+t.offsetSize}),0)}},{key:"indexToOffset",value:function(e){if(e==this._nodes.length)return this.maxOffset;var t=this._nodes[e];if(!t)throw new Gt.b("model-nodelist-index-out-of-bounds: Given index cannot be found in the node list.",this);return this.getNodeStartOffset(t)}},{key:"offsetToIndex",value:function(e){var t,n=0,r=u(this._nodes);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(e>=n&&e<n+i.offsetSize)return this.getNodeIndex(i);n+=i.offsetSize}}catch(e){r.e(e)}finally{r.f()}if(n!=e)throw new Gt.b("model-nodelist-offset-out-of-bounds: Given offset cannot be found in the node list.",this,{offset:e,nodeList:this});return this.length}},{key:"_insertNodes",value:function(e,t){var n,r,i=u(t);try{for(i.s();!(r=i.n()).done;){if(!(r.value instanceof qo))throw new Gt.b("model-nodelist-insertNodes-not-node: Trying to insert an object which is not a Node instance.",this)}}catch(e){i.e(e)}finally{i.f()}(n=this._nodes).splice.apply(n,[e,0].concat(c(t)))}},{key:"_removeNodes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(e,t)}},{key:"toJSON",value:function(){return this._nodes.map((function(e){return e.toJSON()}))}},{key:"length",get:function(){return this._nodes.length}},{key:"maxOffset",get:function(){return this._nodes.reduce((function(e,t){return e+t.offsetSize}),0)}}]),e}(),Ko=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,r)).name=e,o._children=new Go,i&&o._insertChild(0,i),o}return m(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"getNodeByPath",value:function(e){var t,n=this,r=u(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n=n.getChild(n.offsetToIndex(i))}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"findAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1},n=t.includeSelf?this:this.parent;n;){if(n.name===e)return n;n=n.parent}return null}},{key:"toJSON",value:function(){var e=s(C(n.prototype),"toJSON",this).call(this);if(e.name=this.name,this._children.length>0){e.children=[];var t,r=u(this._children);try{for(r.s();!(t=r.n()).done;){var i=t.value;e.children.push(i.toJSON())}}catch(e){r.e(e)}finally{r.f()}}return e}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?Array.from(this._children).map((function(e){return e._clone(!0)})):null;return new n(this.name,this.getAttributes(),t)}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,r=function(e){return"string"==typeof e?[new Wo(e)]:(on(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new Wo(e):e instanceof Yo?new Wo(e.data,e.getAttributes()):e})))}(t),i=u(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(e){i.e(e)}finally{i.f()}this._children._insertNodes(e,r)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this._children._removeNodes(e,n),i=u(r);try{for(i.s();!(t=i.n()).done;){var o=t.value;o.parent=null}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}}],[{key:"fromJSON",value:function(e){var t=null;if(e.children){t=[];var r,i=u(e.children);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.name?t.push(n.fromJSON(o)):t.push(Wo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}}return new n(e.name,e.attributes,t)}}]),n}(qo),Qo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(h(this,e),!t.boundaries&&!t.startPosition)throw new Gt.b("model-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);var n=t.direction||"forward";if("forward"!=n&&"backward"!=n)throw new Gt.b("model-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",t,{direction:n});this.direction=n,this.boundaries=t.boundaries||null,t.startPosition?this.position=t.startPosition.clone():this.position=Xo._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}return m(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,r,i;do{var o;r=this.position,i=this._visitedParent,t=(o=this.next()).done,n=o.value}while(!t&&e(n));t||(this.position=r,this._visitedParent=i)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&t.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};var r=t.parent,i=Zo(t,r),o=i||ea(t,r,i);if(o instanceof Ko)return this.shallow?t.offset++:(t.path.push(0),this._visitedParent=o),this.position=t,Jo("elementStart",o,e,t,1);if(o instanceof Wo){var a;if(this.singleCharacters)a=1;else{var s=o.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<s&&(s=this.boundaries.end.offset),a=s-t.offset}var c=t.offset-o.startOffset,l=new Yo(o,c,a);return t.offset+=a,this.position=t,Jo("text",l,e,t,a)}return t.path.pop(),t.offset++,this.position=t,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():Jo("elementEnd",n,e,t)}},{key:"_previous",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===t.offset)return{done:!0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};var r=t.parent,i=Zo(t,r),o=i||ta(t,r,i);if(o instanceof Ko)return t.offset--,this.shallow?(this.position=t,Jo("elementStart",o,e,t,1)):(t.path.push(o.maxOffset),this.position=t,this._visitedParent=o,this.ignoreElementEnd?this._previous():Jo("elementEnd",o,e,t));if(o instanceof Wo){var a;if(this.singleCharacters)a=1;else{var s=o.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>s&&(s=this.boundaries.start.offset),a=t.offset-s}var c=t.offset-o.startOffset,l=new Yo(o,c-a,a);return t.offset-=a,this.position=t,Jo("text",l,e,t,a)}return t.path.pop(),this.position=t,this._visitedParent=n.parent,Jo("elementStart",n,e,t,1)}}]),e}();function Jo(e,t,n,r,i){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:i}}}var Xo=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(h(this,e),!t.is("element")&&!t.is("documentFragment"))throw new Gt.b("model-position-root-invalid: Position root invalid.",t);if(!(n instanceof Array)||0===n.length)throw new Gt.b("model-position-path-incorrect-format: Position path must be an array with at least one item.",t,{path:n});t.is("rootElement")?n=n.slice():(n=[].concat(c(t.getPath()),c(n)),t=t.root),this.root=t,this.path=n,this.stickiness=r}return m(e,[{key:"compareWith",value:function(e){if(this.root!=e.root)return"different";var t=pn(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new Qo(t);return n.skip(e),n.position}},{key:"getParentPath",value:function(){return this.path.slice(0,-1)}},{key:"getAncestors",value:function(){var e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}},{key:"findAncestor",value:function(e){var t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}},{key:"getCommonPath",value:function(e){if(this.root!=e.root)return[];var t=pn(this.path,e.path),n="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,n)}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),r=0;t[r]==n[r]&&t[r];)r++;return 0===r?null:t[r-1]}},{key:"getShiftedBy",value:function(e){var t=this.clone(),n=t.offset+e;return t.offset=n<0?0:n,t}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isEqual",value:function(e){return"same"==this.compareWith(e)}},{key:"isTouching",value:function(t){var n=null,r=null;switch(this.compareWith(t)){case"same":return!0;case"before":n=e._createAt(this),r=e._createAt(t);break;case"after":n=e._createAt(t),r=e._createAt(this);break;default:return!1}for(var i=n.parent;n.path.length+r.path.length;){if(n.isEqual(r))return!0;if(n.path.length>r.path.length){if(n.offset!==i.maxOffset)return!1;n.path=n.path.slice(0,-1),i=i.parent,n.offset++}else{if(0!==r.offset)return!1;r.path=r.path.slice(0,-1)}}}},{key:"is",value:function(e){return"position"===e||"model:position"===e}},{key:"hasSameParentAs",value:function(e){return this.root===e.root&&"same"==pn(this.getParentPath(),e.getParentPath())}},{key:"getTransformedByOperation",value:function(t){var n;switch(t.type){case"insert":n=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":n=this._getTransformedByMoveOperation(t);break;case"split":n=this._getTransformedBySplitOperation(t);break;case"merge":n=this._getTransformedByMergeOperation(t);break;default:n=e._createAt(this)}return n}},{key:"_getTransformedByInsertOperation",value:function(e){return this._getTransformedByInsertion(e.position,e.howMany)}},{key:"_getTransformedByMoveOperation",value:function(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}},{key:"_getTransformedBySplitOperation",value:function(e){var t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}},{key:"_getTransformedByMergeOperation",value:function(t){var n,r=t.movedRange;return r.containsPosition(this)||r.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?e._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}},{key:"_getTransformedByDeletion",value:function(t,n){var r=e._createAt(this);if(this.root!=t.root)return r;if("same"==pn(t.getParentPath(),this.getParentPath())){if(t.offset<this.offset){if(t.offset+n>this.offset)return null;r.offset-=n}}else if("prefix"==pn(t.getParentPath(),this.getParentPath())){var i=t.path.length-1;if(t.offset<=this.path[i]){if(t.offset+n>this.path[i])return null;r.path[i]-=n}}return r}},{key:"_getTransformedByInsertion",value:function(t,n){var r=e._createAt(this);if(this.root!=t.root)return r;if("same"==pn(t.getParentPath(),this.getParentPath()))(t.offset<this.offset||t.offset==this.offset&&"toPrevious"!=this.stickiness)&&(r.offset+=n);else if("prefix"==pn(t.getParentPath(),this.getParentPath())){var i=t.path.length-1;t.offset<=this.path[i]&&(r.path[i]+=n)}return r}},{key:"_getTransformedByMove",value:function(t,n,r){if(n=n._getTransformedByDeletion(t,r),t.isEqual(n))return e._createAt(this);var i=this._getTransformedByDeletion(t,r);return null===i||t.isEqual(this)&&"toNext"==this.stickiness||t.getShiftedBy(r).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(t,n):i._getTransformedByInsertion(n,r)}},{key:"_getCombined",value:function(t,n){var r=t.path.length-1,i=e._createAt(n);return i.stickiness=this.stickiness,i.offset=i.offset+this.path[r]-t.offset,i.path=[].concat(c(i.path),c(this.path.slice(r+1))),i}},{key:"toJSON",value:function(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}},{key:"clone",value:function(){return new this.constructor(this.root,this.path,this.stickiness)}},{key:"offset",get:function(){return this.path[this.path.length-1]},set:function(e){this.path[this.path.length-1]=e}},{key:"parent",get:function(){for(var e=this.root,t=0;t<this.path.length-1;t++)if(!(e=e.getChild(e.offsetToIndex(this.path[t]))))throw new Gt.b("model-position-path-incorrect: The position's path is incorrect.",this,{position:this});if(e.is("$text"))throw new Gt.b("model-position-path-incorrect: The position's path is incorrect.",this,{position:this});return e}},{key:"index",get:function(){return this.parent.offsetToIndex(this.offset)}},{key:"textNode",get:function(){return Zo(this,this.parent)}},{key:"nodeAfter",get:function(){var e=this.parent;return ea(this,e,Zo(this,e))}},{key:"nodeBefore",get:function(){var e=this.parent;return ta(this,e,Zo(this,e))}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){return this.offset==this.parent.maxOffset}}],[{key:"_createAt",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(t instanceof e)return new e(t.root,t.path,t.stickiness);var i=t;if("end"==n)n=i.maxOffset;else{if("before"==n)return this._createBefore(i,r);if("after"==n)return this._createAfter(i,r);if(0!==n&&!n)throw new Gt.b("model-createPositionAt-offset-required: Model#createPositionAt() requires the offset when the first parameter is a model item.",[this,t])}if(!i.is("element")&&!i.is("documentFragment"))throw new Gt.b("model-position-parent-incorrect: Position parent have to be a element or document fragment.",[this,t]);var o=i.getPath();return o.push(n),new this(i.root,o,r)}},{key:"_createAfter",value:function(e,t){if(!e.parent)throw new Gt.b("model-position-after-root: You cannot make a position after root.",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}},{key:"_createBefore",value:function(e,t){if(!e.parent)throw new Gt.b("model-position-before-root: You cannot make a position before root.",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}},{key:"fromJSON",value:function(t,n){if("$graveyard"===t.root){var r=new e(n.graveyard,t.path);return r.stickiness=t.stickiness,r}if(!n.getRoot(t.root))throw new Gt.b("model-position-fromjson-no-root: Cannot create position for document. Root with specified name does not exist.",n,{rootName:t.root});return new e(n.getRoot(t.root),t.path,t.stickiness)}}]),e}();function Zo(e,t){var n=t.getChild(t.offsetToIndex(e.offset));return n&&n.is("$text")&&n.startOffset<e.offset?n:null}function ea(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset))}function ta(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset)-1)}var na=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;h(this,e),this.start=Xo._createAt(t),this.end=n?Xo._createAt(n):Xo._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}return m(e,[{key:Symbol.iterator,value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(new Qo({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),r=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&r}},{key:"containsItem",value:function(e){var t=Xo._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}},{key:"is",value:function(e){return"range"===e||"model:range"===e}},{key:"isEqual",value:function(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(new e(this.start,this.end)),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,r=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(r=t.end),new e(n,r)}return null}},{key:"getJoined",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.isIntersecting(t);if(r||(r=this.start.isBefore(t.start)?n?this.end.isTouching(t.start):this.end.isEqual(t.start):n?t.end.isTouching(this.start):t.end.isEqual(this.start)),!r)return null;var i=this.start,o=this.end;return t.start.isBefore(i)&&(i=t.start),t.end.isAfter(o)&&(o=t.end),new e(i,o)}},{key:"getMinimalFlatRanges",value:function(){for(var t=[],n=this.start.getCommonPath(this.end).length,r=Xo._createAt(this.start),i=r.parent;r.path.length>n+1;){var o=i.maxOffset-r.offset;0!==o&&t.push(new e(r,r.getShiftedBy(o))),r.path=r.path.slice(0,-1),r.offset++,i=i.parent}for(;r.path.length<=this.end.path.length;){var a=this.end.path[r.path.length-1],s=a-r.offset;0!==s&&t.push(new e(r,r.getShiftedBy(s))),r.offset=a,r.path.push(0)}return t}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new Qo(e)}},{key:"getItems",value:o.a.mark((function e(){var t,n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,t.ignoreElementEnd=!0,n=new Qo(t),r=u(n),e.prev=4,r.s();case 6:if((i=r.n()).done){e.next=12;break}return a=i.value,e.next=10,a.item;case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),r.e(e.t0);case 17:return e.prev=17,r.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))},{key:"getPositions",value:o.a.mark((function e(){var t,n,r,i,a,s=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,n=new Qo(t),e.next=5,n.position;case 5:r=u(n),e.prev=6,r.s();case 8:if((i=r.n()).done){e.next=14;break}return a=i.value,e.next=12,a.nextPosition;case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(6),r.e(e.t0);case 19:return e.prev=19,r.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[6,16,19,22]])}))},{key:"getTransformedByOperation",value:function(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new e(this.start,this.end)]}},{key:"getTransformedByOperations",value:function(t){var n,r=[new e(this.start,this.end)],i=u(t);try{for(i.s();!(n=i.n()).done;)for(var o=n.value,a=0;a<r.length;a++){var s=r[a].getTransformedByOperation(o);r.splice.apply(r,[a,1].concat(c(s))),a+=s.length-1}}catch(e){i.e(e)}finally{i.f()}for(var l=0;l<r.length;l++)for(var d=r[l],f=l+1;f<r.length;f++){var h=r[f];(d.containsRange(h)||h.containsRange(d)||d.isEqual(h))&&r.splice(f,1)}return r}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}},{key:"toJSON",value:function(){return{start:this.start.toJSON(),end:this.end.toJSON()}}},{key:"clone",value:function(){return new this.constructor(this.start,this.end)}},{key:"_getTransformedByInsertOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(e.position,e.howMany,t)}},{key:"_getTransformedByMoveOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.sourcePosition,r=e.howMany,i=e.targetPosition;return this._getTransformedByMove(n,i,r,t)}},{key:"_getTransformedBySplitOperation",value:function(t){var n=this.start._getTransformedBySplitOperation(t),r=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(r=this.end.getShiftedBy(1)),n.root!=r.root&&(r=this.end.getShiftedBy(-1)),new e(n,r)}},{key:"_getTransformedByMergeOperation",value:function(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new e(this.start);var n=this.start._getTransformedByMergeOperation(t),r=this.end._getTransformedByMergeOperation(t);return n.root!=r.root&&(r=this.end.getShiftedBy(-1)),n.isAfter(r)?(t.sourcePosition.isBefore(t.targetPosition)?(n=Xo._createAt(r)).offset=0:(t.deletionPosition.isEqual(n)||(r=t.deletionPosition),n=t.targetPosition),new e(n,r)):new e(n,r)}},{key:"_getTransformedByInsertion",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(r&&this.containsPosition(t))return[new e(this.start,t),new e(t.getShiftedBy(n),this.end._getTransformedByInsertion(t,n))];var i=new e(this.start,this.end);return i.start=i.start._getTransformedByInsertion(t,n),i.end=i.end._getTransformedByInsertion(t,n),[i]}},{key:"_getTransformedByMove",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){var o=this.start._getTransformedByMove(t,n,r);return[new e(o)]}var a,s=e._createFromPositionAndShift(t,r),c=n._getTransformedByDeletion(t,r);if(this.containsPosition(n)&&!i&&(s.containsPosition(this.start)||s.containsPosition(this.end))){var l=this.start._getTransformedByMove(t,n,r),u=this.end._getTransformedByMove(t,n,r);return[new e(l,u)]}var d=this.getDifference(s),f=null,h=this.getIntersection(s);if(1==d.length?f=new e(d[0].start._getTransformedByDeletion(t,r),d[0].end._getTransformedByDeletion(t,r)):2==d.length&&(f=new e(this.start,this.end._getTransformedByDeletion(t,r))),a=f?f._getTransformedByInsertion(c,r,null!==h||i):[],h){var p=new e(h.start._getCombined(s.start,c),h.end._getCombined(s.start,c));2==a.length?a.splice(1,0,p):a.push(p)}return a}},{key:"_getTransformedByDeletion",value:function(t,n){var r=this.start._getTransformedByDeletion(t,n),i=this.end._getTransformedByDeletion(t,n);return null==r&&null==i?null:(null==r&&(r=t),null==i&&(i=t),new e(r,i))}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return"same"==pn(this.start.getParentPath(),this.end.getParentPath())}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromPositionAndShift",value:function(e,t){var n=e,r=e.getShiftedBy(t);return t>0?new this(n,r):new this(r,n)}},{key:"_createIn",value:function(e){return new this(Xo._createAt(e,0),Xo._createAt(e,e.maxOffset))}},{key:"_createOn",value:function(e){return this._createFromPositionAndShift(Xo._createBefore(e),e.offsetSize)}},{key:"_createFromRanges",value:function(e){if(0===e.length)throw new Gt.b("range-create-from-ranges-empty-array: At least one range has to be passed.",null);if(1==e.length)return e[0].clone();var t=e[0];e.sort((function(e,t){return e.start.isAfter(t.start)?1:-1}));var n=e.indexOf(t),r=new this(t.start,t.end);if(n>0)for(var i=n-1;e[i].end.isEqual(r.start);i++)r.start=Xo._createAt(e[i].start);for(var o=n+1;o<e.length&&e[o].start.isEqual(r.end);o++)r.end=Xo._createAt(e[o].end);return r}},{key:"fromJSON",value:function(e,t){return new this(Xo.fromJSON(e.start,t),Xo.fromJSON(e.end,t))}}]),e}(),ra=function(){function e(){var t=this;h(this,e),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(function(e,n){if(!n.viewPosition){var r=t._modelToViewMapping.get(n.modelPosition.parent);n.viewPosition=t.findPositionIn(r,n.modelPosition.offset)}}),{priority:"low"}),this.on("viewToModelPosition",(function(e,n){if(!n.modelPosition){var r=t.findMappedViewAncestor(n.viewPosition),i=t._viewToModelMapping.get(r),o=t._toModelOffset(n.viewPosition.parent,n.viewPosition.offset,r);n.modelPosition=Xo._createAt(i,o)}}),{priority:"low"})}return m(e,[{key:"bindElements",value:function(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}},{key:"unbindViewElement",value:function(e){var t=this.toModelElement(e);if(this._viewToModelMapping.delete(e),this._elementToMarkerNames.has(e)){var n,r=u(this._elementToMarkerNames.get(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;this._unboundMarkerNames.add(i)}}catch(e){r.e(e)}finally{r.f()}}this._modelToViewMapping.get(t)==e&&this._modelToViewMapping.delete(t)}},{key:"unbindModelElement",value:function(e){var t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}},{key:"bindElementToMarker",value:function(e,t){var n=this._markerNameToElements.get(t)||new Set;n.add(e);var r=this._elementToMarkerNames.get(e)||new Set;r.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,r)}},{key:"unbindElementFromMarkerName",value:function(e,t){var n=this._markerNameToElements.get(t);n&&(n.delete(e),0==n.size&&this._markerNameToElements.delete(t));var r=this._elementToMarkerNames.get(e);r&&(r.delete(t),0==r.size&&this._elementToMarkerNames.delete(e))}},{key:"flushUnboundMarkerNames",value:function(){var e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}},{key:"clearBindings",value:function(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}},{key:"toModelElement",value:function(e){return this._viewToModelMapping.get(e)}},{key:"toViewElement",value:function(e){return this._modelToViewMapping.get(e)}},{key:"toModelRange",value:function(e){return new na(this.toModelPosition(e.start),this.toModelPosition(e.end))}},{key:"toViewRange",value:function(e){return new Sr(this.toViewPosition(e.start),this.toViewPosition(e.end))}},{key:"toModelPosition",value:function(e){var t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}},{key:"toViewPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isPhantom:!1},n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}},{key:"markerNameToElements",value:function(e){var t=this._markerNameToElements.get(e);if(!t)return null;var n,r=new Set,i=u(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.is("attributeElement")){var a,s=u(o.getElementsWithSameId());try{for(s.s();!(a=s.n()).done;){var c=a.value;r.add(c)}}catch(e){s.e(e)}finally{s.f()}}else r.add(o)}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"registerViewToModelLength",value:function(e,t){this._viewToModelLengthCallbacks.set(e,t)}},{key:"findMappedViewAncestor",value:function(e){for(var t=e.parent;!this._viewToModelMapping.has(t);)t=t.parent;return t}},{key:"_toModelOffset",value:function(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;for(var r=0,i=0;i<t;i++)r+=this.getModelLength(e.getChild(i));return r}},{key:"getModelLength",value:function(e){if(this._viewToModelLengthCallbacks.get(e.name))return this._viewToModelLengthCallbacks.get(e.name)(e);if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;var t,n=0,r=u(e.getChildren());try{for(r.s();!(t=r.n()).done;){var i=t.value;n+=this.getModelLength(i)}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"findPositionIn",value:function(e,t){var n,r=0,i=0,o=0;if(e.is("$text"))return new Cr(e,t);for(;i<t;)n=e.getChild(o),i+=r=this.getModelLength(n),o++;return i==t?this._moveViewPositionToTextNode(new Cr(e,o)):this.findPositionIn(n,t-(i-r))}},{key:"_moveViewPositionToTextNode",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;return t instanceof gn?new Cr(t,t.data.length):n instanceof gn?new Cr(n,0):e}}]),e}();an(ra,Jt);var ia=function(){function e(){h(this,e),this._consumable=new Map,this._textProxyRegistry=new Map}return m(e,[{key:"add",value:function(e,t){t=oa(t),e instanceof Yo&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}},{key:"consume",value:function(e,t){return t=oa(t),e instanceof Yo&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}},{key:"test",value:function(e,t){t=oa(t),e instanceof Yo&&(e=this._getSymbolForTextProxy(e));var n=this._consumable.get(e);if(void 0===n)return null;var r=n.get(t);return void 0===r?null:r}},{key:"revert",value:function(e,t){t=oa(t),e instanceof Yo&&(e=this._getSymbolForTextProxy(e));var n=this.test(e,t);return!1===n?(this._consumable.get(e).set(t,!0),!0):!0!==n&&null}},{key:"_getSymbolForTextProxy",value:function(e){var t=null,n=this._textProxyRegistry.get(e.startOffset);if(n){var r=n.get(e.endOffset);r&&(t=r.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e.startOffset,e.endOffset,e.parent)),t}},{key:"_addSymbolForTextProxy",value:function(e,t,n){var r,i,o=Symbol("textProxySymbol");return(r=this._textProxyRegistry.get(e))||(r=new Map,this._textProxyRegistry.set(e,r)),(i=r.get(t))||(i=new Map,r.set(t,i)),i.set(n,o),o}}]),e}();function oa(e){var t=e.split(":");return t.length>1?t[0]+":"+t[1]:t[0]}var aa=function(){function e(t){h(this,e),this.conversionApi=Object.assign({dispatcher:this},t)}return m(e,[{key:"convertChanges",value:function(e,t,n){var r,i=u(e.getMarkersToRemove());try{for(i.s();!(r=i.n()).done;){var o=r.value;this.convertMarkerRemove(o.name,o.range,n)}}catch(e){i.e(e)}finally{i.f()}var a,s=u(e.getChanges());try{for(s.s();!(a=s.n()).done;){var c=a.value;"insert"==c.type?this.convertInsert(na._createFromPositionAndShift(c.position,c.length),n):"remove"==c.type?this.convertRemove(c.position,c.length,c.name,n):this.convertAttribute(c.range,c.attributeKey,c.attributeOldValue,c.attributeNewValue,n)}}catch(e){s.e(e)}finally{s.f()}var l,d=u(this.conversionApi.mapper.flushUnboundMarkerNames());try{for(d.s();!(l=d.n()).done;){var f=l.value,h=t.get(f).getRange();this.convertMarkerRemove(f,h,n),this.convertMarkerAdd(f,h,n)}}catch(e){d.e(e)}finally{d.f()}var p,m=u(e.getMarkersToAdd());try{for(m.s();!(p=m.n()).done;){var v=p.value;this.convertMarkerAdd(v.name,v.range,n)}}catch(e){m.e(e)}finally{m.f()}}},{key:"convertInsert",value:function(e,t){this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(e);var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.item,a={item:o,range:na._createFromPositionAndShift(i.previousPosition,i.length)};this._testAndFire("insert",a);var s,c=u(o.getAttributeKeys());try{for(c.s();!(s=c.n()).done;){var l=s.value;a.attributeKey=l,a.attributeOldValue=null,a.attributeNewValue=o.getAttribute(l),this._testAndFire("attribute:"+l,a)}}catch(e){c.e(e)}finally{c.f()}}}catch(e){r.e(e)}finally{r.f()}this._clearConversionApi()}},{key:"convertRemove",value:function(e,t,n,r){this.conversionApi.writer=r,this.fire("remove:"+n,{position:e,length:t},this.conversionApi),this._clearConversionApi()}},{key:"convertAttribute",value:function(e,t,n,r,i){this.conversionApi.writer=i,this.conversionApi.consumable=this._createConsumableForRange(e,"attribute:"+t);var o,a=u(e);try{for(a.s();!(o=a.n()).done;){var s=o.value,c={item:s.item,range:na._createFromPositionAndShift(s.previousPosition,s.length),attributeKey:t,attributeOldValue:n,attributeNewValue:r};this._testAndFire("attribute:"+t,c)}}catch(e){a.e(e)}finally{a.f()}this._clearConversionApi()}},{key:"convertSelection",value:function(e,t,n){var r=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(e,r),this.fire("selection",{selection:e},this.conversionApi),e.isCollapsed){var i,o=u(r);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.getRange();if(sa(e.getFirstPosition(),a,this.conversionApi.mapper)){var c={item:e,markerName:a.name,markerRange:s};this.conversionApi.consumable.test(e,"addMarker:"+a.name)&&this.fire("addMarker:"+a.name,c,this.conversionApi)}}}catch(e){o.e(e)}finally{o.f()}var l,d=u(e.getAttributeKeys());try{for(d.s();!(l=d.n()).done;){var f=l.value,h={item:e,range:e.getFirstRange(),attributeKey:f,attributeOldValue:null,attributeNewValue:e.getAttribute(f)};this.conversionApi.consumable.test(e,"attribute:"+h.attributeKey)&&this.fire("attribute:"+h.attributeKey+":$text",h,this.conversionApi)}}catch(e){d.e(e)}finally{d.f()}this._clearConversionApi()}}},{key:"convertMarkerAdd",value:function(e,t,n){if(t.root.document&&"$graveyard"!=t.root.rootName){this.conversionApi.writer=n;var r="addMarker:"+e,i=new ia;if(i.add(t,r),this.conversionApi.consumable=i,this.fire(r,{markerName:e,markerRange:t},this.conversionApi),i.test(t,r)){this.conversionApi.consumable=this._createConsumableForRange(t,r);var o,a=u(t.getItems());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(this.conversionApi.consumable.test(s,r)){var c={item:s,range:na._createOn(s),markerName:e,markerRange:t};this.fire(r,c,this.conversionApi)}}}catch(e){a.e(e)}finally{a.f()}this._clearConversionApi()}}}},{key:"convertMarkerRemove",value:function(e,t,n){t.root.document&&"$graveyard"!=t.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+e,{markerName:e,markerRange:t},this.conversionApi),this._clearConversionApi())}},{key:"_createInsertConsumable",value:function(e){var t,n=new ia,r=u(e);try{for(r.s();!(t=r.n()).done;){var i=t.value.item;n.add(i,"insert");var o,a=u(i.getAttributeKeys());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.add(i,"attribute:"+s)}}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"_createConsumableForRange",value:function(e,t){var n,r=new ia,i=u(e.getItems());try{for(i.s();!(n=i.n()).done;){var o=n.value;r.add(o,t)}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_createSelectionConsumable",value:function(e,t){var n=new ia;n.add(e,"selection");var r,i=u(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;n.add(e,"addMarker:"+o.name)}}catch(e){i.e(e)}finally{i.f()}var a,s=u(e.getAttributeKeys());try{for(s.s();!(a=s.n()).done;){var c=a.value;n.add(e,"attribute:"+c)}}catch(e){s.e(e)}finally{s.f()}return n}},{key:"_testAndFire",value:function(e,t){if(this.conversionApi.consumable.test(t.item,e)){var n=t.item.name||"$text";this.fire(e+":"+n,t,this.conversionApi)}}},{key:"_clearConversionApi",value:function(){delete this.conversionApi.writer,delete this.conversionApi.consumable}}]),e}();function sa(e,t,n){var r=t.getRange(),i=Array.from(e.getAncestors());return i.shift(),i.reverse(),!i.some((function(e){if(r.containsItem(e))return!!n.toViewElement(e).getCustomProperty("addHighlight")}))}an(aa,Jt);var ca=function(){function e(t,n,r){h(this,e),this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,t&&this.setTo(t,n,r)}return m(e,[{key:"isEqual",value:function(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=u(this._ranges);try{for(n.s();!(t=n.n()).done;){var r,i=t.value,o=!1,a=u(e._ranges);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(i.isEqual(s)){o=!0;break}}}catch(e){a.e(e)}finally{a.f()}if(!o)return!1}}catch(e){n.e(e)}finally{n.f()}return!0}},{key:"getRanges",value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=u(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,new na(r.start,r.end);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=u(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.start.isBefore(t.start)||(t=r)}}catch(e){n.e(e)}finally{n.f()}return t?new na(t.start,t.end):null}},{key:"getLastRange",value:function(){var e,t=null,n=u(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.end.isAfter(t.end)||(t=r)}}catch(e){n.e(e)}finally{n.f()}return t?new na(t.start,t.end):null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"setTo",value:function(t,n,r){if(null===t)this._setRanges([]);else if(t instanceof e)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof na)this._setRanges([t],!!n&&!!n.backward);else if(t instanceof Xo)this._setRanges([new na(t)]);else if(t instanceof qo){var i,o=!!r&&!!r.backward;if("in"==n)i=na._createIn(t);else if("on"==n)i=na._createOn(t);else{if(void 0===n)throw new Gt.b("model-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",[this,t]);i=new na(Xo._createAt(t,n))}this._setRanges([i],o)}else{if(!on(t))throw new Gt.b("model-selection-setTo-not-selectable: Cannot set the selection to the given place.",[this,t]);this._setRanges(t,n&&!!n.backward)}}},{key:"_setRanges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(e=Array.from(e)).some((function(n){if(!(n instanceof na))throw new Gt.b("model-selection-set-ranges-not-range: Selection range set to an object that is not an instance of model.Range.",[t,e]);return t._ranges.every((function(e){return!e.isEqual(n)}))}));if(e.length!==this._ranges.length||r){this._removeAllRanges();var i,o=u(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._pushRange(a)}}catch(e){o.e(e)}finally{o.f()}this._lastRangeBackward=!!n,this.fire("change:range",{directChange:!0})}}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new Gt.b("model-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",[this,e]);var n=Xo._createAt(e,t);if("same"!=n.compareWith(this.focus)){var r=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(r)?(this._pushRange(new na(n,r)),this._lastRangeBackward=!0):(this._pushRange(new na(r,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"removeAttribute",value:function(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"setAttribute",value:function(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"is",value:function(e){return"selection"===e||"model:selection"===e}},{key:"getSelectedBlocks",value:o.a.mark((function e(){var t,n,r,i,a,s,c,l,d,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new WeakSet,n=u(this.getRanges()),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=38;break}if(i=r.value,a=da(i.start,t),e.t0=a&&fa(a,i),!e.t0){e.next=11;break}return e.next=11,a;case 11:s=u(i.getWalker()),e.prev=12,s.s();case 14:if((c=s.n()).done){e.next=23;break}if(l=c.value,d=l.item,e.t1="elementEnd"==l.type&&ua(d,t,i),!e.t1){e.next=21;break}return e.next=21,d;case 21:e.next=14;break;case 23:e.next=28;break;case 25:e.prev=25,e.t2=e.catch(12),s.e(e.t2);case 28:return e.prev=28,s.f(),e.finish(28);case 31:if(f=da(i.end,t),e.t3=f&&!i.end.isTouching(Xo._createAt(f,0))&&fa(f,i),!e.t3){e.next=36;break}return e.next=36,f;case 36:e.next=4;break;case 38:e.next=43;break;case 40:e.prev=40,e.t4=e.catch(2),n.e(e.t4);case 43:return e.prev=43,n.f(),e.finish(43);case 46:case"end":return e.stop()}}),e,this,[[2,40,43,46],[12,25,28,31]])}))},{key:"containsEntireContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root,t=Xo._createAt(e,0),n=Xo._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}},{key:"_pushRange",value:function(e){this._checkRange(e),this._ranges.push(new na(e.start,e.end))}},{key:"_checkRange",value:function(e){for(var t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new Gt.b("model-selection-range-intersects: Trying to add a range that intersects with another range in the selection.",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}},{key:"_removeAllRanges",value:function(){for(;this._ranges.length>0;)this._popRange()}},{key:"_popRange",value:function(){this._ranges.pop()}},{key:"anchor",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}},{key:"focus",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}},{key:"isCollapsed",get:function(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}}]),e}();function la(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&e.parent)}function ua(e,t,n){return la(e,t)&&fa(e,n)}function da(e,t){var n=e.parent.root.document.model.schema,r=e.parent.getAncestors({parentFirst:!0,includeSelf:!0}),i=!1,o=r.find((function(e){return!i&&(!(i=n.isLimit(e))&&la(e,t))}));return r.forEach((function(e){return t.add(e)})),o}function fa(e,t){var n=function(e){for(var t=e.root.document.model.schema,n=e.parent;n;){if(t.isBlock(n))return n;n=n.parent}}(e);return!n||!t.containsRange(na._createOn(n),!0)}an(ca,Jt);var ha=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),i=t.call(this,e,r),pa.call(y(i)),i}return m(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e}},{key:"toRange",value:function(){return new na(this.start,this.end)}}],[{key:"fromRange",value:function(e){return new n(e.start,e.end)}}]),n}(na);function pa(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var r=n[0];r.isDocumentOperation&&ma.call(e,r)}),{priority:"low"})}function ma(e){var t=this.getTransformedByOperation(e),n=na._createFromRanges(t),r=!n.isEqual(this),i=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e),o=null;if(r){"$graveyard"==n.root.rootName&&(o="remove"==e.type?e.sourcePosition:e.deletionPosition);var a=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",a,{deletionPosition:o})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:o})}an(ha,Jt);var va="selection:",ga=function(){function e(t){h(this,e),this._selection=new ba(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}return m(e,[{key:"getRanges",value:function(){return this._selection.getRanges()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getSelectedBlocks",value:function(){return this._selection.getSelectedBlocks()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"containsEntireContent",value:function(e){return this._selection.containsEntireContent(e)}},{key:"destroy",value:function(){this._selection.destroy()}},{key:"getAttributeKeys",value:function(){return this._selection.getAttributeKeys()}},{key:"getAttributes",value:function(){return this._selection.getAttributes()}},{key:"getAttribute",value:function(e){return this._selection.getAttribute(e)}},{key:"hasAttribute",value:function(e){return this._selection.hasAttribute(e)}},{key:"refresh",value:function(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}},{key:"is",value:function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setAttribute",value:function(e,t){this._selection.setAttribute(e,t)}},{key:"_removeAttribute",value:function(e){this._selection.removeAttribute(e)}},{key:"_getStoredAttributes",value:function(){return this._selection._getStoredAttributes()}},{key:"_overrideGravity",value:function(){return this._selection.overrideGravity()}},{key:"_restoreGravity",value:function(e){this._selection.restoreGravity(e)}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"hasOwnRange",get:function(){return this._selection.hasOwnRange}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"isGravityOverridden",get:function(){return this._selection.isGravityOverridden}},{key:"markers",get:function(){return this._selection.markers}},{key:"_ranges",get:function(){return this._selection._ranges}}],[{key:"_getStoreAttributeKey",value:function(e){return va+e}},{key:"_isStoreAttributeKey",value:function(e){return e.startsWith(va)}}]),e}();an(ga,Jt);var ba=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this)).markers=new sn({idProperty:"name"}),r._model=e.model,r._document=e,r._attributePriority=new Map,r._selectionRestorePosition=null,r._hasChangedRange=!1,r._overriddenGravityRegister=new Set,r.listenTo(r._model,"applyOperation",(function(e,t){var n=t[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==r._ranges.length&&r._selectionRestorePosition&&r._fixGraveyardSelection(r._selectionRestorePosition),r._selectionRestorePosition=null,r._hasChangedRange&&(r._hasChangedRange=!1,r.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),r.on("change:range",(function(){var e,t=u(r.getRanges());try{for(t.s();!(e=t.n()).done;){var n=e.value;if(!r._document._validateSelectionRange(n))throw new Gt.b("document-selection-wrong-position: Range from document selection starts or ends at incorrect position.",y(r),{range:n})}}catch(e){t.e(e)}finally{t.f()}})),r.listenTo(r._model.markers,"update",(function(){return r._updateMarkers()})),r.listenTo(r._document,"change",(function(e,t){!function(e,t){var n,r=u(e.document.differ.getChanges());try{var i=function(){var r=n.value;if("insert"!=r.type)return"continue";var i=r.position.parent;r.length===i.maxOffset&&e.enqueueChange(t,(function(e){var t,n=u(Array.from(i.getAttributeKeys()).filter((function(e){return e.startsWith(va)})));try{for(n.s();!(t=n.n()).done;){var r=t.value;e.removeAttribute(r,i)}}catch(e){n.e(e)}finally{n.f()}}))};for(r.s();!(n=r.n()).done;)i()}catch(e){r.e(e)}finally{r.f()}}(r._model,t)})),r}return m(n,[{key:"destroy",value:function(){for(var e=0;e<this._ranges.length;e++)this._ranges[e].detach();this.stopListening()}},{key:"getRanges",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._ranges.length){e.next=4;break}return e.delegateYield(s(C(n.prototype),"getRanges",this).call(this),"t0",2);case 2:e.next=6;break;case 4:return e.next=6,this._document._getDefaultRange();case 6:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return s(C(n.prototype),"getFirstRange",this).call(this)||this._document._getDefaultRange()}},{key:"getLastRange",value:function(){return s(C(n.prototype),"getLastRange",this).call(this)||this._document._getDefaultRange()}},{key:"setTo",value:function(e,t,r){s(C(n.prototype),"setTo",this).call(this,e,t,r),this._updateAttributes(!0),this._updateMarkers()}},{key:"setFocus",value:function(e,t){s(C(n.prototype),"setFocus",this).call(this,e,t),this._updateAttributes(!0),this._updateMarkers()}},{key:"setAttribute",value:function(e,t){if(this._setAttribute(e,t)){var n=[e];this.fire("change:attribute",{attributeKeys:n,directChange:!0})}}},{key:"removeAttribute",value:function(e){if(this._removeAttribute(e)){var t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}},{key:"overrideGravity",value:function(){var e=Wt();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}},{key:"restoreGravity",value:function(e){if(!this._overriddenGravityRegister.has(e))throw new Gt.b("document-selection-gravity-wrong-restore: Attempting to restore the selection gravity for an unknown UID.",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}},{key:"_popRange",value:function(){this._ranges.pop().detach()}},{key:"_pushRange",value:function(e){var t=this._prepareRange(e);t&&this._ranges.push(t)}},{key:"_prepareRange",value:function(e){var t=this;if(this._checkRange(e),e.root!=this._document.graveyard){var n=ha.fromRange(e);return n.on("change:range",(function(e,r,i){if(t._hasChangedRange=!0,n.root==t._document.graveyard){t._selectionRestorePosition=i.deletionPosition;var o=t._ranges.indexOf(n);t._ranges.splice(o,1),n.detach()}})),n}}},{key:"_updateMarkers",value:function(){var e,t=[],n=!1,r=u(this._model.markers);try{for(r.s();!(e=r.n()).done;){var i,o=e.value,a=o.getRange(),s=u(this.getRanges());try{for(s.s();!(i=s.n()).done;){var c=i.value;a.containsRange(c,!c.isCollapsed)&&t.push(o)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){r.e(e)}finally{r.f()}for(var l=Array.from(this.markers),d=0,f=t;d<f.length;d++){var h=f[d];this.markers.has(h)||(this.markers.add(h),n=!0)}for(var p=0,m=Array.from(this.markers);p<m.length;p++){var v=m[p];t.includes(v)||(this.markers.remove(v),n=!0)}n&&this.fire("change:marker",{oldMarkers:l,directChange:!1})}},{key:"_updateAttributes",value:function(e){var t=yn(this._getSurroundingAttributes()),n=yn(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else{var r,i=u(this._attributePriority);try{for(i.s();!(r=i.n()).done;){var o=l(r.value,2),a=o[0];"low"==o[1]&&(this._attrs.delete(a),this._attributePriority.delete(a))}}catch(e){i.e(e)}finally{i.f()}}this._setAttributesTo(t);var s,c=[],d=u(this.getAttributes());try{for(d.s();!(s=d.n()).done;){var f=l(s.value,2),h=f[0],p=f[1];n.has(h)&&n.get(h)===p||c.push(h)}}catch(e){d.e(e)}finally{d.f()}var m,v=u(n);try{for(v.s();!(m=v.n()).done;){var g=l(m.value,1)[0];this.hasAttribute(g)||c.push(g)}}catch(e){v.e(e)}finally{v.f()}c.length>0&&this.fire("change:attribute",{attributeKeys:c,directChange:!1})}},{key:"_setAttribute",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=r?"normal":"low";return("low"!=i||"normal"!=this._attributePriority.get(e))&&(s(C(n.prototype),"getAttribute",this).call(this,e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,i),!0))}},{key:"_removeAttribute",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=t?"normal":"low";return!("low"==r&&"normal"==this._attributePriority.get(e)||(this._attributePriority.set(e,r),!s(C(n.prototype),"hasAttribute",this).call(this,e)||(this._attrs.delete(e),0)))}},{key:"_setAttributesTo",value:function(e){var t,n=new Set,r=u(this.getAttributes());try{for(r.s();!(t=r.n()).done;){var i=l(t.value,2),o=i[0],a=i[1];e.get(o)!==a&&this._removeAttribute(o,!1)}}catch(e){r.e(e)}finally{r.f()}var s,c=u(e);try{for(c.s();!(s=c.n()).done;){var d=l(s.value,2),f=d[0],h=d[1];this._setAttribute(f,h,!1)&&n.add(f)}}catch(e){c.e(e)}finally{c.f()}return n}},{key:"_getStoredAttributes",value:o.a.mark((function e(){var t,n,r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getFirstPosition().parent,!this.isCollapsed||!t.isEmpty){e.next=21;break}n=u(t.getAttributeKeys()),e.prev=3,n.s();case 5:if((r=n.n()).done){e.next=13;break}if(!(i=r.value).startsWith(va)){e.next=11;break}return a=i.substr(va.length),e.next=11,[a,t.getAttribute(i)];case 11:e.next=5;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[3,15,18,21]])}))},{key:"_getSurroundingAttributes",value:function(){var e=this.getFirstPosition(),t=this._model.schema,n=null;if(this.isCollapsed){var r=e.textNode?e.textNode:e.nodeBefore,i=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(n=ya(r)),n||(n=ya(i)),!this.isGravityOverridden&&!n)for(var o=r;o&&!t.isInline(o)&&!n;)n=ya(o=o.previousSibling);if(!n)for(var a=i;a&&!t.isInline(a)&&!n;)n=ya(a=a.nextSibling);n||(n=this._getStoredAttributes())}else{var s,c=u(this.getFirstRange());try{for(c.s();!(s=c.n()).done;){var l=s.value;if(l.item.is("element")&&t.isObject(l.item))break;if("text"==l.type){n=l.item.getAttributes();break}}}catch(e){c.e(e)}finally{c.f()}}return n}},{key:"_fixGraveyardSelection",value:function(e){var t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}},{key:"isCollapsed",get:function(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:s(C(n.prototype),"isCollapsed",this)}},{key:"anchor",get:function(){return s(C(n.prototype),"anchor",this)||this._document._getDefaultRange().start}},{key:"focus",get:function(){return s(C(n.prototype),"focus",this)||this._document._getDefaultRange().end}},{key:"rangeCount",get:function(){return this._ranges.length?this._ranges.length:1}},{key:"hasOwnRange",get:function(){return this._ranges.length>0}},{key:"isGravityOverridden",get:function(){return!!this._overriddenGravityRegister.size}}]),n}(ca);function ya(e){return e instanceof Yo||e instanceof Wo?e.getAttributes():null}var _a=function(){function e(t){h(this,e),this._dispatchers=t}return m(e,[{key:"add",value:function(e){var t,n=u(this._dispatchers);try{for(n.s();!(t=n.n()).done;){e(t.value)}}catch(e){n.e(e)}finally{n.f()}return this}}]),e}(),wa=function(e){return zt(e,5)},ka=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"elementToElement",value:function(e){return this.add(function(e){return(e=wa(e)).view=Sa(e.view,"container"),function(t){var n;t.on("insert:"+e.model,(n=e.view,function(e,t,r){var i=n(t.item,r);if(i&&r.consumable.consume(t.item,"insert")){var o=r.mapper.toViewPosition(t.range.start);r.mapper.bindElements(t.item,i),r.writer.insert(o,i)}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"attributeToElement",value:function(e){return this.add(function(e){var t="attribute:"+((e=wa(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,r=u(e.model.values);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.view[i]=Sa(e.view[i],"attribute")}}catch(e){r.e(e)}finally{r.f()}}else e.view=Sa(e.view,"attribute");var o=Ta(e);return function(n){n.on(t,function(e){return function(t,n,r){var i=e(n.attributeOldValue,r),o=e(n.attributeNewValue,r);if((i||o)&&r.consumable.consume(n.item,t.name)){var a=r.writer,s=a.document.selection;if(n.item instanceof ca||n.item instanceof ga)a.wrap(s.getFirstRange(),o);else{var c=r.mapper.toViewRange(n.range);null!==n.attributeOldValue&&i&&(c=a.unwrap(c,i)),null!==n.attributeNewValue&&o&&a.wrap(c,o)}}}}(o),{priority:e.converterPriority||"normal"})}}(e))}},{key:"attributeToAttribute",value:function(e){return this.add(function(e){var t="attribute:"+((e=wa(e)).model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,r=u(e.model.values);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.view[i]=Aa(e.view[i])}}catch(e){r.e(e)}finally{r.f()}}else e.view=Aa(e.view);var o=Ta(e);return function(n){var r;n.on(t,(r=o,function(e,t,n){var i=r(t.attributeOldValue,n),o=r(t.attributeNewValue,n);if((i||o)&&n.consumable.consume(t.item,e.name)){var a=n.mapper.toViewElement(t.item),s=n.writer;if(!a)throw new Gt.b("conversion-attribute-to-attribute-on-text: Trying to convert text node's attribute with attribute-to-attribute converter.",[t,n]);if(null!==t.attributeOldValue&&i)if("class"==i.key){var c,l=u(Array.isArray(i.value)?i.value:[i.value]);try{for(l.s();!(c=l.n()).done;){var d=c.value;s.removeClass(d,a)}}catch(e){l.e(e)}finally{l.f()}}else if("style"==i.key)for(var f=0,h=Object.keys(i.value);f<h.length;f++){var p=h[f];s.removeStyle(p,a)}else s.removeAttribute(i.key,a);if(null!==t.attributeNewValue&&o)if("class"==o.key){var m,v=u(Array.isArray(o.value)?o.value:[o.value]);try{for(v.s();!(m=v.n()).done;){var g=m.value;s.addClass(g,a)}}catch(e){v.e(e)}finally{v.f()}}else if("style"==o.key)for(var b=0,y=Object.keys(o.value);b<y.length;b++){var _=y[b];s.setStyle(_,o.value[_],a)}else s.setAttribute(o.key,o.value,a)}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToElement",value:function(e){return this.add(function(e){return(e=wa(e)).view=Sa(e.view,"ui"),function(t){var n;t.on("addMarker:"+e.model,(n=e.view,function(e,t,r){t.isOpening=!0;var i=n(t,r);t.isOpening=!1;var o=n(t,r);if(i&&o){var a=t.markerRange;if(!a.isCollapsed||r.consumable.consume(a,e.name)){var s,c=u(a);try{for(c.s();!(s=c.n()).done;){var l=s.value;if(!r.consumable.consume(l.item,e.name))return}}catch(e){c.e(e)}finally{c.f()}var d=r.mapper,f=r.writer;f.insert(d.toViewPosition(a.start),i),r.mapper.bindElementToMarker(i,t.markerName),a.isCollapsed||(f.insert(d.toViewPosition(a.end),o),r.mapper.bindElementToMarker(o,t.markerName)),e.stop()}}}),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,(e.view,function(e,t,n){var r=n.mapper.markerNameToElements(t.markerName);if(r){var i,o=u(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;n.mapper.unbindElementFromMarkerName(a,t.markerName),n.writer.clear(n.writer.createRangeOn(a),a)}}catch(e){o.e(e)}finally{o.f()}n.writer.clearClonedElementsGroup(t.markerName),e.stop()}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToHighlight",value:function(e){return this.add(function(e){return function(t){var n;t.on("addMarker:"+e.model,(n=e.view,function(e,t,r){if(t.item&&(t.item instanceof ca||t.item instanceof ga||t.item.is("$textProxy"))){var i=Ma(n,t,r);if(i&&r.consumable.consume(t.item,e.name)){var o=r.writer,a=xa(o,i),s=o.document.selection;if(t.item instanceof ca||t.item instanceof ga)o.wrap(s.getFirstRange(),a,s);else{var c,l=r.mapper.toViewRange(t.range),d=u(o.wrap(l,a).getItems());try{for(d.s();!(c=d.n()).done;){var f=c.value;if(f.is("attributeElement")&&f.isSimilar(a)){r.mapper.bindElementToMarker(f,t.markerName);break}}}catch(e){d.e(e)}finally{d.f()}}}}}),{priority:e.converterPriority||"normal"}),t.on("addMarker:"+e.model,function(e){return function(t,n,r){if(n.item&&n.item instanceof Ko){var i=Ma(e,n,r);if(i&&r.consumable.test(n.item,t.name)){var o=r.mapper.toViewElement(n.item);if(o&&o.getCustomProperty("addHighlight")){r.consumable.consume(n.item,t.name);var a,s=u(na._createIn(n.item));try{for(s.s();!(a=s.n()).done;){var c=a.value;r.consumable.consume(c.item,t.name)}}catch(e){s.e(e)}finally{s.f()}o.getCustomProperty("addHighlight")(o,i,r.writer),r.mapper.bindElementToMarker(o,n.markerName)}}}}}(e.view),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,function(e){return function(t,n,r){if(!n.markerRange.isCollapsed){var i=Ma(e,n,r);if(i){var o=xa(r.writer,i),a=r.mapper.markerNameToElements(n.markerName);if(a){var s,c=u(a);try{for(c.s();!(s=c.n()).done;){var l=s.value;r.mapper.unbindElementFromMarkerName(l,n.markerName),l.is("attributeElement")?r.writer.unwrap(r.writer.createRangeOn(l),o):l.getCustomProperty("removeHighlight")(l,i.id,r.writer)}}catch(e){c.e(e)}finally{c.f()}r.writer.clearClonedElementsGroup(n.markerName),t.stop()}}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToData",value:function(e){return this.add(function(e){var t=(e=wa(e)).model;return e.view||(e.view=function(n){return{group:t,name:n.substr(e.model.length+1)}}),function(n){var r;n.on("addMarker:"+t,(r=e.view,function(e,t,n){var i=r(t.markerName,n);if(i){var o=t.markerRange;n.consumable.consume(o,e.name)&&(Ca(o,!1,n,t,i),Ca(o,!0,n,t,i),e.stop())}}),{priority:e.converterPriority||"normal"}),n.on("removeMarker:"+t,function(e){return function(t,n,r){var i=e(n.markerName,r);if(i){var o=r.mapper.markerNameToElements(n.markerName);if(o){var a,s=u(o);try{for(s.s();!(a=s.n()).done;){var c=a.value;r.mapper.unbindElementFromMarkerName(c,n.markerName),c.is("containerElement")?(l("data-".concat(i.group,"-start-before"),c),l("data-".concat(i.group,"-start-after"),c),l("data-".concat(i.group,"-end-before"),c),l("data-".concat(i.group,"-end-after"),c)):r.writer.clear(r.writer.createRangeOn(c),c)}}catch(e){s.e(e)}finally{s.f()}r.writer.clearClonedElementsGroup(n.markerName),t.stop()}}function l(e,t){if(t.hasAttribute(e)){var n=new Set(t.getAttribute(e).split(","));n.delete(i.name),0==n.size?r.writer.removeAttribute(e,t):r.writer.setAttribute(e,Array.from(n).join(","),t)}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}}]),n}(_a);function xa(e,t){var n=e.createAttributeElement("span",t.attributes);return t.classes&&n._addClass(t.classes),t.priority&&(n._priority=t.priority),n._id=t.id,n}function Ca(e,t,n,r,i){var o,a,s=t?e.start:e.end;n.schema.checkChild(s,"$text")?function(e,t,n,r,i){var o="".concat(i.group,"-").concat(t?"start":"end"),a=i.name?{name:i.name}:null,s=n.writer.createUIElement(o,a);n.writer.insert(e,s),n.mapper.bindElementToMarker(s,r.markerName)}(n.mapper.toViewPosition(s),t,n,r,i):(t&&s.nodeAfter||!t&&!s.nodeBefore?(o=s.nodeAfter,a=!0):(o=s.nodeBefore,a=!1),function(e,t,n,r,i,o){var a="data-".concat(o.group,"-").concat(t?"start":"end","-").concat(n?"before":"after"),s=e.hasAttribute(a)?e.getAttribute(a).split(","):[];s.unshift(o.name),r.writer.setAttribute(a,s.join(","),e),r.mapper.bindElementToMarker(e,i.markerName)}(n.mapper.toViewElement(o),t,a,n,r,i))}function Sa(e,t){return"function"==typeof e?e:function(n,r){return function(e,t,n){var r;"string"==typeof e&&(e={name:e});var i=t.writer,o=Object.assign({},e.attributes);if("container"==n)r=i.createContainerElement(e.name,o);else if("attribute"==n){var a={priority:e.priority||Pr.DEFAULT_PRIORITY};r=i.createAttributeElement(e.name,o,a)}else r=i.createUIElement(e.name,o);if(e.styles)for(var s=0,c=Object.keys(e.styles);s<c.length;s++){var l=c[s];i.setStyle(l,e.styles[l],r)}if(e.classes){var d=e.classes;if("string"==typeof d)i.addClass(d,r);else{var f,h=u(d);try{for(h.s();!(f=h.n()).done;){var p=f.value;i.addClass(p,r)}}catch(e){h.e(e)}finally{h.f()}}}return r}(e,r,t)}}function Ta(e){return e.model.values?function(t,n){var r=e.view[t];return r?r(t,n):null}:e.view}function Aa(e){return"string"==typeof e?function(t){return{key:e,value:t}}:"object"==S(e)?e.value?function(){return e}:function(t){return{key:e.key,value:t}}:e}function Ma(e,t,n){var r="function"==typeof e?e(t,n):e;return r?(r.priority||(r.priority=10),r.id||(r.id=t.markerName),r):null}function Ea(e){var t,n=e.model,r=n.schema,i=n.document,o=u(i.getRootNames());try{for(o.s();!(t=o.n()).done;){var a=t.value,s=i.getRoot(a);if(s.isEmpty&&!r.checkChild(s,"$text")&&r.checkChild(s,"paragraph"))return e.insertElement("paragraph",s),!0}}catch(e){o.e(e)}finally{o.f()}return!1}function Oa(e,t,n){var r=n.createContext(e);return!!n.checkChild(r,"paragraph")&&!!n.checkChild(r.push("paragraph"),t)}function Pa(e,t){var n=t.createElement("paragraph");return t.insert(n,e),t.createPositionAt(n,0)}var Ia=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"elementToElement",value:function(e){return this.add(Da(e))}},{key:"elementToAttribute",value:function(e){return this.add(function(e){Ra(e=wa(e));var t=La(e,!1),n=ja(e.view),r=n?"element:"+n:"element";return function(n){n.on(r,t,{priority:e.converterPriority||"low"})}}(e))}},{key:"attributeToAttribute",value:function(e){return this.add(function(e){var t=null;("string"==typeof(e=wa(e)).view||e.view.key)&&(t=function(e){"string"==typeof e.view&&(e.view={key:e.view});var t,n=e.view.key;return t="class"==n||"style"==n?a({},"class"==n?"classes":"styles",e.view.value):{attributes:a({},n,void 0===e.view.value?/[\s\S]*/:e.view.value)},e.view.name&&(t.name=e.view.name),e.view=t,n}(e)),Ra(e,t);var n=La(e,!0);return function(t){t.on("element",n,{priority:e.converterPriority||"low"})}}(e))}},{key:"elementToMarker",value:function(e){return console.warn(Object(Gt.a)("upcast-helpers-element-to-marker-deprecated: The UpcastHelpers#elementToMarker() method was deprecated and will be removed in the near future. Please use UpcastHelpers#dataToMarker() instead.")),this.add(function(e){return function(e){var t=e.model;e.model=function(e,n){var r="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":r})}}(e=wa(e)),Da(e)}(e))}},{key:"dataToMarker",value:function(e){return this.add(function(e){(e=wa(e)).model||(e.model=function(t){return t?e.view+":"+t:e.view});var t=Na(za(e,"start")),n=Na(za(e,"end"));return function(r){r.on("element:"+e.view+"-start",t,{priority:e.converterPriority||"normal"}),r.on("element:"+e.view+"-end",n,{priority:e.converterPriority||"normal"});var i=Yt.get("low"),o=Yt.get("highest"),a=Yt.get(e.converterPriority)/o;r.on("element",function(e){return function(t,n,r){var i="data-"+e.view;function o(t,i){var o,a=u(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=e.model(s,r),l=r.writer.createElement("$marker",{"data-name":c});r.writer.insert(l,t),n.modelCursor.isEqual(t)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(t,1),n.modelRange=n.modelRange._getTransformedByInsertion(t,1)[0]}}catch(e){a.e(e)}finally{a.f()}}n.modelRange||(n=Object.assign(n,r.convertChildren(n.viewItem,n.modelCursor))),r.consumable.consume(n.viewItem,{attributes:i+"-end-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(i+"-end-after").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-start-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(i+"-start-after").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-end-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(i+"-end-before").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-start-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(i+"-start-before").split(","))}}(e),{priority:i+a})}}(e))}}]),n}(_a);function Da(e){var t=Na(e=wa(e)),n=ja(e.view),r=n?"element:"+n:"element";return function(n){n.on(r,t,{priority:e.converterPriority||"normal"})}}function ja(e){return"string"==typeof e?e:"object"==S(e)&&"string"==typeof e.name?e.name:null}function Na(e){var t=new _n(e.view);return function(n,r,i){var o=t.match(r.viewItem);if(o){var a=o.match;if(a.name=!0,i.consumable.test(r.viewItem,a)){var s=function(e,t,n){return e instanceof Function?e(t,n):n.writer.createElement(e)}(e.model,r.viewItem,i);s&&i.safeInsert(s,r.modelCursor)&&(i.consumable.consume(r.viewItem,a),i.convertChildren(r.viewItem,s),i.updateConversionResult(s,r))}}}}function Ra(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null===t||function(e){return e.getAttribute(t)},r="object"!=S(e.model)?e.model:e.model.key,i="object"!=S(e.model)||void 0===e.model.value?n:e.model.value;e.model={key:r,value:i}}function La(e,t){var n=new _n(e.view);return function(r,i,o){var a=n.match(i.viewItem);if(a){var s=e.model.key,c="function"==typeof e.model.value?e.model.value(i.viewItem,o):e.model.value;null!==c&&(function(e,t){var n="function"==typeof e?e(t):e;return!("object"==S(n)&&!ja(n))&&(!n.classes&&!n.attributes&&!n.styles)}(e.view,i.viewItem)?a.match.name=!0:delete a.match.name,o.consumable.test(i.viewItem,a.match)&&(i.modelRange||(i=Object.assign(i,o.convertChildren(i.viewItem,i.modelCursor))),function(e,t,n,r){for(var i=!1,o=0,a=Array.from(e.getItems({shallow:n}));o<a.length;o++){var s=a[o];r.schema.checkAttribute(s,t.key)&&(r.writer.setAttribute(t.key,t.value,s),i=!0)}return i}(i.modelRange,{key:s,value:c},t,o)&&o.consumable.consume(i.viewItem,a.match)))}}}function za(e,t){var n={};return n.view=e.view+"-"+t,n.model=function(t,n){var r=t.getAttribute("name"),i=e.model(r,n);return n.writer.createElement("$marker",{"data-name":i})},n}var Fa=function(){function e(t,n){var r=this;h(this,e),this.model=t,this.view=new Uo(n),this.mapper=new ra,this.downcastDispatcher=new aa({mapper:this.mapper,schema:t.schema});var i=this.model.document,o=i.selection,a=this.model.markers;this.listenTo(this.model,"_beforeChanges",(function(){r.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(function(){r.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(i,"change",(function(){r.view.change((function(e){r.downcastDispatcher.convertChanges(i.differ,a,e),r.downcastDispatcher.convertSelection(o,a,e)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return function(n,r){var i,o=r.newSelection,a=[],s=u(o.getRanges());try{for(s.s();!(i=s.n()).done;){var c=i.value;a.push(t.toModelRange(c))}}catch(e){s.e(e)}finally{s.f()}var l=e.createSelection(a,{backward:o.isBackward});l.isEqual(e.document.selection)||e.change((function(e){e.setSelection(l)}))}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(function(e,t,n){if(n.consumable.consume(t.item,"insert")){var r=n.writer,i=n.mapper.toViewPosition(t.range.start),o=r.createText(t.item.data);r.insert(i,o)}}),{priority:"lowest"}),this.downcastDispatcher.on("remove",(function(e,t,n){var r,i=n.mapper.toViewPosition(t.position),o=t.position.getShiftedBy(t.length),a=n.mapper.toViewPosition(o,{isPhantom:!0}),s=n.writer.createRange(i,a),c=n.writer.remove(s.getTrimmed()),l=u(n.writer.createRangeIn(c).getItems());try{for(l.s();!(r=l.n()).done;){var d=r.value;n.mapper.unbindViewElement(d)}}catch(e){l.e(e)}finally{l.f()}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var r,i=n.writer,o=u(i.document.selection.getRanges());try{for(o.s();!(r=o.n()).done;){var a=r.value;a.isCollapsed&&a.end.parent.isAttached()&&n.writer.mergeAttributes(a.start)}}catch(e){o.e(e)}finally{o.f()}i.setSelection(null)}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var r=t.selection;if(!r.isCollapsed&&n.consumable.consume(r,"selection")){var i,o=[],a=u(r.getRanges());try{for(a.s();!(i=a.n()).done;){var s=i.value,c=n.mapper.toViewRange(s);o.push(c)}}catch(e){a.e(e)}finally{a.f()}n.writer.setSelection(o,{backward:r.isBackward})}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var r=t.selection;if(r.isCollapsed&&n.consumable.consume(r,"selection")){var i=n.writer,o=r.getFirstPosition(),a=n.mapper.toViewPosition(o),s=i.breakAttributes(a);i.setSelection(s)}}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((function(e){if("$graveyard"==e.rootName)return null;var t=new kr(r.view.document,e.name);return t.rootName=e.rootName,r.mapper.bindElements(e,t),t}))}return m(e,[{key:"destroy",value:function(){this.view.destroy(),this.stopListening()}}]),e}();an(Fa,pr);var Ba=function(){function e(){h(this,e),this._commands=new Map}return m(e,[{key:"add",value:function(e,t){this._commands.set(e,t)}},{key:"get",value:function(e){return this._commands.get(e)}},{key:"execute",value:function(e){var t=this.get(e);if(!t)throw new Gt.b("commandcollection-command-not-found: Command does not exist.",this,{commandName:e});for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.execute.apply(t,r)}},{key:"names",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._commands.keys(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"commands",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._commands.values(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:Symbol.iterator,value:function(){return this._commands[Symbol.iterator]()}},{key:"destroy",value:function(){var e,t=u(this.commands());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}}}]),e}(),$a=function(){function e(){h(this,e),this._consumables=new Map}return m(e,[{key:"add",value:function(e,t){var n;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?n=this._consumables.get(e):(n=new Va(e),this._consumables.set(e,n)),n.add(t))}},{key:"test",value:function(e,t){var n=this._consumables.get(e);return void 0===n?null:e.is("$text")||e.is("documentFragment")?n:n.test(t)}},{key:"consume",value:function(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}},{key:"revert",value:function(e,t){var n=this._consumables.get(e);void 0!==n&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):n.revert(t))}}],[{key:"consumablesFromElement",value:function(e){var t,n={element:e,name:!0,attributes:[],classes:[],styles:[]},r=u(e.getAttributeKeys());try{for(r.s();!(t=r.n()).done;){var i=t.value;"style"!=i&&"class"!=i&&n.attributes.push(i)}}catch(e){r.e(e)}finally{r.f()}var o,a=u(e.getClassNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.classes.push(s)}}catch(e){a.e(e)}finally{a.f()}var c,l=u(e.getStyleNames());try{for(l.s();!(c=l.n()).done;){var d=c.value;n.styles.push(d)}}catch(e){l.e(e)}finally{l.f()}return n}},{key:"createFrom",value:function(t,n){if(n||(n=new e(t)),t.is("$text"))return n.add(t),n;t.is("element")&&n.add(t,e.consumablesFromElement(t)),t.is("documentFragment")&&n.add(t);var r,i=u(t.getChildren());try{for(i.s();!(r=i.n()).done;){var o=r.value;n=e.createFrom(o,n)}}catch(e){i.e(e)}finally{i.f()}return n}}]),e}(),Va=function(){function e(t){h(this,e),this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}return m(e,[{key:"add",value:function(e){for(var t in e.name&&(this._canConsumeName=!0),this._consumables)t in e&&this._add(t,e[t])}},{key:"test",value:function(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(var t in this._consumables)if(t in e){var n=this._test(t,e[t]);if(!0!==n)return n}return!0}},{key:"consume",value:function(e){for(var t in e.name&&(this._canConsumeName=!1),this._consumables)t in e&&this._consume(t,e[t])}},{key:"revert",value:function(e){for(var t in e.name&&(this._canConsumeName=!0),this._consumables)t in e&&this._revert(t,e[t])}},{key:"_add",value:function(e,t){var n,r=Te(t)?t:[t],i=this._consumables[e],o=u(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"===e&&("class"===a||"style"===a))throw new Gt.b("viewconsumable-invalid-attribute: Classes and styles should be handled separately.",this);if(i.set(a,!0),"styles"===e){var s,c=u(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(c.s();!(s=c.n()).done;){var l=s.value;i.set(l,!0)}}catch(e){c.e(e)}finally{c.f()}}}}catch(e){o.e(e)}finally{o.f()}}},{key:"_test",value:function(e,t){var n,r=Te(t)?t:[t],i=this._consumables[e],o=u(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==e||"class"!==a&&"style"!==a){var s=i.get(a);if(void 0===s)return null;if(!s)return!1}else{var l="class"==a?"classes":"styles",d=this._test(l,c(this._consumables[l].keys()));if(!0!==d)return d}}}catch(e){o.e(e)}finally{o.f()}return!0}},{key:"_consume",value:function(e,t){var n,r=Te(t)?t:[t],i=this._consumables[e],o=u(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==e||"class"!==a&&"style"!==a){if(i.set(a,!1),"styles"==e){var s,l=u(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(l.s();!(s=l.n()).done;){var d=s.value;i.set(d,!1)}}catch(e){l.e(e)}finally{l.f()}}}else{var f="class"==a?"classes":"styles";this._consume(f,c(this._consumables[f].keys()))}}}catch(e){o.e(e)}finally{o.f()}}},{key:"_revert",value:function(e,t){var n,r=Te(t)?t:[t],i=this._consumables[e],o=u(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==e||"class"!==a&&"style"!==a)!1===i.get(a)&&i.set(a,!0);else{var s="class"==a?"classes":"styles";this._revert(s,c(this._consumables[s].keys()))}}}catch(e){o.e(e)}finally{o.f()}}}]),e}(),Ha=function(){function e(){var t=this;h(this,e),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(function(e,t){t[0]=new Ua(t[0])}),{priority:"highest"}),this.on("checkChild",(function(e,n){n[0]=new Ua(n[0]),n[1]=t.getDefinition(n[1])}),{priority:"highest"})}return m(e,[{key:"register",value:function(e,t){if(this._sourceDefinitions[e])throw new Gt.b("schema-cannot-register-item-twice: A single item cannot be registered twice in the schema.",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}},{key:"extend",value:function(e,t){if(!this._sourceDefinitions[e])throw new Gt.b("schema-cannot-extend-missing-item: Cannot extend an item which was not registered yet.",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}},{key:"getDefinitions",value:function(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}},{key:"getDefinition",value:function(e){var t;return t="string"==typeof e?e:e.is&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}},{key:"isRegistered",value:function(e){return!!this.getDefinition(e)}},{key:"isBlock",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isBlock)}},{key:"isLimit",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isLimit&&!t.isObject)}},{key:"isObject",value:function(e){var t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}},{key:"isInline",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isInline)}},{key:"isSelectable",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isSelectable&&!t.isObject)}},{key:"isContent",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isContent&&!t.isObject)}},{key:"checkChild",value:function(e,t){return!!t&&this._checkContextMatch(t,e)}},{key:"checkAttribute",value:function(e,t){var n=this.getDefinition(e.last);return!!n&&n.allowAttributes.includes(t)}},{key:"checkMerge",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e instanceof Xo){var n=e.nodeBefore,r=e.nodeAfter;if(!(n instanceof Ko))throw new Gt.b("schema-check-merge-no-element-before: The node before the merge position must be an element.",this);if(!(r instanceof Ko))throw new Gt.b("schema-check-merge-no-element-after: The node after the merge position must be an element.",this);return this.checkMerge(n,r)}var i,o=u(t.getChildren());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!this.checkChild(e,a))return!1}}catch(e){o.e(e)}finally{o.f()}return!0}},{key:"addChildCheck",value:function(e){this.on("checkChild",(function(t,n){var r=l(n,2),i=r[0],o=r[1];if(o){var a=e(i,o);"boolean"==typeof a&&(t.stop(),t.return=a)}}),{priority:"high"})}},{key:"addAttributeCheck",value:function(e){this.on("checkAttribute",(function(t,n){var r=l(n,2),i=r[0],o=r[1],a=e(i,o);"boolean"==typeof a&&(t.stop(),t.return=a)}),{priority:"high"})}},{key:"setAttributeProperties",value:function(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}},{key:"getAttributeProperties",value:function(e){return this._attributeProperties[e]||{}}},{key:"getLimitElement",value:function(e){var t;for(t=e instanceof Xo?e.parent:(e instanceof na?[e]:Array.from(e.getRanges())).reduce((function(e,t){var n=t.getCommonAncestor();return e?e.getCommonAncestor(n,{includeSelf:!0}):n}),null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}},{key:"checkAttributeInSelection",value:function(e,t){if(e.isCollapsed){var n=[].concat(c(e.getFirstPosition().getAncestors()),[new Wo("",e.getAttributes())]);return this.checkAttribute(n,t)}var r,i=u(e.getRanges());try{for(i.s();!(r=i.n()).done;){var o,a=u(r.value);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(this.checkAttribute(s.item,t))return!0}}catch(e){a.e(e)}finally{a.f()}}}catch(e){i.e(e)}finally{i.f()}return!1}},{key:"getValidRanges",value:o.a.mark((function e(t,n){var r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=u(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=8;break}return i=r.value,e.delegateYield(i.getMinimalFlatRanges(),"t0",6);case 6:e.next=3;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e.catch(1),n.e(e.t1);case 13:return e.prev=13,n.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,10,13,16]])}))(t),r=u(t),e.prev=2,r.s();case 4:if((i=r.n()).done){e.next=9;break}return a=i.value,e.delegateYield(this._getValidRangesForRange(a,n),"t0",7);case 7:e.next=4;break;case 9:e.next=14;break;case 11:e.prev=11,e.t1=e.catch(2),r.e(e.t1);case 14:return e.prev=14,r.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[2,11,14,17]])}))},{key:"getNearestSelectionRange",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(e,"$text"))return new na(e);var a=e.getAncestors().reverse().find((function(e){return r.isLimit(e)}))||e.root;"both"!=i&&"backward"!=i||(t=new Qo({boundaries:na._createIn(a),startPosition:e,direction:"backward"})),"both"!=i&&"forward"!=i||(n=new Qo({boundaries:na._createIn(a),startPosition:e}));var s,c=u(o.a.mark((function e(t,n){var r,i,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1;case 1:if(r){e.next=18;break}if(r=!0,!t){e.next=9;break}if(i=t.next(),e.t0=i.done,e.t0){e.next=9;break}return r=!1,e.next=9,{walker:t,value:i.value};case 9:if(!n){e.next=16;break}if(a=n.next(),e.t1=a.done,e.t1){e.next=16;break}return r=!1,e.next=16,{walker:n,value:a.value};case 16:e.next=1;break;case 18:case"end":return e.stop()}}),e)}))(t,n));try{for(c.s();!(s=c.n()).done;){var l=s.value,d=l.walker==t?"elementEnd":"elementStart",f=l.value;if(f.type==d&&this.isObject(f.item))return na._createOn(f.item);if(this.checkChild(f.nextPosition,"$text"))return new na(f.nextPosition)}}catch(e){c.e(e)}finally{c.f()}return null}},{key:"findAllowedParent",value:function(e,t){for(var n=e.parent;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))return null;n=n.parent}return null}},{key:"removeDisallowedAttributes",value:function(e,t){var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.is("$text"))ts(this,i,t);else{var o,a=u(na._createIn(i).getPositions());try{for(a.s();!(o=a.n()).done;){var s=o.value;ts(this,s.nodeBefore||s.parent,t)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){r.e(e)}finally{r.f()}}},{key:"createContext",value:function(e){return new Ua(e)}},{key:"_clearCache",value:function(){this._compiledDefinitions=null}},{key:"_compile",value:function(){for(var e={},t=this._sourceDefinitions,n=Object.keys(t),r=0,i=n;r<i.length;r++){var o=i[r];e[o]=qa(t[o],o)}for(var a=0,s=n;a<s.length;a++){Wa(e,s[a])}for(var c=0,l=n;c<l.length;c++){Ya(e,l[c])}for(var u=0,d=n;u<d.length;u++){var f=d[u];Ga(e,f),Ka(e,f)}for(var h=0,p=n;h<p.length;h++){var m=p[h];Qa(e,m),Ja(e,m)}this._compiledDefinitions=e}},{key:"_checkContextMatch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length-1,r=t.getItem(n);if(e.allowIn.includes(r.name)){if(0==n)return!0;var i=this.getDefinition(r);return this._checkContextMatch(i,t,n-1)}return!1}},{key:"_getValidRangesForRange",value:o.a.mark((function e(t,n){var r,i,a,s,c;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.start,i=t.start,a=u(t.getItems({shallow:!0})),e.prev=2,a.s();case 4:if((s=a.n()).done){e.next=19;break}if(c=s.value,e.t0=c.is("element"),!e.t0){e.next=9;break}return e.delegateYield(this._getValidRangesForRange(na._createIn(c),n),"t1",9);case 9:if(e.t2=this.checkAttribute(c,n),e.t2){e.next=16;break}if(e.t3=r.isEqual(i),e.t3){e.next=15;break}return e.next=15,new na(r,i);case 15:r=Xo._createAfter(c);case 16:i=Xo._createAfter(c);case 17:e.next=4;break;case 19:e.next=24;break;case 21:e.prev=21,e.t4=e.catch(2),a.e(e.t4);case 24:return e.prev=24,a.f(),e.finish(24);case 27:if(e.t5=r.isEqual(i),e.t5){e.next=31;break}return e.next=31,new na(r,i);case 31:case"end":return e.stop()}}),e,this,[[2,21,24,27]])}))}]),e}();an(Ha,pr);var Ua=function(){function e(t){if(h(this,e),t instanceof e)return t;"string"==typeof t?t=[t]:Array.isArray(t)||(t=t.getAncestors({includeSelf:!0})),t[0]&&"string"!=typeof t[0]&&t[0].is("documentFragment")&&t.shift(),this._items=t.map(es)}return m(e,[{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"push",value:function(t){var n=new e([t]);return n._items=[].concat(c(this._items),c(n._items)),n}},{key:"getItem",value:function(e){return this._items[e]}},{key:"getNames",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._items.map((function(e){return e.name})),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"endsWith",value:function(e){return Array.from(this.getNames()).join(" ").endsWith(e)}},{key:"startsWith",value:function(e){return Array.from(this.getNames()).join(" ").startsWith(e)}},{key:"length",get:function(){return this._items.length}},{key:"last",get:function(){return this._items[this._items.length-1]}}]),e}();function qa(e,t){var n={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(e,t){var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i,o=n.value,a=u(Object.keys(o).filter((function(e){return e.startsWith("is")})));try{for(a.s();!(i=a.n()).done;){var s=i.value;t[s]=o[s]}}catch(e){a.e(e)}finally{a.f()}}}catch(e){r.e(e)}finally{r.f()}}(e,n),Xa(e,n,"allowIn"),Xa(e,n,"allowContentOf"),Xa(e,n,"allowWhere"),Xa(e,n,"allowAttributes"),Xa(e,n,"allowAttributesOf"),Xa(e,n,"inheritTypesFrom"),function(e,t){var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=n.value.inheritAllFrom;i&&(t.allowContentOf.push(i),t.allowWhere.push(i),t.allowAttributesOf.push(i),t.inheritTypesFrom.push(i))}}catch(e){r.e(e)}finally{r.f()}}(e,n),n}function Wa(e,t){var n,r=u(e[t].allowContentOf);try{for(r.s();!(n=r.n()).done;){var i=n.value;e[i]&&Za(e,i).forEach((function(e){e.allowIn.push(t)}))}}catch(e){r.e(e)}finally{r.f()}delete e[t].allowContentOf}function Ya(e,t){var n,r=u(e[t].allowWhere);try{for(r.s();!(n=r.n()).done;){var i=e[n.value];if(i){var o,a=i.allowIn;(o=e[t].allowIn).push.apply(o,c(a))}}}catch(e){r.e(e)}finally{r.f()}delete e[t].allowWhere}function Ga(e,t){var n,r=u(e[t].allowAttributesOf);try{for(r.s();!(n=r.n()).done;){var i=e[n.value];if(i){var o,a=i.allowAttributes;(o=e[t].allowAttributes).push.apply(o,c(a))}}}catch(e){r.e(e)}finally{r.f()}delete e[t].allowAttributesOf}function Ka(e,t){var n,r=e[t],i=u(r.inheritTypesFrom);try{for(i.s();!(n=i.n()).done;){var o=e[n.value];if(o){var a,s=u(Object.keys(o).filter((function(e){return e.startsWith("is")})));try{for(s.s();!(a=s.n()).done;){var c=a.value;c in r||(r[c]=o[c])}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){i.e(e)}finally{i.f()}delete r.inheritTypesFrom}function Qa(e,t){var n=e[t],r=n.allowIn.filter((function(t){return e[t]}));n.allowIn=Array.from(new Set(r))}function Ja(e,t){var n=e[t];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function Xa(e,t,n){var r,i=u(e);try{for(i.s();!(r=i.n()).done;){var o,a=r.value;"string"==typeof a[n]?t[n].push(a[n]):Array.isArray(a[n])&&(o=t[n]).push.apply(o,c(a[n]))}}catch(e){i.e(e)}finally{i.f()}}function Za(e,t){var n,r=e[t];return(n=e,Object.keys(n).map((function(e){return n[e]}))).filter((function(e){return e.allowIn.includes(r.name)}))}function es(e){return"string"==typeof e?{name:e,getAttributeKeys:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})),getAttribute:function(){}}:{name:e.is("element")?e.name:"$text",getAttributeKeys:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e.getAttributeKeys(),"t0",1);case 1:case"end":return t.stop()}}),t)})),getAttribute:function(t){return e.getAttribute(t)}}}function ts(e,t,n){var r,i=u(t.getAttributeKeys());try{for(i.s();!(r=i.n()).done;){var o=r.value;e.checkAttribute(t,o)||n.removeAttribute(o,t)}}catch(e){i.e(e)}finally{i.f()}}var ns=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,e),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},t),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}return m(e,[{key:"convert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",e),this._modelCursor=function(e,t){var n,r,i=u(new Ua(e));try{for(i.s();!(r=i.n()).done;){var o,a=r.value,s={},c=u(a.getAttributeKeys());try{for(c.s();!(o=c.n()).done;){var l=o.value;s[l]=a.getAttribute(l)}}catch(e){c.e(e)}finally{c.f()}var d=t.createElement(a.name,s);n&&t.append(d,n),n=Xo._createAt(d,0)}}catch(e){i.e(e)}finally{i.f()}return n}(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=$a.createFrom(e),this.conversionApi.store={};var r=this._convertItem(e,this._modelCursor),i=r.modelRange,o=t.createDocumentFragment();if(i){this._removeEmptyElements();for(var a=0,s=Array.from(this._modelCursor.parent.getChildren());a<s.length;a++){var c=s[a];t.append(c,o)}o.markers=function(e,t){var n,r=new Set,i=new Map,o=u(na._createIn(e).getItems());try{for(o.s();!(n=o.n()).done;){var a=n.value;"$marker"==a.name&&r.add(a)}}catch(e){o.e(e)}finally{o.f()}var s,c=u(r);try{for(c.s();!(s=c.n()).done;){var l=s.value,d=l.getAttribute("data-name"),f=t.createPositionBefore(l);i.has(d)?i.get(d).end=f.clone():i.set(d,new na(f.clone())),t.remove(l)}}catch(e){c.e(e)}finally{c.f()}return i}(o,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,o}},{key:"_convertItem",value:function(e,t){var n=Object.assign({viewItem:e,modelCursor:t,modelRange:null});if(e.is("element")?this.fire("element:"+e.name,n,this.conversionApi):e.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof na))throw new Gt.b("view-conversion-dispatcher-incorrect-result: Incorrect conversion result was dropped.",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}},{key:"_convertChildren",value:function(e,t){for(var n=t.is("position")?t:Xo._createAt(t,0),r=new na(n),i=0,o=Array.from(e.getChildren());i<o.length;i++){var a=o[i],s=this._convertItem(a,n);s.modelRange instanceof na&&(r.end=s.modelRange.end,n=s.modelCursor)}return{modelRange:r,modelCursor:n}}},{key:"_safeInsert",value:function(e,t){var n=this._splitToAllowedParent(e,t);return!!n&&(this.conversionApi.writer.insert(e,n.position),!0)}},{key:"_updateConversionResult",value:function(e,t){var n=this._getSplitParts(e),r=this.conversionApi.writer;t.modelRange||(t.modelRange=r.createRange(r.createPositionBefore(e),r.createPositionAfter(n[n.length-1])));var i=this._cursorParents.get(e);t.modelCursor=i?r.createPositionAt(i,0):t.modelRange.end}},{key:"_splitToAllowedParent",value:function(e,t){var n=this.conversionApi,r=n.schema,i=n.writer,o=r.findAllowedParent(t,e);if(o){if(o===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(o)&&(o=null)}if(!o)return Oa(t,e,r)?{position:Pa(t,i)}:null;var a,s=this.conversionApi.writer.split(t,o),c=[],l=u(s.range.getWalker());try{for(l.s();!(a=l.n()).done;){var d=a.value;if("elementEnd"==d.type)c.push(d.item);else{var f=c.pop(),h=d.item;this._registerSplitPair(f,h)}}}catch(e){l.e(e)}finally{l.f()}var p=s.range.end.parent;return this._cursorParents.set(e,p),{position:s.position,cursorParent:p}}},{key:"_registerSplitPair",value:function(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);var n=this._splitParts.get(e);this._splitParts.set(t,n),n.push(t)}},{key:"_getSplitParts",value:function(e){return this._splitParts.has(e)?this._splitParts.get(e):[e]}},{key:"_removeEmptyElements",value:function(){var e,t=!1,n=u(this._splitParts.keys());try{for(n.s();!(e=n.n()).done;){var r=e.value;r.isEmpty&&(this.conversionApi.writer.remove(r),this._splitParts.delete(r),t=!0)}}catch(e){n.e(e)}finally{n.f()}t&&this._removeEmptyElements()}}]),e}();an(ns,Jt);var rs=function(){function e(t,n){var r=this;h(this,e),this.model=t,this.stylesProcessor=n,this.processor,this.mapper=new ra,this.downcastDispatcher=new aa({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",(function(e,t,n){if(n.consumable.consume(t.item,"insert")){var r=n.writer,i=n.mapper.toViewPosition(t.range.start),o=r.createText(t.item.data);r.insert(i,o)}}),{priority:"lowest"}),this.upcastDispatcher=new ns({schema:t.schema}),this.viewDocument=new Or(n),this._viewWriter=new ri(this.viewDocument),this.upcastDispatcher.on("text",(function(e,t,n){var r=n.schema,i=n.consumable,o=n.writer,a=t.modelCursor;if(i.test(t.viewItem)){if(!r.checkChild(a,"$text")){if(!Oa(a,"$text",r))return;a=Pa(a,o)}i.consume(t.viewItem);var s=o.createText(t.viewItem.data);o.insert(s,a),t.modelRange=o.createRange(a,a.getShiftedBy(s.offsetSize)),t.modelCursor=t.modelRange.end}}),{priority:"lowest"}),this.upcastDispatcher.on("element",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var r=n.convertChildren(t.viewItem,t.modelCursor),i=r.modelRange,o=r.modelCursor;t.modelRange=i,t.modelCursor=o}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var r=n.convertChildren(t.viewItem,t.modelCursor),i=r.modelRange,o=r.modelCursor;t.modelRange=i,t.modelCursor=o}}),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",(function(){r.fire("ready")}),{priority:"lowest"}),this.on("ready",(function(){r.model.enqueueChange("transparent",Ea)}),{priority:"lowest"})}return m(e,[{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootName,n=void 0===t?"main":t,r=e.trim,i=void 0===r?"empty":r;if(!this._checkIfRootsExists([n]))throw new Gt.b("datacontroller-get-non-existent-root: Attempting to get data from a non-existing root.",this);var o=this.model.document.getRoot(n);return"empty"!==i||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,e):""}},{key:"stringify",value:function(e,t){var n=this.toView(e,t);return this.processor.toData(n)}},{key:"toView",value:function(e,t){var n=this.viewDocument,r=this._viewWriter;this.mapper.clearBindings();var i=na._createIn(e),o=new ni(n);if(this.mapper.bindElements(e,o),this.downcastDispatcher.conversionApi.options=t,this.downcastDispatcher.convertInsert(i,r),!e.is("documentFragment")){var a,s=function(e){var t=[],n=e.root.document;if(!n)return[];var r,i=na._createIn(e),o=u(n.model.markers);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=i.getIntersection(a.getRange());s&&t.push([a.name,s])}}catch(e){o.e(e)}finally{o.f()}return t}(e),c=u(s);try{for(c.s();!(a=c.n()).done;){var d=l(a.value,2),f=d[0],h=d[1];this.downcastDispatcher.convertMarkerAdd(f,h,r)}}catch(e){c.e(e)}finally{c.f()}}return delete this.downcastDispatcher.conversionApi.options,o}},{key:"init",value:function(e){var t=this;if(this.model.document.version)throw new Gt.b("datacontroller-init-document-not-empty: Trying to set initial data to not empty document.",this);var n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new Gt.b("datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.",this);return this.model.enqueueChange("transparent",(function(e){for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=t.model.document.getRoot(o);e.insert(t.parse(n[o],a),a,0)}})),Promise.resolve()}},{key:"set",value:function(e){var t=this,n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new Gt.b("datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.",this);this.model.enqueueChange("transparent",(function(e){e.setSelection(null),e.removeSelectionAttribute(t.model.document.selection.getAttributeKeys());for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=t.model.document.getRoot(o);e.remove(e.createRangeIn(a)),e.insert(t.parse(n[o],a),a,0)}}))}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root",n=this.processor.toView(e);return this.toModel(n,t)}},{key:"toModel",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((function(r){return t.upcastDispatcher.convert(e,r,n)}))}},{key:"addStyleProcessorRules",value:function(e){e(this.stylesProcessor)}},{key:"destroy",value:function(){this.stopListening()}},{key:"_checkIfRootsExists",value:function(e){var t,n=u(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(!this.model.document.getRootNames().includes(r))return!1}}catch(e){n.e(e)}finally{n.f()}return!0}}]),e}();an(rs,pr);var is=function(){function e(t,n){h(this,e),this._helpers=new Map,this._downcast=Array.isArray(t)?t:[t],this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Array.isArray(n)?n:[n],this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}return m(e,[{key:"addAlias",value:function(e,t){var n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new Gt.b("conversion-add-alias-dispatcher-not-registered: Trying to register and alias for a dispatcher that nas not been registered.",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}},{key:"for",value:function(e){if(!this._helpers.has(e))throw new Gt.b("conversion-for-unknown-group: Trying to add a converter to an unknown dispatchers group.",this);return this._helpers.get(e)}},{key:"elementToElement",value:function(e){this.for("downcast").elementToElement(e);var t,n=u(os(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.model,o=r.view;this.for("upcast").elementToElement({model:i,view:o,converterPriority:e.converterPriority})}}catch(e){n.e(e)}finally{n.f()}}},{key:"attributeToElement",value:function(e){this.for("downcast").attributeToElement(e);var t,n=u(os(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.model,o=r.view;this.for("upcast").elementToAttribute({view:o,model:i,converterPriority:e.converterPriority})}}catch(e){n.e(e)}finally{n.f()}}},{key:"attributeToAttribute",value:function(e){this.for("downcast").attributeToAttribute(e);var t,n=u(os(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.model,o=r.view;this.for("upcast").attributeToAttribute({view:o,model:i})}}catch(e){n.e(e)}finally{n.f()}}},{key:"_createConversionHelpers",value:function(e){var t=e.name,n=e.dispatchers,r=e.isDowncast;if(this._helpers.has(t))throw new Gt.b("conversion-group-exists: Trying to register a group name that has already been registered.",this);var i=r?new ka(n):new Ia(n);this._helpers.set(t,i)}}]),e}();function os(e){var t,n,i,a,s,c;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.model.values){r.next=20;break}t=u(e.model.values),r.prev=2,t.s();case 4:if((n=t.n()).done){r.next=10;break}return i=n.value,a={key:e.model.key,value:i},s=e.view[i],c=e.upcastAlso?e.upcastAlso[i]:void 0,r.delegateYield(as(a,s,c),"t0",8);case 8:r.next=4;break;case 10:r.next=15;break;case 12:r.prev=12,r.t1=r.catch(2),t.e(r.t1);case 15:return r.prev=15,t.f(),r.finish(15);case 18:r.next=21;break;case 20:return r.delegateYield(as(e.model,e.view,e.upcastAlso),"t2",21);case 21:case"end":return r.stop()}}),r,null,[[2,12,15,18]])}function as(e,t,n){var r,a,s;return o.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,{model:e,view:t};case 2:if(!n){i.next=21;break}n=Array.isArray(n)?n:[n],r=u(n),i.prev=5,r.s();case 7:if((a=r.n()).done){i.next=13;break}return s=a.value,i.next=11,{model:e,view:s};case 11:i.next=7;break;case 13:i.next=18;break;case 15:i.prev=15,i.t0=i.catch(5),r.e(i.t0);case 18:return i.prev=18,r.f(),i.finish(18);case 21:case"end":return i.stop()}}),i,null,[[5,15,18,21]])}var ss=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";h(this,e),this.operations=[],this.type=t}return m(e,[{key:"addOperation",value:function(e){return e.batch=this,this.operations.push(e),e}},{key:"baseVersion",get:function(){var e,t=u(this.operations);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==n.baseVersion)return n.baseVersion}}catch(e){t.e(e)}finally{t.f()}return null}}]),e}(),cs=function(){function e(t){h(this,e),this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}return m(e,[{key:"_validate",value:function(){}},{key:"toJSON",value:function(){var e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}}],[{key:"fromJSON",value:function(e){return new this(e.baseVersion)}},{key:"className",get:function(){return"Operation"}}]),e}(),ls=function(){function e(t){h(this,e),this.markers=new Map,this._children=new Go,t&&this._insertChild(0,t)}return m(e,[{key:Symbol.iterator,value:function(){return this.getChildren()}},{key:"is",value:function(e){return"documentFragment"===e||"model:documentFragment"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"getPath",value:function(){return[]}},{key:"getNodeByPath",value:function(e){var t,n=this,r=u(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n=n.getChild(n.offsetToIndex(i))}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"toJSON",value:function(){var e,t=[],n=u(this._children);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r.toJSON())}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,r=function(e){return"string"==typeof e?[new Wo(e)]:(on(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new Wo(e):e instanceof Yo?new Wo(e.data,e.getAttributes()):e})))}(t),i=u(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(e){i.e(e)}finally{i.f()}this._children._insertNodes(e,r)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this._children._removeNodes(e,n),i=u(r);try{for(i.s();!(t=i.n()).done;){var o=t.value;o.parent=null}}catch(e){i.e(e)}finally{i.f()}return r}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}}],[{key:"fromJSON",value:function(t){var n,r=[],i=u(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.name?r.push(Ko.fromJSON(o)):r.push(Wo.fromJSON(o))}}catch(e){i.e(e)}finally{i.f()}return new e(r)}}]),e}();function us(e,t){var n=(t=hs(t)).reduce((function(e,t){return e+t.offsetSize}),0),r=e.parent;ms(e);var i=e.index;return r._insertChild(i,t),ps(r,i+t.length),ps(r,i),new na(e,e.getShiftedBy(n))}function ds(e){if(!e.isFlat)throw new Gt.b("operation-utils-remove-range-not-flat: Trying to remove a range which starts and ends in different element.",this);var t=e.start.parent;ms(e.start),ms(e.end);var n=t._removeChildren(e.start.index,e.end.index-e.start.index);return ps(t,e.start.index),n}function fs(e,t){if(!e.isFlat)throw new Gt.b("operation-utils-move-range-not-flat: Trying to move a range which starts and ends in different element.",this);var n=ds(e);return us(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),n)}function hs(e){var t=[];e instanceof Array||(e=[e]);for(var n=0;n<e.length;n++)if("string"==typeof e[n])t.push(new Wo(e[n]));else if(e[n]instanceof Yo)t.push(new Wo(e[n].data,e[n].getAttributes()));else if(e[n]instanceof ls||e[n]instanceof Go){var r,i=u(e[n]);try{for(i.s();!(r=i.n()).done;){var o=r.value;t.push(o)}}catch(e){i.e(e)}finally{i.f()}}else e[n]instanceof qo&&t.push(e[n]);for(var a=1;a<t.length;a++){var s=t[a],c=t[a-1];s instanceof Wo&&c instanceof Wo&&vs(s,c)&&(t.splice(a-1,2,new Wo(c.data+s.data,c.getAttributes())),a--)}return t}function ps(e,t){var n=e.getChild(t-1),r=e.getChild(t);if(n&&r&&n.is("$text")&&r.is("$text")&&vs(n,r)){var i=new Wo(n.data+r.data,n.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,i)}}function ms(e){var t=e.textNode,n=e.parent;if(t){var r=e.offset-t.startOffset,i=t.index;n._removeChildren(i,1);var o=new Wo(t.data.substr(0,r),t.getAttributes()),a=new Wo(t.data.substr(r),t.getAttributes());n._insertChild(i,[o,a])}}function vs(e,t){var n,r=e.getAttributes(),i=t.getAttributes(),o=u(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a[1]!==t.getAttribute(a[0]))return!1;i.next()}}catch(e){o.e(e)}finally{o.f()}return i.next().done}var gs=function(e,t){return ao(e,t)},bs=function(e){v(n,e);var t=g(n);function n(e,r,i,o,a){var s;return h(this,n),(s=t.call(this,a)).range=e.clone(),s.key=r,s.oldValue=void 0===i?null:i,s.newValue=void 0===o?null:o,s}return m(n,[{key:"clone",value:function(){return new n(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"toJSON",value:function(){var e=s(C(n.prototype),"toJSON",this).call(this);return e.range=this.range.toJSON(),e}},{key:"_validate",value:function(){if(!this.range.isFlat)throw new Gt.b("attribute-operation-range-not-flat: The range to change is not flat.",this);var e,t=u(this.range.getItems({shallow:!0}));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==this.oldValue&&!gs(n.getAttribute(this.key),this.oldValue))throw new Gt.b("attribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",this,{item:n,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&n.hasAttribute(this.key))throw new Gt.b("attribute-operation-attribute-exists: The attribute with given key already exists.",this,{node:n,key:this.key})}}catch(e){t.e(e)}finally{t.f()}}},{key:"_execute",value:function(){gs(this.oldValue,this.newValue)||function(e,t,n){ms(e.start),ms(e.end);var r,i=u(e.getItems({shallow:!0}));try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.is("$textProxy")?o.textNode:o;null!==n?a._setAttribute(t,n):a._removeAttribute(t),ps(a.parent,a.index)}}catch(e){i.e(e)}finally{i.f()}ps(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}},{key:"type",get:function(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}}],[{key:"fromJSON",value:function(e,t){return new n(na.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}},{key:"className",get:function(){return"AttributeOperation"}}]),n}(cs),ys=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,null)).sourcePosition=e.clone(),i.howMany=r,i}return m(n,[{key:"toJSON",value:function(){var e=s(C(n.prototype),"toJSON",this).call(this);return e.sourcePosition=this.sourcePosition.toJSON(),e}},{key:"_validate",value:function(){if(this.sourcePosition.root.document)throw new Gt.b("detach-operation-on-document-node: Cannot detach document node.",this)}},{key:"_execute",value:function(){ds(na._createFromPositionAndShift(this.sourcePosition,this.howMany))}},{key:"type",get:function(){return"detach"}}],[{key:"className",get:function(){return"DetachOperation"}}]),n}(cs),_s=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,o)).sourcePosition=e.clone(),a.sourcePosition.stickiness="toNext",a.howMany=r,a.targetPosition=i.clone(),a.targetPosition.stickiness="toNone",a}return m(n,[{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}},{key:"getMovedRangeStart",value:function(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}},{key:"getReversed",value:function(){var e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.sourcePosition.parent,t=this.targetPosition.parent,n=this.sourcePosition.offset,r=this.targetPosition.offset;if(n+this.howMany>e.maxOffset)throw new Gt.b("move-operation-nodes-do-not-exist: The nodes which should be moved do not exist.",this);if(e===t&&n<r&&r<n+this.howMany)throw new Gt.b("move-operation-range-into-itself: Trying to move a range of nodes to the inside of that range.",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==pn(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){var i=this.sourcePosition.path.length-1;if(this.targetPosition.path[i]>=n&&this.targetPosition.path[i]<n+this.howMany)throw new Gt.b("move-operation-node-into-itself: Trying to move a range of nodes into one of nodes from that range.",this)}}},{key:"_execute",value:function(){fs(na._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}},{key:"toJSON",value:function(){var e=s(C(n.prototype),"toJSON",this).call(this);return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}},{key:"type",get:function(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}}],[{key:"fromJSON",value:function(e,t){var n=Xo.fromJSON(e.sourcePosition,t),r=Xo.fromJSON(e.targetPosition,t);return new this(n,e.howMany,r,e.baseVersion)}},{key:"className",get:function(){return"MoveOperation"}}]),n}(cs),ws=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,i)).position=e.clone(),o.position.stickiness="toNone",o.nodes=new Go(hs(r)),o.shouldReceiveAttributes=!1,o}return m(n,[{key:"clone",value:function(){var e=new Go(c(this.nodes).map((function(e){return e._clone(!0)}))),t=new n(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}},{key:"getReversed",value:function(){var e=this.position.root.document.graveyard,t=new Xo(e,[0]);return new _s(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new Gt.b("insert-operation-position-invalid: Insertion position is invalid.",this)}},{key:"_execute",value:function(){var e=this.nodes;this.nodes=new Go(c(e).map((function(e){return e._clone(!0)}))),us(this.position,e)}},{key:"toJSON",value:function(){var e=s(C(n.prototype),"toJSON",this).call(this);return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}},{key:"type",get:function(){return"insert"}},{key:"howMany",get:function(){return this.nodes.maxOffset}}],[{key:"fromJSON",value:function(e,t){var r,i=[],o=u(e.nodes);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.name?i.push(Ko.fromJSON(a)):i.push(Wo.fromJSON(a))}}catch(e){o.e(e)}finally{o.f()}var s=new n(Xo.fromJSON(e.position,t),i,e.baseVersion);return s.shouldReceiveAttributes=e.shouldReceiveAttributes,s}},{key:"className",get:function(){return"InsertOperation"}}]),n}(cs),ks=function(e){v(n,e);var t=g(n);function n(e,r,i,o,a,s){var c;return h(this,n),(c=t.call(this,s)).name=e,c.oldRange=r?r.clone():null,c.newRange=i?i.clone():null,c.affectsData=a,c._markers=o,c}return m(n,[{key:"clone",value:function(){return new n(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}},{key:"_execute",value:function(){var e=this.newRange?"_set":"_remove";this._markers[e](this.name,this.newRange,!0,this.affectsData)}},{key:"toJSON",value:function(){var e=s(C(n.prototype),"toJSON",this).call(this);return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}},{key:"type",get:function(){return"marker"}}],[{key:"fromJSON",value:function(e,t){return new n(e.name,e.oldRange?na.fromJSON(e.oldRange,t):null,e.newRange?na.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}},{key:"className",get:function(){return"MarkerOperation"}}]),n}(cs),xs=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,o)).position=e,a.position.stickiness="toNext",a.oldName=r,a.newName=i,a}return m(n,[{key:"clone",value:function(){return new n(this.position.clone(),this.oldName,this.newName,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.position.nodeAfter;if(!(e instanceof Ko))throw new Gt.b("rename-operation-wrong-position: Given position is invalid or node after it is not an instance of Element.",this);if(e.name!==this.oldName)throw new Gt.b("rename-operation-wrong-name: Element to change has different name than operation's old name.",this)}},{key:"_execute",value:function(){this.position.nodeAfter.name=this.newName}},{key:"toJSON",value:function(){var e=s(C(n.prototype),"toJSON",this).call(this);return e.position=this.position.toJSON(),e}},{key:"type",get:function(){return"rename"}}],[{key:"fromJSON",value:function(e,t){return new n(Xo.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}},{key:"className",get:function(){return"RenameOperation"}}]),n}(cs),Cs=function(e){v(n,e);var t=g(n);function n(e,r,i,o,a){var s;return h(this,n),(s=t.call(this,a)).root=e,s.key=r,s.oldValue=i,s.newValue=o,s}return m(n,[{key:"clone",value:function(){return new n(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"_validate",value:function(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new Gt.b("rootattribute-operation-not-a-root: The element to change is not a root element.",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new Gt.b("rootattribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new Gt.b("rootattribute-operation-attribute-exists: The attribute with given key already exists.",this,{root:this.root,key:this.key})}},{key:"_execute",value:function(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}},{key:"toJSON",value:function(){var e=s(C(n.prototype),"toJSON",this).call(this);return e.root=this.root.toJSON(),e}},{key:"type",get:function(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}}],[{key:"fromJSON",value:function(e,t){if(!t.getRoot(e.root))throw new Gt.b("rootattribute-operation-fromjson-no-root: Cannot create RootAttributeOperation. Root with specified name does not exist.",this,{rootName:e.root});return new n(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}},{key:"className",get:function(){return"RootAttributeOperation"}}]),n}(cs),Ss=function(e){v(n,e);var t=g(n);function n(e,r,i,o,a){var s;return h(this,n),(s=t.call(this,a)).sourcePosition=e.clone(),s.sourcePosition.stickiness="toPrevious",s.howMany=r,s.targetPosition=i.clone(),s.targetPosition.stickiness="toNext",s.graveyardPosition=o.clone(),s}return m(n,[{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}},{key:"getReversed",value:function(){var e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),n=new Xo(this.sourcePosition.root,t)._getTransformedByMergeOperation(this),r=new Ts(e,this.howMany,this.graveyardPosition,this.baseVersion+1);return r.insertionPosition=n,r}},{key:"_validate",value:function(){var e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new Gt.b("merge-operation-source-position-invalid: Merge source position is invalid.",this);if(!t.parent)throw new Gt.b("merge-operation-target-position-invalid: Merge target position is invalid.",this);if(this.howMany!=e.maxOffset)throw new Gt.b("merge-operation-how-many-invalid: Merge operation specifies wrong number of nodes to move.",this)}},{key:"_execute",value:function(){var e=this.sourcePosition.parent;fs(na._createIn(e),this.targetPosition),fs(na._createOn(e),this.graveyardPosition)}},{key:"toJSON",value:function(){var e=s(C(n.prototype),"toJSON",this).call(this);return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}},{key:"type",get:function(){return"merge"}},{key:"deletionPosition",get:function(){return new Xo(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}},{key:"movedRange",get:function(){var e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new na(this.sourcePosition,e)}}],[{key:"fromJSON",value:function(e,t){var n=Xo.fromJSON(e.sourcePosition,t),r=Xo.fromJSON(e.targetPosition,t),i=Xo.fromJSON(e.graveyardPosition,t);return new this(n,e.howMany,r,i,e.baseVersion)}},{key:"className",get:function(){return"MergeOperation"}}]),n}(cs),Ts=function(e){v(n,e);var t=g(n);function n(e,r,i,o){var a;return h(this,n),(a=t.call(this,o)).splitPosition=e.clone(),a.splitPosition.stickiness="toNext",a.howMany=r,a.insertionPosition=n.getInsertionPosition(e),a.insertionPosition.stickiness="toNone",a.graveyardPosition=i?i.clone():null,a.graveyardPosition&&(a.graveyardPosition.stickiness="toNext"),a}return m(n,[{key:"clone",value:function(){var e=new this.constructor(this.splitPosition,this.howMany,this.graveyardPosition,this.baseVersion);return e.insertionPosition=this.insertionPosition,e}},{key:"getReversed",value:function(){var e=this.splitPosition.root.document.graveyard,t=new Xo(e,[0]);return new Ss(this.moveTargetPosition,this.howMany,this.splitPosition,t,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset<t)throw new Gt.b("split-operation-position-invalid: Split position is invalid.",this);if(!e.parent)throw new Gt.b("split-operation-split-in-root: Cannot split root element.",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new Gt.b("split-operation-how-many-invalid: Split operation specifies wrong number of nodes to move.",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new Gt.b("split-operation-graveyard-position-invalid: Graveyard position invalid.",this)}},{key:"_execute",value:function(){var e=this.splitPosition.parent;if(this.graveyardPosition)fs(na._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{var t=e._clone();us(this.insertionPosition,t)}fs(new na(Xo._createAt(e,this.splitPosition.offset),Xo._createAt(e,e.maxOffset)),this.moveTargetPosition)}},{key:"toJSON",value:function(){var e=s(C(n.prototype),"toJSON",this).call(this);return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}},{key:"type",get:function(){return"split"}},{key:"moveTargetPosition",get:function(){var e=this.insertionPosition.path.slice();return e.push(0),new Xo(this.insertionPosition.root,e)}},{key:"movedRange",get:function(){var e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new na(this.splitPosition,e)}}],[{key:"getInsertionPosition",value:function(e){var t=e.path.slice(0,-1);return t[t.length-1]++,new Xo(e.root,t)}},{key:"fromJSON",value:function(e,t){var n=Xo.fromJSON(e.splitPosition,t),r=Xo.fromJSON(e.insertionPosition,t),i=e.graveyardPosition?Xo.fromJSON(e.graveyardPosition,t):null,o=new this(n,e.howMany,i,e.baseVersion);return o.insertionPosition=r,o}},{key:"className",get:function(){return"SplitOperation"}}]),n}(cs),As=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";return h(this,n),(i=t.call(this,r))._document=e,i.rootName=o,i}return m(n,[{key:"is",value:function(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"toJSON",value:function(){return this.rootName}},{key:"document",get:function(){return this._document}}]),n}(Ko),Ms=function(){function e(t,n){h(this,e),this.model=t,this.batch=n}return m(e,[{key:"createText",value:function(e,t){return new Wo(e,t)}},{key:"createElement",value:function(e,t){return new Ko(e,t)}},{key:"createDocumentFragment",value:function(){return new ls}},{key:"cloneElement",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e._clone(t)}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),!(e instanceof Wo&&""==e.data)){var r=Xo._createAt(t,n);if(e.parent){if(Ds(e.root,r.root))return void this.move(na._createOn(e),r);if(e.root.document)throw new Gt.b("model-writer-insert-forbidden-move: Cannot move a node from a document to a different tree. It is forbidden to move a node that was already in a document outside of it.",this);this.remove(e)}var i=r.root.document?r.root.document.version:null,o=new ws(r,e,i);if(e instanceof Wo&&(o.shouldReceiveAttributes=!0),this.batch.addOperation(o),this.model.applyOperation(o),e instanceof ls){var a,s=u(e.markers);try{for(s.s();!(a=s.n()).done;){var c=l(a.value,2),d=c[0],f=c[1],h=Xo._createAt(f.root,0),p={range:new na(f.start._getCombined(h,r),f.end._getCombined(h,r)),usingOperation:!0,affectsData:!0};this.model.markers.has(d)?this.updateMarker(d,p):this.addMarker(d,p)}}catch(e){s.e(e)}finally{s.f()}}}}},{key:"insertText",value:function(e,t,n,r){t instanceof ls||t instanceof Ko||t instanceof Xo?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,r)}},{key:"insertElement",value:function(e,t,n,r){t instanceof ls||t instanceof Ko||t instanceof Xo?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,r)}},{key:"append",value:function(e,t){this.insert(e,t,"end")}},{key:"appendText",value:function(e,t,n){t instanceof ls||t instanceof Ko?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),n,"end")}},{key:"appendElement",value:function(e,t,n){t instanceof ls||t instanceof Ko?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),n,"end")}},{key:"setAttribute",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof na){var r,i=u(n.getMinimalFlatRanges());try{for(i.s();!(r=i.n()).done;){Es(this,e,t,r.value)}}catch(e){i.e(e)}finally{i.f()}}else Os(this,e,t,n)}},{key:"setAttributes",value:function(e,t){var n,r=u(yn(e));try{for(r.s();!(n=r.n()).done;){var i=l(n.value,2),o=i[0],a=i[1];this.setAttribute(o,a,t)}}catch(e){r.e(e)}finally{r.f()}}},{key:"removeAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),t instanceof na){var n,r=u(t.getMinimalFlatRanges());try{for(r.s();!(n=r.n()).done;){Es(this,e,null,n.value)}}catch(e){r.e(e)}finally{r.f()}}else Os(this,e,null,t)}},{key:"clearAttributes",value:function(e){var t=this;this._assertWriterUsedCorrectly();var n=function(e){var n,r=u(e.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var i=n.value;t.removeAttribute(i,e)}}catch(e){r.e(e)}finally{r.f()}};if(e instanceof na){var r,i=u(e.getItems());try{for(i.s();!(r=i.n()).done;){n(r.value)}}catch(e){i.e(e)}finally{i.f()}}else n(e)}},{key:"move",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof na))throw new Gt.b("writer-move-invalid-range: Invalid range to move.",this);if(!e.isFlat)throw new Gt.b("writer-move-range-not-flat: Range to move is not flat.",this);var r=Xo._createAt(t,n);if(!r.isEqual(e.start)){if(this._addOperationForAffectedMarkers("move",e),!Ds(e.root,r.root))throw new Gt.b("writer-move-different-document: Range is going to be moved between different documents.",this);var i=e.root.document?e.root.document.version:null,o=new _s(e.start,e.end.offset-e.start.offset,r,i);this.batch.addOperation(o),this.model.applyOperation(o)}}},{key:"remove",value:function(e){this._assertWriterUsedCorrectly();var t,n=u((e instanceof na?e:na._createOn(e)).getMinimalFlatRanges().reverse());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._addOperationForAffectedMarkers("move",r),Is(r.start,r.end.offset-r.start.offset,this.batch,this.model)}}catch(e){n.e(e)}finally{n.f()}}},{key:"merge",value:function(e){this._assertWriterUsedCorrectly();var t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof Ko))throw new Gt.b("writer-merge-no-element-before: Node before merge position must be an element.",this);if(!(n instanceof Ko))throw new Gt.b("writer-merge-no-element-after: Node after merge position must be an element.",this);e.root.document?this._merge(e):this._mergeDetached(e)}},{key:"createPositionFromPath",value:function(e,t,n){return this.model.createPositionFromPath(e,t,n)}},{key:"createPositionAt",value:function(e,t){return this.model.createPositionAt(e,t)}},{key:"createPositionAfter",value:function(e){return this.model.createPositionAfter(e)}},{key:"createPositionBefore",value:function(e){return this.model.createPositionBefore(e)}},{key:"createRange",value:function(e,t){return this.model.createRange(e,t)}},{key:"createRangeIn",value:function(e){return this.model.createRangeIn(e)}},{key:"createRangeOn",value:function(e){return this.model.createRangeOn(e)}},{key:"createSelection",value:function(e,t,n){return this.model.createSelection(e,t,n)}},{key:"_mergeDetached",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;this.move(na._createIn(n),Xo._createAt(t,"end")),this.remove(n)}},{key:"_merge",value:function(e){var t=Xo._createAt(e.nodeBefore,"end"),n=Xo._createAt(e.nodeAfter,0),r=e.root.document.graveyard,i=new Xo(r,[0]),o=e.root.document.version,a=new Ss(n,e.nodeAfter.maxOffset,t,i,o);this.batch.addOperation(a),this.model.applyOperation(a)}},{key:"rename",value:function(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof Ko))throw new Gt.b("writer-rename-not-element-instance: Trying to rename an object which is not an instance of Element.",this);var n=e.root.document?e.root.document.version:null,r=new xs(Xo._createBefore(e),e.name,t,n);this.batch.addOperation(r),this.model.applyOperation(r)}},{key:"split",value:function(e,t){this._assertWriterUsedCorrectly();var n,r,i=e.parent;if(!i.parent)throw new Gt.b("writer-split-element-no-parent: Element with no parent can not be split.",this);if(t||(t=i.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new Gt.b("writer-split-invalid-limit-element: Limit element is not a position ancestor.",this);do{var o=i.root.document?i.root.document.version:null,a=i.maxOffset-e.offset,s=new Ts(e,a,null,o);this.batch.addOperation(s),this.model.applyOperation(s),n||r||(n=i,r=e.parent.nextSibling),i=(e=this.createPositionAfter(e.parent)).parent}while(i!==t);return{position:e,range:new na(Xo._createAt(n,"end"),Xo._createAt(r,0))}}},{key:"wrap",value:function(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new Gt.b("writer-wrap-range-not-flat: Range to wrap is not flat.",this);var n=t instanceof Ko?t:new Ko(t);if(n.childCount>0)throw new Gt.b("writer-wrap-element-not-empty: Element to wrap with is not empty.",this);if(null!==n.parent)throw new Gt.b("writer-wrap-element-attached: Element to wrap with is already attached to tree model.",this);this.insert(n,e.start);var r=new na(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(r,Xo._createAt(n,0))}},{key:"unwrap",value:function(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new Gt.b("writer-unwrap-element-no-parent: Trying to unwrap an element which has no parent.",this);this.move(na._createIn(e),this.createPositionAfter(e)),this.remove(e)}},{key:"addMarker",value:function(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new Gt.b("writer-addMarker-no-usingOperation: The options.usingOperation parameter is required when adding a new marker.",this);var n=t.usingOperation,r=t.range,i=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new Gt.b("writer-addMarker-marker-exists: Marker with provided name already exists.",this);if(!r)throw new Gt.b("writer-addMarker-no-range: Range parameter is required when adding a new marker.",this);return n?(Ps(this,e,null,r,i),this.model.markers.get(e)):this.model.markers._set(e,r,n,i)}},{key:"updateMarker",value:function(e,t){this._assertWriterUsedCorrectly();var n="string"==typeof e?e:e.name,r=this.model.markers.get(n);if(!r)throw new Gt.b("writer-updateMarker-marker-not-exists: Marker with provided name does not exists.",this);if(t){var i="boolean"==typeof t.usingOperation,o="boolean"==typeof t.affectsData,a=o?t.affectsData:r.affectsData;if(!i&&!t.range&&!o)throw new Gt.b("writer-updateMarker-wrong-options: One of the options is required - provide range, usingOperations or affectsData.",this);var s=r.getRange(),c=t.range?t.range:s;i&&t.usingOperation!==r.managedUsingOperations?t.usingOperation?Ps(this,n,null,c,a):(Ps(this,n,s,null,a),this.model.markers._set(n,c,void 0,a)):r.managedUsingOperations?Ps(this,n,s,c,a):this.model.markers._set(n,c,void 0,a)}else this.model.markers._refresh(r)}},{key:"removeMarker",value:function(e){this._assertWriterUsedCorrectly();var t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new Gt.b("writer-removeMarker-no-marker: Trying to remove marker which does not exist.",this);var n=this.model.markers.get(t);n.managedUsingOperations?Ps(this,t,n.getRange(),null,n.affectsData):this.model.markers._remove(t)}},{key:"setSelection",value:function(e,t,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(e,t,n)}},{key:"setSelectionFocus",value:function(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}},{key:"setSelectionAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else{var n,r=u(yn(e));try{for(r.s();!(n=r.n()).done;){var i=l(n.value,2),o=i[0],a=i[1];this._setSelectionAttribute(o,a)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"removeSelectionAttribute",value:function(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else{var t,n=u(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._removeSelectionAttribute(r)}}catch(e){n.e(e)}finally{n.f()}}}},{key:"overrideSelectionGravity",value:function(){return this.model.document.selection._overrideGravity()}},{key:"restoreSelectionGravity",value:function(e){this.model.document.selection._restoreGravity(e)}},{key:"_setSelectionAttribute",value:function(e,t){var n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){var r=ga._getStoreAttributeKey(e);this.setAttribute(r,t,n.anchor.parent)}n._setAttribute(e,t)}},{key:"_removeSelectionAttribute",value:function(e){var t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){var n=ga._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}},{key:"_assertWriterUsedCorrectly",value:function(){if(this.model._currentWriter!==this)throw new Gt.b("writer-incorrect-use: Trying to use a writer outside the change() block.",this)}},{key:"_addOperationForAffectedMarkers",value:function(e,t){var n,r=u(this.model.markers);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.managedUsingOperations){var o=i.getRange(),a=!1;if("move"===e)a=t.containsPosition(o.start)||t.start.isEqual(o.start)||t.containsPosition(o.end)||t.end.isEqual(o.end);else{var s=t.nodeBefore,c=t.nodeAfter,l=o.start.parent==s&&o.start.isAtEnd,d=o.end.parent==c&&0==o.end.offset,f=o.end.nodeAfter==c,h=o.start.nodeAfter==c;a=l||d||f||h}a&&this.updateMarker(i.name,{range:o})}}}catch(e){r.e(e)}finally{r.f()}}}]),e}();function Es(e,t,n,r){var i,o,a,s,c=e.model,l=c.document,d=r.start,f=u(r.getWalker({shallow:!0}));try{for(f.s();!(s=f.n()).done;){var h=s.value;a=h.item.getAttribute(t),i&&o!=a&&(o!=n&&p(),d=i),i=h.nextPosition,o=a}}catch(e){f.e(e)}finally{f.f()}function p(){var r=new na(d,i),a=r.root.document?l.version:null,s=new bs(r,t,o,n,a);e.batch.addOperation(s),c.applyOperation(s)}i instanceof Xo&&i!=d&&o!=n&&p()}function Os(e,t,n,r){var i,o,a=e.model,s=a.document,c=r.getAttribute(t);if(c!=n){if(r.root===r){var l=r.document?s.version:null;o=new Cs(r,t,c,n,l)}else{var u=(i=new na(Xo._createBefore(r),e.createPositionAfter(r))).root.document?s.version:null;o=new bs(i,t,c,n,u)}e.batch.addOperation(o),a.applyOperation(o)}}function Ps(e,t,n,r,i){var o=e.model,a=o.document,s=new ks(t,n,r,o.markers,i,a.version);e.batch.addOperation(s),o.applyOperation(s)}function Is(e,t,n,r){var i;if(e.root.document){var o=r.document,a=new Xo(o.graveyard,[0]);i=new _s(e,t,a,o.version)}else i=new ys(e,t);n.addOperation(i),r.applyOperation(i)}function Ds(e,t){return e===t||e instanceof As&&t instanceof As}var js=function(){function e(t){h(this,e),this._markerCollection=t,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}return m(e,[{key:"refreshItem",value:function(e){if(!this._isInInsertedElement(e.parent)){this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize);var t,n=na._createOn(e),r=u(this._markerCollection.getMarkersIntersectingRange(n));try{for(r.s();!(t=r.n()).done;){var i=t.value,o=i.getRange();this.bufferMarkerChange(i.name,o,o,i.affectsData)}}catch(e){r.e(e)}finally{r.f()}this._cachedChanges=null}}},{key:"bufferOperation",value:function(e){switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":var t,n=u(e.range.getItems({shallow:!0}));try{for(n.s();!(t=n.n()).done;){var r=t.value;this._isInInsertedElement(r.parent)||this._markAttribute(r)}}catch(e){n.e(e)}finally{n.f()}break;case"remove":case"move":case"reinsert":if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;var i=this._isInInsertedElement(e.sourcePosition.parent),o=this._isInInsertedElement(e.targetPosition.parent);i||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),o||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break;case"rename":if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);var a,s=na._createFromPositionAndShift(e.position,1),c=u(this._markerCollection.getMarkersIntersectingRange(s));try{for(c.s();!(a=c.n()).done;){var l=a.value,d=l.getRange();this.bufferMarkerChange(l.name,d,d,l.affectsData)}}catch(e){c.e(e)}finally{c.f()}break;case"split":var f=e.splitPosition.parent;this._isInInsertedElement(f)||this._markRemove(f,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break;case"merge":var h=e.sourcePosition.parent;this._isInInsertedElement(h.parent)||this._markRemove(h.parent,h.startOffset,1);var p=e.graveyardPosition.parent;this._markInsert(p,e.graveyardPosition.offset,1);var m=e.targetPosition.parent;this._isInInsertedElement(m)||this._markInsert(m,e.targetPosition.offset,h.maxOffset)}this._cachedChanges=null}},{key:"bufferMarkerChange",value:function(e,t,n,r){var i=this._changedMarkers.get(e);i?(i.newRange=n,i.affectsData=r,null==i.oldRange&&null==i.newRange&&this._changedMarkers.delete(e)):this._changedMarkers.set(e,{oldRange:t,newRange:n,affectsData:r})}},{key:"getMarkersToRemove",value:function(){var e,t=[],n=u(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var r=l(e.value,2),i=r[0],o=r[1];null!=o.oldRange&&t.push({name:i,range:o.oldRange})}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"getMarkersToAdd",value:function(){var e,t=[],n=u(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var r=l(e.value,2),i=r[0],o=r[1];null!=o.newRange&&t.push({name:i,range:o.newRange})}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"getChangedMarkers",value:function(){return Array.from(this._changedMarkers).map((function(e){return{name:e[0],data:{oldRange:e[1].oldRange,newRange:e[1].newRange}}}))}},{key:"hasDataChanges",value:function(){var e,t=u(this._changedMarkers);try{for(t.s();!(e=t.n()).done;){if(l(e.value,2)[1].affectsData)return!0}}catch(e){t.e(e)}finally{t.f()}return this._changesInElement.size>0}},{key:"getChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeChangesInGraveyard:!1};if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();var t,n=[],r=u(this._changesInElement.keys());try{for(r.s();!(t=r.n()).done;){var i,o=t.value,a=this._changesInElement.get(o).sort((function(e,t){return e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1})),s=this._elementSnapshots.get(o),l=Ns(o.getChildren()),d=Rs(s.length,a),f=0,h=0,p=u(d);try{for(p.s();!(i=p.n()).done;){var m=i.value;if("i"===m)n.push(this._getInsertDiff(o,f,l[f].name)),f++;else if("r"===m)n.push(this._getRemoveDiff(o,f,s[h].name)),h++;else if("a"===m){var v=l[f].attributes,g=s[h].attributes,b=void 0;if("$text"==l[f].name)b=new na(Xo._createAt(o,f),Xo._createAt(o,f+1));else{var y=o.offsetToIndex(f);b=new na(Xo._createAt(o,f),Xo._createAt(o.getChild(y),0))}n.push.apply(n,c(this._getAttributesDiff(b,g,v))),f++,h++}else f++,h++}}catch(e){p.e(e)}finally{p.f()}}}catch(e){r.e(e)}finally{r.f()}n.sort((function(e,t){return e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1}));for(var _=1;_<n.length;_++){var w=n[_-1],k=n[_],x="remove"==w.type&&"remove"==k.type&&"$text"==w.name&&"$text"==k.name&&w.position.isEqual(k.position),C="insert"==w.type&&"insert"==k.type&&"$text"==w.name&&"$text"==k.name&&w.position.parent==k.position.parent&&w.position.offset+w.length==k.position.offset,S="attribute"==w.type&&"attribute"==k.type&&w.position.parent==k.position.parent&&w.range.isFlat&&k.range.isFlat&&w.position.offset+w.length==k.position.offset&&w.attributeKey==k.attributeKey&&w.attributeOldValue==k.attributeOldValue&&w.attributeNewValue==k.attributeNewValue;(x||C||S)&&(n[_-1].length++,S&&(n[_-1].range.end=n[_-1].range.end.getShiftedBy(1)),n.splice(_,1),_--)}for(var T=0,A=n;T<A.length;T++){var M=A[T];delete M.changeCount,"attribute"==M.type&&(delete M.position,delete M.length)}return this._changeCount=0,this._cachedChangesWithGraveyard=n.slice(),this._cachedChanges=n.slice().filter(Ls),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard:this._cachedChanges}},{key:"reset",value:function(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._cachedChanges=null}},{key:"_markInsert",value:function(e,t,n){var r={type:"insert",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,r)}},{key:"_markRemove",value:function(e,t,n){var r={type:"remove",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,r),this._removeAllNestedChanges(e,t,n)}},{key:"_markAttribute",value:function(e){var t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}},{key:"_markChange",value:function(e,t){this._makeSnapshot(e);var n=this._getChangesForElement(e);this._handleChange(t,n),n.push(t);for(var r=0;r<n.length;r++)n[r].howMany<1&&(n.splice(r,1),r--)}},{key:"_getChangesForElement",value:function(e){var t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}},{key:"_makeSnapshot",value:function(e){this._elementSnapshots.has(e)||this._elementSnapshots.set(e,Ns(e.getChildren()))}},{key:"_handleChange",value:function(e,t){e.nodesToHandle=e.howMany;var n,r=u(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e.offset+e.howMany,a=i.offset+i.howMany;if("insert"==e.type&&("insert"==i.type&&(e.offset<=i.offset?i.offset+=e.howMany:e.offset<a&&(i.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==i.type&&e.offset<i.offset&&(i.offset+=e.howMany),"attribute"==i.type))if(e.offset<=i.offset)i.offset+=e.howMany;else if(e.offset<a){var s=i.howMany;i.howMany=e.offset-i.offset,t.unshift({type:"attribute",offset:o,howMany:s-i.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==i.type)if(o<=i.offset)i.offset-=e.howMany;else if(o<=a)if(e.offset<i.offset){var c=o-i.offset;i.offset=e.offset,i.howMany-=c,e.nodesToHandle-=c}else i.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=i.offset)e.nodesToHandle-=i.howMany,i.howMany=0;else if(e.offset<a){var l=a-e.offset;i.howMany-=l,e.nodesToHandle-=l}if("remove"==i.type&&(o<=i.offset?i.offset-=e.howMany:e.offset<i.offset&&(e.nodesToHandle+=i.howMany,i.howMany=0)),"attribute"==i.type)if(o<=i.offset)i.offset-=e.howMany;else if(e.offset<i.offset){var d=o-i.offset;i.offset=e.offset,i.howMany-=d}else if(e.offset<a)if(o<=a){var f=i.howMany;i.howMany=e.offset-i.offset;var h=f-i.howMany-e.nodesToHandle;t.unshift({type:"attribute",offset:e.offset,howMany:h,count:this._changeCount++})}else i.howMany-=a-e.offset}if("attribute"==e.type){if("insert"==i.type)if(e.offset<i.offset&&o>i.offset){if(o>a){var p={type:"attribute",offset:a,howMany:o-a,count:this._changeCount++};this._handleChange(p,t),t.push(p)}e.nodesToHandle=i.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=i.offset&&e.offset<a&&(o>a?(e.nodesToHandle=o-a,e.offset=a):e.nodesToHandle=0);if("remove"==i.type&&e.offset<i.offset&&o>i.offset){var m={type:"attribute",offset:i.offset,howMany:o-i.offset,count:this._changeCount++};this._handleChange(m,t),t.push(m),e.nodesToHandle=i.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==i.type&&(e.offset>=i.offset&&o<=a?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=i.offset&&o>=a&&(i.howMany=0))}}}catch(e){r.e(e)}finally{r.f()}e.howMany=e.nodesToHandle,delete e.nodesToHandle}},{key:"_getInsertDiff",value:function(e,t,n){return{type:"insert",position:Xo._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getRemoveDiff",value:function(e,t,n){return{type:"remove",position:Xo._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getAttributesDiff",value:function(e,t,n){var r=[];n=new Map(n);var i,o=u(t);try{for(o.s();!(i=o.n()).done;){var a=l(i.value,2),s=a[0],c=a[1],d=n.has(s)?n.get(s):null;d!==c&&r.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:s,attributeOldValue:c,attributeNewValue:d,changeCount:this._changeCount++}),n.delete(s)}}catch(e){o.e(e)}finally{o.f()}var f,h=u(n);try{for(h.s();!(f=h.n()).done;){var p=l(f.value,2),m=p[0],v=p[1];r.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:m,attributeOldValue:null,attributeNewValue:v,changeCount:this._changeCount++})}}catch(e){h.e(e)}finally{h.f()}return r}},{key:"_isInInsertedElement",value:function(e){var t=e.parent;if(!t)return!1;var n=this._changesInElement.get(t),r=e.startOffset;if(n){var i,o=u(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;if("insert"==a.type&&r>=a.offset&&r<a.offset+a.howMany)return!0}}catch(e){o.e(e)}finally{o.f()}}return this._isInInsertedElement(t)}},{key:"_removeAllNestedChanges",value:function(e,t,n){var r,i=u(new na(Xo._createAt(e,t),Xo._createAt(e,t+n)).getItems({shallow:!0}));try{for(i.s();!(r=i.n()).done;){var o=r.value;o.is("element")&&(this._elementSnapshots.delete(o),this._changesInElement.delete(o),this._removeAllNestedChanges(o,0,o.maxOffset))}}catch(e){i.e(e)}finally{i.f()}}},{key:"isEmpty",get:function(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}}]),e}();function Ns(e){var t,n=[],r=u(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i.is("$text"))for(var o=0;o<i.data.length;o++)n.push({name:"$text",attributes:new Map(i.getAttributes())});else n.push({name:i.name,attributes:new Map(i.getAttributes())})}}catch(e){r.e(e)}finally{r.f()}return n}function Rs(e,t){var n,r=[],i=0,o=0,a=u(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.offset>i){for(var l=0;l<s.offset-i;l++)r.push("e");o+=s.offset-i}if("insert"==s.type){for(var d=0;d<s.howMany;d++)r.push("i");i=s.offset+s.howMany}else if("remove"==s.type){for(var f=0;f<s.howMany;f++)r.push("r");i=s.offset,o+=s.howMany}else r.push.apply(r,c("a".repeat(s.howMany).split(""))),i=s.offset+s.howMany,o+=s.howMany}}catch(e){a.e(e)}finally{a.f()}if(o<e)for(var h=0;h<e-o-i;h++)r.push("e");return r}function Ls(e){var t=e.position&&"$graveyard"==e.position.root.rootName,n=e.range&&"$graveyard"==e.range.root.rootName;return!t&&!n}var zs=function(){function e(){h(this,e),this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set}return m(e,[{key:"addOperation",value:function(e){this._operations.includes(e)||this._operations.push(e)}},{key:"getOperations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return e<0?[]:this._operations.slice(e,t)}},{key:"getOperation",value:function(e){return this._operations[e]}},{key:"setOperationAsUndone",value:function(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}},{key:"isUndoingOperation",value:function(e){return this._undoPairs.has(e)}},{key:"isUndoneOperation",value:function(e){return this._undoneOperations.has(e)}},{key:"getUndoneOperation",value:function(e){return this._undoPairs.get(e)}}]),e}();function Fs(e,t){return!!(n=e.charAt(t-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}(e.charAt(t));var n}function Bs(e,t){return!!(n=e.charAt(t))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}var $s="$graveyard",Vs=function(){function e(t){var n=this;h(this,e),this.model=t,this.version=0,this.history=new zs(this),this.selection=new ga(this),this.roots=new sn({idProperty:"rootName"}),this.differ=new js(t.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",$s),this.listenTo(t,"applyOperation",(function(e,t){var r=t[0];if(r.isDocumentOperation&&r.baseVersion!==n.version)throw new Gt.b("model-document-applyOperation-wrong-version: Only operations with matching versions can be applied.",n,{operation:r})}),{priority:"highest"}),this.listenTo(t,"applyOperation",(function(e,t){var r=t[0];r.isDocumentOperation&&n.differ.bufferOperation(r)}),{priority:"high"}),this.listenTo(t,"applyOperation",(function(e,t){var r=t[0];r.isDocumentOperation&&(n.version++,n.history.addOperation(r))}),{priority:"low"}),this.listenTo(this.selection,"change",(function(){n._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(t.markers,"update",(function(e,t,r,i){n.differ.bufferMarkerChange(t.name,r,i,t.affectsData),null===r&&t.on("change",(function(e,r){n.differ.bufferMarkerChange(t.name,r,t.getRange(),t.affectsData)}))}))}return m(e,[{key:"createRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$root",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(t))throw new Gt.b("model-document-createRoot-name-exists: Root with specified name already exists.",this,{name:t});var n=new As(this,e,t);return this.roots.add(n),n}},{key:"destroy",value:function(){this.selection.destroy(),this.stopListening()}},{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"getRootNames",value:function(){return Array.from(this.roots,(function(e){return e.rootName})).filter((function(e){return e!=$s}))}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"toJSON",value:function(){var e=mn(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}},{key:"_handleChangeBlock",value:function(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}},{key:"_hasDocumentChangedFromTheLastChangeBlock",value:function(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}},{key:"_getDefaultRoot",value:function(){var e,t=u(this.roots);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n!==this.graveyard)return n}}catch(e){t.e(e)}finally{t.f()}return this.graveyard}},{key:"_getDefaultRange",value:function(){var e=this._getDefaultRoot(),t=this.model,n=t.schema,r=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(r)||t.createRange(r)}},{key:"_validateSelectionRange",value:function(e){return Hs(e.start)&&Hs(e.end)}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,r=u(this._postFixers);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(this.selection.refresh(),t=i(e))break}}catch(e){r.e(e)}finally{r.f()}}while(t)}},{key:"graveyard",get:function(){return this.getRoot($s)}}]),e}();function Hs(e){var t=e.textNode;if(t){var n=t.data,r=e.offset-t.startOffset;return!Fs(n,r)&&!Bs(n,r)}return!0}an(Vs,Jt);var Us=function(){function e(){h(this,e),this._markers=new Map}return m(e,[{key:Symbol.iterator,value:function(){return this._markers.values()}},{key:"has",value:function(e){return this._markers.has(e)}},{key:"get",value:function(e){return this._markers.get(e)||null}},{key:"_set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e instanceof qs?e.name:e;if(i.includes(","))throw new Gt.b('markercollection-incorrect-marker-name: Marker name cannot contain the "," character.',this);var o=this._markers.get(i);if(o){var a=o.getRange(),s=!1;return a.isEqual(t)||(o._attachLiveRange(ha.fromRange(t)),s=!0),n!=o.managedUsingOperations&&(o._managedUsingOperations=n,s=!0),"boolean"==typeof r&&r!=o.affectsData&&(o._affectsData=r,s=!0),s&&this.fire("update:"+i,o,a,t),o}var c=ha.fromRange(t),l=new qs(i,c,n,r);return this._markers.set(i,l),this.fire("update:"+i,l,null,t),l}},{key:"_remove",value:function(e){var t=e instanceof qs?e.name:e,n=this._markers.get(t);return!!n&&(this._markers.delete(t),this.fire("update:"+t,n,n.getRange(),null),this._destroyMarker(n),!0)}},{key:"_refresh",value:function(e){var t=e instanceof qs?e.name:e,n=this._markers.get(t);if(!n)throw new Gt.b("markercollection-refresh-marker-not-exists: Marker with provided name does not exists.",this);var r=n.getRange();this.fire("update:"+t,n,r,r,n.managedUsingOperations,n.affectsData)}},{key:"getMarkersAtPosition",value:o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=u(this),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(i=r.value,e.t0=i.getRange().containsPosition(t),!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"getMarkersIntersectingRange",value:o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=u(this),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(i=r.value,e.t0=null!==i.getRange().getIntersection(t),!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"destroy",value:function(){var e,t=u(this._markers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._destroyMarker(n)}}catch(e){t.e(e)}finally{t.f()}this._markers=null,this.stopListening()}},{key:"getMarkersGroup",value:o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=u(this._markers.values()),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(i=r.value,e.t0=i.name.startsWith(t+":"),!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"_destroyMarker",value:function(e){e.stopListening(),e._detachLiveRange()}}]),e}();an(Us,Jt);var qs=function(){function e(t,n,r,i){h(this,e),this.name=t,this._liveRange=this._attachLiveRange(n),this._managedUsingOperations=r,this._affectsData=i}return m(e,[{key:"getStart",value:function(){if(!this._liveRange)throw new Gt.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.start.clone()}},{key:"getEnd",value:function(){if(!this._liveRange)throw new Gt.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.end.clone()}},{key:"getRange",value:function(){if(!this._liveRange)throw new Gt.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.toRange()}},{key:"is",value:function(e){return"marker"===e||"model:marker"===e}},{key:"_attachLiveRange",value:function(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}},{key:"_detachLiveRange",value:function(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}},{key:"managedUsingOperations",get:function(){if(!this._liveRange)throw new Gt.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._managedUsingOperations}},{key:"affectsData",get:function(){if(!this._liveRange)throw new Gt.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._affectsData}}]),e}();an(qs,Jt);var Ws=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"clone",value:function(){return new n(this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.baseVersion+1)}},{key:"_execute",value:function(){}},{key:"type",get:function(){return"noop"}}],[{key:"className",get:function(){return"NoOperation"}}]),n}(cs),Ys={};Ys[bs.className]=bs,Ys[ws.className]=ws,Ys[ks.className]=ks,Ys[_s.className]=_s,Ys[Ws.className]=Ws,Ys[cs.className]=cs,Ys[xs.className]=xs,Ys[Cs.className]=Cs,Ys[Ts.className]=Ts,Ys[Ss.className]=Ss;var Gs=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(h(this,n),!(i=t.call(this,e,r,o)).root.is("rootElement"))throw new Gt.b("model-liveposition-root-not-rootelement: LivePosition's root has to be an instance of RootElement.",e);return Ks.call(y(i)),b(i)}return m(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e}},{key:"toPosition",value:function(){return new Xo(this.root,this.path.slice(),this.stickiness)}}],[{key:"fromPosition",value:function(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}]),n}(Xo);function Ks(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var r=n[0];r.isDocumentOperation&&Qs.call(e,r)}),{priority:"low"})}function Qs(e){var t=this.getTransformedByOperation(e);if(!this.isEqual(t)){var n=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",n)}}an(Gs,Jt);var Js=function(){function e(t,n,r){h(this,e),this.model=t,this.writer=n,this.position=r,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}return m(e,[{key:"handleNodes",value:function(e,t){e=Array.from(e);for(var n=0;n<e.length;n++){var r=e[n];this._handleNode(r,{isFirst:0===n&&t.isFirst,isLast:n===e.length-1&&t.isLast})}this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}},{key:"getSelectionRange",value:function(){return this.nodeToSelect?na._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}},{key:"getAffectedRange",value:function(){return this._affectedStart?new na(this._affectedStart,this._affectedEnd):null}},{key:"destroy",value:function(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}},{key:"_handleNode",value:function(e,t){this.schema.isObject(e)?this._handleObject(e,t):this._checkAndSplitToAllowedPosition(e,t)?(this._insert(e),this._mergeSiblingsOf(e,t)):this._handleDisallowedNode(e,t)}},{key:"_handleObject",value:function(e,t){this._checkAndSplitToAllowedPosition(e)?this._insert(e):this._tryAutoparagraphing(e,t)}},{key:"_handleDisallowedNode",value:function(e,t){e.is("element")?this.handleNodes(e.getChildren(),t):this._tryAutoparagraphing(e,t)}},{key:"_insert",value:function(e){if(!this.schema.checkChild(this.position,e))throw new Gt.b("insertcontent-wrong-position: Given node cannot be inserted on the given position.",this,{node:e,position:this.position});var t=Gs.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this.writer.insert(e,this.position),this.position=t.toPosition(),t.detach(),this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?this.nodeToSelect=e:this.nodeToSelect=null,this._filterAttributesOf.push(e)}},{key:"_setAffectedBoundaries",value:function(e){this._affectedStart||(this._affectedStart=Gs.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Gs.fromPosition(e,"toNext"))}},{key:"_mergeSiblingsOf",value:function(e,t){if(e instanceof Ko){var n=this._canMergeLeft(e,t),r=this._canMergeRight(e,t),i=Gs._createBefore(e);i.stickiness="toNext";var o=Gs._createAfter(e);if(o.stickiness="toNext",n){var a=Gs.fromPosition(this.position);a.stickiness="toNext",this._affectedStart.isEqual(i)&&(this._affectedStart.detach(),this._affectedStart=Gs._createAt(i.nodeBefore,"end","toPrevious")),this.writer.merge(i),i.isEqual(this._affectedEnd)&&t.isLast&&(this._affectedEnd.detach(),this._affectedEnd=Gs._createAt(i.nodeBefore,"end","toNext")),this.position=a.toPosition(),a.detach()}if(r){if(!this.position.isEqual(o))throw new Gt.b("insertcontent-invalid-insertion-position: An internal error occurred during insertContent().",this);this.position=Xo._createAt(o.nodeBefore,"end");var s=Gs.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(o)&&(this._affectedEnd.detach(),this._affectedEnd=Gs._createAt(o.nodeBefore,"end","toNext")),this.writer.merge(o),o.getShiftedBy(-1).isEqual(this._affectedStart)&&t.isFirst&&(this._affectedStart.detach(),this._affectedStart=Gs._createAt(o.nodeBefore,0,"toPrevious")),this.position=s.toPosition(),s.detach()}(n||r)&&this._filterAttributesOf.push(this.position.parent),i.detach(),o.detach()}}},{key:"_canMergeLeft",value:function(e,t){var n=e.previousSibling;return t.isFirst&&n instanceof Ko&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(n,e)}},{key:"_canMergeRight",value:function(e,t){var n=e.nextSibling;return t.isLast&&n instanceof Ko&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(e,n)}},{key:"_tryAutoparagraphing",value:function(e,t){var n=this.writer.createElement("paragraph");this._getAllowedIn(n,this.position.parent)&&this.schema.checkChild(n,e)&&(n._appendChild(e),this._handleNode(n,t))}},{key:"_checkAndSplitToAllowedPosition",value:function(e){var t=this._getAllowedIn(e,this.position.parent);if(!t)return!1;for(;t!=this.position.parent;){if(this.schema.isLimit(this.position.parent))return!1;if(this.position.isAtStart){var n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===t&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{var r=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=r,this.canMergeWith.add(this.position.nodeAfter)}}return!0}},{key:"_getAllowedIn",value:function(e,t){return this.schema.checkChild(t,e)?t:t.parent?this._getAllowedIn(e,t.parent):null}}]),e}();function Xs(e,t,n){var r=t.parent,i=n.parent;return r!=i&&!e.isLimit(r)&&!e.isLimit(i)&&function(e,t,n){var r,i=u(new na(e,t).getWalker());try{for(i.s();!(r=i.n()).done;){var o=r.value;if(n.isLimit(o.item))return!1}}catch(e){i.e(e)}finally{i.f()}return!0}(t,n,e)}function Zs(e,t,n){var r=e.createElement("paragraph");e.insert(r,t),ec(e,n,e.createPositionAt(r,0))}function ec(e,t,n){t instanceof ga?e.setSelection(n):t.setTo(n)}var tc=' ,.?!:;"-()';function nc(e,t){var n=e.isForward,r=e.walker,i=e.unit,o=e.schema,a=t.type,s=t.item,c=t.nextPosition;if("text"==a)return"word"===e.unit?function(e,t){var n=e.position.textNode;if(n)for(var r=e.position.offset-n.startOffset;!ic(n.data,r,t)&&!oc(n,r,t);){e.next();var i=t?e.position.nodeAfter:e.position.nodeBefore;if(i&&i.is("$text")){var o=i.data.charAt(t?0:i.data.length-1);tc.includes(o)||(e.next(),n=e.position.textNode)}r=e.position.offset-n.startOffset}return e.position}(r,n):function(e,t){var n=e.position.textNode;if(n)for(var r=n.data,i=e.position.offset-n.startOffset;Fs(r,i)||"character"==t&&Bs(r,i);)e.next(),i=e.position.offset-n.startOffset;return e.position}(r,i);if(a==(n?"elementStart":"elementEnd")){if(o.isSelectable(s))return Xo._createAt(s,n?"after":"before");if(o.checkChild(c,"$text"))return c}else{if(o.isLimit(s))return void r.skip((function(){return!0}));if(o.checkChild(c,"$text"))return c}}function rc(e,t){var n=e.root,r=Xo._createAt(n,t?"end":0);return t?new na(e,r):new na(r,e)}function ic(e,t,n){var r=t+(n?0:-1);return tc.includes(e.charAt(r))}function oc(e,t,n){return t===(n?e.endOffset:0)}function ac(e,t){var n=[];Array.from(e.getItems({direction:"backward"})).map((function(e){return t.createRangeOn(e)})).filter((function(t){return(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))})).forEach((function(e){n.push(e.start.parent),t.remove(e)})),n.forEach((function(e){for(var n=e;n.parent&&n.isEmpty;){var r=t.createRangeOn(n);n=n.parent,t.remove(r)}}))}function sc(e,t){return e.isCollapsed?function(e,t){var n=e.start,r=t.getNearestSelectionRange(n);if(!r)return null;if(!r.isCollapsed)return r;var i=r.start;return n.isEqual(i)?null:new na(i)}(e,t):function(e,t){var n=e.start,r=e.end,i=t.checkChild(n,"$text"),o=t.checkChild(r,"$text"),a=t.getLimitElement(n),s=t.getLimitElement(r);if(a===s){if(i&&o)return null;if(function(e,t,n){var r=e.nodeAfter&&!n.isLimit(e.nodeAfter)||n.checkChild(e,"$text"),i=t.nodeBefore&&!n.isLimit(t.nodeBefore)||n.checkChild(t,"$text");return r||i}(n,r,t)){var c=n.nodeAfter&&t.isSelectable(n.nodeAfter)?null:t.getNearestSelectionRange(n,"forward"),l=r.nodeBefore&&t.isSelectable(r.nodeBefore)?null:t.getNearestSelectionRange(r,"backward"),u=c?c.start:n,d=l?l.start:r;return new na(u,d)}}var f=a&&!a.is("rootElement"),h=s&&!s.is("rootElement");if(f||h){var p=n.nodeAfter&&r.nodeBefore&&n.nodeAfter.parent===r.nodeBefore.parent,m=f&&(!p||!lc(n.nodeAfter,t)),v=h&&(!p||!lc(r.nodeBefore,t)),g=n,b=r;return m&&(g=Xo._createBefore(cc(a,t))),v&&(b=Xo._createAfter(cc(s,t))),new na(g,b)}return null}(e,t)}function cc(e,t){for(var n=e,r=n;t.isLimit(r)&&r.parent;)n=r,r=r.parent;return n}function lc(e,t){return e&&t.isSelectable(e)}var uc=function(){function e(){var t=this;h(this,e),this.markers=new Us,this.document=new Vs(this),this.schema=new Ha,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((function(e){return t.decorate(e)})),this.on("applyOperation",(function(e,t){t[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",isLimit:!0}),this.schema.extend("$text",{allowIn:"$clipboardHolder"}),this.schema.register("$marker"),this.schema.addChildCheck((function(e,t){if("$marker"===t.name)return!0})),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,r=t.document.selection,i=t.schema,o=[],a=!1,s=u(r.getRanges());try{for(s.s();!(n=s.n()).done;){var c=n.value,l=sc(c,i);l&&!l.isEqual(c)?(o.push(l),a=!0):o.push(c)}}catch(e){s.e(e)}finally{s.f()}a&&e.setSelection(function(e){var t=[];t.push(e.shift());var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=t.pop();if(i.isIntersecting(o)){var a=o.start.isAfter(i.start)?i.start:o.start,s=o.end.isAfter(i.end)?o.end:i.end,c=new na(a,s);t.push(c)}else t.push(o),t.push(i)}}catch(e){r.e(e)}finally{r.f()}return t}(o),{backward:r.isBackward})}(t,e)}))}(this),this.document.registerPostFixer(Ea)}return m(e,[{key:"change",value:function(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new ss,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){Gt.b.rethrowUnexpectedError(e,this)}}},{key:"enqueueChange",value:function(e,t){try{"string"==typeof e?e=new ss(e):"function"==typeof e&&(t=e,e=new ss),this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){Gt.b.rethrowUnexpectedError(e,this)}}},{key:"applyOperation",value:function(e){e._execute()}},{key:"insertContent",value:function(e,t,n){return function(e,t,n,r){return e.change((function(i){var o;(o=n?n instanceof ca||n instanceof ga?n:i.createSelection(n,r):e.document.selection).isCollapsed||e.deleteContent(o,{doNotAutoparagraph:!0});var a,s=new Js(e,i,o.anchor);a=t.is("documentFragment")?t.getChildren():[t],s.handleNodes(a,{isFirst:!0,isLast:!0});var c=s.getSelectionRange();c&&(o instanceof ga?i.setSelection(c):o.setTo(c));var l=s.getAffectedRange()||e.createRange(o.anchor);return s.destroy(),l}))}(this,e,t,n)}},{key:"deleteContent",value:function(e,t){!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.isCollapsed){var r=t.getFirstRange();if("$graveyard"!=r.root.rootName){var i=e.schema;e.change((function(e){if(n.doNotResetEntireContent||!function(e,t){var n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;var r=t.getFirstRange();return r.start.parent!=r.end.parent&&e.checkChild(n,"paragraph")}(i,t)){var o=l(function(e){var t=e.root.document.model,n=e.start,r=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){var i=function(e){var t,n=e.parent,r=n.root.document.model.schema,i=u(n.getAncestors({parentFirst:!0,includeSelf:!0}));try{for(i.s();!(t=i.n()).done;){var o=t.value;if(r.isLimit(o))return null;if(r.isBlock(o))return o}}catch(e){i.e(e)}finally{i.f()}}(r);if(i&&r.isTouching(t.createPositionAt(i,0))){var o=t.createSelection(e);t.modifySelection(o,{direction:"backward"}),r=o.getLastPosition()}}return[Gs.fromPosition(n,"toPrevious"),Gs.fromPosition(r,"toNext")]}(r),2),a=o[0],s=o[1];r.start.isTouching(r.end)||e.remove(r),n.leaveUnmerged||(function(e,t,n){var r=e.model;if(Xs(e.model.schema,t,n)){var i=l(function(e,t){for(var n=e.getAncestors(),r=t.getAncestors(),i=0;n[i]&&n[i]==r[i];)i++;return[n[i],r[i]]}(t,n),2),o=i[0],a=i[1];!r.hasContent(o,{ignoreMarkers:!0})&&r.hasContent(a,{ignoreMarkers:!0})?function e(t,n,r,i){var o=n.parent,a=r.parent;if(o!=i&&a!=i){for(n=t.createPositionAfter(o),(r=t.createPositionBefore(a)).isEqual(n)||t.insert(o,r);n.parent.isEmpty;){var s=n.parent;n=t.createPositionBefore(s),t.remove(s)}r=t.createPositionBefore(a),function(e,t){var n=t.nodeBefore,r=t.nodeAfter;n.name!=r.name&&e.rename(n,r.name),e.clearAttributes(n),e.setAttributes(Object.fromEntries(r.getAttributes()),n),e.merge(t)}(t,r),Xs(t.model.schema,n,r)&&e(t,n,r,i)}}(e,t,n,o.parent):function e(t,n,r,i){var o=n.parent,a=r.parent;if(o!=i&&a!=i){for(n=t.createPositionAfter(o),(r=t.createPositionBefore(a)).isEqual(n)||t.insert(a,n),t.merge(n);r.parent.isEmpty;){var s=r.parent;r=t.createPositionBefore(s),t.remove(s)}Xs(t.model.schema,n,r)&&e(t,n,r,i)}}(e,t,n,o.parent)}}(e,a,s),i.removeDisallowedAttributes(a.parent.getChildren(),e)),ec(e,t,a),!n.doNotAutoparagraph&&function(e,t){var n=e.checkChild(t,"$text"),r=e.checkChild(t,"paragraph");return!n&&r}(i,a)&&Zs(e,a,t),a.detach(),s.detach()}else!function(e,t){var n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n)),Zs(e,e.createPositionAt(n,0),t)}(e,t)}))}}}(this,e,t)}},{key:"modifySelection",value:function(e,t){!function(e,t){for(var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.schema,o="backward"!=r.direction,a=r.unit?r.unit:"character",s=t.focus,c=new Qo({boundaries:rc(s,o),singleCharacters:!0,direction:o?"forward":"backward"}),l={walker:c,schema:i,isForward:o,unit:a},u=function(){if(n.done)return{v:void 0};var r=nc(l,n.value);return r?{v:void(t instanceof ga?e.change((function(e){e.setSelectionFocus(r)})):t.setFocus(r))}:void 0};n=c.next();){var d=u();if("object"===S(d))return d.v}}(this,e,t)}},{key:"getSelectedContent",value:function(e){return function(e,t){return e.change((function(e){var n=e.createDocumentFragment(),r=t.getFirstRange();if(!r||r.isCollapsed)return n;var i,o,a=r.start.root,s=r.start.getCommonPath(r.end),c=a.getNodeByPath(s),l=(i=r.start.parent==r.end.parent?r:e.createRange(e.createPositionAt(c,r.start.path[s.length]),e.createPositionAt(c,r.end.path[s.length]+1))).end.offset-i.start.offset,d=u(i.getItems({shallow:!0}));try{for(d.s();!(o=d.n()).done;){var f=o.value;f.is("$textProxy")?e.appendText(f.data,f.getAttributes(),n):e.append(e.cloneElement(f,!0),n)}}catch(e){d.e(e)}finally{d.f()}if(i!=r){var h=r._getTransformedByMove(i.start,e.createPositionAt(n,0),l)[0],p=e.createRange(e.createPositionAt(n,0),h.start);ac(e.createRange(h.end,e.createPositionAt(n,"end")),e),ac(p,e)}return n}))}(this,e)}},{key:"hasContent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e instanceof Ko?na._createIn(e):e;if(n.isCollapsed)return!1;var r=t.ignoreWhitespaces,i=void 0!==r&&r,o=t.ignoreMarkers,a=void 0!==o&&o;if(!a){var s,c=u(this.markers.getMarkersIntersectingRange(n));try{for(c.s();!(s=c.n()).done;){var l=s.value;if(l.affectsData)return!0}}catch(e){c.e(e)}finally{c.f()}}var d,f=u(n.getItems());try{for(f.s();!(d=f.n()).done;){var h=d.value;if(this.schema.isContent(h)){if(!h.is("$textProxy"))return!0;if(!i)return!0;if(-1!==h.data.search(/\S/))return!0}}}catch(e){f.e(e)}finally{f.f()}return!1}},{key:"createPositionFromPath",value:function(e,t,n){return new Xo(e,t,n)}},{key:"createPositionAt",value:function(e,t){return Xo._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Xo._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Xo._createBefore(e)}},{key:"createRange",value:function(e,t){return new na(e,t)}},{key:"createRangeIn",value:function(e){return na._createIn(e)}},{key:"createRangeOn",value:function(e){return na._createOn(e)}},{key:"createSelection",value:function(e,t,n){return new ca(e,t,n)}},{key:"createBatch",value:function(e){return new ss(e)}},{key:"createOperationFromJSON",value:function(e){return function(){function e(){h(this,e)}return m(e,null,[{key:"fromJSON",value:function(e,t){return Ys[e.__className].fromJSON(e,t)}}]),e}().fromJSON(e,this.document)}},{key:"destroy",value:function(){this.document.destroy(),this.stopListening()}},{key:"_runPendingChanges",value:function(){var e=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){var t=this._pendingChanges[0].batch;this._currentWriter=new Ms(this,t);var n=this._pendingChanges[0].callback(this._currentWriter);e.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),e}}]),e}();an(uc,pr);var dc=function(){function e(){h(this,e),this._listener=Object.create($i)}return m(e,[{key:"listenTo",value:function(e){var t=this;this._listener.listenTo(e,"keydown",(function(e,n){t._listener.fire("_keydown:"+qr(n),n)}))}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Wr(e),i=n.priority;this._listener.listenTo(this._listener,"_keydown:"+r,(function(e,n){t(n,(function(){n.preventDefault(),n.stopPropagation(),e.stop()})),e.return=!0}),{priority:i})}},{key:"press",value:function(e){return!!this._listener.fire("_keydown:"+qr(e),e)}},{key:"destroy",value:function(){this._listener.stopListening()}}]),e}(),fc=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this)).editor=e,r}return m(n,[{key:"set",value:function(e,t){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t){var o=t;t=function(e,t){r.editor.execute(o),t()}}s(C(n.prototype),"set",this).call(this,e,t,i)}}]),n}(dc),hc=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,e),this._context=n.context||new hn({language:n.language}),this._context._addEditor(this,!n.context);var r=Array.from(this.constructor.builtinPlugins||[]);this.config=new $t(n,this.constructor.defaultConfig),this.config.define("plugins",r),this.config.define(this._context._getEditorConfig()),this.plugins=new cn(this,r,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new Ba,this.set("state","initializing"),this.once("ready",(function(){return t.state="ready"}),{priority:"high"}),this.once("destroy",(function(){return t.state="destroyed"}),{priority:"high"}),this.set("isReadOnly",!1),this.model=new uc;var i=new nr;this.data=new rs(this.model,i),this.editing=new Fa(this.model,i),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new is([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new fc(this),this.keystrokes.listenTo(this.editing.view.document)}return m(e,[{key:"initPlugins",value:function(){var e=this.config,t=e.get("plugins"),n=e.get("removePlugins")||[],r=e.get("extraPlugins")||[];return this.plugins.init(t.concat(r),n)}},{key:"destroy",value:function(){var e=this,t=Promise.resolve();return"initializing"==this.state&&(t=new Promise((function(t){return e.once("ready",t)}))),t.then((function(){e.fire("destroy"),e.stopListening(),e.commands.destroy()})).then((function(){return e.plugins.destroy()})).then((function(){e.model.destroy(),e.data.destroy(),e.editing.destroy(),e.keystrokes.destroy()})).then((function(){return e._context._removeEditor(e)}))}},{key:"execute",value:function(){try{var e;return(e=this.commands).execute.apply(e,arguments)}catch(e){Gt.b.rethrowUnexpectedError(e,this)}}}]),e}();an(hc,pr);var pc={updateSourceElement:function(){if(!this.sourceElement)throw new Gt.b("editor-missing-sourceelement: Cannot update the source element of a detached editor.",this);var e,t;e=this.sourceElement,t=this.data.get(),e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}},mc=function(){function e(){h(this,e)}return m(e,[{key:"getHtml",value:function(e){var t=document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}]),e}(),vc=function(){function e(t){h(this,e),this._domParser=new DOMParser,this._domConverter=new Ri(t,{blockFillerMode:"nbsp"}),this._htmlWriter=new mc}return m(e,[{key:"toData",value:function(e){var t=this._domConverter.viewToDom(e,document);return this._htmlWriter.getHtml(t)}},{key:"toView",value:function(e){var t=this._toDom(e);return this._domConverter.domToView(t)}},{key:"_toDom",value:function(e){for(var t=this._domParser.parseFromString(e,"text/html"),n=t.createDocumentFragment(),r=t.body.childNodes;r.length>0;)n.appendChild(r[0]);return n}}]),e}(),gc=function(){function e(t){h(this,e),this.editor=t,this._components=new Map}return m(e,[{key:"names",value:o.a.mark((function e(){var t,n,r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=u(this._components.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,r.originalName;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"add",value:function(e,t){this._components.set(bc(e),{callback:t,originalName:e})}},{key:"create",value:function(e){if(!this.has(e))throw new Gt.b("componentfactory-item-missing: The required component is not registered in the factory.",this,{name:e});return this._components.get(bc(e)).callback(this.editor.locale)}},{key:"has",value:function(e){return this._components.has(bc(e))}}]),e}();function bc(e){return String(e).toLowerCase()}var yc=function(){function e(){h(this,e),this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}return m(e,[{key:"add",value:function(e){var t=this;if(this._elements.has(e))throw new Gt.b("focusTracker-add-element-already-exist: This element is already tracked by FocusTracker.",this);this.listenTo(e,"focus",(function(){return t._focus(e)}),{useCapture:!0}),this.listenTo(e,"blur",(function(){return t._blur()}),{useCapture:!0}),this._elements.add(e)}},{key:"remove",value:function(e){e===this.focusedElement&&this._blur(e),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}},{key:"destroy",value:function(){this.stopListening()}},{key:"_focus",value:function(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}},{key:"_blur",value:function(){var e=this;clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((function(){e.focusedElement=null,e.isFocused=!1}),0)}}]),e}();an(yc,$i),an(yc,pr);var _c=function(){function e(t){var n=this;h(this,e),this.editor=t,this.componentFactory=new gc(t),this.focusTracker=new yc,this._editableElementsMap=new Map,this.listenTo(t.editing.view.document,"layoutChanged",(function(){return n.update()}))}return m(e,[{key:"update",value:function(){this.fire("update")}},{key:"destroy",value:function(){this.stopListening(),this.focusTracker.destroy();var e,t=u(this._editableElementsMap.values());try{for(t.s();!(e=t.n()).done;){e.value.ckeditorInstance=null}}catch(e){t.e(e)}finally{t.f()}this._editableElementsMap=new Map}},{key:"setEditableElement",value:function(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor)}},{key:"getEditableElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(e)}},{key:"getEditableElementsNames",value:function(){return this._editableElementsMap.keys()}},{key:"element",get:function(){return null}},{key:"_editableElements",get:function(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}]),e}();an(_c,Jt),n(13);var wc=new WeakMap;function kc(e){var t=e.view,n=e.element,r=e.text,i=e.isDirectHost,o=void 0===i||i,a=t.document;wc.has(a)||(wc.set(a,new Map),a.registerPostFixer((function(e){return xc(a,e)}))),wc.get(a).set(n,{text:r,isDirectHost:o}),t.change((function(e){return xc(a,e)}))}function xc(e,t){var n,r=!1,i=u(wc.get(e));try{for(i.s();!(n=i.n()).done;){var o=l(n.value,2);Cc(t,o[0],o[1])&&(r=!0)}}catch(e){i.e(e)}finally{i.f()}return r}function Cc(e,t,n){var r=n.text,i=n.isDirectHost?t:function(e){if(1===e.childCount){var t=e.getChild(0);if(t.is("element")&&!t.is("uiElement"))return t}return null}(t),o=!1;return!!i&&(n.hostElement=i,i.getAttribute("data-placeholder")!==r&&(e.setAttribute("data-placeholder",r,i),o=!0),function(e){if(!e.isAttached())return!1;var t=!Array.from(e.getChildren()).some((function(e){return!e.is("uiElement")})),n=e.document;if(!n.isFocused&&t)return!0;var r=n.selection.anchor;return!(!t||!r||r.parent===e)}(i)?function(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}(e,i)&&(o=!0):function(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}(e,i)&&(o=!0),o)}var Sc=function(){function e(){h(this,e),this._replacedElements=[]}return m(e,[{key:"replace",value:function(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}},{key:"restore",value:function(){this._replacedElements.forEach((function(e){var t=e.element,n=e.newElement;t.style.display="",n&&n.remove()})),this._replacedElements=[]}}]),e}(),Tc=function(e){v(n,e);var t=g(n);function n(e,r){var i,o;return h(this,n),(i=t.call(this,e)).view=r,i._toolbarConfig=(o=e.config.get("toolbar"),Array.isArray(o)?{items:o}:o?Object.assign({items:[]},o):{items:[]}),i._elementReplacer=new Sc,i}return m(n,[{key:"init",value:function(e){var t=this.editor,n=this.view,r=t.editing.view,i=n.editable,o=r.document.getRoot();i.name=o.rootName,n.render();var a=i.element;this.setEditableElement(i.name,a),this.focusTracker.add(a),n.editable.bind("isFocused").to(this.focusTracker),r.attachDomRoot(a),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}},{key:"destroy",value:function(){var e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.detachDomRoot(e.editable.name),e.destroy(),s(C(n.prototype),"destroy",this).call(this)}},{key:"_initToolbar",value:function(){var e=this.editor,t=this.view,n=e.editing.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,this._toolbarConfig.viewportTopOffset&&(t.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),t.toolbar.fillFromConfig(this._toolbarConfig.items,this.componentFactory),function(e){var t=e.origin,n=e.originKeystrokeHandler,r=e.originFocusTracker,i=e.toolbar,o=e.beforeFocus,a=e.afterBlur;r.add(i.element),n.set("Alt+F10",(function(e,t){r.isFocused&&!i.focusTracker.isFocused&&(o&&o(),i.focus(),t())})),i.keystrokes.set("Esc",(function(e,n){i.focusTracker.isFocused&&(t.focus(),a&&a(),n())}))}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:e.keystrokes,toolbar:t.toolbar})}},{key:"_initPlaceholder",value:function(){var e=this.editor,t=e.editing.view,n=t.document.getRoot(),r=e.sourceElement,i=e.config.get("placeholder")||r&&"textarea"===r.tagName.toLowerCase()&&r.getAttribute("placeholder");i&&kc({view:t,element:n,text:i,isDirectHost:!1})}},{key:"element",get:function(){return this.view.element}}]),n}(_c),Ac=function(e){v(n,e);var t=g(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return h(this,n),(e=t.call(this,r,{idProperty:"viewUid"})).on("add",(function(t,n,r){e._renderViewIntoCollectionParent(n,r)})),e.on("remove",(function(t,n){n.element&&e._parentElement&&n.element.remove()})),e._parentElement=null,e}return m(n,[{key:"destroy",value:function(){this.map((function(e){return e.destroy()}))}},{key:"setParent",value:function(e){this._parentElement=e;var t,n=u(this);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._renderViewIntoCollectionParent(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"delegate",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length||!n.every((function(e){return"string"==typeof e})))throw new Gt.b("ui-viewcollection-delegate-wrong-events: All event names must be strings.",this);return{to:function(t){var r,i=u(e);try{for(i.s();!(r=i.n()).done;){var o,a=r.value,s=u(n);try{for(s.s();!(o=s.n()).done;){var c=o.value;a.delegate(c).to(t)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){i.e(e)}finally{i.f()}e.on("add",(function(e,r){var i,o=u(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;r.delegate(a).to(t)}}catch(e){o.e(e)}finally{o.f()}})),e.on("remove",(function(e,r){var i,o=u(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;r.stopDelegating(a,t)}}catch(e){o.e(e)}finally{o.f()}}))}}}},{key:"_renderViewIntoCollectionParent",value:function(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}}]),n}(sn),Mc=function(){function e(t){h(this,e),Object.assign(this,zc(Lc(t))),this._isRendered=!1,this._revertData=null}return m(e,[{key:"render",value:function(){var e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}},{key:"apply",value:function(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,isApplying:!0,revertData:this._revertData}),e}},{key:"revert",value:function(e){if(!this._revertData)throw new Gt.b("ui-template-revert-not-applied: Attempting to revert a template which has not been applied yet.",[this,e]);this._revertTemplateFromNode(e,this._revertData)}},{key:"getViews",value:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(o.a.mark((function e(t){var n,r,i;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!t.children){o.next=24;break}n=u(t.children),o.prev=2,n.s();case 4:if((r=n.n()).done){o.next=16;break}if(!Hc(i=r.value)){o.next=11;break}return o.next=9,i;case 9:o.next=14;break;case 11:if(o.t0=Uc(i),!o.t0){o.next=14;break}return o.delegateYield(e(i),"t1",14);case 14:o.next=4;break;case 16:o.next=21;break;case 18:o.prev=18,o.t2=o.catch(2),n.e(o.t2);case 21:return o.prev=21,n.f(),o.finish(21);case 24:case"end":return o.stop()}}),e,null,[[2,18,21,24]])}))(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"_renderNode",value:function(e){if(e.node?this.tag&&this.text:this.tag?this.text:!this.text)throw new Gt.b('ui-template-wrong-syntax: Node definition must have either "tag" or "text" when rendering a new Node.',this);return this.text?this._renderText(e):this._renderElement(e)}},{key:"_renderElement",value:function(e){var t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}},{key:"_renderText",value:function(e){var t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),Ic(this.text)?this._bindToObservable({schema:this.text,updater:jc(t),data:e}):t.textContent=this.text.join(""),t}},{key:"_renderAttributes",value:function(e){var t,n,r,i;if(this.attributes){var o=e.node,a=e.revertData;for(t in this.attributes)if(r=o.getAttribute(t),n=this.attributes[t],a&&(a.attributes[t]=r),i=q(n[0])&&n[0].ns?n[0].ns:null,Ic(n)){var s=i?n[0].value:n;a&&Wc(t)&&s.unshift(r),this._bindToObservable({schema:s,updater:Nc(o,t,i),data:e})}else"style"==t&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],e):(a&&r&&Wc(t)&&n.unshift(r),Vc(n=n.map((function(e){return e&&e.value||e})).reduce((function(e,t){return e.concat(t)}),[]).reduce(Bc,""))||o.setAttributeNS(i,t,n))}}},{key:"_renderStyleAttribute",value:function(e,t){var n=t.node;for(var r in e){var i=e[r];Ic(i)?this._bindToObservable({schema:[i],updater:Rc(n,r),data:t}):n.style[r]=i}}},{key:"_renderElementChildren",value:function(e){var t,n=e.node,r=e.intoFragment?document.createDocumentFragment():n,i=e.isApplying,o=0,a=u(this.children);try{for(a.s();!(t=a.n()).done;){var s=t.value;if(qc(s)){if(!i){s.setParent(n);var c,l=u(s);try{for(l.s();!(c=l.n()).done;){var d=c.value;r.appendChild(d.element)}}catch(e){l.e(e)}finally{l.f()}}}else if(Hc(s))i||(s.isRendered||s.render(),r.appendChild(s.element));else if(Ai(s))r.appendChild(s);else if(i){var f={children:[],bindings:[],attributes:{}};e.revertData.children.push(f),s._renderNode({node:r.childNodes[o++],isApplying:!0,revertData:f})}else r.appendChild(s.render())}}catch(e){a.e(e)}finally{a.f()}e.intoFragment&&n.appendChild(r)}},{key:"_setUpListeners",value:function(e){var t=this;if(this.eventListeners){var n=function(n){var r=t.eventListeners[n].map((function(t){var r=l(n.split("@"),2),i=r[0],o=r[1];return t.activateDomEventListener(i,o,e)}));e.revertData&&e.revertData.bindings.push(r)};for(var r in this.eventListeners)n(r)}}},{key:"_bindToObservable",value:function(e){var t=e.schema,n=e.updater,r=e.data,i=r.revertData;Dc(t,n,r);var o=t.filter((function(e){return!Vc(e)})).filter((function(e){return e.observable})).map((function(e){return e.activateAttributeListener(t,n,r)}));i&&i.bindings.push(o)}},{key:"_revertTemplateFromNode",value:function(e,t){var n,r=u(t.bindings);try{for(r.s();!(n=r.n()).done;){var i,o=u(n.value);try{for(o.s();!(i=o.n()).done;){(0,i.value)()}}catch(e){o.e(e)}finally{o.f()}}}catch(e){r.e(e)}finally{r.f()}if(t.text)e.textContent=t.text;else{for(var a in t.attributes){var s=t.attributes[a];null===s?e.removeAttribute(a):e.setAttribute(a,s)}for(var c=0;c<t.children.length;++c)this._revertTemplateFromNode(e.childNodes[c],t.children[c])}}}],[{key:"bind",value:function(e,t){return{to:function(n,r){return new Oc({eventNameOrFunction:n,attribute:n,observable:e,emitter:t,callback:r})},if:function(n,r,i){return new Pc({observable:e,emitter:t,attribute:n,valueIfTrue:r,callback:i})}}}},{key:"extend",value:function(e,t){if(e._isRendered)throw new Gt.b("template-extend-render: Attempting to extend a template which has already been rendered.",[this,e]);!function e(t,n){var r;if(n.attributes&&(t.attributes||(t.attributes={}),$c(t.attributes,n.attributes)),n.eventListeners&&(t.eventListeners||(t.eventListeners={}),$c(t.eventListeners,n.eventListeners)),n.text&&(r=t.text).push.apply(r,c(n.text)),n.children&&n.children.length){if(t.children.length!=n.children.length)throw new Gt.b("ui-template-extend-children-mismatch: The number of children in extended definition does not match.",t);var i,o=0,a=u(n.children);try{for(a.s();!(i=a.n()).done;){var s=i.value;e(t.children[o++],s)}}catch(e){a.e(e)}finally{a.f()}}}(e,zc(Lc(t)))}}]),e}();an(Mc,Jt);var Ec=function(){function e(t){h(this,e),Object.assign(this,t)}return m(e,[{key:"getValue",value:function(e){var t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}},{key:"activateAttributeListener",value:function(e,t,n){var r=this,i=function(){return Dc(e,t,n)};return this.emitter.listenTo(this.observable,"change:"+this.attribute,i),function(){r.emitter.stopListening(r.observable,"change:"+r.attribute,i)}}}]),e}(),Oc=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"activateDomEventListener",value:function(e,t,n){var r=this,i=function(e,n){t&&!n.target.matches(t)||("function"==typeof r.eventNameOrFunction?r.eventNameOrFunction(n):r.observable.fire(r.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,e,i),function(){r.emitter.stopListening(n.node,e,i)}}}]),n}(Ec),Pc=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"getValue",value:function(e){return!Vc(s(C(n.prototype),"getValue",this).call(this,e))&&(this.valueIfTrue||!0)}}]),n}(Ec);function Ic(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(Ic):e instanceof Ec)}function Dc(e,t,n){var r=function(e,t){return e.map((function(e){return e instanceof Ec?e.getValue(t):e}))}(e,n.node);Vc(r=1==e.length&&e[0]instanceof Pc?r[0]:r.reduce(Bc,""))?t.remove():t.set(r)}function jc(e){return{set:function(t){e.textContent=t},remove:function(){e.textContent=""}}}function Nc(e,t,n){return{set:function(r){e.setAttributeNS(n,t,r)},remove:function(){e.removeAttributeNS(n,t)}}}function Rc(e,t){return{set:function(n){e.style[t]=n},remove:function(){e.style[t]=null}}}function Lc(e){return Ft(e,(function(e){if(e&&(e instanceof Ec||Uc(e)||Hc(e)||qc(e)))return e}))}function zc(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){Array.isArray(e.text)||(e.text=[e.text])}(e),e.on&&(e.eventListeners=function(e){for(var t in e)Fc(e,t);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(var t in e)e[t].value&&(e[t].value=[].concat(e[t].value)),Fc(e,t)}(e.attributes);var t=[];if(e.children)if(qc(e.children))t.push(e.children);else{var n,r=u(e.children);try{for(r.s();!(n=r.n()).done;){var i=n.value;Uc(i)||Hc(i)||Ai(i)?t.push(i):t.push(new Mc(i))}}catch(e){r.e(e)}finally{r.f()}}e.children=t}return e}function Fc(e,t){Array.isArray(e[t])||(e[t]=[e[t]])}function Bc(e,t){return Vc(t)?e:Vc(e)?t:"".concat(e," ").concat(t)}function $c(e,t){for(var n in t){var r;e[n]?(r=e[n]).push.apply(r,c(t[n])):e[n]=t[n]}}function Vc(e){return!e&&0!==e}function Hc(e){return e instanceof Yc}function Uc(e){return e instanceof Mc}function qc(e){return e instanceof Ac}function Wc(e){return"class"==e||"style"==e}n(15);var Yc=function(){function e(t){h(this,e),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new sn,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(function(e,n){n.locale=t})),this.decorate("render")}return m(e,[{key:"createCollection",value:function(e){var t=new Ac(e);return this._viewCollections.add(t),t}},{key:"registerChild",value:function(e){on(e)||(e=[e]);var t,n=u(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._unboundChildren.add(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"deregisterChild",value:function(e){on(e)||(e=[e]);var t,n=u(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._unboundChildren.remove(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"setTemplate",value:function(e){this.template=new Mc(e)}},{key:"extendTemplate",value:function(e){Mc.extend(this.template,e)}},{key:"render",value:function(){if(this.isRendered)throw new Gt.b("ui-view-render-already-rendered: This View has already been rendered.",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}},{key:"destroy",value:function(){this.stopListening(),this._viewCollections.map((function(e){return e.destroy()})),this.template&&this.template._revertData&&this.template.revert(this.element)}},{key:"bindTemplate",get:function(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Mc.bind(this,this)}}]),e}();an(Yc,$i),an(Yc,pr);var Gc=function(e){return"string"==typeof e||!Te(e)&&I(e)&&"[object String]"==E(e)},Kc=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return h(this,n),(r=t.call(this,i)).locale=e,r}return m(n,[{key:"attachToDom",value:function(){this._bodyCollectionContainer=new Mc({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();var e=document.querySelector(".ck-body-wrapper");e||(e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=n&&n.xmlns,o=i?e.createElementNS(i,t):e.createElement(t);for(var a in n)o.setAttribute(a,n[a]);!Gc(r)&&on(r)||(r=[r]);var s,c=u(r);try{for(c.s();!(s=c.n()).done;){var l=s.value;Gc(l)&&(l=e.createTextNode(l)),o.appendChild(l)}}catch(e){c.e(e)}finally{c.f()}return o}(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}},{key:"detachFromDom",value:function(){s(C(n.prototype),"destroy",this).call(this),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();var e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}]),n}(Ac);n(17);var Qc=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).body=new Kc(e),r}return m(n,[{key:"render",value:function(){s(C(n.prototype),"render",this).call(this),this.body.attachToDom()}},{key:"destroy",value:function(){return this.body.detachFromDom(),s(C(n.prototype),"destroy",this).call(this)}}]),n}(Yc);n(19);var Jc=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).set("text"),r.set("for"),r.id="ck-editor__label_"+Wt();var i=r.bindTemplate;return r.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:r.id,for:i.to("for")},children:[{text:i.to("text")}]}),r}return n}(Yc),Xc=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).top=r.createCollection(),r.main=r.createCollection(),r._voiceLabelView=r._createVoiceLabel(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":r._voiceLabelView.id},children:[r._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:r.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:r.main}]}),r}return m(n,[{key:"_createVoiceLabel",value:function(){var e=this.t,t=new Jc;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}]),n}(Qc),Zc=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,e,r,i)).extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),o}return m(n,[{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this);var t=this._editingView,r=this.t;t.change((function(n){var i=t.document.getRoot(e.name);n.setAttribute("aria-label",r("Rich Text Editor, %0",[e.name]),i)}))}}]),n}(function(e){v(n,e);var t=g(n);function n(e,r,i){var o;return h(this,n),(o=t.call(this,e)).setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),o.name=null,o.set("isFocused",!1),o._editableElement=i,o._hasExternalElement=!!o._editableElement,o._editingView=r,o}return m(n,[{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(function(){return e._updateIsFocusedClasses()})),this._updateIsFocusedClasses()}},{key:"destroy",value:function(){this._hasExternalElement&&this.template.revert(this._editableElement),s(C(n.prototype),"destroy",this).call(this)}},{key:"_updateIsFocusedClasses",value:function(){var e=this._editingView;function t(t){e.change((function(n){var r=e.document.getRoot(t.name);n.addClass(t.isFocused?"ck-focused":"ck-blurred",r),n.removeClass(t.isFocused?"ck-blurred":"ck-focused",r)}))}e.isRenderingInProgress?function n(r){e.once("change:isRenderingInProgress",(function(e,i,o){o?n(r):t(r)}))}(this):t(this)}}]),n}(Yc));function el(e){return function(t){return t+e}}n(21);var tl=el("px"),nl=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("isActive",!1),r.set("isSticky",!1),r.set("limiterElement",null),r.set("limiterBottomOffset",50),r.set("viewportTopOffset",0),r.set("_marginLeft",null),r.set("_isStickyToTheLimiter",!1),r.set("_hasViewportTopOffset",!1),r.content=r.createCollection(),r._contentPanelPlaceholder=new Mc({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:i.to("isSticky",(function(e){return e?"block":"none"})),height:i.to("isSticky",(function(e){return e?tl(r._panelRect.height):null}))}}}).render(),r._contentPanel=new Mc({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",i.if("isSticky","ck-sticky-panel__content_sticky"),i.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:i.to("isSticky",(function(e){return e?tl(r._contentPanelPlaceholder.getBoundingClientRect().width):null})),top:i.to("_hasViewportTopOffset",(function(e){return e?tl(r.viewportTopOffset):null})),bottom:i.to("_isStickyToTheLimiter",(function(e){return e?tl(r.limiterBottomOffset):null})),marginLeft:i.to("_marginLeft")}},children:r.content}).render(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[r._contentPanelPlaceholder,r._contentPanel]}),r}return m(n,[{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this),this._checkIfShouldBeSticky(),this.listenTo(Ii.window,"scroll",(function(){e._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(function(){e._checkIfShouldBeSticky()}))}},{key:"_checkIfShouldBeSticky",value:function(){var e,t=this._panelRect=this._contentPanel.getBoundingClientRect();this.limiterElement?(e=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&e.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<e.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=e.bottom<t.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:tl(-Ii.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}]),n}(Yc),rl=function(){function e(t){var n=this;if(h(this,e),Object.assign(this,t),t.actions&&t.keystrokeHandler){var r=function(e){var r=t.actions[e];"string"==typeof r&&(r=[r]);var i,o=u(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;t.keystrokeHandler.set(a,(function(t,r){n[e](),r()}))}}catch(e){o.e(e)}finally{o.f()}};for(var i in t.actions)r(i)}}return m(e,[{key:"focusFirst",value:function(){this._focus(this.first)}},{key:"focusLast",value:function(){this._focus(this.last)}},{key:"focusNext",value:function(){this._focus(this.next)}},{key:"focusPrevious",value:function(){this._focus(this.previous)}},{key:"_focus",value:function(e){e&&e.focus()}},{key:"_getFocusableItem",value:function(e){var t=this.current,n=this.focusables.length;if(!n)return null;if(null===t)return this[1===e?"first":"last"];var r=(t+n+e)%n;do{var i=this.focusables.get(r);if(il(i))return i;r=(r+n+e)%n}while(r!==t);return null}},{key:"first",get:function(){return this.focusables.find(il)||null}},{key:"last",get:function(){return this.focusables.filter(il).slice(-1)[0]||null}},{key:"next",get:function(){return this._getFocusableItem(1)}},{key:"previous",get:function(){return this._getFocusableItem(-1)}},{key:"current",get:function(){var e=this,t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((function(n,r){var i=n.element===e.focusTracker.focusedElement;return i&&(t=r),i})),t)}}]),e}();function il(e){return!(!e.focus||"none"==Ii.window.getComputedStyle(e.element).display)}var ol=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}}),r}return n}(Yc),al=function(){function e(t,n){h(this,e),e._observerInstance||e._createObserver(),this._element=t,this._callback=n,e._addElementCallback(t,n),e._observerInstance.observe(t)}return m(e,[{key:"destroy",value:function(){e._deleteElementCallback(this._element,this._callback)}}],[{key:"_addElementCallback",value:function(t,n){e._elementCallbacks||(e._elementCallbacks=new Map);var r=e._elementCallbacks.get(t);r||(r=new Set,e._elementCallbacks.set(t,r)),r.add(n)}},{key:"_deleteElementCallback",value:function(t,n){var r=e._getElementCallbacks(t);r&&(r.delete(n),r.size||(e._elementCallbacks.delete(t),e._observerInstance.unobserve(t))),e._elementCallbacks&&!e._elementCallbacks.size&&(e._observerInstance=null,e._elementCallbacks=null)}},{key:"_getElementCallbacks",value:function(t){return e._elementCallbacks?e._elementCallbacks.get(t):null}},{key:"_createObserver",value:function(){var t;t="function"==typeof Ii.window.ResizeObserver?Ii.window.ResizeObserver:sl,e._observerInstance=new t((function(t){var n,r=u(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e._getElementCallbacks(i.target);if(o){var a,s=u(o);try{for(s.s();!(a=s.n()).done;){(0,a.value)(i)}}catch(e){s.e(e)}finally{s.f()}}}}catch(e){r.e(e)}finally{r.f()}}))}}]),e}();al._observerInstance=null,al._elementCallbacks=null;var sl=function(){function e(t){h(this,e),this._callback=t,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}return m(e,[{key:"observe",value:function(e){this._elements.add(e),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}},{key:"unobserve",value:function(e){this._elements.delete(e),this._previousRects.delete(e),this._elements.size||this._stopPeriodicCheck()}},{key:"_startPeriodicCheck",value:function(){var e=this;this.listenTo(Ii.window,"resize",(function(){e._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout((function t(){e._checkElementRectsAndExecuteCallback(),e._periodicCheckTimeout=setTimeout(t,100)}),100)}},{key:"_stopPeriodicCheck",value:function(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}},{key:"_checkElementRectsAndExecuteCallback",value:function(){var e,t=[],n=u(this._elements);try{for(n.s();!(e=n.n()).done;){var r=e.value;this._hasRectChanged(r)&&t.push({target:r,contentRect:this._previousRects.get(r)})}}catch(e){n.e(e)}finally{n.f()}t.length&&this._callback(t)}},{key:"_hasRectChanged",value:function(e){if(!e.ownerDocument.body.contains(e))return!1;var t=new Po(e),n=this._previousRects.get(e),r=!n||!n.isEqual(t);return this._previousRects.set(e,t),r}}]),e}();an(sl,$i);var cl=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("isVisible",!1),r.set("position","se"),r.children=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",i.to("position",(function(e){return"ck-dropdown__panel_"+e})),i.if("isVisible","ck-dropdown__panel-visible")]},children:r.children,on:{selectstart:i.to((function(e){return e.preventDefault()}))}}),r}return m(n,[{key:"focus",value:function(){this.children.length&&this.children.first.focus()}},{key:"focusLast",value:function(){if(this.children.length){var e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}]),n}(Yc);function ll(e){var t=e.element,n=e.target,r=e.positions,i=e.limiter,o=e.fitInViewport;W(n)&&(n=n()),W(i)&&(i=i());var a,s,c=function(e){return e&&e.parentNode?e.offsetParent===Ii.document.body?null:e.offsetParent:null}(t),d=new Po(t),f=new Po(n);if(i||o){var h=function(e,t){var n=t.viewportRect,r=t.elementRect.getArea(),i=function(e,t){var n,r=t.targetRect,i=t.elementRect,o=t.limiterRect,a=t.viewportRect,s=[],c=i.getArea(),d=u(e);try{for(d.s();!(n=d.n()).done;){var f=ul(n.value,r,i);if(f){var h=l(f,2),p=h[0],m=h[1],v=0,g=0;if(o)if(a){var b=o.getIntersection(a);b&&(v=b.getIntersectionArea(m))}else v=o.getIntersectionArea(m);a&&(g=a.getIntersectionArea(m));var y={positionName:p,positionRect:m,limiterIntersectArea:v,viewportIntersectArea:g};if(v===c)return[y];s.push(y)}}}catch(e){d.e(e)}finally{d.f()}return s}(e,t);if(n){var o=dl(i.filter((function(e){return e.viewportIntersectArea===r})),r);if(o)return o}return dl(i,r)}(r,{targetRect:f,elementRect:d,limiterRect:i&&new Po(i).getVisible(),viewportRect:o&&new Po(Ii.window)}),p=l(h||ul(r[0],f,d),2);s=p[0],a=p[1]}else{var m=l(ul(r[0],f,d),2);s=m[0],a=m[1]}var v=fl(a);return c&&(v=function(e,t){var n=e.left,r=e.top,i=fl(new Po(t)),o=Eo(t);return n-=i.left,r-=i.top,n+=t.scrollLeft,r+=t.scrollTop,{left:n-=o.left,top:r-=o.top}}(v,c)),{left:v.left,top:v.top,name:s}}function ul(e,t,n){var r=e(t,n);if(!r)return null;var i=r.left,o=r.top;return[r.name,n.clone().moveTo(i,o)]}function dl(e,t){var n,r,i,o=0,a=u(e);try{for(a.s();!(i=a.n()).done;){var s=i.value,c=s.positionName,l=s.positionRect,d=s.limiterIntersectArea,f=s.viewportIntersectArea;if(d===t)return[c,l];var h=Math.pow(f,2)+Math.pow(d,2);h>o&&(o=h,n=l,r=c)}}catch(e){a.e(e)}finally{a.f()}return n?[r,n]:null}function fl(e){var t=e.left,n=e.top,r=Ii.window;return{left:t+r.scrollX,top:n+r.scrollY}}n(23);var hl=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;h(this,n);var a=(o=t.call(this,e)).bindTemplate;return o.buttonView=r,o.panelView=i,o.set("isOpen",!1),o.set("isEnabled",!0),o.set("class"),o.set("id"),o.set("panelPosition","auto"),o.keystrokes=new dc,o.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",a.to("class"),a.if("isEnabled","ck-disabled",(function(e){return!e}))],id:a.to("id"),"aria-describedby":a.to("ariaDescribedById")},children:[r,i]}),r.extendTemplate({attributes:{class:["ck-dropdown__button"]}}),o}return m(n,[{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this),this.listenTo(this.buttonView,"open",(function(){e.isOpen=!e.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(function(){e.isOpen&&("auto"===e.panelPosition?e.panelView.position=n._getOptimalPosition({element:e.panelView.element,target:e.buttonView.element,fitInViewport:!0,positions:e._panelPositions}).name:e.panelView.position=e.panelPosition)})),this.keystrokes.listenTo(this.element);var t=function(t,n){e.isOpen&&(e.buttonView.focus(),e.isOpen=!1,n())};this.keystrokes.set("arrowdown",(function(t,n){e.buttonView.isEnabled&&!e.isOpen&&(e.isOpen=!0,n())})),this.keystrokes.set("arrowright",(function(t,n){e.isOpen&&n()})),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}},{key:"focus",value:function(){this.buttonView.focus()}},{key:"_panelPositions",get:function(){var e=n.defaultPanelPositions,t=e.southEast,r=e.southWest,i=e.northEast,o=e.northWest;return"ltr"===this.locale.uiLanguageDirection?[t,r,i,o]:[r,t,o,i]}}]),n}(Yc);hl.defaultPanelPositions={southEast:function(e){return{top:e.bottom,left:e.left,name:"se"}},southWest:function(e,t){return{top:e.bottom,left:e.left-t.width+e.width,name:"sw"}},northEast:function(e,t){return{top:e.top-t.height,left:e.left,name:"ne"}},northWest:function(e,t){return{top:e.bottom-t.height,left:e.left-t.width+e.width,name:"nw"}}},hl._getOptimalPosition=ll,n(25);var pl=function(e){v(n,e);var t=g(n);function n(){var e;h(this,n);var r=(e=t.call(this)).bindTemplate;return e.set("content",""),e.set("viewBox","0 0 20 20"),e.set("fillColor",""),e.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:r.to("viewBox")}}),e}return m(n,[{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(function(){e._updateXMLContent(),e._colorFillPaths()})),this.on("change:fillColor",(function(){e._colorFillPaths()}))}},{key:"_updateXMLContent",value:function(){if(this.content){var e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");for(t&&(this.viewBox=t),this.element.innerHTML="";e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}},{key:"_colorFillPaths",value:function(){var e=this;this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((function(t){t.style.fill=e.fillColor}))}}]),n}(Yc);n(27);var ml=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).set("text",""),r.set("position","s");var i=r.bindTemplate;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",i.to("position",(function(e){return"ck-tooltip_"+e})),i.if("text","ck-hidden",(function(e){return!e.trim()}))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:i.to("text")}]}]}),r}return n}(Yc);n(29);var vl=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate,o=Wt();return r.set("class"),r.set("labelStyle"),r.set("icon"),r.set("isEnabled",!0),r.set("isOn",!1),r.set("isVisible",!0),r.set("isToggleable",!1),r.set("keystroke"),r.set("label"),r.set("tabindex",-1),r.set("tooltip"),r.set("tooltipPosition","s"),r.set("type","button"),r.set("withText",!1),r.set("withKeystroke",!1),r.children=r.createCollection(),r.tooltipView=r._createTooltipView(),r.labelView=r._createLabelView(o),r.iconView=new pl,r.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),r.keystrokeView=r._createKeystrokeView(),r.bind("_tooltipString").to(y(r),"tooltip",y(r),"label",y(r),"keystroke",r._getTooltipString.bind(y(r))),r.setTemplate({tag:"button",attributes:{class:["ck","ck-button",i.to("class"),i.if("isEnabled","ck-disabled",(function(e){return!e})),i.if("isVisible","ck-hidden",(function(e){return!e})),i.to("isOn",(function(e){return e?"ck-on":"ck-off"})),i.if("withText","ck-button_with-text"),i.if("withKeystroke","ck-button_with-keystroke")],type:i.to("type",(function(e){return e||"button"})),tabindex:i.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+o,"aria-disabled":i.if("isEnabled",!0,(function(e){return!e})),"aria-pressed":i.to("isOn",(function(e){return!!r.isToggleable&&String(e)}))},children:r.children,on:{mousedown:i.to((function(e){e.preventDefault()})),click:i.to((function(e){r.isEnabled?r.fire("execute"):e.preventDefault()}))}}),r}return m(n,[{key:"render",value:function(){s(C(n.prototype),"render",this).call(this),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.children.add(this.keystrokeView)}},{key:"focus",value:function(){this.element.focus()}},{key:"_createTooltipView",value:function(){var e=new ml;return e.bind("text").to(this,"_tooltipString"),e.bind("position").to(this,"tooltipPosition"),e}},{key:"_createLabelView",value:function(e){var t=new Yc,n=this.bindTemplate;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:"ck-editor__aria-label_"+e},children:[{text:this.bindTemplate.to("label")}]}),t}},{key:"_createKeystrokeView",value:function(){var e=new Yc;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(function(e){return Yr(e)}))}]}),e}},{key:"_getTooltipString",value:function(e,t,n){return e?"string"==typeof e?e:(n&&(n=Yr(n)),e instanceof Function?e(t,n):"".concat(t).concat(n?" (".concat(n,")"):"")):""}}]),n}(Yc),gl='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>',bl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).arrowView=r._createArrowView(),r.extendTemplate({attributes:{"aria-haspopup":!0}}),r.delegate("execute").to(y(r),"open"),r}return m(n,[{key:"render",value:function(){s(C(n.prototype),"render",this).call(this),this.children.add(this.arrowView)}},{key:"_createArrowView",value:function(){var e=new pl;return e.content=gl,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}]),n}(vl);n(31);var yl=function(e){v(n,e);var t=g(n);function n(){var e;return h(this,n),(e=t.call(this)).items=e.createCollection(),e.focusTracker=new yc,e.keystrokes=new dc,e._focusCycler=new rl({focusables:e.items,focusTracker:e.focusTracker,keystrokeHandler:e.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),e.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:e.items}),e}return m(n,[{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this);var t,r=u(this.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.focusTracker.add(i.element)}}catch(e){r.e(e)}finally{r.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}}]),n}(Yc),_l=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).children=r.createCollection(),r.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:r.children}),r}return m(n,[{key:"focus",value:function(){this.children.first.focus()}}]),n}(Yc),wl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}}),r}return n}(Yc);n(33);var kl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).isToggleable=!0,r.toggleSwitchView=r._createToggleView(),r.extendTemplate({attributes:{class:"ck-switchbutton"}}),r}return m(n,[{key:"render",value:function(){s(C(n.prototype),"render",this).call(this),this.children.add(this.toggleSwitchView)}},{key:"_createToggleView",value:function(){var e=new Yc;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}]),n}(vl);function xl(e){var t=e.emitter,n=e.activator,r=e.callback,i=e.contextElements;t.listenTo(document,"mousedown",(function(e,t){if(n()){var o,a="function"==typeof t.composedPath?t.composedPath():[],s=u(i);try{for(s.s();!(o=s.n()).done;){var c=o.value;if(c.contains(t.target)||a.includes(c))return}}catch(e){s.e(e)}finally{s.f()}r()}}))}function Cl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bl,n=new t(e),r=new cl(e),i=new hl(e,n,r);return n.bind("isEnabled").to(i),n instanceof bl?n.bind("isOn").to(i,"isOpen"):n.arrowView.bind("isOn").to(i,"isOpen"),function(e){(function(e){e.on("render",(function(){xl({emitter:e,activator:function(){return e.isOpen},callback:function(){e.isOpen=!1},contextElements:[e.element]})}))})(e),function(e){e.on("execute",(function(t){t.source instanceof kl||(e.isOpen=!1)}))}(e),function(e){e.keystrokes.set("arrowdown",(function(t,n){e.isOpen&&(e.panelView.focus(),n())})),e.keystrokes.set("arrowup",(function(t,n){e.isOpen&&(e.panelView.focusLast(),n())}))}(e)}(i),i}function Sl(e,t){var n=e.locale,r=n.t,i=e.toolbarView=new Al(n);i.set("ariaLabel",r("Dropdown toolbar")),e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.map((function(e){return i.items.add(e)})),e.panelView.children.add(i),i.items.delegate("execute").to(e)}function Tl(e,t){var n=e.locale,r=e.listView=new yl(n);r.items.bindTo(t).using((function(e){var t=e.type,r=e.model;if("separator"===t)return new wl(n);if("button"===t||"switchbutton"===t){var i,o,a=new _l(n);return(i=o="button"===t?new vl(n):new kl(n)).bind.apply(i,c(Object.keys(r))).to(r),o.delegate("execute").to(a),a.children.add(o),a}})),e.panelView.children.add(r),r.items.delegate("execute").to(e)}n(35),n(37),n(39);var Al=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n);var o,a=(i=t.call(this,e)).bindTemplate,s=i.t;return i.options=r||{},i.set("ariaLabel",s("Editor toolbar")),i.set("maxWidth","auto"),i.items=i.createCollection(),i.focusTracker=new yc,i.keystrokes=new dc,i.set("class"),i.set("isCompact",!1),i.itemsView=new Ml(e),i.children=i.createCollection(),i.children.add(i.itemsView),i.focusables=i.createCollection(),i._focusCycler=new rl({focusables:i.focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:["arrowleft","arrowup"],focusNext:["arrowright","arrowdown"]}}),i.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar",a.to("class"),a.if("isCompact","ck-toolbar_compact")],role:"toolbar","aria-label":a.to("ariaLabel"),style:{maxWidth:a.to("maxWidth")}},children:i.children,on:{mousedown:(o=y(i),o.bindTemplate.to((function(e){e.target===o.element&&e.preventDefault()})))}}),i._behavior=i.options.shouldGroupWhenFull?new Ol(y(i)):new El(y(i)),i}return m(n,[{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this);var t,r=u(this.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.focusTracker.add(i.element)}}catch(e){r.e(e)}finally{r.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}},{key:"destroy",value:function(){return this._behavior.destroy(),s(C(n.prototype),"destroy",this).call(this)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"fillFromConfig",value:function(e,t){this.items.addMany(e.map((function(e){return"|"==e?new ol:t.has(e)?t.create(e):void console.warn(Object(Gt.a)("toolbarview-item-unavailable: The requested toolbar item is unavailable."),{name:e})})).filter((function(e){return void 0!==e})))}}]),n}(Yc),Ml=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).children=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:r.children}),r}return n}(Yc),El=function(){function e(t){h(this,e);var n=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((function(e){return e})),t.focusables.bindTo(t.items).using((function(e){return e})),t.extendTemplate({attributes:{class:[n.if("isVertical","ck-toolbar_vertical")]}})}return m(e,[{key:"render",value:function(){}},{key:"destroy",value:function(){}}]),e}(),Ol=function(){function e(t){var n=this;h(this,e),this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,t.itemsView.children.bindTo(this.ungroupedItems).using((function(e){return e})),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),t.children.on("add",this._updateFocusCycleableItems.bind(this)),t.children.on("remove",this._updateFocusCycleableItems.bind(this)),t.items.on("change",(function(e,t){var r,i=t.index,o=u(t.removed);try{for(o.s();!(r=o.n()).done;){var a=r.value;i>=n.ungroupedItems.length?n.groupedItems.remove(a):n.ungroupedItems.remove(a)}}catch(e){o.e(e)}finally{o.f()}for(var s=i;s<i+t.added.length;s++){var c=t.added[s-i];s>n.ungroupedItems.length?n.groupedItems.add(c,s-n.ungroupedItems.length):n.ungroupedItems.add(c,s)}n._updateGrouping()})),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}return m(e,[{key:"render",value:function(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}},{key:"destroy",value:function(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}},{key:"_updateGrouping",value:function(){if(this.viewElement.ownerDocument.body.contains(this.viewElement))if(this.viewElement.offsetParent){for(var e,t=this.groupedItems.length;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}else this.shouldUpdateGroupingOnNextResize=!0}},{key:"_enableGroupingOnResize",value:function(){var e,t=this;this.resizeObserver=new al(this.viewElement,(function(n){e&&e===n.contentRect.width&&!t.shouldUpdateGroupingOnNextResize||(t.shouldUpdateGroupingOnNextResize=!1,t._updateGrouping(),e=n.contentRect.width)})),this._updateGrouping()}},{key:"_enableGroupingOnMaxWidthChange",value:function(e){var t=this;e.on("change:maxWidth",(function(){t._updateGrouping()}))}},{key:"_groupLastItem",value:function(){this.groupedItems.length||(this.viewChildren.add(new ol),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}},{key:"_ungroupFirstItem",value:function(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}},{key:"_createGroupedItemsDropdown",value:function(){var e=this.viewLocale,t=e.t,n=Cl(e);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",Sl(n,[]),n.buttonView.set({label:t("Show more items"),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'}),n.toolbarView.items.bindTo(this.groupedItems).using((function(e){return e})),n}},{key:"_updateFocusCycleableItems",value:function(){var e=this;this.viewFocusables.clear(),this.ungroupedItems.map((function(t){e.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}},{key:"_areItemsOverflowing",get:function(){if(!this.ungroupedItems.length)return!1;var e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new Po(e.lastChild),r=new Po(e);if(!this.cachedPadding){var i=Ii.window.getComputedStyle(e),o="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(i[o])}return"ltr"===t?n.right>r.right-this.cachedPadding:n.left<r.left+this.cachedPadding}}]),e}();n(41);var Pl=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h(this,n),(i=t.call(this,e)).stickyPanel=new nl(e),i.toolbar=new Al(e,{shouldGroupWhenFull:o.shouldToolbarGroupWhenFull}),i.editable=new Zc(e,r),i}return m(n,[{key:"render",value:function(){s(C(n.prototype),"render",this).call(this),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}]),n}(Xc),Il=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n),i=t.call(this,r),Bt(e)&&(i.sourceElement=e),i.data.processor=new vc(i.data.viewDocument),i.model.document.createRoot();var o=!i.config.get("toolbar.shouldNotGroupWhenFull"),a=new Pl(i.locale,i.editing.view,{shouldToolbarGroupWhenFull:o});return i.ui=new Tc(y(i),a),function(e){if(!W(e.updateSourceElement))throw new Gt.b("attachtoform-missing-elementapi-interface: Editor passed to attachToForm() must implement ElementApi.",e);var t=e.sourceElement;if(t&&"textarea"===t.tagName.toLowerCase()&&t.form){var n,r=t.form,i=function(){return e.updateSourceElement()};W(r.submit)&&(n=r.submit,r.submit=function(){i(),n.apply(r)}),r.addEventListener("submit",i),e.on("destroy",(function(){r.removeEventListener("submit",i),n&&(r.submit=n)}))}}(y(i)),i}return m(n,[{key:"destroy",value:function(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),s(C(n.prototype),"destroy",this).call(this)}}],[{key:"create",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r){var i=new t(e,n);r(i.initPlugins().then((function(){return i.ui.init(Bt(e)?e:null)})).then((function(){if(!Bt(e)&&n.initialData)throw new Gt.b("editor-create-initial-data: The config.initialData option cannot be used together with initial data passed in Editor.create().",null);var t=n.initialData||function(e){return Bt(e)?(t=e)instanceof HTMLTextAreaElement?t.value:t.innerHTML:e;var t}(e);return i.data.init(t)})).then((function(){return i.fire("ready")})).then((function(){return i})))}))}}]),n}(hc);an(Il,{setData:function(e){this.data.set(e)},getData:function(e){return this.data.get(e)}}),an(Il,pc);var Dl=function(){function e(t){h(this,e),this.editor=t,this.set("isEnabled",!0),this._disableStack=new Set}return m(e,[{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",jl,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",jl),this.isEnabled=!0)}},{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!1}}]),e}();function jl(e){e.return=!1,e.stop()}an(Dl,pr);var Nl=function(){function e(t){var n=this;h(this,e),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(function(){n.refresh()})),this.on("execute",(function(e){n.isEnabled||e.stop()}),{priority:"high"}),this.listenTo(t,"change:isReadOnly",(function(e,t,r){r?n.forceDisabled("readOnlyMode"):n.clearForceDisabled("readOnlyMode")}))}return m(e,[{key:"refresh",value:function(){this.isEnabled=!0}},{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",Rl,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",Rl),this.refresh())}},{key:"execute",value:function(){}},{key:"destroy",value:function(){this.stopListening()}}]),e}();function Rl(e){e.return=!1,e.stop()}function Ll(e){var t=e.next();return t.done?null:t.value}an(Nl,pr);var zl=["left","right","center","justify"];function Fl(e){return zl.includes(e)}function Bl(e,t){return"rtl"==t.contentLanguageDirection?"right"===e:"left"===e}var $l="alignment",Vl=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.locale,t=Ll(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!t&&this._canBeAligned(t),this.isEnabled&&t.hasAttribute("alignment")?this.value=t.getAttribute("alignment"):this.value="rtl"===e.contentLanguageDirection?"right":"left"}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor,r=n.locale,i=n.model,o=i.document,a=t.value;i.change((function(t){var n=Array.from(o.selection.getSelectedBlocks()).filter((function(t){return e._canBeAligned(t)})),i=n[0].getAttribute("alignment");Bl(a,r)||i===a||!a?function(e,t){var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.removeAttribute($l,i)}}catch(e){r.e(e)}finally{r.f()}}(n,t):function(e,t,n){var r,i=u(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;t.setAttribute($l,n,o)}}catch(e){i.e(e)}finally{i.f()}}(n,t,a)}))}},{key:"_canBeAligned",value:function(e){return this.editor.model.schema.checkAttribute(e,$l)}}]),n}(Nl),Hl=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("alignment",{options:[].concat(zl)}),r}return m(n,null,[{key:"pluginName",get:function(){return"AlignmentEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.model.schema,r=e.config.get("alignment.options").filter(Fl);n.extend("$block",{allowAttributes:"alignment"}),e.model.schema.setAttributeProperties("alignment",{isFormatting:!0});var i=function(e){var t,n={model:{key:"alignment",values:e.slice()},view:{}},r=u(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.view[i]={key:"style",value:{"text-align":i}}}}catch(e){r.e(e)}finally{r.f()}return n}(r.filter((function(e){return!Bl(e,t)})));e.conversion.attributeToAttribute(i),e.commands.add("alignment",new Vl(e))}}]),n}(Dl),Ul='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',ql='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',Wl=new Map([["left",Ul],["right",ql],["center",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>'],["justify",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>']]),Yl=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.ui.componentFactory,r=t.t,i=t.config.get("alignment.options");i.filter(Fl).forEach((function(t){return e._addButton(t)})),n.add("alignment",(function(e){var t=Cl(e),o=i.map((function(e){return n.create("alignment:"+e)}));Sl(t,o),t.buttonView.set({label:r("Text alignment"),tooltip:!0}),t.toolbarView.isVertical=!0,t.toolbarView.ariaLabel=r("Text alignment toolbar"),t.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});var a="rtl"===e.contentLanguageDirection?ql:Ul;return t.buttonView.bind("icon").toMany(o,"isOn",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.findIndex((function(e){return e}));return r<0?a:o[r].icon})),t.bind("isEnabled").toMany(o,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),t}))}},{key:"_addButton",value:function(e){var t=this,n=this.editor;n.ui.componentFactory.add("alignment:"+e,(function(r){var i=n.commands.get("alignment"),o=new vl(r);return o.set({label:t.localizedOptionTitles[e],icon:Wl.get(e),tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(i),o.bind("isOn").to(i,"value",(function(t){return t===e})),t.listenTo(o,"execute",(function(){n.execute("alignment",{value:e}),n.editing.view.focus()})),o}))}},{key:"localizedOptionTitles",get:function(){var e=this.editor.t;return{left:e("Align left"),right:e("Align right"),center:e("Align center"),justify:e("Justify")}}}],[{key:"pluginName",get:function(){return"AlignmentUI"}}]),n}(Dl);function Gl(e,t){var n=e.start;return{text:Array.from(e.getItems()).reduce((function(e,r){return r.is("$text")||r.is("$textProxy")?e+r.data:(n=t.createPositionAfter(r),"")}),""),range:t.createRange(n,e.end)}}var Kl=function(){function e(t,n){var r=this;h(this,e),this.model=t,this.testCallback=n,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(function(){r.isEnabled?r._startListening():(r.stopListening(t.document.selection),r.stopListening(t.document))})),this._startListening()}return m(e,[{key:"_startListening",value:function(){var e=this,t=this.model.document;this.listenTo(t.selection,"change:range",(function(n,r){r.directChange&&(t.selection.isCollapsed?e._evaluateTextBeforeSelection("selection"):e.hasMatch&&(e.fire("unmatched"),e.hasMatch=!1))})),this.listenTo(t,"change:data",(function(t,n){"transparent"!=n.type&&e._evaluateTextBeforeSelection("data",{batch:n})}))}},{key:"_evaluateTextBeforeSelection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.model,r=n.document.selection,i=n.createRange(n.createPositionAt(r.focus.parent,0),r.focus),o=Gl(i,n),a=o.text,s=o.range,c=this.testCallback(a);if(!c&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!c,c){var l=Object.assign(t,{text:a,range:s});"object"==S(c)&&Object.assign(l,c),this.fire("matched:"+e,l)}}}]),e}();an(Kl,pr);var Ql=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.)+(?:[a-z\\u00a1-\\uffff]{2,}))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.))+(?:[a-z\\u00a1-\\uffff]{2,})))$","i"),Jl=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i;function Xl(e){var t=Ql.exec(e);return t?t[2]:null}var Zl=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).attributeKey=r,i}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document.selection,i=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(r.isCollapsed)i?t.setSelectionAttribute(e.attributeKey,!0):t.removeSelectionAttribute(e.attributeKey);else{var o,a=u(n.schema.getValidRanges(r.getRanges(),e.attributeKey));try{for(a.s();!(o=a.n()).done;){var s=o.value;i?t.setAttribute(e.attributeKey,i,s):t.removeAttribute(e.attributeKey,s)}}catch(e){a.e(e)}finally{a.f()}}}))}},{key:"_getValueFromFirstAllowedNode",value:function(){var e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);var r,i=u(n.getRanges());try{for(i.s();!(r=i.n()).done;){var o,a=u(r.value.getItems());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(t.checkAttribute(s,this.attributeKey))return s.hasAttribute(this.attributeKey)}}catch(e){a.e(e)}finally{a.f()}}}catch(e){i.e(e)}finally{i.f()}return!1}}]),n}(Nl),eu="bold",tu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:eu}),e.model.schema.setAttributeProperties(eu,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:eu,view:"strong",upcastAlso:["b",function(e){var t=e.getStyle("font-weight");return t?"bold"==t||Number(t)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),e.commands.add(eu,new Zl(e,eu)),e.keystrokes.set("CTRL+B",eu)}}],[{key:"pluginName",get:function(){return"BoldEditing"}}]),n}(Dl),nu="bold",ru=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(nu,(function(r){var i=t.commands.get(nu),o=new vl(r);return o.set({label:n("Bold"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(nu),t.editing.view.focus()})),o}))}}]),n}(Dl),iu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.ui.componentFactory,n=e.t;t.add("ckfinder",(function(t){var r=e.commands.get("ckfinder"),i=new vl(t);return i.set({label:n("Insert image or file"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),i.bind("isEnabled").to(r),i.on("execute",(function(){e.execute("ckfinder"),e.editing.view.focus()})),i}))}}],[{key:"pluginName",get:function(){return"CKFinderUI"}}]),n}(Dl),ou=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"observe",value:function(e){var t=this;this.listenTo(e,"load",(function(e,n){"IMG"==n.target.tagName&&t._fireEvents(n)}),{useCapture:!0})}},{key:"_fireEvents",value:function(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}]),n}(Ui),au=function(){function e(){h(this,e),this._stack=[]}return m(e,[{key:"add",value:function(e,t){var n=this._stack,r=n[0];this._insertDescriptor(e);var i=n[0];r===i||su(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:t})}},{key:"remove",value:function(e,t){var n=this._stack,r=n[0];this._removeDescriptor(e);var i=n[0];r===i||su(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:t})}},{key:"_insertDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e.id}));if(!su(e,t[n])){n>-1&&t.splice(n,1);for(var r=0;t[r]&&cu(t[r],e);)r++;t.splice(r,0,e)}}},{key:"_removeDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e}));n>-1&&t.splice(n,1)}}]),e}();function su(e,t){return e&&t&&e.priority==t.priority&&lu(e.classes)==lu(t.classes)}function cu(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&lu(e.classes)>lu(t.classes)}function lu(e){return Array.isArray(e)?e.sort().join(","):e}an(au,Jt),n(43);var uu=el("px"),du=Ii.document.body,fu=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("top",0),r.set("left",0),r.set("position","arrow_nw"),r.set("isVisible",!1),r.set("withArrow",!0),r.set("class"),r.content=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",i.to("position",(function(e){return"ck-balloon-panel_"+e})),i.if("isVisible","ck-balloon-panel_visible"),i.if("withArrow","ck-balloon-panel_with-arrow"),i.to("class")],style:{top:i.to("top",uu),left:i.to("left",uu)}},children:r.content}),r}return m(n,[{key:"show",value:function(){this.isVisible=!0}},{key:"hide",value:function(){this.isVisible=!1}},{key:"attachTo",value:function(e){this.show();var t=n.defaultPositions,r=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast],limiter:du,fitInViewport:!0},e),i=n._getOptimalPosition(r),o=parseInt(i.left),a=parseInt(i.top),s=i.name;Object.assign(this,{top:a,left:o,position:s})}},{key:"pin",value:function(e){var t=this;this.unpin(),this._pinWhenIsVisibleCallback=function(){t.isVisible?t._startPinning(e):t._stopPinning()},this._startPinning(e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}},{key:"unpin",value:function(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}},{key:"_startPinning",value:function(e){var t=this;this.attachTo(e);var n=hu(e.target),r=e.limiter?hu(e.limiter):du;this.listenTo(Ii.document,"scroll",(function(i,o){var a=o.target,s=n&&a.contains(n),c=r&&a.contains(r);!s&&!c&&n&&r||t.attachTo(e)}),{useCapture:!0}),this.listenTo(Ii.window,"resize",(function(){t.attachTo(e)}))}},{key:"_stopPinning",value:function(){this.stopListening(Ii.document,"scroll"),this.stopListening(Ii.window,"resize")}}]),n}(Yc);function hu(e){return Bt(e)?e:Mo(e)?e.commonAncestorContainer:"function"==typeof e?hu(e()):null}function pu(e,t){return e.top-t.height-fu.arrowVerticalOffset}function mu(e){return e.bottom+fu.arrowVerticalOffset}fu.arrowHorizontalOffset=25,fu.arrowVerticalOffset=10,fu._getOptimalPosition=ll,fu.defaultPositions={northWestArrowSouthWest:function(e,t){return{top:pu(e,t),left:e.left-fu.arrowHorizontalOffset,name:"arrow_sw"}},northWestArrowSouthMiddleWest:function(e,t){return{top:pu(e,t),left:e.left-.25*t.width-fu.arrowHorizontalOffset,name:"arrow_smw"}},northWestArrowSouth:function(e,t){return{top:pu(e,t),left:e.left-t.width/2,name:"arrow_s"}},northWestArrowSouthMiddleEast:function(e,t){return{top:pu(e,t),left:e.left-.75*t.width+fu.arrowHorizontalOffset,name:"arrow_sme"}},northWestArrowSouthEast:function(e,t){return{top:pu(e,t),left:e.left-t.width+fu.arrowHorizontalOffset,name:"arrow_se"}},northArrowSouthWest:function(e,t){return{top:pu(e,t),left:e.left+e.width/2-fu.arrowHorizontalOffset,name:"arrow_sw"}},northArrowSouthMiddleWest:function(e,t){return{top:pu(e,t),left:e.left+e.width/2-.25*t.width-fu.arrowHorizontalOffset,name:"arrow_smw"}},northArrowSouth:function(e,t){return{top:pu(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s"}},northArrowSouthMiddleEast:function(e,t){return{top:pu(e,t),left:e.left+e.width/2-.75*t.width+fu.arrowHorizontalOffset,name:"arrow_sme"}},northArrowSouthEast:function(e,t){return{top:pu(e,t),left:e.left+e.width/2-t.width+fu.arrowHorizontalOffset,name:"arrow_se"}},northEastArrowSouthWest:function(e,t){return{top:pu(e,t),left:e.right-fu.arrowHorizontalOffset,name:"arrow_sw"}},northEastArrowSouthMiddleWest:function(e,t){return{top:pu(e,t),left:e.right-.25*t.width-fu.arrowHorizontalOffset,name:"arrow_smw"}},northEastArrowSouth:function(e,t){return{top:pu(e,t),left:e.right-t.width/2,name:"arrow_s"}},northEastArrowSouthMiddleEast:function(e,t){return{top:pu(e,t),left:e.right-.75*t.width+fu.arrowHorizontalOffset,name:"arrow_sme"}},northEastArrowSouthEast:function(e,t){return{top:pu(e,t),left:e.right-t.width+fu.arrowHorizontalOffset,name:"arrow_se"}},southWestArrowNorthWest:function(e,t){return{top:mu(e),left:e.left-fu.arrowHorizontalOffset,name:"arrow_nw"}},southWestArrowNorthMiddleWest:function(e,t){return{top:mu(e),left:e.left-.25*t.width-fu.arrowHorizontalOffset,name:"arrow_nmw"}},southWestArrowNorth:function(e,t){return{top:mu(e),left:e.left-t.width/2,name:"arrow_n"}},southWestArrowNorthMiddleEast:function(e,t){return{top:mu(e),left:e.left-.75*t.width+fu.arrowHorizontalOffset,name:"arrow_nme"}},southWestArrowNorthEast:function(e,t){return{top:mu(e),left:e.left-t.width+fu.arrowHorizontalOffset,name:"arrow_ne"}},southArrowNorthWest:function(e,t){return{top:mu(e),left:e.left+e.width/2-fu.arrowHorizontalOffset,name:"arrow_nw"}},southArrowNorthMiddleWest:function(e,t){return{top:mu(e),left:e.left+e.width/2-.25*t.width-fu.arrowHorizontalOffset,name:"arrow_nmw"}},southArrowNorth:function(e,t){return{top:mu(e),left:e.left+e.width/2-t.width/2,name:"arrow_n"}},southArrowNorthMiddleEast:function(e,t){return{top:mu(e),left:e.left+e.width/2-.75*t.width+fu.arrowHorizontalOffset,name:"arrow_nme"}},southArrowNorthEast:function(e,t){return{top:mu(e),left:e.left+e.width/2-t.width+fu.arrowHorizontalOffset,name:"arrow_ne"}},southEastArrowNorthWest:function(e,t){return{top:mu(e),left:e.right-fu.arrowHorizontalOffset,name:"arrow_nw"}},southEastArrowNorthMiddleWest:function(e,t){return{top:mu(e),left:e.right-.25*t.width-fu.arrowHorizontalOffset,name:"arrow_nmw"}},southEastArrowNorth:function(e,t){return{top:mu(e),left:e.right-t.width/2,name:"arrow_n"}},southEastArrowNorthMiddleEast:function(e,t){return{top:mu(e),left:e.right-.75*t.width+fu.arrowHorizontalOffset,name:"arrow_nme"}},southEastArrowNorthEast:function(e,t){return{top:mu(e),left:e.right-t.width+fu.arrowHorizontalOffset,name:"arrow_ne"}}};var vu='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>',gu="widget-type-around";function bu(e,t,n){return e&&wu(e)&&!n.isInline(t)}function yu(e){return e.getAttribute(gu)}var _u="ck-widget_selected";function wu(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function ku(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.is("containerElement"))throw new Gt.b("widget-to-widget-wrong-element-type: The element passed to toWidget() must be a container element instance.",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=Mu,n.label&&function(e,t,n){n.setCustomProperty("widgetLabel",t,e)}(e,n.label,t),n.hasSelectionHandle&&function(e,t){var n=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){var t=this.toDomElement(e),n=new pl;return n.set("content",vu),n.render(),t.appendChild(n.element),t}));t.insert(t.createPositionAt(e,0),n),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),xu(e,t,(function(e,t,n){return n.addClass(r(t.classes),e)}),(function(e,t,n){return n.removeClass(r(t.classes),e)})),e;function r(e){return Array.isArray(e)?e:[e]}}function xu(e,t,n,r){var i=new au;i.on("change:top",(function(t,i){i.oldDescriptor&&r(e,i.oldDescriptor,i.writer),i.newDescriptor&&n(e,i.newDescriptor,i.writer)})),t.setCustomProperty("addHighlight",(function(e,t,n){return i.add(t,n)}),e),t.setCustomProperty("removeHighlight",(function(e,t,n){return i.remove(t,n)}),e)}function Cu(e){var t=e.getCustomProperty("widgetLabel");return t?"function"==typeof t?t():t:""}function Su(e,t){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",(function(n,r,i){t.setAttribute("contenteditable",i?"false":"true",e)})),e.on("change:isFocused",(function(n,r,i){i?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)})),e}function Tu(e,t){var n=e.getSelectedElement();if(n){var r=yu(e);if(r)return t.createPositionAt(n,r);if(t.schema.isBlock(n))return t.createPositionAfter(n)}var i=e.getSelectedBlocks().next().value;if(i){if(i.isEmpty)return t.createPositionAt(i,0);var o=t.createPositionAfter(i);return e.focus.isTouching(o)?o:t.createPositionBefore(i)}return e.focus}function Au(e,t){var n=new Po(Ii.window),r=n.getIntersection(e),i=t.height+fu.arrowVerticalOffset;if(e.top-i>n.top||e.bottom+i<n.bottom)return null;var o=r||e,a=o.left+o.width/2-t.width/2;return{top:Math.max(e.top,0)+fu.arrowVerticalOffset,left:a,name:"arrow_n"}}function Mu(){return null}function Eu(e){return!!e.getCustomProperty("image")&&wu(e)}function Ou(e){var t=e.getSelectedElement();return t&&Eu(t)?t:null}function Pu(e){return!!e&&e.is("element","image")}function Iu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.createElement("image",n),i=Tu(t.document.selection,t);t.insertContent(r,i),r.parent&&e.setSelection(r,"on")}function Du(e){var t=e.schema,n=e.document.selection;return function(e,t,n){var r=function(e,t){var n=Tu(e,t).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,n);return t.checkChild(r,"image")}(n,t,e)&&!function(e,t){var n=e.getSelectedElement();return n&&t.isObject(n)}(n,t)&&function(e){return c(e.focus.getAncestors()).every((function(e){return!e.is("element","image")}))}(n)}function ju(e){var t,n=[],r=u(e.getChildren());try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push(i),i.is("element")&&n.push.apply(n,c(i.getChildren()))}}catch(e){r.e(e)}finally{r.f()}return n.find((function(e){return e.is("element","img")}))}function Nu(e){return function(n){n.on("attribute:".concat(e,":image"),t)};function t(e,t,n){if(n.consumable.consume(t.item,e.name)){var r=n.writer,i=ju(n.mapper.toViewElement(t.item));r.setAttribute(t.attributeKey,t.attributeNewValue||"",i)}}}var Ru=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){this.isEnabled=Du(this.editor.model)}},{key:"execute",value:function(e){var t=this.editor.model;t.change((function(n){var r,i=u(Array.isArray(e.source)?e.source:[e.source]);try{for(i.s();!(r=i.n()).done;){var o=r.value;Iu(n,t,{src:o})}}catch(e){i.e(e)}finally{i.f()}}))}}]),n}(Nl),Lu=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,r=e.conversion;e.editing.view.addObserver(ou),t.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),r.for("dataDowncast").elementToElement({model:"image",view:function(e,t){return zu(t.writer)}}),r.for("editingDowncast").elementToElement({model:"image",view:function(e,t){var r=t.writer;return function(e,t,n){return t.setCustomProperty("image",!0,e),ku(e,t,{label:function(){var t=ju(e).getAttribute("alt");return t?"".concat(t," ").concat(n):n}})}(zu(r),r,n("image widget"))}}),r.for("downcast").add(Nu("src")).add(Nu("alt")).add(function(){return function(t){t.on("attribute:srcset:image",e)};function e(e,t,n){if(n.consumable.consume(t.item,e.name)){var r=n.writer,i=ju(n.mapper.toViewElement(t.item));if(null===t.attributeNewValue){var o=t.attributeOldValue;o.data&&(r.removeAttribute("srcset",i),r.removeAttribute("sizes",i),o.width&&r.removeAttribute("width",i))}else{var a=t.attributeNewValue;a.data&&(r.setAttribute("srcset",a.data,i),r.setAttribute("sizes","100vw",i),a.width&&r.setAttribute("width",a.width,i))}}}}()),r.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:function(e,t){return t.writer.createElement("image",{src:e.getAttribute("src")})}}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:function(e){var t={data:e.getAttribute("srcset")};return e.hasAttribute("width")&&(t.width=e.getAttribute("width")),t}}}).add(function(){return function(t){t.on("element:figure",e)};function e(e,t,n){if(n.consumable.test(t.viewItem,{name:!0,classes:"image"})){var r=ju(t.viewItem);if(r&&r.hasAttribute("src")&&n.consumable.test(r,{name:!0})){var i=Ll(n.convertItem(r,t.modelCursor).modelRange.getItems());i&&(n.convertChildren(t.viewItem,i),n.updateConversionResult(i,t))}}}}()),e.commands.add("imageInsert",new Ru(e))}}],[{key:"pluginName",get:function(){return"ImageEditing"}}]),n}(Dl);function zu(e){var t=e.createEmptyElement("img"),n=e.createContainerElement("figure",{class:"image"});return e.insert(e.createPositionAt(n,0),t),n}var Fu=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType="mousedown",r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo),Bu=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).attributes=new Set,r._overrideUid=null,r}return m(n,null,[{key:"pluginName",get:function(){return"TwoStepCaretMovement"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model,r=t.editing.view,i=t.locale,o=n.document.selection;this.listenTo(r.document,"keydown",(function(t,n){if(o.isCollapsed&&!(n.shiftKey||n.altKey||n.ctrlKey)){var r=n.keyCode==Ur.arrowright,a=n.keyCode==Ur.arrowleft;if(r||a){var s=i.contentLanguageDirection;!0===("ltr"===s&&r||"rtl"===s&&a?e._handleForwardMovement(n):e._handleBackwardMovement(n))&&t.stop()}}}),{priority:Yt.get("high")+1}),this._isNextGravityRestorationSkipped=!1,this.listenTo(o,"change:range",(function(t,n){e._isNextGravityRestorationSkipped?e._isNextGravityRestorationSkipped=!1:e._isGravityOverridden&&(!n.directChange&&Uu(o.getFirstPosition(),e.attributes)||e._restoreGravity())}))}},{key:"registerAttribute",value:function(e){this.attributes.add(e)}},{key:"_handleForwardMovement",value:function(e){var t=this.attributes,n=this.editor.model.document.selection,r=n.getFirstPosition();return!this._isGravityOverridden&&(!r.isAtStart||!$u(n,t))&&(Uu(r,t)?(Hu(e),this._overrideGravity(),!0):void 0)}},{key:"_handleBackwardMovement",value:function(e){var t=this.attributes,n=this.editor.model,r=n.document.selection,i=r.getFirstPosition();return this._isGravityOverridden?(Hu(e),this._restoreGravity(),Vu(n,t,i),!0):i.isAtStart?!!$u(r,t)&&(Hu(e),Vu(n,t,i),!0):function(e,t){return Uu(e.getShiftedBy(-1),t)}(i,t)?i.isAtEnd&&!$u(r,t)&&Uu(i,t)?(Hu(e),Vu(n,t,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}},{key:"_overrideGravity",value:function(){this._overrideUid=this.editor.model.change((function(e){return e.overrideSelectionGravity()}))}},{key:"_restoreGravity",value:function(){var e=this;this.editor.model.change((function(t){t.restoreSelectionGravity(e._overrideUid),e._overrideUid=null}))}},{key:"_isGravityOverridden",get:function(){return!!this._overrideUid}}]),n}(Dl);function $u(e,t){var n,r=u(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(e.hasAttribute(i))return!0}}catch(e){r.e(e)}finally{r.f()}return!1}function Vu(e,t,n){var r=n.nodeBefore;e.change((function(e){r?e.setSelectionAttribute(r.getAttributes()):e.removeSelectionAttribute(t)}))}function Hu(e){e.preventDefault()}function Uu(e,t){var n,r=e.nodeBefore,i=e.nodeAfter,o=u(t);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=r?r.getAttribute(a):void 0;if((i?i.getAttribute(a):void 0)!==s)return!0}}catch(e){o.e(e)}finally{o.f()}return!1}function qu(e,t,n,r){return r.createRange(Wu(e,t,n,!0,r),Wu(e,t,n,!1,r))}function Wu(e,t,n,r,i){for(var o=e.textNode||(r?e.nodeBefore:e.nodeAfter),a=null;o&&o.getAttribute(t)==n;)a=o,o=r?o.previousSibling:o.nextSibling;return a?i.createPositionAt(a,r?"before":"after"):e}for(var Yu=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;h(this,e),this.model=t,this.size=0,this.limit=r,this.isLocked=!1,this._changeCallback=function(e,t){"transparent"!=t.type&&t!==n._batch&&n._reset(!0)},this._selectionChangeCallback=function(){n._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}return m(e,[{key:"input",value:function(e){this.size+=e,this.size>=this.limit&&this._reset(!0)}},{key:"lock",value:function(){this.isLocked=!0}},{key:"unlock",value:function(){this.isLocked=!1}},{key:"destroy",value:function(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}},{key:"_reset",value:function(e){this.isLocked&&!e||(this._batch=null,this.size=0)}},{key:"batch",get:function(){return this._batch||(this._batch=this.model.createBatch()),this._batch}}]),e}(),Gu=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e))._buffer=new Yu(e.model,r),i._batches=new WeakSet,i}return m(n,[{key:"destroy",value:function(){s(C(n.prototype),"destroy",this).call(this),this._buffer.destroy()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document,i=t.text||"",o=i.length,a=t.range?n.createSelection(t.range):r.selection,s=t.resultRange;n.enqueueChange(this._buffer.batch,(function(t){e._buffer.lock(),e._batches.add(e._buffer.batch),n.deleteContent(a),i&&n.insertContent(t.createText(i,r.selection.getAttributes()),a),s?t.setSelection(s):a.is("documentSelection")||t.setSelection(a),e._buffer.unlock(),e._buffer.input(o)}))}},{key:"buffer",get:function(){return this._buffer}}]),n}(Nl),Ku=[qr("arrowUp"),qr("arrowRight"),qr("arrowDown"),qr("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255],Qu=112;Qu<=135;Qu++)Ku.push(Qu);function Ju(e){return!!e.ctrlKey||Ku.includes(e.keyCode)}function Xu(e){if(e.newChildren.length-e.oldChildren.length==1){var t=function(e,t){var n,r=[],i=0;return e.forEach((function(e){"equal"==e?(o(),i++):"insert"==e?(a("insert")?n.values.push(t[i]):(o(),n={type:"insert",index:i,values:[t[i]]}),i++):a("delete")?n.howMany++:(o(),n={type:"delete",index:i,howMany:1})})),o(),r;function o(){n&&(r.push(n),n=null)}function a(e){return n&&n.type==e}}(Ci(e.oldChildren,e.newChildren,Zu),e.newChildren);if(!(t.length>1)){var n=t[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}}}function Zu(e,t){return e&&e.is("$text")&&t&&t.is("$text")?e.data===t.data:e===t}var ed=function(){function e(t){h(this,e),this.editor=t,this.editing=this.editor.editing}return m(e,[{key:"handle",value:function(e,t){if(function(e){if(0==e.length)return!1;var t,n=u(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("children"===r.type&&!Xu(r))return!0}}catch(e){n.e(e)}finally{n.f()}return!1}(e))this._handleContainerChildrenMutations(e,t);else{var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._handleTextMutation(i,t),this._handleTextNodeInsertion(i)}}catch(e){r.e(e)}finally{r.f()}}}},{key:"_handleContainerChildrenMutations",value:function(e,t){var n=function(e){var t=e.map((function(e){return e.node})).reduce((function(e,t){return e.getCommonAncestor(t,{includeSelf:!0})}));if(t)return t.getAncestors({includeSelf:!0,parentFirst:!0}).find((function(e){return e.is("containerElement")||e.is("rootElement")}))}(e);if(n){var r=this.editor.editing.view.domConverter.mapViewToDom(n),i=new Ri(this.editor.editing.view.document),o=this.editor.data.toModel(i.domToView(r)).getChild(0),a=this.editor.editing.mapper.toModelElement(n);if(a){var s=Array.from(o.getChildren()),c=Array.from(a.getChildren()),l=s[s.length-1],u=c[c.length-1],d=l&&l.is("element","softBreak"),f=u&&!u.is("element","softBreak");d&&f&&s.pop();var h=this.editor.model.schema;if(td(s,h)&&td(c,h)){var p=s.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," "),m=c.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," ");if(m!==p){var v=nd(Ci(m,p)),g=v.firstChangeAt,b=v.insertions,y=v.deletions,_=null;t&&(_=this.editing.mapper.toModelRange(t.getFirstRange()));var w=p.substr(g,b),k=this.editor.model.createRange(this.editor.model.createPositionAt(a,g),this.editor.model.createPositionAt(a,g+y));this.editor.execute("input",{text:w,range:k,resultRange:_})}}}}}},{key:"_handleTextMutation",value:function(e,t){if("text"==e.type){var n=e.newText.replace(/\u00A0/g," "),r=e.oldText.replace(/\u00A0/g," ");if(r!==n){var i=nd(Ci(r,n)),o=i.firstChangeAt,a=i.insertions,s=i.deletions,c=null;t&&(c=this.editing.mapper.toModelRange(t.getFirstRange()));var l=this.editing.view.createPositionAt(e.node,o),u=this.editing.mapper.toModelPosition(l),d=this.editor.model.createRange(u,u.getShiftedBy(s)),f=n.substr(o,a);this.editor.execute("input",{text:f,range:d,resultRange:c})}}}},{key:"_handleTextNodeInsertion",value:function(e){if("children"==e.type){var t=Xu(e),n=this.editing.view.createPositionAt(e.node,t.index),r=this.editing.mapper.toModelPosition(n),i=t.values[0].data;this.editor.execute("input",{text:i.replace(/\u00A0/g," "),range:this.editor.model.createRange(r)})}}}]),e}();function td(e,t){return e.every((function(e){return t.isInline(e)}))}function nd(e){for(var t=null,n=null,r=0;r<e.length;r++)"equal"!=e[r]&&(t=null===t?r:t,n=r);for(var i=0,o=0,a=t;a<=n;a++)"insert"!=e[a]&&i++,"delete"!=e[a]&&o++;return{insertions:o,deletions:i,firstChangeAt:t}}var rd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=new Gu(e,e.config.get("typing.undoStep")||20);e.commands.add("input",t),function(e){var t=null,n=e.model,r=e.editing.view,i=e.commands.get("input");function o(e){var o=n.document,s=r.document.isComposing,c=t&&t.isEqual(o.selection);t=null,i.isEnabled&&(Ju(e)||o.selection.isCollapsed||s&&229===e.keyCode||!s&&229===e.keyCode&&c||a())}function a(){var e=i.buffer;e.lock();var t=e.batch;i._batches.add(t),n.enqueueChange(t,(function(){n.deleteContent(n.document.selection)})),e.unlock()}Br?r.document.on("beforeinput",(function(e,t){return o(t)}),{priority:"lowest"}):r.document.on("keydown",(function(e,t){return o(t)}),{priority:"lowest"}),r.document.on("compositionstart",(function(){var e=n.document,t=1!==e.selection.rangeCount||e.selection.getFirstRange().isFlat;e.selection.isCollapsed||t||a()}),{priority:"lowest"}),r.document.on("compositionend",(function(){t=n.createSelection(n.document.selection)}),{priority:"lowest"})}(e),function(e){e.editing.view.document.on("mutations",(function(t,n,r){new ed(e).handle(n,r)}))}(e)}},{key:"isInput",value:function(e){return this.editor.commands.get("input")._batches.has(e)}}],[{key:"pluginName",get:function(){return"Input"}}]),n}(Dl),id=function(){function e(t){h(this,e),this.files=function(e){var t=e.files?Array.from(e.files):[],n=e.items?Array.from(e.items):[];return t.length?t:n.filter((function(e){return"file"===e.kind})).map((function(e){return e.getAsFile()}))}(t),this._native=t}return m(e,[{key:"getData",value:function(e){return this._native.getData(e)}},{key:"setData",value:function(e,t){this._native.setData(e,t)}},{key:"types",get:function(){return this._native.types}}]),e}(),od=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).document;function o(e,t){t.preventDefault();var n=t.dropRange?[t.dropRange]:Array.from(i.selection.getRanges()),r=new Ut(i,"clipboardInput");i.fire(r,{dataTransfer:t.dataTransfer,targetRanges:n}),r.stop.called&&t.stopPropagation()}return r.domEventType=["paste","copy","cut","drop","dragover"],r.listenTo(i,"paste",o,{priority:"low"}),r.listenTo(i,"drop",o,{priority:"low"}),r}return m(n,[{key:"onDomEvent",value:function(e){var t={dataTransfer:new id(e.clipboardData?e.clipboardData:e.dataTransfer)};"drop"==e.type&&(t.dropRange=function(e,t){var n,r=t.target.ownerDocument,i=t.clientX,o=t.clientY;return r.caretRangeFromPoint&&r.caretRangeFromPoint(i,o)?n=r.caretRangeFromPoint(i,o):t.rangeParent&&((n=r.createRange()).setStart(t.rangeParent,t.rangeOffset),n.collapse(!0)),n?e.domConverter.domRangeToView(n):e.document.selection.getFirstRange()}(this.view,e)),this.fire(e.type,e,t)}}]),n}(uo),ad=["figcaption","li"],sd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document,r=t.editing.view,i=r.document;function o(e,r){var o=r.dataTransfer;r.preventDefault();var a=t.data.toView(t.model.getSelectedContent(n.selection));i.fire("clipboardOutput",{dataTransfer:o,content:a,method:e.name})}this._htmlDataProcessor=new vc(i),r.addObserver(od),this.listenTo(i,"clipboardInput",(function(e){t.isReadOnly&&e.stop()}),{priority:"highest"}),this.listenTo(i,"clipboardInput",(function(t,n){var i,o=n.dataTransfer,a="";o.getData("text/html")?a=function(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(function(e,t){return 1==t.length?" ":t}))}(o.getData("text/html")):o.getData("text/plain")&&((i=(i=o.getData("text/plain")).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"</p><p>").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).indexOf("</p><p>")>-1&&(i="<p>".concat(i,"</p>")),a=i),a=e._htmlDataProcessor.toView(a);var s=new Ut(e,"inputTransformation");e.fire(s,{content:a,dataTransfer:o}),s.stop.called&&t.stop(),r.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",(function(t,r){if(!r.content.isEmpty){var i=e.editor.data,o=e.editor.model,a=i.toModel(r.content,"$clipboardHolder");if(0==a.childCount)return;if(function(e){return!(e.childCount>1)&&0==c(e.getChild(0).getAttributeKeys()).length}(a)){var s=a.getChild(0);o.change((function(e){e.setAttributes(n.selection.getAttributes(),s)}))}o.insertContent(a),t.stop()}}),{priority:"low"}),this.listenTo(i,"copy",o,{priority:"low"}),this.listenTo(i,"cut",(function(e,n){t.isReadOnly?n.preventDefault():o(e,n)}),{priority:"low"}),this.listenTo(i,"clipboardOutput",(function(r,i){i.content.isEmpty||(i.dataTransfer.setData("text/html",e._htmlDataProcessor.toData(i.content)),i.dataTransfer.setData("text/plain",function e(t){var n="";if(t.is("$text")||t.is("$textProxy"))n=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))n=t.getAttribute("alt");else{var r,i=null,o=u(t.getChildren());try{for(o.s();!(r=o.n()).done;){var a=r.value,s=e(a);i&&(i.is("containerElement")||a.is("containerElement"))&&(ad.includes(i.name)||ad.includes(a.name)?n+="\n":n+="\n\n"),n+=s,i=a}}catch(e){o.e(e)}finally{o.f()}}return n}(i.content))),"cut"==i.method&&t.model.deleteContent(n.selection)}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Clipboard"}}]),n}(Dl),cd=function(){function e(){h(this,e),this._definitions=new Set}return m(e,[{key:"add",value:function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t._definitions.add(e)})):this._definitions.add(e)}},{key:"getDispatcher",value:function(){var e=this;return function(t){t.on("attribute:linkHref",(function(t,n,r){if(r.consumable.test(n.item,"attribute:linkHref")){var i,o=r.writer,a=o.document.selection,s=u(e._definitions);try{for(s.s();!(i=s.n()).done;){var c=i.value,l=o.createAttributeElement("a",c.attributes,{priority:5});o.setCustomProperty("link",!0,l),c.callback(n.attributeNewValue)?n.item.is("selection")?o.wrap(a.getFirstRange(),l):o.wrap(r.mapper.toViewRange(n.range),l):o.unwrap(r.mapper.toViewRange(n.range),l)}}catch(e){s.e(e)}finally{s.f()}}}),{priority:"high"})}}},{key:"getDispatcherForLinkedImage",value:function(){var e=this;return function(t){t.on("attribute:linkHref:image",(function(t,n,r){var i,o=r.mapper.toViewElement(n.item),a=Array.from(o.getChildren()).find((function(e){return"a"===e.name})),s=u(e._definitions);try{for(s.s();!(i=s.n()).done;){var c=i.value,d=yn(c.attributes);if(c.callback(n.attributeNewValue)){var f,h=u(d);try{for(h.s();!(f=h.n()).done;){var p=l(f.value,2),m=p[0],v=p[1];"class"===m?r.writer.addClass(v,a):r.writer.setAttribute(m,v,a)}}catch(e){h.e(e)}finally{h.f()}}else{var g,b=u(d);try{for(b.s();!(g=b.n()).done;){var y=l(g.value,2),_=y[0],w=y[1];"class"===_?r.writer.removeClass(w,a):r.writer.removeAttribute(_,a)}}catch(e){b.e(e)}finally{b.f()}}}}catch(e){s.e(e)}finally{s.f()}}))}}},{key:"length",get:function(){return this._definitions.size}}]),e}(),ld=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),ud=function(e){return ld.test(e)},dd="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",fd="\\ud83c[\\udffb-\\udfff]",hd="[^\\ud800-\\udfff]",pd="(?:\\ud83c[\\udde6-\\uddff]){2}",md="[\\ud800-\\udbff][\\udc00-\\udfff]",vd="(?:"+dd+"|"+fd+")?",gd="[\\ufe0e\\ufe0f]?",bd=gd+vd+"(?:\\u200d(?:"+[hd,pd,md].join("|")+")"+gd+vd+")*",yd="(?:"+[hd+dd+"?",dd,pd,md,"[\\ud800-\\udfff]"].join("|")+")",_d=RegExp(fd+"(?="+fd+")|"+yd+bd,"g"),wd=function(e){return ud(e)?function(e){return e.match(_d)||[]}(e):function(e){return e.split("")}(e)},kd=function(e){e=Dn(e);var t=ud(e)?wd(e):void 0,n=t?t[0]:e.charAt(0),r=t?function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Ln(e,t,n)}(t,1).join(""):e.slice(1);return n.toUpperCase()+r},xd=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Cd=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,Sd="Ctrl+K";function Td(e,t){var n=t.writer,r=n.createAttributeElement("a",{href:e},{priority:5});return n.setCustomProperty("link",!0,r),r}function Ad(e){return function(e){return e.replace(xd,"").match(Cd)}(e=String(e))?e:"#"}function Md(e,t){return!!e&&e.is("element","image")&&t.checkAttribute("image","linkHref")}var Ed=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).manualDecorators=new sn,r.automaticDecorators=new cd,r}return m(n,[{key:"restoreManualDecoratorStates",value:function(){var e,t=u(this.manualDecorators);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.value=this._getDecoratorStateFromModel(n.id)}}catch(e){t.e(e)}finally{t.f()}}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=Ll(t.selection.getSelectedBlocks());Md(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.selection.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"linkHref"));var r,i=u(this.manualDecorators);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.value=this._getDecoratorStateFromModel(o.id)}}catch(e){i.e(e)}finally{i.f()}}},{key:"execute",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.editor.model,i=r.document.selection,o=[],a=[];for(var s in n)n[s]?o.push(s):a.push(s);r.change((function(n){if(i.isCollapsed){var s=i.getFirstPosition();if(i.hasAttribute("linkHref")){var c=qu(s,"linkHref",i.getAttribute("linkHref"),r);n.setAttribute("linkHref",e,c),o.forEach((function(e){n.setAttribute(e,!0,c)})),a.forEach((function(e){n.removeAttribute(e,c)})),n.setSelection(n.createPositionAfter(c.end.nodeBefore))}else if(""!==e){var l=yn(i.getAttributes());l.set("linkHref",e),o.forEach((function(e){l.set(e,!0)}));var d=n.createText(e,l);r.insertContent(d,s),n.setSelection(n.createPositionAfter(d))}["linkHref"].concat(o,a).forEach((function(e){n.removeSelectionAttribute(e)}))}else{var f,h=r.schema.getValidRanges(i.getRanges(),"linkHref"),p=[],m=u(i.getSelectedBlocks());try{for(m.s();!(f=m.n()).done;){var v=f.value;r.schema.checkAttribute(v,"linkHref")&&p.push(n.createRangeOn(v))}}catch(e){m.e(e)}finally{m.f()}var g,b=p.slice(),y=u(h);try{for(y.s();!(g=y.n()).done;){var _=g.value;t._isRangeToUpdate(_,p)&&b.push(_)}}catch(e){y.e(e)}finally{y.f()}var w,k=u(b);try{var x=function(){var t=w.value;n.setAttribute("linkHref",e,t),o.forEach((function(e){n.setAttribute(e,!0,t)})),a.forEach((function(e){n.removeAttribute(e,t)}))};for(k.s();!(w=k.n()).done;)x()}catch(e){k.e(e)}finally{k.f()}}}))}},{key:"_getDecoratorStateFromModel",value:function(e){var t=this.editor.model,n=t.document,r=Ll(n.selection.getSelectedBlocks());return Md(r,t.schema)?r.getAttribute(e):n.selection.getAttribute(e)}},{key:"_isRangeToUpdate",value:function(e,t){var n,r=u(t);try{for(r.s();!(n=r.n()).done;){if(n.value.containsRange(e))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}}]),n}(Nl),Od=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=Ll(t.selection.getSelectedBlocks());Md(n,e.schema)?this.isEnabled=e.schema.checkAttribute(n,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"linkHref")}},{key:"execute",value:function(){var e=this.editor,t=this.editor.model,n=t.document.selection,r=e.commands.get("link");t.change((function(e){var i,o=u(n.isCollapsed?[qu(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),t)]:n.getRanges());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(e.removeAttribute("linkHref",a),r){var s,c=u(r.manualDecorators);try{for(c.s();!(s=c.n()).done;){var l=s.value;e.removeAttribute(l.id,a)}}catch(e){c.e(e)}finally{c.f()}}}}catch(e){o.e(e)}finally{o.f()}}))}}]),n}(Nl),Pd=function e(t){var n=t.id,r=t.label,i=t.attributes,o=t.defaultValue;h(this,e),this.id=n,this.set("value"),this.defaultValue=o,this.label=r,this.attributes=i};an(Pd,pr),n(45);var Id="automatic",Dd=/^(https?:)?\/\//,jd=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("link",{addTargetToExternalLinks:!1}),r}return m(n,null,[{key:"pluginName",get:function(){return"LinkEditing"}},{key:"requires",get:function(){return[Bu,rd,sd]}}]),m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Td}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:function(e,t){return Td(Ad(e),t)}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:function(e){return e.getAttribute("href")}}}),e.commands.add("link",new Ed(e)),e.commands.add("unlink",new Od(e));var t=function(e,t){var n={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach((function(e){return e.label&&n[e.label]&&(e.label=n[e.label]),e})),t}(e.t,function(e){var t=[];if(e)for(var n=0,r=Object.entries(e);n<r.length;n++){var i=l(r[n],2),o=i[0],a=i[1],s=Object.assign({},a,{id:"link"+kd(o)});t.push(s)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(t.filter((function(e){return e.mode===Id}))),this._enableManualDecorators(t.filter((function(e){return"manual"===e.mode}))),e.plugins.get(Bu).registerAttribute("linkHref"),function(e,t,n,r){var i=e.editing.view,o=new Set;i.document.registerPostFixer((function(n){var i=e.model.document.selection,a=!1;if(i.hasAttribute(t)){var s,c=qu(i.getFirstPosition(),t,i.getAttribute(t),e.model),l=u(e.editing.mapper.toViewRange(c).getItems());try{for(l.s();!(s=l.n()).done;){var d=s.value;d.is("element","a")&&!d.hasClass(r)&&(n.addClass(r,d),o.add(d),a=!0)}}catch(e){l.e(e)}finally{l.f()}}return a})),e.conversion.for("editingDowncast").add((function(e){function t(){i.change((function(e){var t,n=u(o.values());try{for(n.s();!(t=n.n()).done;){var i=t.value;e.removeClass(r,i),o.delete(i)}}catch(e){n.e(e)}finally{n.f()}}))}e.on("insert",t,{priority:"highest"}),e.on("remove",t,{priority:"highest"}),e.on("attribute",t,{priority:"highest"}),e.on("selection",t,{priority:"highest"})}))}(e,"linkHref",0,"ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}},{key:"_enableAutomaticDecorators",value:function(e){var t=this.editor,n=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:Id,callback:function(e){return Dd.test(e)},attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(e),n.length&&t.conversion.for("downcast").add(n.getDispatcher())}},{key:"_enableManualDecorators",value:function(e){if(e.length){var t=this.editor,n=t.commands.get("link").manualDecorators;e.forEach((function(e){t.model.schema.extend("$text",{allowAttributes:e.id}),n.add(new Pd(e)),t.conversion.for("downcast").attributeToElement({model:e.id,view:function(t,r){var i=r.writer;if(t){var o=n.get(e.id).attributes,a=i.createAttributeElement("a",o,{priority:5});return i.setCustomProperty("link",!0,a),a}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:n.get(e.id).attributes},model:{key:e.id}})}))}}},{key:"_enableInsertContentSelectionAttributesFixer",value:function(){var e=this.editor,t=e.model,n=t.document.selection,r=e.commands.get("link");this.listenTo(t,"insertContent",(function(){var e=n.anchor.nodeBefore,i=n.anchor.nodeAfter;n.hasAttribute("linkHref")&&e&&e.hasAttribute("linkHref")&&(i&&i.hasAttribute("linkHref")||t.change((function(e){Nd(e,r.manualDecorators)})))}),{priority:"low"})}},{key:"_enableClickingAfterLink",value:function(){var e=this.editor,t=e.commands.get("link");e.editing.view.addObserver(Fu);var n=!1;this.listenTo(e.editing.view.document,"mousedown",(function(){n=!0})),this.listenTo(e.editing.view.document,"selectionChange",(function(){if(n){n=!1;var r=e.model.document.selection;if(r.isCollapsed&&r.hasAttribute("linkHref")){var i=r.getFirstPosition(),o=qu(i,"linkHref",r.getAttribute("linkHref"),e.model);(i.isTouching(o.start)||i.isTouching(o.end))&&e.model.change((function(e){Nd(e,t.manualDecorators)}))}}}))}},{key:"_enableTypingOverLink",value:function(){var e,t,n=this.editor,r=n.editing.view;this.listenTo(r.document,"delete",(function(){t=!0}),{priority:"high"}),this.listenTo(n.model,"deleteContent",(function(){var r=n.model.document.selection;r.isCollapsed||(t?t=!1:Rd(n)&&function(e){var t=e.document.selection,n=t.getFirstPosition(),r=t.getLastPosition(),i=n.nodeAfter;return!!i&&(!!i.is("$text")&&(!!i.hasAttribute("linkHref")&&(i===(r.textNode||r.nodeBefore)||qu(n,"linkHref",i.getAttribute("linkHref"),e).containsRange(e.createRange(n,r),!0))))}(n.model)&&(e=r.getAttributes()))}),{priority:"high"}),this.listenTo(n.model,"insertContent",(function(r,i){var o=l(i,1)[0];t=!1,Rd(n)&&e&&(n.model.change((function(t){var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=l(n.value,2),a=i[0],s=i[1];t.setAttribute(a,s,o)}}catch(e){r.e(e)}finally{r.f()}})),e=null)}),{priority:"high"})}},{key:"_handleDeleteContentAfterLink",value:function(){var e=this.editor,t=e.model,n=t.document.selection,r=e.editing.view,i=e.commands.get("link"),o=!1,a=!1;this.listenTo(r.document,"delete",(function(e,t){a=t.domEvent.keyCode===Ur.backspace}),{priority:"high"}),this.listenTo(t,"deleteContent",(function(){o=!1;var e=n.getFirstPosition(),r=n.getAttribute("linkHref");if(r){var i=qu(e,"linkHref",r,t);o=i.containsPosition(e)||i.end.isEqual(e)}}),{priority:"high"}),this.listenTo(t,"deleteContent",(function(){a&&(a=!1,o||e.model.enqueueChange((function(e){Nd(e,i.manualDecorators)})))}),{priority:"low"})}}]),n}(Dl);function Nd(e,t){e.removeSelectionAttribute("linkHref");var n,r=u(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.removeSelectionAttribute(i.id)}}catch(e){r.e(e)}finally{r.f()}}function Rd(e){return e.plugins.get("Input").isInput(e.model.change((function(e){return e.batch})))}var Ld=function(){function e(t){h(this,e),this.context=t}return m(e,[{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!0}}]),e}();an(Ld,pr);var zd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.on("show:warning",(function(e,t){window.alert(t.message)}),{priority:"lowest"})}},{key:"showSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}},{key:"showInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}},{key:"showWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}},{key:"_showNotification",value:function(e){var t="show:"+e.type+(e.namespace?":"+e.namespace:"");this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}],[{key:"pluginName",get:function(){return"Notification"}}]),n}(Ld),Fd=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).stopListening(r.editor.model.document,"change"),r.listenTo(r.editor.model.document,"change",(function(){return r.refresh()}),{priority:"low"}),r}return m(n,[{key:"refresh",value:function(){var e=this.editor.commands.get("imageInsert"),t=this.editor.commands.get("link");this.isEnabled=e.isEnabled||t.isEnabled}},{key:"execute",value:function(){var e=this.editor,t=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=t&&"modal"!=t)throw new Gt.b('ckfinder-unknown-openerMethod: The openerMethod config option must by "popup" or "modal".',e);var n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;var r=n.onInit;n.language||(n.language=e.locale.uiLanguage),n.onInit=function(t){r&&r(t),t.on("files:choose",(function(n){var r,i=n.data.files.toArray(),o=i.filter((function(e){return!e.isImage()})),a=i.filter((function(e){return e.isImage()})),s=u(o);try{for(s.s();!(r=s.n()).done;){var c=r.value;e.execute("link",c.getUrl())}}catch(e){s.e(e)}finally{s.f()}var l,d=[],f=u(a);try{for(f.s();!(l=f.n()).done;){var h=l.value,p=h.getUrl();d.push(p||t.request("file:getProxyUrl",{file:h}))}}catch(e){f.e(e)}finally{f.f()}d.length&&Bd(e,d)})),t.on("file:choose:resizedImage",(function(t){var n=t.data.resizedUrl;if(n)Bd(e,[n]);else{var r=e.plugins.get("Notification"),i=e.locale.t;r.showWarning(i("Could not obtain resized image URL."),{title:i("Selecting resized image failed"),namespace:"ckfinder"})}}))},window.CKFinder[t](n)}}]),n}(Nl);function Bd(e,t){if(e.commands.get("imageInsert").isEnabled)e.execute("imageInsert",{source:t});else{var n=e.plugins.get("Notification"),r=e.locale.t;n.showWarning(r("Could not insert image at the current position."),{title:r("Inserting image failed"),namespace:"ckfinder"})}}var $d=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.commands.add("ckfinder",new Fd(e))}}],[{key:"pluginName",get:function(){return"CKFinderEditing"}},{key:"requires",get:function(){return[zd,Lu,jd]}}]),n}(Dl),Vd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.set("hasAny",!1),this._actions=new sn({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}},{key:"add",value:function(e){if("string"!=typeof e)throw new Gt.b("pendingactions-add-invalid-message: The message must be a string.",this);var t=Object.create(pr);return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}},{key:"remove",value:function(e){this._actions.remove(e),this.hasAny=!!this._actions.length}},{key:Symbol.iterator,value:function(){return this._actions[Symbol.iterator]()}},{key:"first",get:function(){return this._actions.get(0)}}],[{key:"pluginName",get:function(){return"PendingActions"}}]),n}(Ld),Hd=function(){function e(){var t=this;h(this,e);var n=new window.FileReader;this._reader=n,this._data=void 0,this.set("loaded",0),n.onprogress=function(e){t.loaded=e.loaded}}return m(e,[{key:"read",value:function(e){var t=this,n=this._reader;return this.total=e.size,new Promise((function(r,i){n.onload=function(){var e=n.result;t._data=e,r(e)},n.onerror=function(){i("error")},n.onabort=function(){i("aborted")},t._reader.readAsDataURL(e)}))}},{key:"abort",value:function(){this._reader.abort()}},{key:"error",get:function(){return this._reader.error}},{key:"data",get:function(){return this._data}}]),e}();an(Hd,pr);var Ud=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this;this.loaders=new sn,this.loaders.on("add",(function(){return e._updatePendingAction()})),this.loaders.on("remove",(function(){return e._updatePendingAction()})),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0}))}},{key:"getLoader",value:function(e){return this._loadersMap.get(e)||null}},{key:"createLoader",value:function(e){var t=this;if(!this.createUploadAdapter)return console.warn(Object(Gt.a)("filerepository-no-upload-adapter: Upload adapter is not defined.")),null;var n=new qd(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(n),this._loadersMap.set(e,n),e instanceof Promise&&n.file.then((function(e){t._loadersMap.set(e,n)})).catch((function(){})),n.on("change:uploaded",(function(){var e,n=0,r=u(t.loaders);try{for(r.s();!(e=r.n()).done;){n+=e.value.uploaded}}catch(e){r.e(e)}finally{r.f()}t.uploaded=n})),n.on("change:uploadTotal",(function(){var e,n=0,r=u(t.loaders);try{for(r.s();!(e=r.n()).done;){var i=e.value;i.uploadTotal&&(n+=i.uploadTotal)}}catch(e){r.e(e)}finally{r.f()}t.uploadTotal=n})),n}},{key:"destroyLoader",value:function(e){var t=this,n=e instanceof qd?e:this.getLoader(e);n._destroy(),this.loaders.remove(n),this._loadersMap.forEach((function(e,r){e===n&&t._loadersMap.delete(r)}))}},{key:"_updatePendingAction",value:function(){var e=this.editor.plugins.get(Vd);if(this.loaders.length){if(!this._pendingAction){var t=this.editor.t,n=function(e){return"".concat(t("Upload in progress")," ").concat(parseInt(e),"%.")};this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}],[{key:"pluginName",get:function(){return"FileRepository"}},{key:"requires",get:function(){return[Vd]}}]),n}(Dl);an(Ud,pr);var qd=function(){function e(t,n){h(this,e),this.id=Wt(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=n(this),this._reader=new Hd,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0})),this.set("uploadResponse",null)}return m(e,[{key:"read",value:function(){var e=this;if("idle"!=this.status)throw new Gt.b("filerepository-read-wrong-status: You cannot call read if the status is different than idle.",this);return this.status="reading",this.file.then((function(t){return e._reader.read(t)})).then((function(t){if("reading"!==e.status)throw e.status;return e.status="idle",t})).catch((function(t){if("aborted"===t)throw e.status="aborted","aborted";throw e.status="error",e._reader.error?e._reader.error:t}))}},{key:"upload",value:function(){var e=this;if("idle"!=this.status)throw new Gt.b("filerepository-upload-wrong-status: You cannot call upload if the status is different than idle.",this);return this.status="uploading",this.file.then((function(){return e._adapter.upload()})).then((function(t){return e.uploadResponse=t,e.status="idle",t})).catch((function(t){if("aborted"===e.status)throw"aborted";throw e.status="error",t}))}},{key:"abort",value:function(){var e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((function(){})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}},{key:"_destroy",value:function(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}},{key:"_createFilePromiseWrapper",value:function(e){var t={};return t.promise=new Promise((function(n,r){t.rejecter=r,t.isFulfilled=!1,e.then((function(e){t.isFulfilled=!0,n(e)})).catch((function(e){t.isFulfilled=!0,r(e)}))})),t}},{key:"file",get:function(){var e=this;return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((function(t){return e._filePromiseWrapper?t:null})):Promise.resolve(null)}},{key:"data",get:function(){return this._reader.data}}]),e}();an(qd,pr);var Wd="ckCsrfToken",Yd="abcdefghijklmnopqrstuvwxyz0123456789";var Gd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor.config.get("ckfinder.uploadUrl");t&&(this.editor.plugins.get(Ud).createUploadAdapter=function(n){return new Kd(n,t,e.editor.t)})}}],[{key:"requires",get:function(){return[Ud]}},{key:"pluginName",get:function(){return"CKFinderUploadAdapter"}}]),n}(Dl),Kd=function(){function e(t,n,r){h(this,e),this.loader=t,this.url=n,this.t=r}return m(e,[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return new Promise((function(n,r){e._initRequest(),e._initListeners(n,r,t),e._sendRequest(t)}))}))}},{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"_initRequest",value:function(){var e=this.xhr=new XMLHttpRequest;e.open("POST",this.url,!0),e.responseType="json"}},{key:"_initListeners",value:function(e,t,n){var r=this.xhr,i=this.loader,o=(0,this.t)("Cannot upload file:")+" ".concat(n.name,".");r.addEventListener("error",(function(){return t(o)})),r.addEventListener("abort",(function(){return t()})),r.addEventListener("load",(function(){var n=r.response;if(!n||!n.uploaded)return t(n&&n.error&&n.error.message?n.error.message:o);e({default:n.url})})),r.upload&&r.upload.addEventListener("progress",(function(e){e.lengthComputable&&(i.uploadTotal=e.total,i.uploaded=e.loaded)}))}},{key:"_sendRequest",value:function(e){var t=new FormData;t.append("upload",e),t.append("ckCsrfToken",function(){var e,t=function(e){e=e.toLowerCase();var t,n=u(document.cookie.split(";"));try{for(n.s();!(t=n.n()).done;){var r=t.value.split("=");if(decodeURIComponent(r[0].trim().toLowerCase())===e)return decodeURIComponent(r[1])}}catch(e){n.e(e)}finally{n.f()}return null}(Wd);return t&&40==t.length||(t=function(e){var t="",n=new Uint8Array(40);window.crypto.getRandomValues(n);for(var r=0;r<n.length;r++){var i=Yd.charAt(n[r]%Yd.length);t+=Math.random()>.5?i.toUpperCase():i}return t}(),Wd,e=t,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(e)+";path=/"),t}()),this.xhr.send(t)}}]),e}();function Qd(e,t){var n,r,i;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:n=u(t),o.prev=1,n.s();case 3:if((r=n.n()).done){o.next=11;break}if(i=r.value,o.t0=i&&e.getAttributeProperties(i[0]).copyOnEnter,!o.t0){o.next=9;break}return o.next=9,i;case 9:o.next=3;break;case 11:o.next=16;break;case 13:o.prev=13,o.t1=o.catch(1),n.e(o.t1);case 16:return o.prev=16,n.f(),o.finish(16);case 19:case"end":return o.stop()}}),d,null,[[1,13,16,19]])}var Jd=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(r){!function(e,t,n,r){var i=n.isCollapsed,o=n.getFirstRange(),a=o.start.parent,s=o.end.parent;if(r.isLimit(a)||r.isLimit(s))i||a!=s||e.deleteContent(n);else if(i){var c=Qd(t.model.schema,n.getAttributes());Xd(t,o.start),t.setSelectionAttribute(c)}else{var l=!(o.start.isAtStart&&o.end.isAtEnd),u=a==s;e.deleteContent(n,{leaveUnmerged:l}),l&&(u?Xd(t,n.focus):t.setSelection(s,0))}}(e.editor.model,r,n.selection,t.schema),e.fire("afterExecute",{writer:r})}))}}]),n}(Nl);function Xd(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}var Zd=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).document;return i.on("keydown",(function(e,t){var n;r.isEnabled&&t.keyCode==Ur.enter&&(i.once("enter",(function(e){return n=e}),{priority:"highest"}),i.fire("enter",new lo(i,t.domEvent,{isSoft:t.shiftKey})),n&&n.stop.called&&e.stop())})),r}return m(n,[{key:"observe",value:function(){}}]),n}(Ui),ef=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;t.addObserver(Zd),e.commands.add("enter",new Jd(e)),this.listenTo(n,"enter",(function(n,r){r.preventDefault(),r.isSoft||(e.execute("enter"),t.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Enter"}}]),n}(Dl),tf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(r){!function(e,t,n){var r=n.isCollapsed,i=n.getFirstRange(),o=i.start.parent,a=i.end.parent,s=o==a;if(r){var c=Qd(e.schema,n.getAttributes());nf(e,t,i.end),t.removeSelectionAttribute(n.getAttributeKeys()),t.setSelectionAttribute(c)}else{var l=!(i.start.isAtStart&&i.end.isAtEnd);e.deleteContent(n,{leaveUnmerged:l}),s?nf(e,t,n.focus):l&&t.setSelection(a,0)}}(t,r,n.selection),e.fire("afterExecute",{writer:r})}))}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;var n=t.anchor;if(!n||!e.checkChild(n,"softBreak"))return!1;var r=t.getFirstRange(),i=r.start.parent,o=r.end.parent;return!rf(i,e)&&!rf(o,e)||i===o}(e.schema,t.selection)}}]),n}(Nl);function nf(e,t,n){var r=t.createElement("softBreak");e.insertContent(r,n),t.setSelection(r,"after")}function rf(e,t){return!e.is("rootElement")&&(t.isLimit(e)||rf(e.parent,t))}var of=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.conversion,r=e.editing.view,i=r.document;t.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:function(e,t){return t.writer.createEmptyElement("br")}}),r.addObserver(Zd),e.commands.add("shiftEnter",new tf(e)),this.listenTo(i,"enter",(function(t,n){n.preventDefault(),n.isSoft&&(e.execute("shiftEnter"),r.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ShiftEnter"}}]),n}(Dl),af=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema.getLimitElement(t);if(t.containsEntireContent(n)||!sf(e.schema,n))do{if(!(n=n.parent))return}while(!sf(e.schema,n));e.change((function(e){e.setSelection(n,"in")}))}}]),n}(Nl);function sf(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}var cf=Wr("Ctrl+A"),lf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new af(e)),this.listenTo(t,"keydown",(function(t,n){qr(n)===cf&&(e.execute("selectAll"),n.preventDefault())}))}}],[{key:"pluginName",get:function(){return"SelectAllEditing"}}]),n}(Dl),uf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor;t.ui.componentFactory.add("selectAll",(function(n){var r=t.commands.get("selectAll"),i=new vl(n),o=n.t;return i.set({label:o("Select all"),icon:'<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),e.listenTo(i,"execute",(function(){t.execute("selectAll"),t.editing.view.focus()})),i}))}}],[{key:"pluginName",get:function(){return"SelectAllUI"}}]),n}(Dl),df=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[lf,uf]}},{key:"pluginName",get:function(){return"SelectAll"}}]),n}(Dl),ff=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).direction=r,i._buffer=new Yu(e.model,e.config.get("typing.undoStep")),i}return m(n,[{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document;n.enqueueChange(this._buffer.batch,(function(i){e._buffer.lock();var o=i.createSelection(t.selection||r.selection),a=o.isCollapsed;if(o.isCollapsed&&n.modifySelection(o,{direction:e.direction,unit:t.unit}),e._shouldEntireContentBeReplacedWithParagraph(t.sequence||1))e._replaceEntireContentWithParagraph(i);else if(!o.isCollapsed){var s=0;o.getFirstRange().getMinimalFlatRanges().forEach((function(e){s+=Ar(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),n.deleteContent(o,{doNotResetEntireContent:a,direction:e.direction}),e._buffer.input(s),i.setSelection(o),e._buffer.unlock()}}))}},{key:"_shouldEntireContentBeReplacedWithParagraph",value:function(e){if(e>1)return!1;var t=this.editor.model,n=t.document.selection,r=t.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(r))return!1;if(!t.schema.checkChild(r,"paragraph"))return!1;var i=r.getChild(0);return!i||"paragraph"!==i.name}},{key:"_replaceEntireContentWithParagraph",value:function(e){var t=this.editor.model,n=t.document.selection,r=t.schema.getLimitElement(n),i=e.createElement("paragraph");e.remove(e.createRangeIn(r)),e.insert(i,r),e.setSelection(i,0)}},{key:"buffer",get:function(){return this._buffer}}]),n}(Nl),hf=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),r=t.call(this,e);var i=e.document,o=0;function a(e,t,n){var r;i.once("delete",(function(e){return r=e}),{priority:Number.POSITIVE_INFINITY}),i.fire("delete",new lo(i,t,n)),r&&r.stop.called&&e.stop()}return i.on("keyup",(function(e,t){t.keyCode!=Ur.delete&&t.keyCode!=Ur.backspace||(o=0)})),i.on("keydown",(function(e,t){var n={};if(t.keyCode==Ur.delete)n.direction="forward",n.unit="character";else{if(t.keyCode!=Ur.backspace)return;n.direction="backward",n.unit="codePoint"}var r=Lr?t.altKey:t.ctrlKey;n.unit=r?"word":n.unit,n.sequence=++o,a(e,t.domEvent,n)})),Br&&i.on("beforeinput",(function(t,n){if("deleteContentBackward"==n.domEvent.inputType){var r={unit:"codepoint",direction:"backward",sequence:1},i=n.domTarget.ownerDocument.defaultView.getSelection();i.anchorNode==i.focusNode&&i.anchorOffset+1!=i.focusOffset&&(r.selectionToRemove=e.domConverter.domSelectionToView(i)),a(t,n.domEvent,r)}})),r}return m(n,[{key:"observe",value:function(){}}]),n}(Ui),pf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;if(t.addObserver(hf),e.commands.add("forwardDelete",new ff(e,"forward")),e.commands.add("delete",new ff(e,"backward")),this.listenTo(n,"delete",(function(n,r){var i={unit:r.unit,sequence:r.sequence};if(r.selectionToRemove){var o,a=e.model.createSelection(),s=[],c=u(r.selectionToRemove.getRanges());try{for(c.s();!(o=c.n()).done;){var l=o.value;s.push(e.editing.mapper.toModelRange(l))}}catch(e){c.e(e)}finally{c.f()}a.setTo(s),i.selection=a}e.execute("forward"==r.direction?"forwardDelete":"delete",i),r.preventDefault(),t.scrollToTheSelection()})),Br){var r=null;this.listenTo(n,"delete",(function(e,t){var n=t.domTarget.ownerDocument.defaultView.getSelection();r={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}),{priority:"lowest"}),this.listenTo(n,"keyup",(function(e,t){if(r){var n=t.domTarget.ownerDocument.defaultView.getSelection();n.collapse(r.anchorNode,r.anchorOffset),n.extend(r.focusNode,r.focusOffset),r=null}}))}}}],[{key:"pluginName",get:function(){return"Delete"}}]),n}(Dl),mf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[rd,pf]}},{key:"pluginName",get:function(){return"Typing"}}]),n}(Dl),vf=new Map;function gf(e,t,n){var r=vf.get(e);r||(r=new Map,vf.set(e,r)),r.set(t,n)}function bf(e){return[e]}function yf(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e,t){var n=vf.get(e);return n&&n.has(t)?n.get(t):bf}(e.constructor,t.constructor);try{return r(e=e.clone(),t,n)}catch(e){throw e}}function _f(e,t,n){e=e.slice(),t=t.slice();var r=new wf(n.document,n.useRelations,n.forceWeakRemove);r.setOriginalOperations(e),r.setOriginalOperations(t);var i=r.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:i};var o,a=new WeakMap,s=u(e);try{for(s.s();!(o=s.n()).done;){var l=o.value;a.set(l,0)}}catch(e){s.e(e)}finally{s.f()}for(var d={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length},f=0;f<e.length;){var h,p,m=e[f],v=a.get(m);if(v!=t.length){var g=t[v],b=yf(m,g,r.getContext(m,g,!0)),y=yf(g,m,r.getContext(g,m,!1));r.updateRelation(m,g),r.setOriginalOperations(b,m),r.setOriginalOperations(y,g);var _,w=u(b);try{for(w.s();!(_=w.n()).done;){var k=_.value;a.set(k,v+y.length)}}catch(e){w.e(e)}finally{w.f()}(h=e).splice.apply(h,[f,1].concat(c(b))),(p=t).splice.apply(p,[v,1].concat(c(y)))}else f++}if(n.padWithNoOps){var x=e.length-d.originalOperationsACount,C=t.length-d.originalOperationsBCount;xf(e,C-x),xf(t,x-C)}return kf(e,d.nextBaseVersionB),kf(t,d.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:i}}var wf=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];h(this,e),this.originalOperations=new Map,this._history=t.history,this._useRelations=n,this._forceWeakRemove=!!r,this._relations=new Map}return m(e,[{key:"setOriginalOperations",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=n?this.originalOperations.get(n):null,i=u(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;this.originalOperations.set(o,r||o)}}catch(e){i.e(e)}finally{i.f()}}},{key:"updateRelation",value:function(e,t){switch(e.constructor){case _s:switch(t.constructor){case Ss:e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter");break;case _s:e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter")}break;case Ts:switch(t.constructor){case Ss:e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");break;case _s:(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))&&this._setRelation(e,t,"splitBefore")}break;case Ss:switch(t.constructor){case Ss:e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement");break;case Ts:e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource")}break;case ks:var n=e.newRange;if(!n)return;switch(t.constructor){case _s:var r=na._createFromPositionAndShift(t.sourcePosition,t.howMany),i=r.containsPosition(n.start)||r.start.isEqual(n.start),o=r.containsPosition(n.end)||r.end.isEqual(n.end);!i&&!o||r.containsRange(n)||this._setRelation(e,t,{side:i?"left":"right",path:i?n.start.path.slice():n.end.path.slice()});break;case Ss:var a=n.start.isEqual(t.targetPosition),s=n.start.isEqual(t.deletionPosition),c=n.end.isEqual(t.deletionPosition),l=n.end.isEqual(t.sourcePosition);(a||s||c||l)&&this._setRelation(e,t,{wasInLeftElement:a,wasStartBeforeMergedElement:s,wasEndBeforeMergedElement:c,wasInRightElement:l})}}}},{key:"getContext",value:function(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}},{key:"_wasUndone",value:function(e){var t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}},{key:"_getRelation",value:function(e,t){var n=this.originalOperations.get(t),r=this._history.getUndoneOperation(n);if(!r)return null;var i=this.originalOperations.get(e),o=this._relations.get(i);return o&&o.get(r)||null}},{key:"_setRelation",value:function(e,t,n){var r=this.originalOperations.get(e),i=this.originalOperations.get(t),o=this._relations.get(r);o||(o=new Map,this._relations.set(r,o)),o.set(i,n)}}]),e}();function kf(e,t){var n,r=u(e);try{for(r.s();!(n=r.n()).done;){n.value.baseVersion=t++}}catch(e){r.e(e)}finally{r.f()}}function xf(e,t){for(var n=0;n<t;n++)e.push(new Ws(0))}function Cf(e,t,n){var r=e.nodes.getNode(0).getAttribute(t);if(r==n)return null;var i=new na(e.position,e.position.getShiftedBy(e.howMany));return new bs(i,t,r,n,0)}function Sf(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function Tf(e,t){for(var n=[],r=0;r<e.length;r++){var i=e[r],o=new _s(i.start,i.end.offset-i.start.offset,t,0);n.push(o);for(var a=r+1;a<e.length;a++)e[a]=e[a]._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)[0];t=t._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)}return n}gf(bs,bs,(function(e,t,n){if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){var r=e.range.getDifference(t.range).map((function(t){return new bs(t,e.key,e.oldValue,e.newValue,0)})),i=e.range.getIntersection(t.range);return i&&n.aIsStrong&&r.push(new bs(i,t.key,t.newValue,e.newValue,0)),0==r.length?[new Ws(0)]:r}return[e]})),gf(bs,ws,(function(e,t){if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){var n=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map((function(t){return new bs(t,e.key,e.oldValue,e.newValue,e.baseVersion)}));if(t.shouldReceiveAttributes){var r=Cf(t,e.key,e.oldValue);r&&n.unshift(r)}return n}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]})),gf(bs,Ss,(function(e,t){var n=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&n.push(na._createFromPositionAndShift(t.graveyardPosition,1));var r=e.range._getTransformedByMergeOperation(t);return r.isCollapsed||n.push(r),n.map((function(t){return new bs(t,e.key,e.oldValue,e.newValue,e.baseVersion)}))})),gf(bs,_s,(function(e,t){return function(e,t){var n=na._createFromPositionAndShift(t.sourcePosition,t.howMany),r=null,i=[];n.containsRange(e,!0)?r=e:e.start.hasSameParentAs(n.start)?(i=e.getDifference(n),r=e.getIntersection(n)):i=[e];var o,a=[],s=u(i);try{for(s.s();!(o=s.n()).done;){var l=o.value;l=l._getTransformedByDeletion(t.sourcePosition,t.howMany);var d=t.getMovedRangeStart(),f=l.start.hasSameParentAs(d);l=l._getTransformedByInsertion(d,t.howMany,f),a.push.apply(a,c(l))}}catch(e){s.e(e)}finally{s.f()}return r&&a.push(r._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),a}(e.range,t).map((function(t){return new bs(t,e.key,e.oldValue,e.newValue,e.baseVersion)}))})),gf(bs,Ts,(function(e,t){if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){var n=e.clone();return n.range=new na(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,n]}return e.range=e.range._getTransformedBySplitOperation(t),[e]})),gf(ws,bs,(function(e,t){var n=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){var r=Cf(e,t.key,t.newValue);r&&n.push(r)}return n})),gf(ws,ws,(function(e,t,n){return e.position.isEqual(t.position)&&n.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e]})),gf(ws,_s,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),gf(ws,Ts,(function(e,t){return e.position=e.position._getTransformedBySplitOperation(t),[e]})),gf(ws,Ss,(function(e,t){return e.position=e.position._getTransformedByMergeOperation(t),[e]})),gf(ks,ws,(function(e,t){return e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e]})),gf(ks,ks,(function(e,t,n){if(e.name==t.name){if(!n.aIsStrong)return[new Ws(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]})),gf(ks,Ss,(function(e,t){return e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e]})),gf(ks,_s,(function(e,t,n){if(e.oldRange&&(e.oldRange=na._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(n.abRelation){var r=na._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.start.path=n.abRelation.path,e.newRange.end=r.end,[e];if("right"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=r.start,e.newRange.end.path=n.abRelation.path,[e]}e.newRange=na._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]})),gf(ks,Ts,(function(e,t,n){if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(n.abRelation){var r=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?e.newRange.start=Xo._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!n.abRelation.wasInLeftElement&&(e.newRange.start=Xo._createAt(t.moveTargetPosition)),e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasInRightElement?e.newRange.end=Xo._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?e.newRange.end=Xo._createAt(t.insertionPosition):e.newRange.end=r.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]})),gf(Ss,ws,(function(e,t){return e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e]})),gf(Ss,Ss,(function(e,t,n){if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(n.bWasUndone){var r=t.graveyardPosition.path.slice();return r.push(0),e.sourcePosition=new Xo(t.graveyardPosition.root,r),e.howMany=0,[e]}return[new Ws(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){var i="$graveyard"==e.targetPosition.root.rootName,o="$graveyard"==t.targetPosition.root.rootName;if(o&&!i||!(i&&!o)&&n.aIsStrong){var a=t.targetPosition._getTransformedByMergeOperation(t),s=e.targetPosition._getTransformedByMergeOperation(t);return[new _s(a,e.howMany,s,0)]}return[new Ws(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&n.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),gf(Ss,_s,(function(e,t,n){var r=na._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!n.bWasUndone&&!n.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.sourcePosition)?[new Ws(0)]:(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])})),gf(Ss,Ts,(function(e,t,n){if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){var r=0!=t.howMany,i=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(r||i||"mergeTargetNotMoved"==n.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==n.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]})),gf(_s,ws,(function(e,t){var n=na._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=n.start,e.howMany=n.end.offset-n.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]})),gf(_s,_s,(function(e,t,n){var r,i=na._createFromPositionAndShift(e.sourcePosition,e.howMany),o=na._createFromPositionAndShift(t.sourcePosition,t.howMany),a=n.aIsStrong,s=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?s=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(s=!1),r=e.targetPosition.isEqual(t.targetPosition)&&s?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Sf(e,t)&&Sf(t,e))return[t.getReversed()];if(i.containsPosition(t.targetPosition)&&i.containsRange(o,!0))return i.start=i.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),i.end=i.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Tf([i],r);if(o.containsPosition(e.targetPosition)&&o.containsRange(i,!0))return i.start=i.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),i.end=i.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),Tf([i],r);var l=pn(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return i.start=i.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),i.end=i.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Tf([i],r);"remove"!=e.type||"remove"==t.type||n.aWasUndone||n.forceWeakRemove?"remove"==e.type||"remove"!=t.type||n.bWasUndone||n.forceWeakRemove||(a=!1):a=!0;var d,f=[],h=u(i.getDifference(o));try{for(h.s();!(d=h.n()).done;){var p=d.value;p.start=p.start._getTransformedByDeletion(t.sourcePosition,t.howMany),p.end=p.end._getTransformedByDeletion(t.sourcePosition,t.howMany);var m="same"==pn(p.start.getParentPath(),t.getMovedRangeStart().getParentPath()),v=p._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,m);f.push.apply(f,c(v))}}catch(e){h.e(e)}finally{h.f()}var g=i.getIntersection(o);return null!==g&&a&&(g.start=g.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),g.end=g.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===f.length?f.push(g):1==f.length?o.start.isBefore(i.start)||o.start.isEqual(i.start)?f.unshift(g):f.push(g):f.splice(1,0,g)),0===f.length?[new Ws(e.baseVersion)]:Tf(f,r)})),gf(_s,Ts,(function(e,t,n){var r=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(r=e.targetPosition._getTransformedBySplitOperation(t));var i=na._createFromPositionAndShift(e.sourcePosition,e.howMany);if(i.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=r,[e];if(i.start.hasSameParentAs(t.splitPosition)&&i.containsPosition(t.splitPosition)){var o=new na(t.splitPosition,i.end);return o=o._getTransformedBySplitOperation(t),Tf([new na(i.start,t.splitPosition),o],r)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==n.abRelation&&(r=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==n.abRelation&&(r=e.targetPosition);var a=[i._getTransformedBySplitOperation(t)];if(t.graveyardPosition){var s=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);e.howMany>1&&s&&!n.aWasUndone&&a.push(na._createFromPositionAndShift(t.insertionPosition,1))}return Tf(a,r)})),gf(_s,Ss,(function(e,t,n){var r=na._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&r.containsPosition(t.sourcePosition))if("remove"!=e.type||n.forceWeakRemove){if(1==e.howMany)return n.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new Ws(0)]}else if(!n.aWasUndone){var i=[],o=t.graveyardPosition.clone(),a=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(i.push(new _s(e.sourcePosition,e.howMany-1,e.targetPosition,0)),o=o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),a=a._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));var s=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),c=new _s(o,1,s,0),l=c.getMovedRangeStart().path.slice();l.push(0);var u=new Xo(c.targetPosition.root,l);a=a._getTransformedByMove(o,s,1);var d=new _s(a,t.howMany,u,0);return i.push(c),i.push(d),i}var f=na._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=f.start,e.howMany=f.end.offset-f.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]})),gf(xs,ws,(function(e,t){return e.position=e.position._getTransformedByInsertOperation(t),[e]})),gf(xs,Ss,(function(e,t){return e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e])})),gf(xs,_s,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),gf(xs,xs,(function(e,t,n){if(e.position.isEqual(t.position)){if(!n.aIsStrong)return[new Ws(0)];e.oldName=t.newName}return[e]})),gf(xs,Ts,(function(e,t){if("same"==pn(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){var n=new xs(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,n]}return e.position=e.position._getTransformedBySplitOperation(t),[e]})),gf(Cs,Cs,(function(e,t,n){if(e.root===t.root&&e.key===t.key){if(!n.aIsStrong||e.newValue===t.newValue)return[new Ws(0)];e.oldValue=t.newValue}return[e]})),gf(Ts,ws,(function(e,t){return e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset<t.position.offset&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByInsertOperation(t),e.insertionPosition=Ts.getInsertionPosition(e.splitPosition),[e]})),gf(Ts,Ss,(function(e,t,n){if(!e.graveyardPosition&&!n.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){var r=t.graveyardPosition.path.slice();r.push(0);var i=new Xo(t.graveyardPosition.root,r),o=Ts.getInsertionPosition(new Xo(t.graveyardPosition.root,r)),a=new Ts(i,0,null,0);return a.insertionPosition=o,e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Ts.getInsertionPosition(e.splitPosition),e.graveyardPosition=a.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[a,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Ts.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),gf(Ts,_s,(function(e,t,n){var r=na._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){var i=r.start.isEqual(e.graveyardPosition)||r.containsPosition(e.graveyardPosition);if(!n.bWasUndone&&i){var o=e.splitPosition._getTransformedByMoveOperation(t),a=e.graveyardPosition._getTransformedByMoveOperation(t),s=a.path.slice();s.push(0);var c=new Xo(a.root,s);return[new _s(o,e.howMany,c,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.splitPosition)){var l=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=l,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.insertionPosition=Ts.getInsertionPosition(e.splitPosition),[e]}return!e.splitPosition.isEqual(t.targetPosition)||"insertAtSource"!=n.baRelation&&"splitBefore"!=n.abRelation?(t.sourcePosition.isEqual(t.targetPosition)||(e.splitPosition.hasSameParentAs(t.sourcePosition)&&e.splitPosition.offset<=t.sourcePosition.offset&&(e.howMany-=t.howMany),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany)),e.splitPosition.stickiness="toNone",e.splitPosition=e.splitPosition._getTransformedByMoveOperation(t),e.splitPosition.stickiness="toNext",e.graveyardPosition?e.insertionPosition=e.insertionPosition._getTransformedByMoveOperation(t):e.insertionPosition=Ts.getInsertionPosition(e.splitPosition),[e]):(e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Ts.getInsertionPosition(e.splitPosition),[e])})),gf(Ts,Ts,(function(e,t,n){if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new Ws(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new Ws(0)];if("splitBefore"==n.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){var r="$graveyard"==e.splitPosition.root.rootName,i="$graveyard"==t.splitPosition.root.rootName;if(i&&!r||!(r&&!i)&&n.aIsStrong){var o=[];return t.howMany&&o.push(new _s(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&o.push(new _s(e.splitPosition,e.howMany,e.moveTargetPosition,0)),o}return[new Ws(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.baRelation){var a=t.insertionPosition.path.slice();a.push(0);var s=new Xo(t.insertionPosition.root,a);return[e,new _s(e.insertionPosition,1,s,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=Ts.getInsertionPosition(e.splitPosition),[e]}));var Af=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._stack=[],r._createdBatches=new WeakSet,r.refresh(),r.listenTo(e.data,"set",(function(){return r.clearStack()})),r}return m(n,[{key:"refresh",value:function(){this.isEnabled=this._stack.length>0}},{key:"addBatch",value:function(e){var t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}},{key:"clearStack",value:function(){this._stack=[],this.refresh()}},{key:"_restoreSelection",value:function(e,t,n){var r,i=this.editor.model,o=i.document,a=[],s=e.map((function(e){return e.getTransformedByOperations(n)})),c=s.flat(),l=u(s);try{for(l.s();!(r=l.n()).done;){var d=r.value.filter((function(e){return!Ef(e,c)}));Mf(d);var f=d.find((function(e){return e.root!=o.graveyard}));f&&a.push(f)}}catch(e){l.e(e)}finally{l.f()}a.length&&i.change((function(e){e.setSelection(a,{backward:t})}))}},{key:"_undo",value:function(e,t){var n=this.editor.model,r=n.document;this._createdBatches.add(t);var i=e.operations.slice().filter((function(e){return e.isDocumentOperation}));i.reverse();var o,a=u(i);try{for(a.s();!(o=a.n()).done;){var s,c=o.value,l=c.baseVersion+1,d=Array.from(r.history.getOperations(l)),f=u(_f([c.getReversed()],d,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA);try{for(f.s();!(s=f.n()).done;){var h=s.value;t.addOperation(h),n.applyOperation(h),r.history.setOperationAsUndone(c,h)}}catch(e){f.e(e)}finally{f.f()}}}catch(e){a.e(e)}finally{a.f()}}}]),n}(Nl);function Mf(e){e.sort((function(e,t){return e.start.isBefore(t.start)?-1:1}));for(var t=1;t<e.length;t++){var n=e[t-1].getJoined(e[t],!0);n&&(t--,e.splice(t,2,n))}}function Ef(e,t){return t.some((function(t){return t!==e&&t.containsRange(e,!0)}))}var Of=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=t?this._stack.findIndex((function(e){return e.batch==t})):this._stack.length-1,r=this._stack.splice(n,1)[0],i=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(i,(function(){e._undo(r.batch,i);var t=e.editor.model.document.history.getOperations(r.batch.baseVersion);e._restoreSelection(r.selection.ranges,r.selection.isBackward,t),e.fire("revert",r.batch,i)})),this.refresh()}}]),n}(Af),Pf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var e=this,t=this._stack.pop(),n=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(n,(function(){var r=t.batch.operations[t.batch.operations.length-1].baseVersion+1,i=e.editor.model.document.history.getOperations(r);e._restoreSelection(t.selection.ranges,t.selection.isBackward,i),e._undo(t.batch,n)})),this.refresh()}}]),n}(Af),If=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._batchRegistry=new WeakSet,r}return m(n,null,[{key:"pluginName",get:function(){return"UndoEditing"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor;this._undoCommand=new Of(t),this._redoCommand=new Pf(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(function(t,n){var r=n[0];if(r.isDocumentOperation){var i=r.batch,o=e._redoCommand._createdBatches.has(i),a=e._undoCommand._createdBatches.has(i);e._batchRegistry.has(i)||"transparent"==i.type&&!o&&!a||(o?e._undoCommand.addBatch(i):a||(e._undoCommand.addBatch(i),e._redoCommand.clearStack()),e._batchRegistry.add(i))}}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(function(t,n,r){e._redoCommand.addBatch(r)})),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}]),n}(Dl),Df='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.042 9.367l2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',jf='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M14.958 9.367l-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',Nf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,r="ltr"==t.uiLanguageDirection?Df:jf,i="ltr"==t.uiLanguageDirection?jf:Df;this._addButton("undo",n("Undo"),"CTRL+Z",r),this._addButton("redo",n("Redo"),"CTRL+Y",i)}},{key:"_addButton",value:function(e,t,n,r){var i=this,o=this.editor;o.ui.componentFactory.add(e,(function(a){var s=o.commands.get(e),c=new vl(a);return c.set({label:t,icon:r,keystroke:n,tooltip:!0}),c.bind("isEnabled").to(s,"isEnabled"),i.listenTo(c,"execute",(function(){o.execute(e),o.editing.view.focus()})),c}))}}]),n}(Dl),Rf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[If,Nf]}},{key:"pluginName",get:function(){return"Undo"}}]),n}(Dl),Lf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){this.isEnabled=function(e){var t=e.schema,n=e.document.selection;return function(e,t,n){var r=function(e,t){var n=Tu(e,t).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,n);return t.checkChild(r,"horizontalLine")}(n,t,e)&&!function(e,t){var n=e.getSelectedElement();return n&&t.isObject(n)}(n,t)}(this.editor.model)}},{key:"execute",value:function(){var e=this.editor.model;e.change((function(t){var n=t.createElement("horizontalLine");e.insertContent(n);var r=n.nextSibling;!(r&&e.schema.checkChild(r,"$text"))&&e.schema.checkChild(n.parent,"paragraph")&&(r=t.createElement("paragraph"),e.insertContent(r,t.createPositionAfter(n))),r&&t.setSelection(r,0)}))}}]),n}(Nl);n(47);var zf=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,r=e.conversion;t.register("horizontalLine",{isObject:!0,allowWhere:"$block"}),r.for("dataDowncast").elementToElement({model:"horizontalLine",view:function(e,t){return t.writer.createEmptyElement("hr")}}),r.for("editingDowncast").elementToElement({model:"horizontalLine",view:function(e,t){var r=t.writer,i=n("Horizontal line"),o=r.createContainerElement("div"),a=r.createEmptyElement("hr");return r.addClass("ck-horizontal-line",o),r.setCustomProperty("hr",!0,o),r.insert(r.createPositionAt(o,0),a),function(e,t,n){return t.setCustomProperty("horizontalLine",!0,e),ku(e,t,{label:n})}(o,r,i)}}),r.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),e.commands.add("horizontalLine",new Lf(e))}}],[{key:"pluginName",get:function(){return"HorizontalLineEditing"}}]),n}(Dl),Ff=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("horizontalLine",(function(r){var i=t.commands.get("horizontalLine"),o=new vl(r);return o.set({label:n("Horizontal line"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),e.listenTo(o,"execute",(function(){t.execute("horizontalLine"),t.editing.view.focus()})),o}))}}]),n}(Dl),Bf=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).attributeKey=r,i}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=t.selection.getAttribute(this.attributeKey),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document.selection,i=t.value;n.change((function(t){if(r.isCollapsed)i?t.setSelectionAttribute(e.attributeKey,i):t.removeSelectionAttribute(e.attributeKey);else{var o,a=u(n.schema.getValidRanges(r.getRanges(),e.attributeKey));try{for(a.s();!(o=a.n()).done;){var s=o.value;i?t.setAttribute(e.attributeKey,i,s):t.removeAttribute(e.attributeKey,s)}}catch(e){a.e(e)}finally{a.f()}}}))}}]),n}(Nl),$f=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("color"),r.set("hasBorder"),r.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035L8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',r.extendTemplate({attributes:{style:{backgroundColor:i.to("color")},class:["ck","ck-color-grid__tile",i.if("hasBorder","ck-color-table__color-tile_bordered")]}}),r}return m(n,[{key:"render",value:function(){s(C(n.prototype),"render",this).call(this),this.iconView.fillColor="hsl(0, 0%, 100%)"}}]),n}(vl);n(49);var Vf=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n),i=t.call(this,e);var o=r&&r.colorDefinitions||[],a={};return r&&r.columns&&(a.gridTemplateColumns="repeat( ".concat(r.columns,", 1fr)")),i.set("selectedColor"),i.items=i.createCollection(),i.focusTracker=new yc,i.keystrokes=new dc,i._focusCycler=new rl({focusables:i.items,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"arrowleft",focusNext:"arrowright"}}),i.items.on("add",(function(e,t){t.isOn=t.color===i.selectedColor})),o.forEach((function(e){var t=new $f;t.set({color:e.color,label:e.label,tooltip:!0,hasBorder:e.options.hasBorder}),t.on("execute",(function(){i.fire("execute",{value:e.color,hasBorder:e.options.hasBorder,label:e.label})})),i.items.add(t)})),i.setTemplate({tag:"div",children:i.items,attributes:{class:["ck","ck-color-grid"],style:a}}),i.on("change:selectedColor",(function(e,t,n){var r,o=u(i.items);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.isOn=a.color===n}}catch(e){o.e(e)}finally{o.f()}})),i}return m(n,[{key:"focus",value:function(){this.items.length&&this.items.first.focus()}},{key:"focusLast",value:function(){this.items.length&&this.items.last.focus()}},{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this);var t,r=u(this.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.focusTracker.add(i.element)}}catch(e){r.e(e)}finally{r.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}}]),n}(Yc),Hf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).set("isEmpty",!0),r.on("change",(function(){r.set("isEmpty",0===r.length)})),r}return m(n,[{key:"add",value:function(e,t){this.find((function(t){return t.color===e.color}))||s(C(n.prototype),"add",this).call(this,e,t)}},{key:"hasColor",value:function(e){return!!this.find((function(t){return t.color===e}))}}]),n}(sn);an(Hf,pr),n(51);var Uf=function(e){v(n,e);var t=g(n);function n(e,r){var i,o=r.colors,a=r.columns,s=r.removeButtonLabel,c=r.documentColorsLabel,l=r.documentColorsCount;return h(this,n),(i=t.call(this,e)).items=i.createCollection(),i.colorDefinitions=o,i.focusTracker=new yc,i.keystrokes=new dc,i.set("selectedColor"),i.removeButtonLabel=s,i.columns=a,i.documentColors=new Hf,i.documentColorsCount=l,i._focusCycler=new rl({focusables:i.items,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),i._documentColorsLabel=c,i.setTemplate({tag:"div",attributes:{class:["ck","ck-color-table"]},children:i.items}),i.items.add(i._removeColorButton()),i}return m(n,[{key:"updateDocumentColors",value:function(e,t){var n=e.document,r=this.documentColorsCount;this.documentColors.clear();var i,o=u(n.getRootNames());try{for(o.s();!(i=o.n()).done;){var a,s=i.value,c=n.getRoot(s),l=u(e.createRangeIn(c).getItems());try{for(l.s();!(a=l.n()).done;){var d=a.value;if(d.is("$textProxy")&&d.hasAttribute(t)&&(this._addColorToDocumentColors(d.getAttribute(t)),this.documentColors.length>=r))return}}catch(e){l.e(e)}finally{l.f()}}}catch(e){o.e(e)}finally{o.f()}}},{key:"updateSelectedColors",value:function(){var e=this.documentColorsGrid,t=this.staticColorsGrid,n=this.selectedColor;t.selectedColor=n,e&&(e.selectedColor=n)}},{key:"render",value:function(){s(C(n.prototype),"render",this).call(this);var e,t=u(this.items);try{for(t.s();!(e=t.n()).done;){var r=e.value;this.focusTracker.add(r.element)}}catch(e){t.e(e)}finally{t.f()}this.keystrokes.listenTo(this.element)}},{key:"appendGrids",value:function(){if(!this.staticColorsGrid&&(this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount)){var e=Mc.bind(this.documentColors,this.documentColors),t=new Jc(this.locale);t.text=this._documentColorsLabel,t.extendTemplate({attributes:{class:["ck","ck-color-grid__label",e.if("isEmpty","ck-hidden")]}}),this.items.add(t),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"_removeColorButton",value:function(){var e=this,t=new vl;return t.set({withText:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.636 9.531l-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',tooltip:!0,label:this.removeButtonLabel}),t.class="ck-color-table__remove-color",t.on("execute",(function(){e.fire("execute",{value:null})})),t}},{key:"_createStaticColorsGrid",value:function(){var e=new Vf(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return e.delegate("execute").to(this),e}},{key:"_createDocumentColorsGrid",value:function(){var e=this,t=Mc.bind(this.documentColors,this.documentColors),n=new Vf(this.locale,{columns:this.columns});return n.delegate("execute").to(this),n.extendTemplate({attributes:{class:t.if("isEmpty","ck-hidden")}}),n.items.bindTo(this.documentColors).using((function(t){var n=new $f;return n.set({color:t.color,hasBorder:t.options&&t.options.hasBorder}),t.label&&n.set({label:t.label,tooltip:!0}),n.on("execute",(function(){e.fire("execute",{value:t.color})})),n})),this.documentColors.on("change:isEmpty",(function(e,t,r){r&&(n.selectedColor=null)})),n}},{key:"_addColorToDocumentColors",value:function(e){var t=this.colorDefinitions.find((function(t){return t.color===e}));t?this.documentColors.add(Object.assign({},t)):this.documentColors.add({color:e,label:e,options:{hasBorder:!1}})}}]),n}(Yc),qf="fontSize",Wf="fontColor";function Yf(e){return function(t,n){return n.writer.createAttributeElement("span",{style:"".concat(e,":").concat(t)},{priority:7})}}var Gf=function(e){v(n,e);var t=g(n);function n(e){return h(this,n),t.call(this,e,Wf)}return n}(Bf),Kf=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define(Wf,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),e.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:Wf,value:("color",function(e){return e.getStyle("color").replace(/\s/g,"")})}}),e.conversion.for("downcast").attributeToElement({model:Wf,view:Yf("color")}),e.commands.add(Wf,new Gf(e)),e.model.schema.extend("$text",{allowAttributes:Wf}),e.model.schema.setAttributeProperties(Wf,{isFormatting:!0,copyOnEnter:!0}),r}return m(n,null,[{key:"pluginName",get:function(){return"FontColorEditing"}}]),n}(Dl);function Qf(e){return"string"==typeof e?{model:e,label:e,hasBorder:!1,view:{name:"span",styles:{color:e}}}:{model:e.color,label:e.label||e.color,hasBorder:void 0!==e.hasBorder&&e.hasBorder,view:{name:"span",styles:{color:""+e.color}}}}var Jf=function(e){v(n,e);var t=g(n);function n(e){h(this,n);var r=e.locale.t;return t.call(this,e,{commandName:Wf,componentName:Wf,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 10.3L10 4.5l-2.4 5.8h4.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></svg>',dropdownLabel:r("Font Color")})}return m(n,null,[{key:"pluginName",get:function(){return"FontColorUI"}}]),n}(function(e){v(n,e);var t=g(n);function n(e,r){var i,o=r.commandName,a=r.icon,s=r.componentName,c=r.dropdownLabel;return h(this,n),(i=t.call(this,e)).commandName=o,i.componentName=s,i.icon=a,i.dropdownLabel=c,i.columns=e.config.get(i.componentName+".columns"),i.colorTableView,i}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.locale,r=n.t,i=t.commands.get(this.commandName),o=function(e,t){var n=e.t,r={Black:n("Black"),"Dim grey":n("Dim grey"),Grey:n("Grey"),"Light grey":n("Light grey"),White:n("White"),Red:n("Red"),Orange:n("Orange"),Yellow:n("Yellow"),"Light green":n("Light green"),Green:n("Green"),Aquamarine:n("Aquamarine"),Turquoise:n("Turquoise"),"Light blue":n("Light blue"),Blue:n("Blue"),Purple:n("Purple")};return t.map((function(e){var t=r[e.label];return t&&t!=e.label&&(e.label=t),e}))}(n,t.config.get(this.componentName).colors.map(Qf).filter((function(e){return!!e}))),a=t.config.get(this.componentName+".documentColors");t.ui.componentFactory.add(this.componentName,(function(n){var s=Cl(n);return e.colorTableView=function(e){var t=e.dropdownView,n=e.colors,r=e.columns,i=e.removeButtonLabel,o=e.documentColorsLabel,a=e.documentColorsCount,s=t.locale,c=new Uf(s,{colors:n,columns:r,removeButtonLabel:i,documentColorsLabel:o,documentColorsCount:a});return t.colorTableView=c,t.panelView.children.add(c),c.delegate("execute").to(t,"execute"),c}({dropdownView:s,colors:o.map((function(e){return{label:e.label,color:e.model,options:{hasBorder:e.hasBorder}}})),columns:e.columns,removeButtonLabel:r("Remove color"),documentColorsLabel:0!==a?r("Document colors"):void 0,documentColorsCount:void 0===a?e.columns:a}),e.colorTableView.bind("selectedColor").to(i,"value"),s.buttonView.set({label:e.dropdownLabel,icon:e.icon,tooltip:!0}),s.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),s.bind("isEnabled").to(i),s.on("execute",(function(n,r){t.execute(e.commandName,r),t.editing.view.focus()})),s.on("change:isOpen",(function(n,r,i){s.colorTableView.appendGrids(),i&&(0!==a&&e.colorTableView.updateDocumentColors(t.model,e.componentName),e.colorTableView.updateSelectedColors())})),s}))}}]),n}(Dl)),Xf=function(e){v(n,e);var t=g(n);function n(e){return h(this,n),t.call(this,e,qf)}return n}(Bf);function Zf(e){return e.map((function(e){return function(e){if("object"==S(t=e)&&t.title&&t.model&&t.view)return th(e);var t,n=function(e){return eh[e]||eh[e.model]}(e);return n?th(n):"default"===e?{model:void 0,title:"Default"}:function(e){var t;if("object"==S(e)){if(!e.model)throw new Gt.b("font-size-invalid-definition: Provided font size definition is invalid.",null,e);t=parseFloat(e.model)}else t=parseFloat(e);return isNaN(t)}(e)?void 0:function(e){return"number"!=typeof e&&"string"!=typeof e||(e={title:String(e),model:parseFloat(e)+"px"}),e.view={name:"span",styles:{"font-size":e.model}},th(e)}(e)}(e)})).filter((function(e){return!!e}))}var eh={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}}},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}}},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}}},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}}}};function th(e){return e.view.priority||(e.view.priority=7),e}var nh=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define(qf,{options:["tiny","small","default","big","huge"],supportAllValues:!1}),r}return m(n,null,[{key:"pluginName",get:function(){return"FontSizeEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:qf}),e.model.schema.setAttributeProperties(qf,{isFormatting:!0,copyOnEnter:!0});var t=e.config.get("fontSize.supportAllValues"),n=function(e,t){var n,r={model:{key:"fontSize",values:[]},view:{},upcastAlso:{}},i=u(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;r.model.values.push(o.model),r.view[o.model]=o.view,o.upcastAlso&&(r.upcastAlso[o.model]=o.upcastAlso)}}catch(e){i.e(e)}finally{i.f()}return r}(0,Zf(this.editor.config.get("fontSize.options")).filter((function(e){return e.model})));t?this._prepareAnyValueConverters(n):e.conversion.attributeToElement(n),e.commands.add(qf,new Xf(e))}},{key:"_prepareAnyValueConverters",value:function(e){var t=this.editor,n=e.model.values.filter((function(e){return!String(e).match(/[\d.]+[\w%]+/)}));if(n.length)throw new Gt.b("font-size-invalid-use-of-named-presets: If config.fontSize.supportAllValues is set to true, you need to use numerical values as font size options.",null,{presets:n});t.conversion.for("downcast").attributeToElement({model:qf,view:function(e,t){var n=t.writer;if(e)return n.createAttributeElement("span",{style:"font-size:"+e},{priority:7})}}),t.conversion.for("upcast").attributeToAttribute({model:{key:qf,value:function(e){return e.getStyle("font-size")}},view:{name:"span"}})}}]),n}(Dl),rh=function e(t,n){h(this,e),n&&lr(this,n),t&&this.set(t)};an(rh,pr),n(53);var ih=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,r=this._getLocalizedOptions(),i=t.commands.get(qf);t.ui.componentFactory.add(qf,(function(o){var a=Cl(o);return Tl(a,function(e,t){var n,r=new sn,i=u(e);try{var o=function(){var e=n.value,i={type:"button",model:new rh({commandName:qf,commandParam:e.model,label:e.title,class:"ck-fontsize-option",withText:!0})};e.view&&e.view.styles&&i.model.set("labelStyle","font-size:"+e.view.styles["font-size"]),e.view&&e.view.classes&&i.model.set("class","".concat(i.model.class," ").concat(e.view.classes)),i.model.bind("isOn").to(t,"value",(function(t){return t===e.model})),r.add(i)};for(i.s();!(n=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}return r}(r,i)),a.buttonView.set({label:n("Font Size"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5L7.038 4.785 4.261 11.5h5.555zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13zm7.55 2.279l.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825c0-.042 0-.083.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782c.002.043.003.089.003.135v10.454z"/></svg>',tooltip:!0}),a.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),a.bind("isEnabled").to(i),e.listenTo(a,"execute",(function(e){t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),a}))}},{key:"_getLocalizedOptions",value:function(){var e=this.editor,t=e.t,n={Default:t("Default"),Tiny:t("Tiny"),Small:t("Small"),Big:t("Big"),Huge:t("Huge")};return Zf(e.config.get(qf).options).map((function(e){var t=n[e.title];return t&&t!=e.title&&(e=Object.assign({},e,{title:t})),e}))}}]),n}(Dl),oh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=Ll(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&ah(t,e.schema)}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document;t.change((function(r){var i,o=u((e.selection||n.selection).getSelectedBlocks());try{for(o.s();!(i=o.n()).done;){var a=i.value;!a.is("element","paragraph")&&ah(a,t.schema)&&r.rename(a,"paragraph")}}catch(e){o.e(e)}finally{o.f()}}))}}]),n}(Nl);function ah(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}var sh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"execute",value:function(e){var t=this.editor.model,n=e.position;t.change((function(e){var r=e.createElement("paragraph");if(!t.schema.checkChild(n.parent,r)){var i=t.schema.findAllowedParent(n,r);if(!i)return;n=e.split(n,i).position}t.insertContent(r,n),e.setSelection(r,"in")}))}}]),n}(Nl),ch=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model;e.commands.add("paragraph",new oh(e)),e.commands.add("insertParagraph",new sh(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:function(e,t){var r=t.writer;return n.paragraphLikeElements.has(e.name)?e.isEmpty?null:r.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}],[{key:"pluginName",get:function(){return"Paragraph"}}]),n}(Dl);ch.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var lh=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).modelElements=r,i}return m(n,[{key:"refresh",value:function(){var e=this,t=Ll(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((function(n){return uh(t,n,e.editor.model.schema)}))}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document,r=e.value;t.change((function(e){var i,o=u(Array.from(n.selection.getSelectedBlocks()).filter((function(e){return uh(e,r,t.schema)})));try{for(o.s();!(i=o.n()).done;){var a=i.value;a.is("element",r)||e.rename(a,r)}}catch(e){o.e(e)}finally{o.f()}}))}}]),n}(Nl);function uh(e,t,n){return n.checkChild(e.parent,t)&&!n.isObject(e)}var dh="paragraph",fh=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]}),r}return m(n,null,[{key:"pluginName",get:function(){return"HeadingEditing"}}]),m(n,[{key:"init",value:function(){var e,t=this.editor,n=[],r=u(t.config.get("heading.options"));try{for(r.s();!(e=r.n()).done;){var i=e.value;i.model!==dh&&(t.model.schema.register(i.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(i),n.push(i.model))}}catch(e){r.e(e)}finally{r.f()}this._addDefaultH1Conversion(t),t.commands.add("heading",new lh(t,n))}},{key:"afterInit",value:function(){var e=this.editor,t=e.commands.get("enter"),n=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(function(t,r){var i=e.model.document.selection.getFirstPosition().parent;n.some((function(e){return i.is("element",e.model)}))&&!i.is("element",dh)&&0===i.childCount&&r.writer.rename(i,dh)}))}},{key:"_addDefaultH1Conversion",value:function(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Yt.get("low")+1})}}],[{key:"requires",get:function(){return[ch]}}]),n}(Dl);n(11);var hh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,r=function(e){var t=e.t,n={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map((function(e){var t=n[e.title];return t&&t!=e.title&&(e.title=t),e}))}(t),i=n("Choose heading"),o=n("Heading");t.ui.componentFactory.add("heading",(function(n){var a,s={},c=new sn,l=t.commands.get("heading"),d=t.commands.get("paragraph"),f=[l],h=u(r);try{var p=function(){var e=a.value,t={type:"button",model:new rh({label:e.title,class:e.class,withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(d,"value"),t.model.set("commandName","paragraph"),f.push(d)):(t.model.bind("isOn").to(l,"value",(function(t){return t===e.model})),t.model.set({commandName:"heading",commandValue:e.model})),c.add(t),s[e.model]=e.title};for(h.s();!(a=h.n()).done;)p()}catch(e){h.e(e)}finally{h.f()}var m=Cl(n);return Tl(m,c),m.buttonView.set({isOn:!1,withText:!0,tooltip:o}),m.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),m.bind("isEnabled").toMany(f,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),m.buttonView.bind("label").to(l,"value",d,"value",(function(e,t){var n=e||t&&"paragraph";return s[n]?s[n]:i})),e.listenTo(m,"execute",(function(e){t.execute(e.source.commandName,e.source.commandValue?{value:e.source.commandValue}:void 0),t.editing.view.focus()})),m}))}}]),n}(Dl);n(56);var ph=["before","after"],mh=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><polyline points="8.05541992 0.263427734 8.05541992 4.23461914 1.28417969 4.23461914" transform="translate(1,0)"></polyline><line x1="0" y1="4.21581031" x2="2" y2="2.17810059" transform="translate(1, 0)"></line><line x1="0" y1="6.21581031" x2="2" y2="4.17810059" transform="translate(2, 5.196955) scale(1, -1) translate(-1, -5.196955)"></line></svg>\n',"image/svg+xml").firstChild,vh="ck-widget__type-around_disabled",gh=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._currentFakeCaretModelElement=null,r}return m(n,null,[{key:"pluginName",get:function(){return"WidgetTypeAround"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view;this.on("change:isEnabled",(function(n,r,i){t.change((function(e){var n,r=u(t.document.roots);try{for(r.s();!(n=r.n()).done;){var o=n.value;i?e.removeClass(vh,o):e.addClass(vh,o)}}catch(e){r.e(e)}finally{r.f()}})),i||e.model.change((function(e){e.removeSelectionAttribute(gu)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration()}},{key:"destroy",value:function(){this._currentFakeCaretModelElement=null}},{key:"_insertParagraph",value:function(e,t){var n=this.editor,r=n.editing.view;n.execute("insertParagraph",{position:n.model.createPositionAt(e,t)}),r.focus(),r.scrollToTheSelection()}},{key:"_listenToIfEnabled",value:function(e,t,n,r){var i=this;this.listenTo(e,t,(function(){i.isEnabled&&n.apply(void 0,arguments)}),r)}},{key:"_insertParagraphAccordingToFakeCaretPosition",value:function(){var e=this.editor.model.document.selection,t=yu(e);if(!t)return!1;var n=e.getSelectedElement();return this._insertParagraph(n,t),!0}},{key:"_enableTypeAroundUIInjection",value:function(){var e=this.editor,t=e.model.schema,n=e.locale.t,r={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(function(e,n,i){var o=i.mapper.toViewElement(n.item);bu(o,n.item,t)&&function(e,t,n){var r=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){var n=this.toDomElement(e);return function(e,t){var n,r=u(ph);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=new Mc({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+i],title:t[i]},children:[e.ownerDocument.importNode(mh,!0)]});e.appendChild(o.render())}}catch(e){r.e(e)}finally{r.f()}}(n,t),function(e){var t=new Mc({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(n),n}));e.insert(e.createPositionAt(n,"end"),r)}(i.writer,r,o)}),{priority:"low"})}},{key:"_enableTypeAroundFakeCaretActivationUsingKeyboardArrows",value:function(){var e=this,t=this.editor,n=t.model,r=n.document.selection,i=n.schema,o=t.editing.view;function a(e){return"ck-widget_type-around_show-fake-caret_"+e}this._listenToIfEnabled(o.document,"keydown",(function(t,n){Gr(n.keyCode)&&e._handleArrowKeyPress(t,n)}),{priority:Yt.get("high")+10}),this._listenToIfEnabled(r,"change:range",(function(e,n){n.directChange&&t.model.change((function(e){e.removeSelectionAttribute(gu)}))})),this._listenToIfEnabled(n.document,"change:data",(function(){var e=r.getSelectedElement();e&&bu(t.editing.mapper.toViewElement(e),e,i)||t.model.change((function(e){e.removeSelectionAttribute(gu)}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(function(t,n,r){var o=r.writer;if(e._currentFakeCaretModelElement){var s=r.mapper.toViewElement(e._currentFakeCaretModelElement);s&&(o.removeClass(ph.map(a),s),e._currentFakeCaretModelElement=null)}var c=n.selection.getSelectedElement();if(c){var l=r.mapper.toViewElement(c);if(bu(l,c,i)){var u=yu(n.selection);u&&(o.addClass(a(u),l),e._currentFakeCaretModelElement=c)}}})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(function(e,n,r){r||t.model.change((function(e){e.removeSelectionAttribute(gu)}))}))}},{key:"_handleArrowKeyPress",value:function(e,t){var n,r=this.editor,i=r.model,o=i.document.selection,a=i.schema,s=r.editing.view,c=Qr(t.keyCode,r.locale.contentLanguageDirection),l=s.document.selection.getSelectedElement();bu(l,r.editing.mapper.toModelElement(l),a)?n=this._handleArrowKeyPressOnSelectedWidget(c):o.isCollapsed&&(n=this._handleArrowKeyPressWhenSelectionNextToAWidget(c)),n&&(t.preventDefault(),e.stop())}},{key:"_handleArrowKeyPressOnSelectedWidget",value:function(e){var t=this.editor.model,n=yu(t.document.selection);return t.change((function(t){return n?n!==(e?"after":"before")&&(t.removeSelectionAttribute(gu),!0):(t.setSelectionAttribute(gu,e?"after":"before"),!0)}))}},{key:"_handleArrowKeyPressWhenSelectionNextToAWidget",value:function(e){var t=this.editor,n=t.model,r=n.schema,i=t.plugins.get("Widget"),o=i._getObjectElementNextToSelection(e);return!!bu(t.editing.mapper.toViewElement(o),o,r)&&(n.change((function(t){i._setSelectionOverElement(o),t.setSelectionAttribute(gu,e?"before":"after")})),!0)}},{key:"_enableInsertingParagraphsOnButtonClick",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"mousedown",(function(r,i){var o=i.domTarget.closest(".ck-widget__type-around__button");if(o){var a=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(o),s=function(e,t){var n=e.closest(".ck-widget");return t.mapDomToView(n)}(o,n.domConverter),c=t.editing.mapper.toModelElement(s);e._insertParagraph(c,a),i.preventDefault(),r.stop()}}))}},{key:"_enableInsertingParagraphsOnEnterKeypress",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",(function(r,i){var o,a=n.document.selection.getSelectedElement(),s=t.editing.mapper.toModelElement(a),c=t.model.schema;e._insertParagraphAccordingToFakeCaretPosition()?o=!0:bu(a,s,c)&&(e._insertParagraph(s,i.isSoft?"before":"after"),o=!0),o&&(i.preventDefault(),r.stop())}))}},{key:"_enableInsertingParagraphsOnTypingKeystroke",value:function(){var e=this,t=this.editor.editing.view,n=[Ur.enter,Ur.delete,Ur.backspace];this._listenToIfEnabled(t.document,"keydown",(function(t,r){n.includes(r.keyCode)||Ju(r)||e._insertParagraphAccordingToFakeCaretPosition()}),{priority:Yt.get("high")+1})}},{key:"_enableDeleteIntegration",value:function(){var e=this.editor,t=e.editing.view,n=e.model,r=n.schema;this._listenToIfEnabled(t.document,"delete",(function(t,i){var o=yu(n.document.selection);if(o){var a=i.direction,s=n.document.selection.getSelectedElement(),c="forward"==a;if("before"===o===c)e.execute("delete",{selection:n.createSelection(s,"on")});else{var l=r.getNearestSelectionRange(n.createPositionAt(s,o),a);if(l)if(l.isCollapsed){var d=n.createSelection(l.start);if(n.modifySelection(d,{direction:a}),d.focus.isEqual(l.start)){var f=function(e,t){var n,r=t,i=u(t.getAncestors({parentFirst:!0}));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.childCount>1||e.isLimit(o))break;r=o}}catch(e){i.e(e)}finally{i.f()}return r}(r,l.start.parent);n.deleteContent(n.createSelection(f,"on"),{doNotAutoparagraph:!0})}else n.change((function(t){t.setSelection(l),e.execute(c?"forwardDelete":"delete")}))}else n.change((function(t){t.setSelection(l),e.execute(c?"forwardDelete":"delete")}))}i.preventDefault(),t.stop()}}),{priority:Yt.get("high")+1})}},{key:"_enableInsertContentIntegration",value:function(){var e=this.editor,t=this.editor.model,n=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(function(e,r){var i=l(r,2),o=i[0],a=i[1];if(!a||a.is("documentSelection")){var s=yu(n);return s?(e.stop(),t.change((function(e){var r=n.getSelectedElement(),i=t.createPositionAt(r,s),a=e.createSelection(i),c=t.insertContent(o,a);return e.setSelection(a),c}))):void 0}}),{priority:"high"})}}]),n}(Dl);function bh(e,t,n){var r,i=e.schema,o="forward"==n?"elementStart":"elementEnd",a=u(e.createRangeIn(t.root).getWalker({startPosition:t,direction:n}));try{for(a.s();!(r=a.n()).done;){var s=r.value,c=s.previousPosition,l=s.item,d=s.type;if(i.isLimit(l)&&!i.isInline(l))return c;if(d==o&&i.isBlock(l))return null}}catch(e){a.e(e)}finally{a.f()}return null}function yh(e,t,n){var r="backward"==n?t.end:t.start;if(e.checkChild(r,"$text"))return r;var i,o=u(t.getWalker({direction:n}));try{for(o.s();!(i=o.n()).done;){var a=i.value.nextPosition;if(e.checkChild(a,"$text"))return a}}catch(e){o.e(e)}finally{o.f()}}n(58);var _h=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor.editing.view,n=t.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(function(t,n,r){e._clearPreviouslySelectedWidgets(r.writer);var i,o=r.writer,a=o.document.selection,s=a.getSelectedElement(),c=null,l=u(a.getRanges());try{for(l.s();!(i=l.n()).done;){var d,f=u(i.value);try{for(f.s();!(d=f.n()).done;){var h=d.value.item;wu(h)&&!wh(h,c)&&(o.addClass(_u,h),e._previouslySelected.add(h),c=h,h==s&&o.setSelection(a.getRanges(),{fake:!0,label:Cu(s)}))}}catch(e){f.e(e)}finally{f.f()}}}catch(e){l.e(e)}finally{l.f()}}),{priority:"low"}),t.addObserver(Fu),this.listenTo(n,"mousedown",(function(){return e._onMousedown.apply(e,arguments)})),this.listenTo(n,"keydown",(function(){e._handleSelectionChangeOnArrowKeyPress.apply(e,arguments)}),{priority:"high"}),this.listenTo(n,"keydown",(function(){e._preventDefaultOnArrowKeyPress.apply(e,arguments)}),{priority:Yt.get("high")-20}),this.listenTo(n,"keydown",function(e){var t=e.model;return function(n,r){var i=r.keyCode==Ur.arrowup,o=r.keyCode==Ur.arrowdown,a=r.shiftKey,s=t.document.selection;if(i||o){var c=o;if(!a||!function(e,t){return!e.isCollapsed&&e.isBackward==t}(s,c)){var l=function(e,t,n){var r=e.model;if(n){var i=t.isCollapsed?t.focus:t.getLastPosition(),o=bh(r,i,"forward");if(!o)return null;var a=r.createRange(i,o),s=yh(r.schema,a,"backward");return s&&i.isBefore(s)?r.createRange(i,s):null}var c=t.isCollapsed?t.focus:t.getFirstPosition(),l=bh(r,c,"backward");if(!l)return null;var u=r.createRange(l,c),d=yh(r.schema,u,"forward");return d&&c.isAfter(d)?r.createRange(d,c):null}(e,s,c);l&&!l.isCollapsed&&function(e,t,n){var r=e.model,i=e.view.domConverter;if(n){var o=r.createSelection(t.start);r.modifySelection(o),o.focus.isAtEnd||t.start.isEqual(o.focus)||(t=r.createRange(o.focus,t.end))}var a,s,c=e.mapper.toViewRange(t),l=i.viewRangeToDom(c),d=u(Po.getDomRangeRects(l));try{for(d.s();!(s=d.n()).done;){var f=s.value;if(void 0!==a){if(Math.round(f.top)>=a)return!1;a=Math.max(a,Math.round(f.bottom))}else a=Math.round(f.bottom)}}catch(e){d.e(e)}finally{d.f()}return!0}(e,l,c)&&(t.change((function(e){var n=c?l.end:l.start;if(a){var r=t.createSelection(s.anchor);r.setFocus(n),e.setSelection(r)}else e.setSelection(n)})),n.stop(),r.preventDefault(),r.stopPropagation())}}}}(this.editor.editing)),this.listenTo(n,"delete",(function(t,n){e._handleDelete("forward"==n.direction)&&(n.preventDefault(),t.stop())}),{priority:"high"})}},{key:"_onMousedown",value:function(e,t){var n=this.editor,r=n.editing.view,i=r.document,o=t.target;if(function(e){for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(wu(e))return!1;e=e.parent}return!1}(o)){if((Fr||zr)&&t.domEvent.detail>=3){var a=n.editing.mapper,s=o.is("attributeElement")?o.findAncestor((function(e){return!e.is("attributeElement")})):o,c=a.toModelElement(s);t.preventDefault(),this.editor.model.change((function(e){e.setSelection(c,"in")}))}}else if(wu(o)||(o=o.findAncestor(wu))){t.preventDefault(),i.isFocused||r.focus();var l=n.editing.mapper.toModelElement(o);this._setSelectionOverElement(l)}}},{key:"_handleSelectionChangeOnArrowKeyPress",value:function(e,t){var n=t.keyCode;if(Gr(n)){var r=this.editor.model,i=r.schema,o=r.document.selection,a=o.getSelectedElement(),s=Qr(n,this.editor.locale.contentLanguageDirection);if(a&&i.isObject(a)){var c=s?o.getLastPosition():o.getFirstPosition(),l=i.getNearestSelectionRange(c,s?"forward":"backward");l&&(r.change((function(e){e.setSelection(l)})),t.preventDefault(),e.stop())}else if(o.isCollapsed){var u=this._getObjectElementNextToSelection(s);u&&i.isObject(u)&&(this._setSelectionOverElement(u),t.preventDefault(),e.stop())}}}},{key:"_preventDefaultOnArrowKeyPress",value:function(e,t){if(Gr(t.keyCode)){var n=this.editor.model,r=n.schema,i=n.document.selection.getSelectedElement();i&&r.isObject(i)&&(t.preventDefault(),e.stop())}}},{key:"_handleDelete",value:function(e){var t=this;if(!this.editor.isReadOnly){var n=this.editor.model.document.selection;if(n.isCollapsed){var r=this._getObjectElementNextToSelection(e);return r?(this.editor.model.change((function(e){for(var i=n.anchor.parent;i.isEmpty;){var o=i;i=o.parent,e.remove(o)}t._setSelectionOverElement(r)})),!0):void 0}}}},{key:"_setSelectionOverElement",value:function(e){this.editor.model.change((function(t){t.setSelection(t.createRangeOn(e))}))}},{key:"_getObjectElementNextToSelection",value:function(e){var t=this.editor.model,n=t.schema,r=t.document.selection,i=t.createSelection(r);t.modifySelection(i,{direction:e?"forward":"backward"});var o=e?i.focus.nodeBefore:i.focus.nodeAfter;return o&&n.isObject(o)?o:null}},{key:"_clearPreviouslySelectedWidgets",value:function(e){var t,n=u(this._previouslySelected);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.removeClass(_u,r)}}catch(e){n.e(e)}finally{n.f()}this._previouslySelected.clear()}}],[{key:"pluginName",get:function(){return"Widget"}},{key:"requires",get:function(){return[gh]}}]),n}(Dl);function wh(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}var kh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=Pu(e),Pu(e)&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection.getSelectedElement();t.change((function(t){t.setAttribute("alt",e.newValue,n)}))}}]),n}(Nl),xh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.editor.commands.add("imageTextAlternative",new kh(this.editor))}}],[{key:"pluginName",get:function(){return"ImageTextAlternativeEditing"}}]),n}(Dl);n(60);var Ch=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n),i=t.call(this,e);var o="ck-labeled-field-view-"+Wt(),a="ck-labeled-field-view-status-"+Wt();i.fieldView=r(y(i),o,a),i.set("label"),i.set("isEnabled",!0),i.set("errorText",null),i.set("infoText",null),i.set("class"),i.labelView=i._createLabelView(o),i.statusView=i._createStatusView(a),i.bind("_statusText").to(y(i),"errorText",y(i),"infoText",(function(e,t){return e||t}));var s=i.bindTemplate;return i.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",s.to("class"),s.if("isEnabled","ck-disabled",(function(e){return!e}))]},children:[i.labelView,i.fieldView,i.statusView]}),i}return m(n,[{key:"_createLabelView",value:function(e){var t=new Jc(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}},{key:"_createStatusView",value:function(e){var t=new Yc(this.locale),n=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(function(e){return!e}))],id:e,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),t}},{key:"focus",value:function(){this.fieldView.focus()}}]),n}(Yc);n(62);var Sh=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).set("value"),r.set("id"),r.set("placeholder"),r.set("isReadOnly",!1),r.set("hasError",!1),r.set("ariaDescribedById");var i=r.bindTemplate;return r.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",i.if("hasError","ck-error")],id:i.to("id"),placeholder:i.to("placeholder"),readonly:i.to("isReadOnly"),"aria-invalid":i.if("hasError",!0),"aria-describedby":i.to("ariaDescribedById")},on:{input:i.to("input")}}),r}return m(n,[{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this);var t=function(t){e.element.value=t||0===t?t:""};t(this.value),this.on("change:value",(function(e,n,r){t(r)}))}},{key:"select",value:function(){this.element.select()}},{key:"focus",value:function(){this.element.focus()}}]),n}(Yc);function Th(e,t,n){var r=new Sh(e.locale);return r.set({id:t,ariaDescribedById:n}),r.bind("isReadOnly").to(e,"isEnabled",(function(e){return!e})),r.bind("hasError").to(e,"errorText",(function(e){return!!e})),r.on("input",(function(){e.errorText=null})),r}function Ah(e){var t=e.view;t.listenTo(t.element,"submit",(function(e,n){n.preventDefault(),t.fire("submit")}),{useCapture:!0})}var Mh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',Eh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.591 10.177l4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>';n(64);var Oh=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).locale.t;return r.focusTracker=new yc,r.keystrokes=new dc,r.labeledInput=r._createLabeledInputView(),r.saveButtonView=r._createButton(i("Save"),Mh,"ck-button-save"),r.saveButtonView.type="submit",r.cancelButtonView=r._createButton(i("Cancel"),Eh,"ck-button-cancel","cancel"),r._focusables=new Ac,r._focusCycler=new rl({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form"],tabindex:"-1"},children:[r.labeledInput,r.saveButtonView,r.cancelButtonView]}),r}return m(n,[{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this),this.keystrokes.listenTo(this.element),Ah({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)}))}},{key:"_createButton",value:function(e,t,n,r){var i=new vl(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"_createLabeledInputView",value:function(){var e=this.locale.t,t=new Ch(this.locale,Th);return t.label=e("Text alternative"),t.fieldView.placeholder=e("Text alternative"),t}}]),n}(Yc);n(66),n(68);var Ph=el("px"),Ih=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).positionLimiter=function(){var e=r.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},r.set("visibleView",null),r.view=new fu(e.locale),e.ui.view.body.add(r.view),e.ui.focusTracker.add(r.view.element),r._viewToStack=new Map,r._idToStack=new Map,r.set("_numberOfStacks",0),r.set("_singleViewMode",!1),r._rotatorView=r._createRotatorView(),r._fakePanelsView=r._createFakePanelsView(),r}return m(n,null,[{key:"pluginName",get:function(){return"ContextualBalloon"}}]),m(n,[{key:"hasView",value:function(e){return Array.from(this._viewToStack.keys()).includes(e)}},{key:"add",value:function(e){if(this.hasView(e.view))throw new Gt.b("contextualballoon-add-view-exist: Cannot add configuration of the same view twice.",[this,e]);var t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));var n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}},{key:"remove",value:function(e){if(!this.hasView(e))throw new Gt.b("contextualballoon-remove-view-not-exist: Cannot remove the configuration of a non-existent view.",[this,e]);var t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}},{key:"updatePosition",value:function(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}},{key:"showStack",value:function(e){this.visibleStack=e;var t=this._idToStack.get(e);if(!t)throw new Gt.b("contextualballoon-showstack-stack-not-exist: Cannot show a stack that does not exist.",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}},{key:"_getStackId",value:function(e){return Array.from(this._idToStack.entries()).find((function(t){return t[1]===e}))[0]}},{key:"_showNextStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}},{key:"_showPrevStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}},{key:"_createRotatorView",value:function(){var e=this,t=new Dh(this.editor.locale),n=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>1})),t.on("change:isNavigationVisible",(function(){return e.updatePosition()}),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(function(t,r){if(r<2)return"";var i=Array.from(e._idToStack.values()).indexOf(e._visibleStack)+1;return n("%0 of %1",[i,r])})),t.buttonNextView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showNextStack()})),t.buttonPrevView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showPrevStack()})),t}},{key:"_createFakePanelsView",value:function(){var e=new jh(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>=2?Math.min(e-1,2):0})),e.listenTo(this.view,"change:top",(function(){return e.updatePosition()})),e.listenTo(this.view,"change:left",(function(){return e.updatePosition()})),this.editor.ui.view.body.add(e),e}},{key:"_showView",value:function(e){var t=e.view,n=e.balloonClassName,r=void 0===n?"":n,i=e.withArrow,o=void 0===i||i,a=e.singleViewMode,s=void 0!==a&&a;this.view.class=r,this.view.withArrow=o,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}},{key:"_getBalloonPosition",value:function(){var e=Array.from(this._visibleStack.values()).pop().position;return e&&!e.limiter&&(e=Object.assign({},e,{limiter:this.positionLimiter})),e}},{key:"_visibleStack",get:function(){return this._viewToStack.get(this.visibleView)}}]),n}(Dl),Dh=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),r=t.call(this,e);var i=e.t,o=r.bindTemplate;return r.set("isNavigationVisible",!0),r.focusTracker=new yc,r.buttonPrevView=r._createButtonView(i("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),r.buttonNextView=r._createButtonView(i("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),r.content=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",o.to("isNavigationVisible",(function(e){return e?"":"ck-hidden"}))]},children:[r.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:o.to("counter")}]},r.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:r.content}]}),r}return m(n,[{key:"render",value:function(){s(C(n.prototype),"render",this).call(this),this.focusTracker.add(this.element)}},{key:"showView",value:function(e){this.hideView(),this.content.add(e)}},{key:"hideView",value:function(){this.content.clear()}},{key:"_createButtonView",value:function(e,t){var n=new vl(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}]),n}(Yc),jh=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n);var o=(i=t.call(this,e)).bindTemplate;return i.set("top",0),i.set("left",0),i.set("height",0),i.set("width",0),i.set("numberOfPanels",0),i.content=i.createCollection(),i._balloonPanelView=r,i.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",o.to("numberOfPanels",(function(e){return e?"":"ck-hidden"}))],style:{top:o.to("top",Ph),left:o.to("left",Ph),width:o.to("width",Ph),height:o.to("height",Ph)}},children:i.content}),i.on("change:numberOfPanels",(function(e,t,n,r){n>r?i._addPanels(n-r):i._removePanels(r-n),i.updatePosition()})),i}return m(n,[{key:"_addPanels",value:function(e){for(;e--;){var t=new Yc;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}},{key:"_removePanels",value:function(e){for(;e--;){var t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}},{key:"updatePosition",value:function(){if(this.numberOfPanels){var e=this._balloonPanelView,t=e.top,n=e.left,r=new Po(this._balloonPanelView.element),i=r.width,o=r.height;Object.assign(this,{top:t,left:n,width:i,height:o})}}}]),n}(Yc);function Nh(e){var t=e.editing.view,n=fu.defaultPositions;return{target:t.domConverter.viewToDom(t.document.selection.getSelectedElement()),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}var Rh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this._createButton(),this._createForm()}},{key:"destroy",value:function(){s(C(n.prototype),"destroy",this).call(this),this._form.destroy()}},{key:"_createButton",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("imageTextAlternative",(function(r){var i=t.commands.get("imageTextAlternative"),o=new vl(r);return o.set({label:n("Change image text alternative"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22L2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21l-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),e.listenTo(o,"execute",(function(){e._showForm()})),o}))}},{key:"_createForm",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new Oh(t.locale),this._form.render(),this.listenTo(this._form,"submit",(function(){t.execute("imageTextAlternative",{newValue:e._form.labeledInput.fieldView.element.value}),e._hideForm(!0)})),this.listenTo(this._form,"cancel",(function(){e._hideForm(!0)})),this._form.keystrokes.set("Esc",(function(t,n){e._hideForm(!0),n()})),this.listenTo(t.ui,"update",(function(){Ou(n.selection)?e._isVisible&&function(e){var t=e.plugins.get("ContextualBalloon");if(Ou(e.editing.view.document.selection)){var n=Nh(e);t.updatePosition(n)}}(t):e._hideForm(!0)})),xl({emitter:this._form,activator:function(){return e._isVisible},contextElements:[this._balloon.view.element],callback:function(){return e._hideForm()}})}},{key:"_showForm",value:function(){if(!this._isVisible){var e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._isInBalloon||this._balloon.add({view:this._form,position:Nh(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select()}}},{key:"_hideForm",value:function(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}},{key:"_isVisible",get:function(){return this._balloon.visibleView===this._form}},{key:"_isInBalloon",get:function(){return this._balloon.hasView(this._form)}}],[{key:"requires",get:function(){return[Ih]}},{key:"pluginName",get:function(){return"ImageTextAlternativeUI"}}]),n}(Dl),Lh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[xh,Rh]}},{key:"pluginName",get:function(){return"ImageTextAlternative"}}]),n}(Dl);n(70);var zh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Lu,_h,Lh]}},{key:"pluginName",get:function(){return"Image"}}]),n}(Dl);function Fh(e){var t,n=u(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r&&r.is("element","caption"))return r}}catch(e){n.e(e)}finally{n.f()}return null}function Bh(e){var t=e.parent;return"figcaption"==e.name&&t&&"figure"==t.name&&t.hasClass("image")?{name:!0}:null}var $h=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view,r=t.model.schema,i=t.data,o=t.editing,a=t.t;r.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),t.model.document.registerPostFixer((function(t){return e._insertMissingModelCaptionElement(t)})),t.conversion.for("upcast").elementToElement({view:Bh,model:"caption"}),i.downcastDispatcher.on("insert:caption",Vh((function(e){return e.createContainerElement("figcaption")}),!1));var s=function(e,t){return function(n){var r=n.createEditableElement("figcaption");return n.setCustomProperty("imageCaption",!0,r),kc({view:e,element:r,text:t}),Su(r,n)}}(n,a("Enter image caption"));o.downcastDispatcher.on("insert:caption",Vh(s)),o.downcastDispatcher.on("insert",this._fixCaptionVisibility((function(e){return e.item})),{priority:"high"}),o.downcastDispatcher.on("remove",this._fixCaptionVisibility((function(e){return e.position.parent})),{priority:"high"}),n.document.registerPostFixer((function(t){return e._updateCaptionVisibility(t)}))}},{key:"_updateCaptionVisibility",value:function(e){var t,n=this.editor.editing.mapper,r=this._lastSelectedCaption,i=this.editor.model.document.selection,o=i.getSelectedElement();if(o&&o.is("element","image")){var a=Fh(o);t=n.toViewElement(a)}var s=Hh(i.getFirstPosition().parent);if(s&&(t=n.toViewElement(s)),t)return r?(r===t||(Uh(r,e),this._lastSelectedCaption=t),qh(t,e)):(this._lastSelectedCaption=t,qh(t,e));if(r){var c=Uh(r,e);return this._lastSelectedCaption=null,c}return!1}},{key:"_fixCaptionVisibility",value:function(e){var t=this;return function(n,r,i){var o=Hh(e(r)),a=t.editor.editing.mapper,s=i.writer;if(o){var c=a.toViewElement(o);c&&(o.childCount?s.removeClass("ck-hidden",c):s.addClass("ck-hidden",c))}}}},{key:"_insertMissingModelCaptionElement",value:function(e){var t,n=this.editor.model,r=[],i=u(n.document.differ.getChanges());try{for(i.s();!(t=i.n()).done;){var o=t.value;if("insert"==o.type&&"$text"!=o.name){var a=o.position.nodeAfter;if(a.is("element","image")&&!Fh(a)&&r.push(a),!a.is("element","image")&&a.childCount){var s,c=u(n.createRangeIn(a).getItems());try{for(c.s();!(s=c.n()).done;){var l=s.value;l.is("element","image")&&!Fh(l)&&r.push(l)}}catch(e){c.e(e)}finally{c.f()}}}}}catch(e){i.e(e)}finally{i.f()}for(var d=0,f=r;d<f.length;d++){var h=f[d];e.appendElement("caption",h)}return!!r.length}}],[{key:"pluginName",get:function(){return"ImageCaptionEditing"}}]),n}(Dl);function Vh(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(n,r,i){var o=r.item;if((o.childCount||t)&&Pu(o.parent)){if(!i.consumable.consume(r.item,"insert"))return;var a=i.mapper.toViewElement(r.range.start.parent),s=e(i.writer),c=i.writer;o.childCount||c.addClass("ck-hidden",s),function(e,t,n,r){var i=r.writer.createPositionAt(n,"end");r.writer.insert(i,e),r.mapper.bindElements(t,e)}(s,r.item,a,i)}}}function Hh(e){var t=e.getAncestors({includeSelf:!0}).find((function(e){return"caption"==e.name}));return t&&t.parent&&"image"==t.parent.name?t:null}function Uh(e,t){return!e.childCount&&!e.hasClass("ck-hidden")&&(t.addClass("ck-hidden",e),!0)}function qh(e,t){return!!e.hasClass("ck-hidden")&&(t.removeClass("ck-hidden",e),!0)}n(72);var Wh=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=Pu(e),e&&e.hasAttribute("width")?this.value={width:e.getAttribute("width"),height:null}:this.value=null}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection.getSelectedElement();this.value={width:e.width,height:null},n&&t.change((function(t){t.setAttribute("width",e.width,n)}))}}]),n}(Nl),Yh=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"imageResize:original",value:null,icon:"original"},{name:"imageResize:25",value:"25",icon:"small"},{name:"imageResize:50",value:"50",icon:"medium"},{name:"imageResize:75",value:"75",icon:"large"}]}),r}return m(n,null,[{key:"pluginName",get:function(){return"ImageResizeEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=new Wh(e);this._registerSchema(),this._registerConverters(),e.commands.add("imageResize",t)}},{key:"_registerSchema",value:function(){this.editor.model.schema.extend("image",{allowAttributes:"width"}),this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0})}},{key:"_registerConverters",value:function(){var e=this.editor;e.conversion.for("downcast").add((function(e){return e.on("attribute:width:image",(function(e,t,n){if(n.consumable.consume(t.item,e.name)){var r=n.writer,i=n.mapper.toViewElement(t.item);null!==t.attributeNewValue?(r.setStyle("width",t.attributeNewValue,i),r.addClass("image_resized",i)):(r.removeStyle("width",i),r.removeClass("image_resized",i))}}))})),e.conversion.for("upcast").attributeToAttribute({view:{name:"figure",styles:{width:/.+/}},model:{key:"width",value:function(e){return e.getStyle("width")}}})}}]),n}(Dl),Gh='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',Kh={small:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',medium:Gh,large:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',original:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>'},Qh=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._resizeUnit=e.config.get("image.resizeUnit"),r}return m(n,null,[{key:"requires",get:function(){return[Yh]}},{key:"pluginName",get:function(){return"ImageResizeButtons"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=e.config.get("image.resizeOptions"),n=e.commands.get("imageResize");this.bind("isEnabled").to(n);var r,i=u(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;this._registerImageResizeButton(o)}}catch(e){i.e(e)}finally{i.f()}this._registerImageResizeDropdown(t)}},{key:"_registerImageResizeButton",value:function(e){var t=this,n=this.editor,r=e.name,i=e.value,o=e.icon,a=i?i+this._resizeUnit:null;n.ui.componentFactory.add(r,(function(i){var s=new vl(i),c=n.commands.get("imageResize"),l=t._getOptionLabelValue(e,!0);if(!Kh[o])throw new Gt.b('imageresizebuttons-missing-icon: The resize option "'+r+'" misses the "icon" property or the property value doesn\'t match any of the available icons.',n,e);return s.set({label:l,icon:Kh[o],tooltip:l,isToggleable:!0}),s.bind("isEnabled").to(t),s.bind("isOn").to(c,"value",Jh(a)),t.listenTo(s,"execute",(function(){n.execute("imageResize",{width:a})})),s}))}},{key:"_registerImageResizeDropdown",value:function(e){var t=this,n=this.editor,r=n.t,i=e.find((function(e){return!e.value}));n.ui.componentFactory.add("imageResize",(function(o){var a=n.commands.get("imageResize"),s=Cl(o,bl),c=s.buttonView;return c.set({tooltip:r("Resize image"),commandValue:i.value,icon:Gh,isToggleable:!0,label:t._getOptionLabelValue(i),withText:!0,class:"ck-resize-image-button"}),c.bind("label").to(a,"value",(function(e){return e&&e.width?e.width:t._getOptionLabelValue(i)})),s.bind("isOn").to(a),s.bind("isEnabled").to(t),Tl(s,t._getResizeDropdownListItemDefinitions(e,a)),s.listView.ariaLabel=r("Image resize list"),t.listenTo(s,"execute",(function(e){n.execute(e.source.commandName,{width:e.source.commandValue}),n.editing.view.focus()})),s}))}},{key:"_getOptionLabelValue",value:function(e,t){var n=this.editor.t;return e.label?e.label:t?e.value?n("Resize image to %0",e.value+this._resizeUnit):n("Resize image to the original size"):e.value?e.value+this._resizeUnit:n("Original")}},{key:"_getResizeDropdownListItemDefinitions",value:function(e,t){var n=this,r=new sn;return e.map((function(e){var i=e.value?e.value+n._resizeUnit:null,o={type:"button",model:new rh({commandName:"imageResize",commandValue:i,label:n._getOptionLabelValue(e),withText:!0,icon:null})};o.model.bind("isOn").to(t,"value",Jh(i)),r.add(o)})),r}}]),n}(Dl);function Jh(e){return function(t){return null===e&&t===e||t&&t.width===e}}var Xh=function(){function e(t){h(this,e),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=t,this._referenceCoordinates=null}return m(e,[{key:"begin",value:function(e,t,n){var r=new Po(t);this.activeHandlePosition=function(e){for(var t=0,n=["top-left","top-right","bottom-right","bottom-left"];t<n.length;t++){var r=n[t];if(e.classList.contains(Zh(r)))return r}}(e),this._referenceCoordinates=function(e,t){var n=new Po(e),r=t.split("-"),i={x:"right"==r[1]?n.right:n.left,y:"bottom"==r[0]?n.bottom:n.top};return i.x+=e.ownerDocument.defaultView.scrollX,i.y+=e.ownerDocument.defaultView.scrollY,i}(t,function(e){var t=e.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return"".concat(n[t[0]],"-").concat(n[t[1]])}(this.activeHandlePosition)),this.originalWidth=r.width,this.originalHeight=r.height,this.aspectRatio=r.width/r.height;var i=n.style.width;i&&i.match(/^\d+\.?\d*%$/)?this.originalWidthPercents=parseFloat(i):this.originalWidthPercents=function(e,t){var n=e.parentElement,r=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);return t.width/r*100}(n,r)}},{key:"update",value:function(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}]),e}();function Zh(e){return"ck-widget__resizer__handle-"+e}an(Xh,pr);var ep=function(){function e(t){var n=this;h(this,e),this._options=t,this._domResizerWrapper=null,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(function(e){n.state.proposedWidth||n.state.proposedWidthPercents||(n._cleanup(),e.stop())}),{priority:"high"}),this.on("change:isEnabled",(function(){n.isEnabled&&n.redraw()}))}return m(e,[{key:"attach",value:function(){var e=this,t=this,n=this._options.viewElement;this._options.editor.editing.view.change((function(r){var i=r.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(e){var n=this.toDomElement(e);return t._appendHandles(n),t._appendSizeUI(n),t._domResizerWrapper=n,t.on("change:isEnabled",(function(e,t,r){n.style.display=r?"":"none"})),n.style.display=t.isEnabled?"":"none",n}));r.insert(r.createPositionAt(n,"end"),i),r.addClass("ck-widget_with-resizer",n),e._viewResizerWrapper=i}))}},{key:"begin",value:function(e){this.state=new Xh(this._options),this._sizeUI.bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}},{key:"updateSize",value:function(e){var t=this,n=this._proposeNewSize(e);this._options.editor.editing.view.change((function(e){var r=t._options.unit||"%",i=("%"===r?n.widthPercents:n.width)+r;e.setStyle("width",i,t._options.viewElement)}));var r=this._getHandleHost(),i=new Po(r);n.handleHostWidth=Math.round(i.width),n.handleHostHeight=Math.round(i.height);var o=new Po(r);n.width=Math.round(o.width),n.height=Math.round(o.height),this.redraw(i),this.state.update(n)}},{key:"commit",value:function(){var e=this,t=this._options.unit||"%",n=("%"===t?this.state.proposedWidthPercents:this.state.proposedWidth)+t;this._options.editor.editing.view.change((function(){e._cleanup(),e._options.onCommit(n)}))}},{key:"cancel",value:function(){this._cleanup()}},{key:"destroy",value:function(){this.cancel()}},{key:"redraw",value:function(e){var t=this._domResizerWrapper;if((n=t)&&n.ownerDocument&&n.ownerDocument.contains(n)){var n,r,i=t.parentElement,o=this._getHandleHost(),a=this._viewResizerWrapper,s=[a.getStyle("width"),a.getStyle("height"),a.getStyle("left"),a.getStyle("top")];if(i.isSameNode(o)){var c=e||new Po(o);r=[c.width+"px",c.height+"px",void 0,void 0]}else r=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];"same"!==pn(s,r)&&this._options.editor.editing.view.change((function(e){e.setStyle({width:r[0],height:r[1],left:r[2],top:r[3]},a)}))}}},{key:"containsHandle",value:function(e){return this._domResizerWrapper.contains(e)}},{key:"_cleanup",value:function(){var e=this;this._sizeUI.dismiss(),this._sizeUI.isVisible=!1,this._options.editor.editing.view.change((function(t){t.setStyle("width",e._initialViewWidth,e._options.viewElement)}))}},{key:"_proposeNewSize",value:function(e){var t,n=this.state,r=(t=e).pageX,i=t.pageY,o=!this._options.isCentered||this._options.isCentered(this),a={x:n._referenceCoordinates.x-(r+n.originalWidth),y:i-n.originalHeight-n._referenceCoordinates.y};o&&n.activeHandlePosition.endsWith("-right")&&(a.x=r-(n._referenceCoordinates.x+n.originalWidth)),o&&(a.x*=2);var s={width:Math.abs(n.originalWidth+a.x),height:Math.abs(n.originalHeight+a.y)};s.dominant=s.width/n.aspectRatio>s.height?"width":"height",s.max=s[s.dominant];var c={width:s.width,height:s.height};return"width"==s.dominant?c.height=c.width/n.aspectRatio:c.width=c.height*n.aspectRatio,{width:Math.round(c.width),height:Math.round(c.height),widthPercents:Math.min(Math.round(n.originalWidthPercents/n.originalWidth*c.width*100)/100,100)}}},{key:"_getResizeHost",value:function(){var e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}},{key:"_getHandleHost",value:function(){var e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}},{key:"_appendHandles",value:function(e){for(var t,n=0,r=["top-left","top-right","bottom-right","bottom-left"];n<r.length;n++){var i=r[n];e.appendChild(new Mc({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(t=i,"ck-widget__resizer__handle-"+t)}}).render())}}},{key:"_appendSizeUI",value:function(e){var t=new tp;t.render(),this._sizeUI=t,e.appendChild(t.element)}}],[{key:"isResizeHandle",value:function(e){return e.classList.contains("ck-widget__resizer__handle")}}]),e}();an(ep,pr);var tp=function(e){v(n,e);var t=g(n);function n(){var e;h(this,n);var r=(e=t.call(this)).bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",r.to("activeHandlePosition",(function(e){return e?"ck-orientation-"+e:""}))],style:{display:r.if("isVisible","none",(function(e){return!e}))}},children:[{text:r.to("label")}]}),e}return m(n,[{key:"bindToState",value:function(e,t){this.bind("isVisible").to(t,"proposedWidth",t,"proposedHeight",(function(e,t){return null!==e&&null!==t})),this.bind("label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",(function(t,n,r){return"px"===e.unit?"".concat(t,"×").concat(n):r+"%"})),this.bind("activeHandlePosition").to(t)}},{key:"dismiss",value:function(){this.unbind(),this.isVisible=!1}}]),n}(Yc),np=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return q(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ko(e,t,{leading:r,maxWait:t,trailing:i})};n(74);var rp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this;this.set("_visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map;var t=Ii.window.document;this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0}),this.editor.editing.view.addObserver(Fu),this._observer=Object.create($i),this.listenTo(this.editor.editing.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this));var n=function(){e._visibleResizer&&e._visibleResizer.redraw()},r=np(n,200);this.on("change:_visibleResizer",n),this.editor.ui.on("update",r),this._observer.listenTo(Ii.window,"resize",r);var i=this.editor.editing.view.document.selection;i.on("change",(function(){var t=i.getSelectedElement();e._visibleResizer=e._getResizerByViewElement(t)||null}))}},{key:"destroy",value:function(){this._observer.stopListening();var e,t=u(this._resizers.values());try{for(t.s();!(e=t.n()).done;){e.value.destroy()}}catch(e){t.e(e)}finally{t.f()}}},{key:"attachTo",value:function(e){var t=new ep(e),n=this.editor.plugins;if(t.attach(),n.has("WidgetToolbarRepository")){var r=n.get("WidgetToolbarRepository");t.on("begin",(function(){r.forceDisabled("resize")}),{priority:"lowest"}),t.on("cancel",(function(){r.clearForceDisabled("resize")}),{priority:"highest"}),t.on("commit",(function(){r.clearForceDisabled("resize")}),{priority:"highest"})}return this._resizers.set(e.viewElement,t),t}},{key:"_getResizerByHandle",value:function(e){var t,n=u(this._resizers.values());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.containsHandle(e))return r}}catch(e){n.e(e)}finally{n.f()}}},{key:"_getResizerByViewElement",value:function(e){return this._resizers.get(e)}},{key:"_mouseDownListener",value:function(e,t){var n=t.domTarget;ep.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n),this._activeResizer&&(this._activeResizer.begin(n),e.stop(),t.preventDefault()))}},{key:"_mouseMoveListener",value:function(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}},{key:"_mouseUpListener",value:function(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}],[{key:"pluginName",get:function(){return"WidgetResize"}}]),n}(Dl);an(rp,pr);var ip=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.commands.get("imageResize");this.bind("isEnabled").to(n),t.editing.downcastDispatcher.on("insert:image",(function(n,r,i){var o=i.mapper.toViewElement(r.item),a=t.plugins.get(rp).attachTo({unit:t.config.get("image.resizeUnit"),modelElement:r.item,viewElement:o,editor:t,getHandleHost:function(e){return e.querySelector("img")},getResizeHost:function(e){return e},isCentered:function(){var e=r.item.getAttribute("imageStyle");return!e||"full"==e||"alignCenter"==e},onCommit:function(e){t.execute("imageResize",{width:e})}});a.on("updateSize",(function(){o.hasClass("image_resized")||t.editing.view.change((function(e){e.addClass("image_resized",o)}))})),a.bind("isEnabled").to(e)}),{priority:"low"})}}],[{key:"requires",get:function(){return[rp]}},{key:"pluginName",get:function(){return"ImageResizeHandles"}}]),n}(Dl);n(76);var op=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).defaultStyle=!1,i.styles=r.reduce((function(e,t){return e[t.name]=t,t.isDefault&&(i.defaultStyle=t.name),e}),{}),i}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=Pu(e),e)if(e.hasAttribute("imageStyle")){var t=e.getAttribute("imageStyle");this.value=!!this.styles[t]&&t}else this.value=this.defaultStyle;else this.value=!1}},{key:"execute",value:function(e){var t=this,n=e.value,r=this.editor.model,i=r.document.selection.getSelectedElement();r.change((function(e){t.styles[n].isDefault?e.removeAttribute("imageStyle",i):e.setAttribute("imageStyle",n,i)}))}}]),n}(Nl);function ap(e,t){var n,r=u(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.name===e)return i}}catch(e){r.e(e)}finally{r.f()}}var sp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm2.5 3V12h11V7.5h-11zM4.061 6H15.94c.586 0 1.061.407 1.061.91v5.68c0 .503-.475.91-1.061.91H4.06c-.585 0-1.06-.407-1.06-.91V6.91C3 6.406 3.475 6 4.061 6zM2 16.5V15h16v1.5z"/></svg>',cp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M18 4.5V3H2v1.5h16zm0 3V6h-5.674v1.5H18zm0 3V9h-5.674v1.5H18zm0 3V12h-5.674v1.5H18zm-8.5-6V12h-6V7.5h6zm.818-1.5H2.682C2.305 6 2 6.407 2 6.91v5.68c0 .503.305.91.682.91h7.636c.377 0 .682-.407.682-.91V6.91c0-.503-.305-.91-.682-.91zM18 16.5V15H2v1.5h16z"/></svg>',lp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm4.5 3V12h7V7.5h-7zM5.758 6h8.484c.419 0 .758.407.758.91v5.681c0 .502-.34.909-.758.909H5.758c-.419 0-.758-.407-.758-.91V6.91c0-.503.34-.91.758-.91zM2 16.5V15h16v1.5z"/></svg>',up='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm0 3V6h5.674v1.5zm0 3V9h5.674v1.5zm0 3V12h5.674v1.5zm8.5-6V12h6V7.5h-6zM9.682 6h7.636c.377 0 .682.407.682.91v5.68c0 .503-.305.91-.682.91H9.682c-.377 0-.682-.407-.682-.91V6.91c0-.503.305-.91.682-.91zM2 16.5V15h16v1.5z"/></svg>',dp={full:{name:"full",title:"Full size image",icon:sp,isDefault:!0},side:{name:"side",title:"Side image",icon:up,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:cp,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:lp,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:up,className:"image-style-align-right"}},fp={full:sp,left:cp,right:up,center:lp};function hp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(pp)}function pp(e){if("string"==typeof e){var t=e;dp[t]?e=Object.assign({},dp[t]):(console.warn(Object(Gt.a)("image-style-not-found: There is no such image style of given name."),{name:t}),e={name:t})}else if(dp[e.name]){var n=dp[e.name],r=Object.assign({},e);for(var i in n)Object.prototype.hasOwnProperty.call(e,i)||(r[i]=n[i]);e=r}return"string"==typeof e.icon&&fp[e.icon]&&(e.icon=fp[e.icon]),e}var mp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.data,r=e.editing;e.config.define("image.styles",["full","side"]);var i=hp(e.config.get("image.styles"));t.extend("image",{allowAttributes:"imageStyle"});var o=function(e){return function(t,n,r){if(r.consumable.consume(n.item,t.name)){var i=ap(n.attributeNewValue,e),o=ap(n.attributeOldValue,e),a=r.mapper.toViewElement(n.item),s=r.writer;o&&s.removeClass(o.className,a),i&&s.addClass(i.className,a)}}}(i);r.downcastDispatcher.on("attribute:imageStyle:image",o),n.downcastDispatcher.on("attribute:imageStyle:image",o),n.upcastDispatcher.on("element:figure",function(e){var t=e.filter((function(e){return!e.isDefault}));return function(e,n,r){if(n.modelRange){var i=n.viewItem,o=Ll(n.modelRange.getItems());if(r.schema.checkAttribute(o,"imageStyle")){var a,s=u(t);try{for(s.s();!(a=s.n()).done;){var c=a.value;r.consumable.consume(i,{classes:c.className})&&r.writer.setAttribute("imageStyle",c.name,o)}}catch(e){s.e(e)}finally{s.f()}}}}}(i),{priority:"low"}),e.commands.add("imageStyle",new op(e,i))}}],[{key:"pluginName",get:function(){return"ImageStyleEditing"}}]),n}(Dl);n(78);var vp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e,t=function(e,t){var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t[i.title]&&(i.title=t[i.title])}}catch(e){r.e(e)}finally{r.f()}return e}(hp(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles),n=u(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this._createButton(r)}}catch(e){n.e(e)}finally{n.f()}}},{key:"_createButton",value:function(e){var t=this,n=this.editor,r="imageStyle:"+e.name;n.ui.componentFactory.add(r,(function(r){var i=n.commands.get("imageStyle"),o=new vl(r);return o.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value",(function(t){return t===e.name})),t.listenTo(o,"execute",(function(){n.execute("imageStyle",{value:e.name}),n.editing.view.focus()})),o}))}},{key:"localizedDefaultStylesTitles",get:function(){var e=this.editor.t;return{"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}}],[{key:"pluginName",get:function(){return"ImageStyleUI"}}]),n}(Dl),gp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor;if(t.plugins.has("BalloonToolbar")){var n=t.plugins.get("BalloonToolbar");this.listenTo(n,"show",(function(e){(function(e){var t=e.getSelectedElement();return!(!t||!wu(t))})(t.editing.view.document.selection)&&e.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui,"update",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui.focusTracker,"change:isFocused",(function(){e._updateToolbarsVisibility()}),{priority:"low"})}},{key:"destroy",value:function(){s(C(n.prototype),"destroy",this).call(this);var e,t=u(this._toolbarDefinitions.values());try{for(t.s();!(e=t.n()).done;){e.value.view.destroy()}}catch(e){t.e(e)}finally{t.f()}}},{key:"register",value:function(e,t){var n=t.ariaLabel,r=t.items,i=t.getRelatedElement,o=t.balloonClassName,a=void 0===o?"ck-toolbar-container":o;if(r.length){var s=this.editor,c=s.t,l=new Al(s.locale);if(l.ariaLabel=n||c("Widget toolbar"),this._toolbarDefinitions.has(e))throw new Gt.b("widget-toolbar-duplicated: Toolbar with the given id was already added.",this,{toolbarId:e});l.fillFromConfig(r,s.ui.componentFactory),this._toolbarDefinitions.set(e,{view:l,getRelatedElement:i,balloonClassName:a})}else console.warn(Object(Gt.a)("widget-toolbar-no-items: Trying to register a toolbar without items."),{toolbarId:e})}},{key:"_updateToolbarsVisibility",value:function(){var e,t=0,n=null,r=null,i=u(this._toolbarDefinitions.values());try{for(i.s();!(e=i.n()).done;){var o=e.value,a=o.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&a)if(this.editor.ui.focusTracker.isFocused){var s=a.getAncestors().length;s>t&&(t=s,n=a,r=o)}else this._isToolbarVisible(o)&&this._hideToolbar(o);else this._isToolbarInBalloon(o)&&this._hideToolbar(o)}}catch(e){i.e(e)}finally{i.f()}r&&this._showToolbar(r,n)}},{key:"_hideToolbar",value:function(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}},{key:"_showToolbar",value:function(e,t){var n=this;this._isToolbarVisible(e)?bp(this.editor,t):this._isToolbarInBalloon(e)||(this._balloon.add({view:e.view,position:yp(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(function(){var e,t=u(n._toolbarDefinitions.values());try{for(t.s();!(e=t.n()).done;){var r=e.value;if(n._isToolbarVisible(r)){var i=r.getRelatedElement(n.editor.editing.view.document.selection);bp(n.editor,i)}}}catch(e){t.e(e)}finally{t.f()}})))}},{key:"_isToolbarVisible",value:function(e){return this._balloon.visibleView===e.view}},{key:"_isToolbarInBalloon",value:function(e){return this._balloon.hasView(e.view)}}],[{key:"requires",get:function(){return[Ih]}},{key:"pluginName",get:function(){return"WidgetToolbarRepository"}}]),n}(Dl);function bp(e,t){var n=e.plugins.get("ContextualBalloon"),r=yp(e,t);n.updatePosition(r)}function yp(e,t){var n=e.editing.view,r=fu.defaultPositions;return{target:n.domConverter.mapViewToDom(t),positions:[r.northArrowSouth,r.northArrowSouthWest,r.northArrowSouthEast,r.southArrowNorth,r.southArrowNorthWest,r.southArrowNorthEast,Au]}}n(80);var _p=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("icon"),r.set("isEnabled",!0),r.set("isOn",!1),r.set("isToggleable",!1),r.set("isVisible",!0),r.set("keystroke"),r.set("label"),r.set("tabindex",-1),r.set("tooltip"),r.set("tooltipPosition","s"),r.set("type","button"),r.set("withText",!1),r.children=r.createCollection(),r.actionView=r._createActionView(),r.arrowView=r._createArrowView(),r.keystrokes=new dc,r.focusTracker=new yc,r.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",i.if("isVisible","ck-hidden",(function(e){return!e})),r.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:r.children}),r}return m(n,[{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(function(t,n){e.focusTracker.focusedElement===e.actionView.element&&(e.arrowView.focus(),n())})),this.keystrokes.set("arrowleft",(function(t,n){e.focusTracker.focusedElement===e.arrowView.element&&(e.actionView.focus(),n())}))}},{key:"focus",value:function(){this.actionView.focus()}},{key:"_createActionView",value:function(){var e=new vl;return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}},{key:"_createArrowView",value:function(){var e=new vl,t=e.bindTemplate;return e.icon=gl,e.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":t.to("isOn",(function(e){return String(e)}))}}),e.bind("isEnabled").to(this),e.delegate("execute").to(this,"open"),e}}]),n}(Yc);n(82);var wp=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,n);var o=(r=t.call(this,e)).bindTemplate;return r.set("class",i.class||null),r.children=r.createCollection(),i.children&&i.children.forEach((function(e){return r.children.add(e)})),r.set("_role",null),r.set("_ariaLabelledBy",null),i.labelView&&r.set({_role:"group",_ariaLabelledBy:i.labelView.id}),r.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",o.to("class")],role:o.to("_role"),"aria-labelledby":o.to("_ariaLabelledBy")},children:r.children}),r}return n}(Yc),kp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>';n(84);var xp=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n);var o=(i=t.call(this,e))._createActionButtons(e),a=o.insertButtonView,s=o.cancelButtonView;if(i.insertButtonView=a,i.cancelButtonView=s,i.dropdownView=i._createDropdownView(e),i.set("imageURLInputValue",""),i.focusTracker=new yc,i.keystrokes=new dc,i._focusables=new Ac,i._focusCycler=new rl({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i.set("_integrations",new sn),r)for(var u=function(){var e=l(f[d],2),t=e[0],n=e[1];"insertImageViaUrl"===t&&(n.fieldView.bind("value").to(y(i),"imageURLInputValue",(function(e){return e||""})),n.fieldView.on("input",(function(){i.imageURLInputValue=n.fieldView.element.value}))),i._integrations.add(n)},d=0,f=Object.entries(r);d<f.length;d++)u();return i.setTemplate({tag:"form",attributes:{class:["ck","ck-image-upload-form"],tabindex:"-1"},children:[].concat(c(i._integrations),[new wp(e,{children:[i.insertButtonView,i.cancelButtonView],class:"ck-image-upload-form__action-row"})])}),i}return m(n,[{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this),Ah({view:this});var t=[].concat(c(this._integrations),[this.insertButtonView,this.cancelButtonView]);t.forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);var r=function(e){return e.stopPropagation()};this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r),this.listenTo(t[0].element,"selectstart",(function(e,t){t.stopPropagation()}),{priority:"high"})}},{key:"_createDropdownView",value:function(e){var t=e.t,n=Cl(e,_p),r=n.buttonView,i=n.panelView;return r.set({label:t("Insert image"),icon:kp,tooltip:!0}),i.extendTemplate({attributes:{class:"ck-image-upload__panel"}}),n}},{key:"_createActionButtons",value:function(e){var t=e.t,n=new vl(e),r=new vl(e);return n.set({label:t("Insert"),icon:Mh,class:"ck-button-save",type:"submit",withText:!0,isEnabled:this.imageURLInputValue}),r.set({label:t("Cancel"),icon:Eh,class:"ck-button-cancel",withText:!0}),n.bind("isEnabled").to(this,"imageURLInputValue"),n.delegate("execute").to(this,"submit"),r.delegate("execute").to(this,"cancel"),{insertButtonView:n,cancelButtonView:r}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}}]),n}(Yc),Cp=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).buttonView=new vl(e),r._fileInputView=new Sp(e),r._fileInputView.bind("acceptedType").to(y(r)),r._fileInputView.bind("allowMultipleFiles").to(y(r)),r._fileInputView.delegate("done").to(y(r)),r.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[r.buttonView,r._fileInputView]}),r.buttonView.on("execute",(function(){r._fileInputView.open()})),r}return m(n,[{key:"focus",value:function(){this.buttonView.focus()}}]),n}(Yc),Sp=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),(r=t.call(this,e)).set("acceptedType"),r.set("allowMultipleFiles",!1);var i=r.bindTemplate;return r.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:i.to("acceptedType"),multiple:i.to("allowMultipleFiles")},on:{change:i.to((function(){r.element&&r.element.files&&r.element.files.length&&r.fire("done",r.element.files),r.element.value=""}))}}),r}return m(n,[{key:"open",value:function(){this.element.click()}}]),n}(Yc);function Tp(e){var t=e.map((function(e){return e.replace("+","\\+")}));return new RegExp("^image\\/(".concat(t.join("|"),")$"))}function Ap(e){var t=e.t,n=new Ch(e,Th);return n.set({label:t("Insert image via URL")}),n.fieldView.placeholder="https://example.com/src/image.png",n.infoText=t("Paste the image source URL."),n}var Mp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=!!t.config.get("image.upload.panel.items");t.ui.componentFactory.add("imageUpload",(function(t){return n?e._createDropdownView(t):e._createFileDialogButtonView(t)}))}},{key:"_setUpDropdown",value:function(e,t,n){var r=this.editor,i=r.t,o=t.insertButtonView;function a(){r.editing.view.focus(),e.isOpen=!1}return e.bind("isEnabled").to(n),e.on("change:isOpen",(function(){var n=r.model.document.selection.getSelectedElement();e.isOpen&&(t.focus(),Pu(n)?(t.imageURLInputValue=n.getAttribute("src"),o.label=i("Update")):(t.imageURLInputValue="",o.label=i("Insert")))})),t.delegate("submit","cancel").to(e),this.delegate("cancel").to(e),e.on("submit",(function(){a(),function(){var e=r.model.document.selection.getSelectedElement();Pu(e)?r.model.change((function(n){n.setAttribute("src",t.imageURLInputValue,e),n.removeAttribute("srcset",e),n.removeAttribute("sizes",e)})):r.execute("imageInsert",{source:t.imageURLInputValue})}()})),e.on("cancel",(function(){a()})),e}},{key:"_createDropdownView",value:function(e){var t=this.editor,n=new xp(e,function(e){var t=e.config.get("image.upload.panel.items"),n=e.plugins.get("ImageUploadUI"),r={insertImageViaUrl:Ap(e.locale)};if(!t)return r;if(t.find((function(e){return"openCKFinder"===e}))&&e.ui.componentFactory.has("ckfinder")){var i=e.ui.componentFactory.create("ckfinder");i.set({withText:!0,class:"ck-image-upload__ck-finder-button"}),i.delegate("execute").to(n,"cancel"),r.openCKFinder=i}return t.reduce((function(t,n){return r[n]?t[n]=r[n]:e.ui.componentFactory.has(n)&&(t[n]=e.ui.componentFactory.create(n)),t}),{})}(t)),r=t.commands.get("imageUpload"),i=n.dropdownView,o=i.panelView;return i.buttonView.actionView=this._createFileDialogButtonView(e),o.children.add(n),this._setUpDropdown(i,n,r)}},{key:"_createFileDialogButtonView",value:function(e){var t=this.editor,n=e.t,r=t.config.get("image.upload.types"),i=new Cp(e),o=Tp(r),a=t.commands.get("imageUpload");return i.set({acceptedType:r.map((function(e){return"image/"+e})).join(","),allowMultipleFiles:!0}),i.buttonView.set({label:n("Insert image"),icon:kp,tooltip:!0}),i.buttonView.bind("isEnabled").to(a),i.on("done",(function(e,n){var r=Array.from(n).filter((function(e){return o.test(e.type)}));r.length&&t.execute("imageUpload",{file:r})})),i}}],[{key:"pluginName",get:function(){return"ImageUploadUI"}}]),n}(Dl);n(86),n(88),n(90);var Ep=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).placeholder="data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><rect rx="4"/></svg>'),r}return m(n,[{key:"init",value:function(){var e=this;this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",(function(){return e.uploadStatusChange.apply(e,arguments)}))}},{key:"uploadStatusChange",value:function(e,t,n){var r=this.editor,i=t.item,o=i.getAttribute("uploadId");if(n.consumable.consume(t.item,e.name)){var a=r.plugins.get(Ud),s=o?t.attributeNewValue:null,c=this.placeholder,l=r.editing.mapper.toViewElement(i),u=n.writer;if("reading"==s)return Op(l,u),void Pp(c,l,u);if("uploading"==s){var d=a.loaders.get(o);return Op(l,u),void(d?(Ip(l,u),function(e,t,n,r){var i=function(e){var t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),i),n.on("change:uploadedPercent",(function(e,t,n){r.change((function(e){e.setStyle("width",n+"%",i)}))}))}(l,u,d,r.editing.view),function(e,t,n){if(n.data){var r=ju(e);t.setAttribute("src",n.data,r)}}(l,u,d)):Pp(c,l,u))}"complete"==s&&a.loaders.get(o)&&function(e,t,n){var r=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),r),setTimeout((function(){n.change((function(e){return e.remove(e.createRangeOn(r))}))}),3e3)}(l,u,r.editing.view),function(e,t){jp(e,t,"progressBar")}(l,u),Ip(l,u),function(e,t){t.removeClass("ck-appear",e)}(l,u)}}}]),n}(Dl);function Op(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function Pp(e,t,n){t.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",t);var r=ju(t);r.getAttribute("src")!==e&&n.setAttribute("src",e,r),Dp(t,"placeholder")||n.insert(n.createPositionAfter(r),function(e){var t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(n))}function Ip(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),jp(e,t,"placeholder")}function Dp(e,t){var n,r=u(e.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.getCustomProperty(t))return i}}catch(e){r.e(e)}finally{r.f()}}function jp(e,t,n){var r=Dp(e,n);r&&t.remove(t.createRangeOn(r))}var Np=function(){function e(t){h(this,e),this.document=t}return m(e,[{key:"createDocumentFragment",value:function(e){return new ni(this.document,e)}},{key:"createElement",value:function(e,t,n){return new or(this.document,e,t,n)}},{key:"createText",value:function(e){return new gn(this.document,e)}},{key:"clone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e._clone(t)}},{key:"appendChild",value:function(e,t){return t._appendChild(e)}},{key:"insertChild",value:function(e,t,n){return n._insertChild(e,t)}},{key:"removeChildren",value:function(e,t,n){return n._removeChildren(e,t)}},{key:"remove",value:function(e){var t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}},{key:"replace",value:function(e,t){var n=e.parent;if(n){var r=n.getChildIndex(e);return this.removeChildren(r,1,n),this.insertChild(r,t,n),!0}return!1}},{key:"unwrapElement",value:function(e){var t=e.parent;if(t){var n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}},{key:"rename",value:function(e,t){var n=new or(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){z(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"createPositionAt",value:function(e,t){return Cr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Cr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Cr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Sr(e,t)}},{key:"createRangeOn",value:function(e){return Sr._createOn(e)}},{key:"createRangeIn",value:function(e){return Sr._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Mr(e,t,n)}}]),e}(),Rp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement(),t=e&&"image"===e.name||!1;this.isEnabled=Du(this.editor.model)||t}},{key:"execute",value:function(e){var t=this.editor,n=t.model,r=t.plugins.get(Ud);n.change((function(t){var i,o=u(Array.isArray(e.file)?e.file:[e.file]);try{for(o.s();!(i=o.n()).done;){var a=i.value;Lp(t,n,r,a)}}catch(e){o.e(e)}finally{o.f()}}))}}]),n}(Nl);function Lp(e,t,n,r){var i=n.createLoader(r);i&&Iu(e,t,{uploadId:i.id})}var zp=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),r}return m(n,null,[{key:"requires",get:function(){return[Ud,zd,sd]}},{key:"pluginName",get:function(){return"ImageUploadEditing"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document,r=t.model.schema,i=t.conversion,o=t.plugins.get(Ud),a=Tp(t.config.get("image.upload.types"));r.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),t.commands.add("imageUpload",new Rp(t)),i.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(function(e,n){if(r=n.dataTransfer,!Array.from(r.types).includes("text/html")||""===r.getData("text/html")){var r,i=Array.from(n.dataTransfer.files).filter((function(e){return!!e&&a.test(e.type)})),o=n.targetRanges.map((function(e){return t.editing.mapper.toModelRange(e)}));t.model.change((function(n){n.setSelection(o),i.length&&(e.stop(),t.model.enqueueChange("default",(function(){t.execute("imageUpload",{file:i})})))}))}})),this.listenTo(t.plugins.get(sd),"inputTransformation",(function(e,n){var r=Array.from(t.editing.view.createRangeIn(n.content)).filter((function(e){return!(!(t=e.item).is("element","img")||!t.getAttribute("src"))&&(t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||t.getAttribute("src").match(/^blob:/g))&&!e.item.getAttribute("uploadProcessed");var t})).map((function(e){return{promise:(t=e.item,new Promise((function(e,n){var r=t.getAttribute("src");fetch(r).then((function(e){return e.blob()})).then((function(t){var n=function(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}(t,r),i=n.replace("image/",""),o=new File([t],"image."+i,{type:n});e(o)})).catch(n)}))),imageElement:e.item};var t}));if(r.length){var i,a=new Np(t.editing.view.document),s=u(r);try{for(s.s();!(i=s.n()).done;){var c=i.value;a.setAttribute("uploadProcessed",!0,c.imageElement);var l=o.createLoader(c.promise);l&&(a.setAttribute("src","",c.imageElement),a.setAttribute("uploadId",l.id,c.imageElement))}}catch(e){s.e(e)}finally{s.f()}}})),t.editing.view.document.on("dragover",(function(e,t){t.preventDefault()})),n.on("change",(function(){var r,i=u(n.differ.getChanges({includeChangesInGraveyard:!0}));try{for(i.s();!(r=i.n()).done;){var a=r.value;if("insert"==a.type&&"$text"!=a.name){var s,c=a.position.nodeAfter,l="$graveyard"==a.position.root.rootName,d=u(Fp(t,c));try{for(d.s();!(s=d.n()).done;){var f=s.value,h=f.getAttribute("uploadId");if(h){var p=o.loaders.get(h);p&&(l?p.abort():"idle"==p.status&&e._readAndUpload(p,f))}}}catch(e){d.e(e)}finally{d.f()}}}}catch(e){i.e(e)}finally{i.f()}}))}},{key:"_readAndUpload",value:function(e,t){var n=this,r=this.editor,i=r.model,o=r.locale.t,a=r.plugins.get(Ud),s=r.plugins.get(zd);return i.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","reading",t)})),e.read().then((function(){var n=e.upload();if(Fr){var o=ju(r.editing.mapper.toViewElement(t));r.editing.view.once("render",(function(){if(o.parent){var e=r.editing.view.domConverter.mapViewToDom(o.parent);if(e){var t=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=t}}}))}return i.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","uploading",t)})),n})).then((function(e){i.enqueueChange("transparent",(function(r){r.setAttributes({uploadStatus:"complete",src:e.default},t),n._parseAndSetSrcsetAttributeOnImage(e,t,r)})),c()})).catch((function(n){if("error"!==e.status&&"aborted"!==e.status)throw n;"error"==e.status&&n&&s.showWarning(n,{title:o("Upload failed"),namespace:"upload"}),c(),i.enqueueChange("transparent",(function(e){e.remove(t)}))}));function c(){i.enqueueChange("transparent",(function(e){e.removeAttribute("uploadId",t),e.removeAttribute("uploadStatus",t)})),a.destroyLoader(e)}}},{key:"_parseAndSetSrcsetAttributeOnImage",value:function(e,t,n){var r=0,i=Object.keys(e).filter((function(e){var t=parseInt(e,10);if(!isNaN(t))return r=Math.max(r,t),!0})).map((function(t){return"".concat(e[t]," ").concat(t,"w")})).join(", ");""!=i&&n.setAttribute("srcset",{data:i,width:r},t)}}]),n}(Dl);function Fp(e,t){return Array.from(e.model.createRangeOn(t)).filter((function(e){return e.item.is("element","image")})).map((function(e){return e.item}))}var Bp=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._childCommands=[],r}return m(n,[{key:"refresh",value:function(){}},{key:"execute",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._getFirstEnabledCommand().execute(t)}},{key:"registerChildCommand",value:function(e){var t=this;this._childCommands.push(e),e.on("change:isEnabled",(function(){return t._checkEnabled()})),this._checkEnabled()}},{key:"_checkEnabled",value:function(){this.isEnabled=!!this._getFirstEnabledCommand()}},{key:"_getFirstEnabledCommand",value:function(){return this._childCommands.find((function(e){return e.isEnabled}))}}]),n}(Nl),$p=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.commands.add("indent",new Bp(e)),e.commands.add("outdent",new Bp(e))}}],[{key:"pluginName",get:function(){return"IndentEditing"}}]),n}(Dl),Vp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95L5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',Hp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',Up=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,r="ltr"==t.uiLanguageDirection?Vp:Hp,i="ltr"==t.uiLanguageDirection?Hp:Vp;this._defineButton("indent",n("Increase indent"),r),this._defineButton("outdent",n("Decrease indent"),i)}},{key:"_defineButton",value:function(e,t,n){var r=this,i=this.editor;i.ui.componentFactory.add(e,(function(o){var a=i.commands.get(e),s=new vl(o);return s.set({label:t,icon:n,tooltip:!0}),s.bind("isOn","isEnabled").to(a,"value","isEnabled"),r.listenTo(s,"execute",(function(){i.execute(e),i.editing.view.focus()})),s}))}}],[{key:"pluginName",get:function(){return"IndentUI"}}]),n}(Dl),qp="italic",Wp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:qp}),e.model.schema.setAttributeProperties(qp,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:qp,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add(qp,new Zl(e,qp)),e.keystrokes.set("CTRL+I",qp)}}],[{key:"pluginName",get:function(){return"ItalicEditing"}}]),n}(Dl),Yp="italic",Gp=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(Yp,(function(r){var i=t.commands.get(Yp),o=new vl(r);return o.set({label:n("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.586 14.633l.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(Yp),t.editing.view.focus()})),o}))}}]),n}(Dl),Kp=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType="click",r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo);n(92);var Qp=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;h(this,n),o=t.call(this,e);var a=e.t;o.focusTracker=new yc,o.keystrokes=new dc,o.urlInputView=o._createUrlInput(i),o.saveButtonView=o._createButton(a("Save"),Mh,"ck-button-save"),o.saveButtonView.type="submit",o.cancelButtonView=o._createButton(a("Cancel"),Eh,"ck-button-cancel","cancel"),o._manualDecoratorSwitches=o._createManualDecoratorSwitches(r),o.children=o._createFormChildren(r.manualDecorators),o._focusables=new Ac,o._focusCycler=new rl({focusables:o._focusables,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});var s=["ck","ck-link-form"];return r.manualDecorators.length&&s.push("ck-link-form_layout-vertical"),o.setTemplate({tag:"form",attributes:{class:s,tabindex:"-1"},children:o.children}),o}return m(n,[{key:"getDecoratorSwitchesState",value:function(){return Array.from(this._manualDecoratorSwitches).reduce((function(e,t){return e[t.name]=t.isOn,e}),{})}},{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this),Ah({view:this}),[this.urlInputView].concat(c(this._manualDecoratorSwitches),[this.saveButtonView,this.cancelButtonView]).forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createUrlInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://",t=this.locale.t,n=new Ch(this.locale,Th);return n.label=t("Link URL"),n.fieldView.placeholder=e+"example.com",n}},{key:"_createButton",value:function(e,t,n,r){var i=new vl(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"_createManualDecoratorSwitches",value:function(e){var t,n=this,r=this.createCollection(),i=u(e.manualDecorators);try{var o=function(){var i=t.value,o=new kl(n.locale);o.set({name:i.id,label:i.label,withText:!0}),o.bind("isOn").toMany([i,e],"value",(function(e,t){return void 0===t&&void 0===e?i.defaultValue:e})),o.on("execute",(function(){i.set("value",!o.isOn)})),r.add(o)};for(i.s();!(t=i.n()).done;)o()}catch(e){i.e(e)}finally{i.f()}return r}},{key:"_createFormChildren",value:function(e){var t=this.createCollection();if(t.add(this.urlInputView),e.length){var n=new Yc;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((function(e){return{tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}}})),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(n)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}]),n}(Yc);n(94);var Jp=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n),r=t.call(this,e);var i=e.t;return r.focusTracker=new yc,r.keystrokes=new dc,r.previewButtonView=r._createPreviewButton(),r.unlinkButtonView=r._createButton(i("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562l-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),r.editButtonView=r._createButton(i("Edit link"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.3 17.37l-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506L13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5L9.375 17H19v1.5H8z"/></svg>',"edit"),r.set("href"),r._focusables=new Ac,r._focusCycler=new rl({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions"],tabindex:"-1"},children:[r.previewButtonView,r.editButtonView,r.unlinkButtonView]}),r}return m(n,[{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createButton",value:function(e,t,n){var r=new vl(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.delegate("execute").to(this,n),r}},{key:"_createPreviewButton",value:function(){var e=new vl(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0,tooltip:n("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",(function(e){return e&&Ad(e)})),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",(function(e){return e||n("This link has no URL")})),e.bind("isEnabled").to(this,"href",(function(e){return!!e})),e.template.tag="a",e.template.eventListeners={},e}}]),n}(Yc),Xp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',Zp=/^((\w+:(\/{2,})?)|(\W))/i,em=/[\w-]+@[\w-]+\.+[\w-]+/i,tm="link-ui",nm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.editing.view.addObserver(Kp),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=e.plugins.get(Ih),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),e.conversion.for("editingDowncast").markerToHighlight({model:tm,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:tm,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}},{key:"destroy",value:function(){s(C(n.prototype),"destroy",this).call(this),this.formView.destroy()}},{key:"_createActionsView",value:function(){var e=this,t=this.editor,n=new Jp(t.locale),r=t.commands.get("link"),i=t.commands.get("unlink");return n.bind("href").to(r,"value"),n.editButtonView.bind("isEnabled").to(r),n.unlinkButtonView.bind("isEnabled").to(i),this.listenTo(n,"edit",(function(){e._addFormView()})),this.listenTo(n,"unlink",(function(){t.execute("unlink"),e._hideUI()})),n.keystrokes.set("Esc",(function(t,n){e._hideUI(),n()})),n.keystrokes.set(Sd,(function(t,n){e._addFormView(),n()})),n}},{key:"_createFormView",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),r=t.config.get("link.defaultProtocol"),i=new Qp(t.locale,n,r);return i.urlInputView.fieldView.bind("value").to(n,"value"),i.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e})),i.saveButtonView.bind("isEnabled").to(n),this.listenTo(i,"submit",(function(){var n=i.urlInputView.fieldView.element.value,o=!!r&&!Zp.test(n),a=em.test(n),s=n&&o?(a?"mailto:":r)+n:n;t.execute("link",s,i.getDecoratorSwitchesState()),e._closeFormView()})),this.listenTo(i,"cancel",(function(){e._closeFormView()})),i.keystrokes.set("Esc",(function(t,n){e._closeFormView(),n()})),i}},{key:"_createToolbarLinkButton",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),r=t.t;t.keystrokes.set(Sd,(function(t,n){n(),e._showUI(!0)})),t.ui.componentFactory.add("link",(function(t){var i=new vl(t);return i.isEnabled=!0,i.label=r("Link"),i.icon=Xp,i.keystroke=Sd,i.tooltip=!0,i.isToggleable=!0,i.bind("isEnabled").to(n,"isEnabled"),i.bind("isOn").to(n,"value",(function(e){return!!e})),e.listenTo(i,"execute",(function(){return e._showUI(!0)})),i}))}},{key:"_enableUserBalloonInteractions",value:function(){var e=this,t=this.editor.editing.view.document;this.listenTo(t,"click",(function(){e._getSelectedLinkElement()&&e._showUI()})),this.editor.keystrokes.set("Tab",(function(t,n){e._areActionsVisible&&!e.actionsView.focusTracker.isFocused&&(e.actionsView.focus(),n())}),{priority:"high"}),this.editor.keystrokes.set("Esc",(function(t,n){e._isUIVisible&&(e._hideUI(),n())})),xl({emitter:this.formView,activator:function(){return e._isUIInPanel},contextElements:[this._balloon.view.element],callback:function(){return e._hideUI()}})}},{key:"_addActionsView",value:function(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}},{key:"_addFormView",value:function(){if(!this._isFormInPanel){var e=this.editor.commands.get("link");this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.urlInputView.fieldView.element.value=e.value||""}}},{key:"_closeFormView",value:function(){var e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}},{key:"_removeFormView",value:function(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}},{key:"_showUI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}},{key:"_hideUI",value:function(){if(this._isUIInPanel){var e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}}},{key:"_startUpdatingUI",value:function(){var e=this,t=this.editor,n=t.editing.view.document,r=this._getSelectedLinkElement(),i=a(),o=function(){var t=e._getSelectedLinkElement(),n=a();r&&!t||!r&&n!==i?e._hideUI():e._isUIVisible&&e._balloon.updatePosition(e._getBalloonPositionData()),r=t,i=n};function a(){return n.selection.focus.getAncestors().reverse().find((function(e){return e.is("element")}))}this.listenTo(t.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}},{key:"_getBalloonPositionData",value:function(){var e=this.editor.editing.view,t=this.editor.model,n=e.document,r=this._getSelectedLinkElement(),i=t.markers.has(tm)?this.editor.editing.mapper.toViewRange(t.markers.get(tm).getRange()):n.selection.getFirstRange();return{target:r?e.domConverter.mapViewToDom(r):e.domConverter.viewRangeToDom(i)}}},{key:"_getSelectedLinkElement",value:function(){var e=this.editor.editing.view,t=e.document.selection;if(t.isCollapsed)return rm(t.getFirstPosition());var n=t.getFirstRange().getTrimmed(),r=rm(n.start),i=rm(n.end);return r&&r==i&&e.createRangeIn(r).getTrimmed().isEqual(n)?r:null}},{key:"_showFakeVisualSelection",value:function(){var e=this.editor.model;e.change((function(t){e.markers.has(tm)?t.updateMarker(tm,{range:e.document.selection.getFirstRange()}):t.addMarker(tm,{usingOperation:!1,affectsData:!1,range:e.document.selection.getFirstRange()})}))}},{key:"_hideFakeVisualSelection",value:function(){var e=this.editor.model;e.markers.has(tm)&&e.change((function(e){e.removeMarker(tm)}))}},{key:"_isFormInPanel",get:function(){return this._balloon.hasView(this.formView)}},{key:"_areActionsInPanel",get:function(){return this._balloon.hasView(this.actionsView)}},{key:"_areActionsVisible",get:function(){return this._balloon.visibleView===this.actionsView}},{key:"_isUIInPanel",get:function(){return this._isFormInPanel||this._areActionsInPanel}},{key:"_isUIVisible",get:function(){return this._balloon.visibleView==this.formView||this._areActionsVisible}}],[{key:"requires",get:function(){return[Ih]}},{key:"pluginName",get:function(){return"LinkUI"}}]),n}(Dl);function rm(e){return e.getAncestors().find((function(e){return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t}))}var im=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("image",{allowAttributes:["linkHref"]}),e.conversion.for("upcast").add((function(e){e.on("element:a",(function(e,t,n){var r=t.viewItem,i=Array.from(r.getChildren()).find((function(e){return"img"===e.name}));if(i){if(n.consumable.consume(r,{attributes:["href"]})){var o=r.getAttribute("href");if(o){var a=t.modelCursor.parent;if(!a.is("element","image")){var s=n.convertItem(i,t.modelCursor);t.modelRange=s.modelRange,t.modelCursor=s.modelCursor,a=t.modelCursor.nodeBefore}a&&a.is("element","image")&&n.writer.setAttribute("linkHref",o,a)}}}}),{priority:"high"})})),e.conversion.for("editingDowncast").add(om({attachIconIndicator:!0})),e.conversion.for("dataDowncast").add(om({attachIconIndicator:!1})),this._enableAutomaticDecorators(),this._enableManualDecorators()}},{key:"_enableAutomaticDecorators",value:function(){var e=this.editor,t=e.commands.get("link").automaticDecorators;t.length&&e.conversion.for("downcast").add(t.getDispatcherForLinkedImage())}},{key:"_enableManualDecorators",value:function(){var e,t=this.editor,n=t.commands.get("link"),r=n.manualDecorators,i=u(n.manualDecorators);try{for(i.s();!(e=i.n()).done;){var o=e.value;t.model.schema.extend("image",{allowAttributes:o.id}),t.conversion.for("downcast").add(am(r,o)),t.conversion.for("upcast").add(sm(r,o))}}catch(e){i.e(e)}finally{i.f()}}}],[{key:"requires",get:function(){return[Lu,jd]}},{key:"pluginName",get:function(){return"LinkImageEditing"}}]),n}(Dl);function om(e){return function(t){t.on("attribute:linkHref:image",(function(t,n,r){var i,o=r.mapper.toViewElement(n.item),a=r.writer,s=Array.from(o.getChildren()).find((function(e){return"a"===e.name}));if(e.attachIconIndicator&&(i=a.createUIElement("span",{class:"ck ck-link-image_icon"},(function(e){var t=this.toDomElement(e);return t.innerHTML=Xp,t}))),s)if(n.attributeNewValue)a.setAttribute("href",n.attributeNewValue,s);else{var c=Array.from(s.getChildren()).find((function(e){return"img"===e.name}));a.move(a.createRangeOn(c),a.createPositionAt(o,0)),a.remove(s)}else{var l=a.createContainerElement("a",{href:n.attributeNewValue});a.insert(a.createPositionAt(o,0),l),a.move(a.createRangeOn(o.getChild(1)),a.createPositionAt(l,0)),i&&a.insert(a.createPositionAt(l,"end"),i)}}))}}function am(e,t){return function(n){n.on("attribute:".concat(t.id,":image"),(function(n,r,i){var o,a=e.get(t.id).attributes,s=i.mapper.toViewElement(r.item),c=Array.from(s.getChildren()).find((function(e){return"a"===e.name})),d=u(yn(a));try{for(d.s();!(o=d.n()).done;){var f=l(o.value,2),h=f[0],p=f[1];i.writer.setAttribute(h,p,c)}}catch(e){d.e(e)}finally{d.f()}}))}}function sm(e,t){return function(n){n.on("element:a",(function(n,r,i){var o=r.viewItem,a={attributes:e.get(t.id).attributes},s=new _n(a).match(o);if(s&&i.consumable.consume(o,s.match)){var c=r.modelCursor.parent;i.writer.setAttribute(t.id,!0,c)}}),{priority:"high"})}}var cm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor.editing.view.document;this.listenTo(e,"click",(function(t,n){lm(e.selection.getSelectedElement())&&n.preventDefault()})),this._createToolbarLinkImageButton()}},{key:"_createToolbarLinkImageButton",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("linkImage",(function(r){var i=new vl(r),o=t.plugins.get("LinkUI"),a=t.commands.get("link");return i.set({isEnabled:!0,label:n("Link image"),icon:Xp,keystroke:Sd,tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(a,"isEnabled"),i.bind("isOn").to(a,"value",(function(e){return!!e})),e.listenTo(i,"execute",(function(){lm(t.editing.view.document.selection.getSelectedElement())?o._addActionsView():o._showUI(!0)})),i}))}}],[{key:"requires",get:function(){return[zh,jd,nm]}},{key:"pluginName",get:function(){return"LinkImageUI"}}]),n}(Dl);function lm(e){return!(!e||!Eu(e))&&e.getChild(0).is("element","a")}n(96);var um=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).type=r,i}return m(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document,r=Array.from(n.selection.getSelectedBlocks()).filter((function(e){return fm(e,t.schema)})),i=!0===this.value;t.change((function(t){if(i){for(var n=r[r.length-1].nextSibling,o=Number.POSITIVE_INFINITY,a=[];n&&"listItem"==n.name&&0!==n.getAttribute("listIndent");){var s=n.getAttribute("listIndent");s<o&&(o=s);var c=s-o;a.push({element:n,listIndent:c}),n=n.nextSibling}var l,d=u(a=a.reverse());try{for(d.s();!(l=d.n()).done;){var f=l.value;t.setAttribute("listIndent",f.listIndent,f.element)}}catch(e){d.e(e)}finally{d.f()}}if(!i){var h,p=Number.POSITIVE_INFINITY,m=u(r);try{for(m.s();!(h=m.n()).done;){var v=h.value;v.is("element","listItem")&&v.getAttribute("listIndent")<p&&(p=v.getAttribute("listIndent"))}}catch(e){m.e(e)}finally{m.f()}dm(r,!0,p=0===p?1:p),dm(r,!1,p)}var g,b=u(r.reverse());try{for(b.s();!(g=b.n()).done;){var y=g.value;i&&"listItem"==y.name?t.rename(y,"paragraph"):i||"listItem"==y.name?i||"listItem"!=y.name||y.getAttribute("listType")==e.type||t.setAttribute("listType",e.type,y):(t.setAttributes({listType:e.type,listIndent:0},y),t.rename(y,"listItem"))}}catch(e){b.e(e)}finally{b.f()}e.fire("_executeCleanup",r)}))}},{key:"_getValue",value:function(){var e=Ll(this.editor.model.document.selection.getSelectedBlocks());return!!e&&e.is("element","listItem")&&e.getAttribute("listType")==this.type}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var e=this.editor.model.document.selection,t=this.editor.model.schema,n=Ll(e.getSelectedBlocks());return!!n&&fm(n,t)}}]),n}(Nl);function dm(e,t,n){var r=t?e[0]:e[e.length-1];if(r.is("element","listItem"))for(var i=r[t?"previousSibling":"nextSibling"],o=r.getAttribute("listIndent");i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=n;)o>i.getAttribute("listIndent")&&(o=i.getAttribute("listIndent")),i.getAttribute("listIndent")==o&&e[t?"unshift":"push"](i),i=i[t?"previousSibling":"nextSibling"]}function fm(e,t){return t.checkChild(e.parent,"listItem")&&!t.isObject(e)}var hm=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e))._indentBy="forward"==r?1:-1,i}return m(n,[{key:"refresh",value:function(){this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document,r=Array.from(n.selection.getSelectedBlocks());t.change((function(t){for(var n=r[r.length-1],i=n.nextSibling;i&&"listItem"==i.name&&i.getAttribute("listIndent")>n.getAttribute("listIndent");)r.push(i),i=i.nextSibling;e._indentBy<0&&(r=r.reverse());var o,a=u(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,c=s.getAttribute("listIndent")+e._indentBy;c<0?t.rename(s,"paragraph"):t.setAttribute("listIndent",c,s)}}catch(e){a.e(e)}finally{a.f()}e.fire("_executeCleanup",r)}))}},{key:"_checkEnabled",value:function(){var e=Ll(this.editor.model.document.selection.getSelectedBlocks());if(!e||!e.is("element","listItem"))return!1;if(this._indentBy>0){for(var t=e.getAttribute("listIndent"),n=e.getAttribute("listType"),r=e.previousSibling;r&&r.is("element","listItem")&&r.getAttribute("listIndent")>=t;){if(r.getAttribute("listIndent")==t)return r.getAttribute("listType")==n;r=r.previousSibling}return!1}return!0}}]),n}(Nl);function pm(e,t,n,r){var i=t.parent,o=n.mapper,a=n.writer,s=o.toViewPosition(r.createPositionBefore(e)),c=gm(e.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:e.getAttribute("listIndent")}),l=e.previousSibling;if(c&&c.getAttribute("listIndent")==e.getAttribute("listIndent")){var d=o.toViewElement(c);s=a.breakContainer(a.createPositionAfter(d))}else if(l&&"listItem"==l.name){s=o.toViewPosition(r.createPositionAt(l,"end"));var f=o.findMappedViewAncestor(s),h=function(e){var t,n=u(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;if("ul"==r.name||"ol"==r.name)return r}}catch(e){n.e(e)}finally{n.f()}return null}(f);s=h?a.createPositionBefore(h):a.createPositionAt(f,"end")}else s=o.toViewPosition(r.createPositionBefore(e));if(s=vm(s),a.insert(s,i),l&&"listItem"==l.name){var p,m=o.toViewElement(l),v=a.createRange(a.createPositionAt(m,0),s).getWalker({ignoreElementEnd:!0}),g=u(v);try{for(g.s();!(p=g.n()).done;){var b=p.value;if(b.item.is("element","li")){var y=a.breakContainer(a.createPositionBefore(b.item)),_=b.item.parent,w=a.createPositionAt(t,"end");mm(a,w.nodeBefore,w.nodeAfter),a.move(a.createRangeOn(_),w),v.position=y}}}catch(e){g.e(e)}finally{g.f()}}else{var k=i.nextSibling;if(k&&(k.is("element","ul")||k.is("element","ol"))){var x,C=null,S=u(k.getChildren());try{for(S.s();!(x=S.n()).done;){var T=x.value,A=o.toModelElement(T);if(!(A&&A.getAttribute("listIndent")>e.getAttribute("listIndent")))break;C=T}}catch(e){S.e(e)}finally{S.f()}C&&(a.breakContainer(a.createPositionAfter(C)),a.move(a.createRangeOn(C.parent),a.createPositionAt(t,"end")))}}mm(a,i,i.nextSibling),mm(a,i.previousSibling,i)}function mm(e,t,n){return!t||!n||"ul"!=t.name&&"ol"!=t.name||t.name!=n.name||t.getAttribute("class")!==n.getAttribute("class")?null:e.mergeContainers(e.createPositionAfter(t))}function vm(e){return e.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))}function gm(e,t){for(var n=!!t.sameIndent,r=!!t.smallerIndent,i=t.listIndent,o=e;o&&"listItem"==o.name;){var a=o.getAttribute("listIndent");if(n&&i==a||r&&i>a)return o;o=o.previousSibling}return null}function bm(e,t,n,r){e.ui.componentFactory.add(t,(function(i){var o=e.commands.get(t),a=new vl(i);return a.set({label:n,icon:r,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),a.on("execute",(function(){e.execute(t),e.editing.view.focus()})),a}))}function ym(){var e=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||e?0:cr.call(this)}function _m(e){return function(t,n,r){var i=r.consumable;if(i.test(n.item,"insert")&&i.test(n.item,"attribute:listType")&&i.test(n.item,"attribute:listIndent")){i.consume(n.item,"insert"),i.consume(n.item,"attribute:listType"),i.consume(n.item,"attribute:listIndent");var o=n.item;pm(o,function(e,t){var n=t.mapper,r=t.writer,i="numbered"==e.getAttribute("listType")?"ol":"ul",o=function(e){var t=e.createContainerElement("li");return t.getFillerOffset=ym,t}(r),a=r.createContainerElement(i,null);return r.insert(r.createPositionAt(a,0),o),n.bindElements(e,o),o}(o,r),r,e)}}}function wm(e,t,n){if(n.consumable.consume(t.item,"attribute:listType")){var r=n.mapper.toViewElement(t.item),i=n.writer;i.breakContainer(i.createPositionBefore(r)),i.breakContainer(i.createPositionAfter(r));var o=r.parent,a="numbered"==t.attributeNewValue?"ol":"ul";i.rename(a,o)}}function km(e,t,n){var r=n.mapper.toViewElement(t.item).parent,i=n.writer;mm(i,r,r.nextSibling),mm(i,r.previousSibling,r);var o,a=u(t.item.getChildren());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.consumable.consume(s,"insert")}}catch(e){a.e(e)}finally{a.f()}}function xm(e,t,n){if("listItem"!=t.item.name){for(var r=n.mapper.toViewPosition(t.range.start),i=n.writer,o=[];("ul"==r.parent.name||"ol"==r.parent.name)&&"li"==(r=i.breakContainer(r)).parent.name;){var a=r,s=i.createPositionAt(r.parent,"end");if(!a.isEqual(s)){var c=i.remove(i.createRange(a,s));o.push(c)}r=i.createPositionAfter(r.parent)}if(o.length>0){for(var l=0;l<o.length;l++){var u=r.nodeBefore;if(r=i.insert(r,o[l]).end,l>0){var d=mm(i,u,u.nextSibling);d&&d.parent==u&&r.offset--}}mm(i,r.nodeBefore,r.nodeAfter)}}}function Cm(e,t,n){var r=n.mapper.toViewPosition(t.position),i=r.nodeBefore,o=r.nodeAfter;mm(n.writer,i,o)}function Sm(e,t,n){if(n.consumable.consume(t.viewItem,{name:!0})){var r=n.writer,i=r.createElement("listItem"),o=function(e){for(var t=0,n=e.parent;n;){if(n.is("element","li"))t++;else{var r=n.previousSibling;r&&r.is("element","li")&&t++}n=n.parent}return t}(t.viewItem);r.setAttribute("listIndent",o,i);var a=t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted";if(r.setAttribute("listType",a,i),!n.safeInsert(i,t.modelCursor))return;var s=function(e,t,n){var r,i=n.writer,o=n.schema,a=i.createPositionAfter(e),s=u(t);try{for(s.s();!(r=s.n()).done;){var c=r.value;if("ul"==c.name||"ol"==c.name)a=n.convertItem(c,a).modelCursor;else{var l=n.convertItem(c,i.createPositionAt(e,"end")),d=l.modelRange.start.nodeAfter;d&&d.is("element")&&!o.checkChild(e,d.name)&&(e=l.modelCursor.parent.is("element","listItem")?l.modelCursor.parent:Om(l.modelCursor),a=i.createPositionAfter(e))}}}catch(e){s.e(e)}finally{s.f()}return a}(i,t.viewItem.getChildren(),n);t.modelRange=r.createRange(t.modelCursor,s),n.updateConversionResult(i,t)}}function Tm(e,t,n){if(n.consumable.test(t.viewItem,{name:!0}))for(var r=0,i=Array.from(t.viewItem.getChildren());r<i.length;r++){var o=i[r];!o.is("element","li")&&!Im(o)&&o._remove()}}function Am(e,t,n){if(n.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;var r,i=!1,o=!0,a=u(c(t.viewItem.getChildren()));try{for(a.s();!(r=a.n()).done;){var s=r.value;i&&!Im(s)&&s._remove(),s.is("$text")?(o&&(s._data=s.data.replace(/^\s+/,"")),s.nextSibling&&!Im(s.nextSibling)||(s._data=s.data.replace(/\s+$/,""))):Im(s)&&(i=!0),o=!1}}catch(e){a.e(e)}finally{a.f()}}}function Mm(e){return function(t,n){if(!n.isPhantom){var r=n.modelPosition.nodeBefore;if(r&&r.is("element","listItem")){var i,o=n.mapper.toViewElement(r),a=o.getAncestors().find(Im),s=u(e.createPositionAt(o,0).getWalker());try{for(s.s();!(i=s.n()).done;){var c=i.value;if("elementStart"==c.type&&c.item.is("element","li")){n.viewPosition=c.previousPosition;break}if("elementEnd"==c.type&&c.item==a){n.viewPosition=c.nextPosition;break}}}catch(e){s.e(e)}finally{s.f()}}}}}function Em(e,t){var n,r=l(t,2),i=r[0],o=r[1],a=i.is("documentFragment")?i.getChild(0):i;if(n=o?this.createSelection(o):this.document.selection,a&&a.is("element","listItem")){var s=n.getFirstPosition(),c=null;if(s.parent.is("element","listItem")?c=s.parent:s.nodeBefore&&s.nodeBefore.is("element","listItem")&&(c=s.nodeBefore),c){var u=c.getAttribute("listIndent");if(u>0)for(;a&&a.is("element","listItem");)a._setAttribute("listIndent",a.getAttribute("listIndent")+u),a=a.nextSibling}}}function Om(e){var t,n=new Qo({startPosition:e});do{t=n.next()}while(!t.value.item.is("element","listItem"));return t.value.item}function Pm(e,t,n,r,i,o){var a,s=gm(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:e,foo:"b"}),l=i.mapper,u=i.writer,d=s?s.getAttribute("listIndent"):null;if(s)if(d==e){var f=l.toViewElement(s).parent;a=u.createPositionAfter(f)}else{var h=o.createPositionAt(s,"end");a=l.toViewPosition(h)}else a=n;a=vm(a);for(var p=0,m=c(r.getChildren());p<m.length;p++){var v=m[p];Im(v)&&(a=u.move(u.createRangeOn(v),a).end,mm(u,v,v.nextSibling),mm(u,v.previousSibling,v))}}function Im(e){return e.is("element","ol")||e.is("element","ul")}var Dm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});var n,r=t.data,i=t.editing;t.model.document.registerPostFixer((function(e){return function(e,t){var n,r=e.document.differ.getChanges(),i=new Map,o=!1,a=u(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("insert"==s.type&&"listItem"==s.name)m(s.position);else if("insert"==s.type&&"listItem"!=s.name){if("$text"!=s.name){var c=s.position.nodeAfter;c.hasAttribute("listIndent")&&(t.removeAttribute("listIndent",c),o=!0),c.hasAttribute("listType")&&(t.removeAttribute("listType",c),o=!0),c.hasAttribute("listStyle")&&(t.removeAttribute("listStyle",c),o=!0);var l,d=u(Array.from(e.createRangeIn(c)).filter((function(e){return e.item.is("element","listItem")})));try{for(d.s();!(l=d.n()).done;){m(l.value.previousPosition)}}catch(e){d.e(e)}finally{d.f()}}m(s.position.getShiftedBy(s.length))}else"remove"==s.type&&"listItem"==s.name?m(s.position):("attribute"==s.type&&"listIndent"==s.attributeKey||"attribute"==s.type&&"listType"==s.attributeKey)&&m(s.range.start)}}catch(e){a.e(e)}finally{a.f()}var f,h=u(i.values());try{for(h.s();!(f=h.n()).done;){var p=f.value;v(p),g(p)}}catch(e){h.e(e)}finally{h.f()}return o;function m(e){var t=e.nodeBefore;if(t&&t.is("element","listItem")){var n=t;if(i.has(n))return;for(var r=n.previousSibling;r&&r.is("element","listItem");r=n.previousSibling)if(n=r,i.has(n))return;i.set(t,n)}else{var o=e.nodeAfter;o&&o.is("element","listItem")&&i.set(o,o)}}function v(e){for(var n=0,r=null;e&&e.is("element","listItem");){var i=e.getAttribute("listIndent");if(i>n){var a=void 0;null===r?(r=i-n,a=n):(r>i&&(r=i),a=i-r),t.setAttribute("listIndent",a,e),o=!0}else r=null,n=e.getAttribute("listIndent")+1;e=e.nextSibling}}function g(e){for(var n=[],r=null;e&&e.is("element","listItem");){var i=e.getAttribute("listIndent");if(r&&r.getAttribute("listIndent")>i&&(n=n.slice(0,i+1)),0!=i)if(n[i]){var a=n[i];e.getAttribute("listType")!=a&&(t.setAttribute("listType",a,e),o=!0)}else n[i]=e.getAttribute("listType");r=e,e=e.nextSibling}}}(t.model,e)})),i.mapper.registerViewToModelLength("li",jm),r.mapper.registerViewToModelLength("li",jm),i.mapper.on("modelToViewPosition",Mm(i.view)),i.mapper.on("viewToModelPosition",(n=t.model,function(e,t){var r=t.viewPosition,i=r.parent,o=t.mapper;if("ul"==i.name||"ol"==i.name){if(r.isAtEnd){var a=o.toModelElement(r.nodeBefore),s=o.getModelLength(r.nodeBefore);t.modelPosition=n.createPositionBefore(a).getShiftedBy(s)}else{var c=o.toModelElement(r.nodeAfter);t.modelPosition=n.createPositionBefore(c)}e.stop()}else if("li"==i.name&&r.nodeBefore&&("ul"==r.nodeBefore.name||"ol"==r.nodeBefore.name)){for(var l=o.toModelElement(i),u=1,d=r.nodeBefore;d&&Im(d);)u+=o.getModelLength(d),d=d.previousSibling;t.modelPosition=n.createPositionBefore(l).getShiftedBy(u),e.stop()}})),r.mapper.on("modelToViewPosition",Mm(i.view)),t.conversion.for("editingDowncast").add((function(e){e.on("insert",xm,{priority:"high"}),e.on("insert:listItem",_m(t.model)),e.on("attribute:listType:listItem",wm,{priority:"high"}),e.on("attribute:listType:listItem",km,{priority:"low"}),e.on("attribute:listIndent:listItem",function(e){return function(t,n,r){if(r.consumable.consume(n.item,"attribute:listIndent")){var i=r.mapper.toViewElement(n.item),o=r.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));var a=i.parent,s=a.previousSibling,c=o.createRangeOn(a);o.remove(c),s&&s.nextSibling&&mm(o,s,s.nextSibling),Pm(n.attributeOldValue+1,n.range.start,c.start,i,r,e),pm(n.item,i,r,e);var l,d=u(n.item.getChildren());try{for(d.s();!(l=d.n()).done;){var f=l.value;r.consumable.consume(f,"insert")}}catch(e){d.e(e)}finally{d.f()}}}}(t.model)),e.on("remove:listItem",function(e){return function(t,n,r){var i=r.mapper.toViewPosition(n.position).getLastMatchingPosition((function(e){return!e.item.is("element","li")})).nodeAfter,o=r.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));var a=i.parent,s=a.previousSibling,c=o.createRangeOn(a),l=o.remove(c);s&&s.nextSibling&&mm(o,s,s.nextSibling),Pm(r.mapper.toModelElement(i).getAttribute("listIndent")+1,n.position,c.start,i,r,e);var d,f=u(o.createRangeIn(l).getItems());try{for(f.s();!(d=f.n()).done;){var h=d.value;r.mapper.unbindViewElement(h)}}catch(e){f.e(e)}finally{f.f()}t.stop()}}(t.model)),e.on("remove",Cm,{priority:"low"})})),t.conversion.for("dataDowncast").add((function(e){e.on("insert",xm,{priority:"high"}),e.on("insert:listItem",_m(t.model))})),t.conversion.for("upcast").add((function(e){e.on("element:ul",Tm,{priority:"high"}),e.on("element:ol",Tm,{priority:"high"}),e.on("element:li",Am,{priority:"high"}),e.on("element:li",Sm)})),t.model.on("insertContent",Em,{priority:"high"}),t.commands.add("numberedList",new um(t,"numbered")),t.commands.add("bulletedList",new um(t,"bulleted")),t.commands.add("indentList",new hm(t,"forward")),t.commands.add("outdentList",new hm(t,"backward"));var o=i.view.document;this.listenTo(o,"enter",(function(t,n){var r=e.editor.model.document,i=r.selection.getLastPosition().parent;r.selection.isCollapsed&&"listItem"==i.name&&i.isEmpty&&(e.editor.execute("outdentList"),n.preventDefault(),t.stop())})),this.listenTo(o,"delete",(function(t,n){if("backward"===n.direction){var r=e.editor.model.document.selection;if(r.isCollapsed){var i=r.getFirstPosition();if(i.isAtStart){var o=i.parent;"listItem"===o.name&&(o.previousSibling&&"listItem"===o.previousSibling.name||(e.editor.execute("outdentList"),n.preventDefault(),t.stop()))}}}}),{priority:"high"});var a=function(t){return function(n,r){e.editor.commands.get(t).isEnabled&&(e.editor.execute(t),r())}};t.keystrokes.set("Tab",a("indentList")),t.keystrokes.set("Shift+Tab",a("outdentList"))}},{key:"afterInit",value:function(){var e=this.editor.commands,t=e.get("indent"),n=e.get("outdent");t&&t.registerChildCommand(e.get("indentList")),n&&n.registerChildCommand(e.get("outdentList"))}}],[{key:"pluginName",get:function(){return"ListEditing"}},{key:"requires",get:function(){return[ch]}}]),n}(Dl);function jm(e){var t,n=1,r=u(e.getChildren());try{for(r.s();!(t=r.n()).done;){var i=t.value;if("ul"==i.name||"ol"==i.name){var o,a=u(i.getChildren());try{for(a.s();!(o=a.n()).done;){n+=jm(o.value)}}catch(e){a.e(e)}finally{a.f()}}}}catch(e){r.e(e)}finally{r.f()}return n}var Nm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor.t;bm(this.editor,"numberedList",e("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),bm(this.editor,"bulletedList",e("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>')}}]),n}(Dl);function Rm(e,t){return function(e){e.on("attribute:url:media",n)};function n(n,r,i){if(i.consumable.consume(r.item,n.name)){var o=r.attributeNewValue,a=i.writer,s=i.mapper.toViewElement(r.item),l=c(s.getChildren()).find((function(e){return e.getCustomProperty("media-content")}));a.remove(l);var u=e.getMediaViewElement(a,o,t);a.insert(a.createPositionAt(s,0),u)}}}function Lm(e,t,n,r){var i=e.createContainerElement("figure",{class:"media"});return e.insert(e.createPositionAt(i,0),t.getMediaViewElement(e,n,r)),i}function zm(e){var t=e.getSelectedElement();return t&&t.is("element","media")?t:null}function Fm(e,t,n){e.change((function(r){var i=r.createElement("media",{url:t});e.insertContent(i,n),r.setSelection(i,"on")}))}var Bm=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema,r=t.getFirstPosition(),i=zm(t),o=r.parent;o!=o.root&&(o=o.parent),this.value=i?i.getAttribute("url"):null,this.isEnabled=n.checkChild(o,"media")}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection,r=zm(n);if(r)t.change((function(t){t.setAttribute("url",e,r)}));else{var i=Tu(n,t);Fm(t,e,i)}}}]),n}(Nl),$m=function(){function e(t,n){h(this,e);var r=n.providers,i=n.extraProviders||[],o=new Set(n.removeProviders),a=r.concat(i).filter((function(e){var t=e.name;return t?!o.has(t):(console.warn(Object(Gt.a)("media-embed-no-provider-name: The configured media provider has no name and cannot be used."),{provider:e}),!1)}));this.locale=t,this.providerDefinitions=a}return m(e,[{key:"hasMedia",value:function(e){return!!this._getMedia(e)}},{key:"getMediaViewElement",value:function(e,t,n){return this._getMedia(t).getViewElement(e,n)}},{key:"_getMedia",value:function(e){if(!e)return new Vm(this.locale);e=e.trim();var t,n=u(this.providerDefinitions);try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.html,o=r.url;Array.isArray(o)||(o=[o]);var a,s=u(o);try{for(s.s();!(a=s.n()).done;){var c=a.value,l=this._getUrlMatches(e,c);if(l)return new Vm(this.locale,e,l,i)}}catch(e){s.e(e)}finally{s.f()}}}catch(e){n.e(e)}finally{n.f()}return null}},{key:"_getUrlMatches",value:function(e,t){var n=e.match(t);if(n)return n;var r=e.replace(/^https?:\/\//,"");return(n=r.match(t))||((n=(r=r.replace(/^www\./,"")).match(t))||null)}}]),e}(),Vm=function(){function e(t,n,r,i){h(this,e),this.url=this._getValidUrl(n),this._t=t.t,this._match=r,this._previewRenderer=i}return m(e,[{key:"getViewElement",value:function(e,t){var n,r={};if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(r["data-oembed-url"]=this.url),t.renderForEditingView&&(r.class="ck-media__wrapper");var i=this._getPreviewHtml(t);n=e.createRawElement("div",r,(function(e){e.innerHTML=i}))}else this.url&&(r.url=this.url),n=e.createEmptyElement("oembed",r);return e.setCustomProperty("media-content",!0,n),n}},{key:"_getPreviewHtml",value:function(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}},{key:"_getPlaceholderHtml",value:function(){var e=new ml,t=new pl;return e.text=this._t("Open media in new tab"),t.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',t.viewBox="0 0 64 42",new Mc({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},e]}]}).render().outerHTML}},{key:"_getValidUrl",value:function(e){return e?e.match(/^https?/)?e:"https://"+e:null}}]),e}();n(98);var Hm=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("mediaEmbed",{providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>')}},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>')}},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>')}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>')}},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:/^google\.com\/maps/},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),r.registry=new $m(e.locale,e.config.get("mediaEmbed")),r}return m(n,null,[{key:"pluginName",get:function(){return"MediaEmbedEditing"}}]),m(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,r=e.conversion,i=e.config.get("mediaEmbed.previewsInData"),o=this.registry;e.commands.add("mediaEmbed",new Bm(e)),t.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),r.for("dataDowncast").elementToElement({model:"media",view:function(e,t){var n=t.writer,r=e.getAttribute("url");return Lm(n,o,r,{renderMediaPreview:r&&i})}}),r.for("dataDowncast").add(Rm(o,{renderMediaPreview:i})),r.for("editingDowncast").elementToElement({model:"media",view:function(e,t){var r=t.writer,i=e.getAttribute("url");return function(e,t,n){return t.setCustomProperty("media",!0,e),ku(e,t,{label:n})}(Lm(r,o,i,{renderForEditingView:!0}),r,n("media widget"))}}),r.for("editingDowncast").add(Rm(o,{renderForEditingView:!0})),r.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:function(e,t){var n=t.writer,r=e.getAttribute("url");if(o.hasMedia(r))return n.createElement("media",{url:r})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:function(e,t){var n=t.writer,r=e.getAttribute("data-oembed-url");if(o.hasMedia(r))return n.createElement("media",{url:r})}})}}]),n}(Dl),Um=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/,qm=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e))._timeoutId=null,r._positionToInsert=null,r}return m(n,null,[{key:"requires",get:function(){return[sd,Rf]}},{key:"pluginName",get:function(){return"AutoMediaEmbed"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document;this.listenTo(t.plugins.get(sd),"inputTransformation",(function(){var t=n.selection.getFirstRange(),r=Gs.fromPosition(t.start);r.stickiness="toPrevious";var i=Gs.fromPosition(t.end);i.stickiness="toNext",n.once("change:data",(function(){e._embedMediaBetweenPositions(r,i),r.detach(),i.detach()}),{priority:"high"})})),t.commands.get("undo").on("execute",(function(){e._timeoutId&&(Ii.window.clearTimeout(e._timeoutId),e._positionToInsert.detach(),e._timeoutId=null,e._positionToInsert=null)}),{priority:"high"})}},{key:"_embedMediaBetweenPositions",value:function(e,t){var n,r=this,i=this.editor,o=i.plugins.get(Hm).registry,a=new ha(e,t),s=a.getWalker({ignoreElementEnd:!0}),c="",l=u(s);try{for(l.s();!(n=l.n()).done;){var d=n.value;d.item.is("$textProxy")&&(c+=d.item.data)}}catch(e){l.e(e)}finally{l.f()}(c=c.trim()).match(Um)&&o.hasMedia(c)&&i.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Gs.fromPosition(e),this._timeoutId=Ii.window.setTimeout((function(){i.model.change((function(e){var t;r._timeoutId=null,e.remove(a),a.detach(),"$graveyard"!==r._positionToInsert.root.rootName&&(t=r._positionToInsert),Fm(i.model,c,t),r._positionToInsert.detach(),r._positionToInsert=null}))}),100)):a.detach()}}]),n}(Dl);n(100);var Wm=function(e){v(n,e);var t=g(n);function n(e,r){var i;h(this,n),i=t.call(this,r);var o=r.t;return i.focusTracker=new yc,i.keystrokes=new dc,i.urlInputView=i._createUrlInput(),i.saveButtonView=i._createButton(o("Save"),Mh,"ck-button-save"),i.saveButtonView.type="submit",i.cancelButtonView=i._createButton(o("Cancel"),Eh,"ck-button-cancel","cancel"),i._focusables=new Ac,i._focusCycler=new rl({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i._validators=e,i.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form"],tabindex:"-1"},children:[i.urlInputView,i.saveButtonView,i.cancelButtonView]}),i}return m(n,[{key:"render",value:function(){var e=this;s(C(n.prototype),"render",this).call(this),Ah({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);var t=function(e){return e.stopPropagation()};this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t),this.listenTo(this.urlInputView.element,"selectstart",(function(e,t){t.stopPropagation()}),{priority:"high"})}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"isValid",value:function(){this.resetFormStatus();var e,t=u(this._validators);try{for(t.s();!(e=t.n()).done;){var n=(0,e.value)(this);if(n)return this.urlInputView.errorText=n,!1}}catch(e){t.e(e)}finally{t.f()}return!0}},{key:"resetFormStatus",value:function(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}},{key:"_createUrlInput",value:function(){var e=this,t=this.locale.t,n=new Ch(this.locale,Th),r=n.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),n.label=t("Media URL"),n.infoText=this._urlInputViewInfoDefault,r.placeholder="https://example.com",r.on("input",(function(){n.infoText=r.element.value?e._urlInputViewInfoTip:e._urlInputViewInfoDefault})),n}},{key:"_createButton",value:function(e,t,n,r){var i=new vl(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"url",get:function(){return this.urlInputView.fieldView.element.value.trim()},set:function(e){this.urlInputView.fieldView.element.value=e.trim()}}]),n}(Yc),Ym=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.commands.get("mediaEmbed"),r=t.plugins.get(Hm).registry;t.ui.componentFactory.add("mediaEmbed",(function(i){var o=Cl(i),a=new Wm(function(e,t){return[function(t){if(!t.url.length)return e("The URL must not be empty.")},function(n){if(!t.hasMedia(n.url))return e("This media URL is not supported.")}]}(t.t,r),t.locale);return e._setUpDropdown(o,a,n,t),e._setUpForm(o,a,n),o}))}},{key:"_setUpDropdown",value:function(e,t,n){var r=this.editor,i=r.t,o=e.buttonView;function a(){r.editing.view.focus(),e.isOpen=!1}e.bind("isEnabled").to(n),e.panelView.children.add(t),o.set({label:i("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0}),o.on("open",(function(){t.url=n.value||"",t.urlInputView.fieldView.select(),t.focus()}),{priority:"low"}),e.on("submit",(function(){t.isValid()&&(r.execute("mediaEmbed",t.url),a())})),e.on("change:isOpen",(function(){return t.resetFormStatus()})),e.on("cancel",(function(){return a()}))}},{key:"_setUpForm",value:function(e,t,n){t.delegate("submit","cancel").to(e),t.urlInputView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e})),t.saveButtonView.bind("isEnabled").to(n)}}],[{key:"requires",get:function(){return[Hm]}},{key:"pluginName",get:function(){return"MediaEmbedUI"}}]),n}(Dl);function Gm(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;t>i?r.setAttribute(e,t,n):r.removeAttribute(e,n)}function Km(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.createElement("tableCell",n);return e.insertElement("paragraph",r),e.insert(r,t),r}function Qm(e,t){var n=t.parent.parent,r=parseInt(n.getAttribute("headingColumns")||0),i=e.getCellLocation(t).column;return!!r&&i<r}function Jm(e){return function(t){t.on("element:"+e,(function(e,t,n){if(t.modelRange){var r=t.modelRange.start.nodeAfter;if(!r.childCount){var i=n.writer.createPositionAt(r,0);n.writer.insertElement("paragraph",i)}}}),{priority:"low"})}}function Xm(e){for(var t=0,n=0,r=Array.from(e.getChildren()).filter((function(e){return"th"===e.name||"td"===e.name}));n<r.length&&"th"===r[n].name;){var i=r[n];t+=parseInt(i.getAttribute("colspan")||1),n++}return t}n(102);var Zm=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,e),this._table=t,this._startRow=void 0!==n.row?n.row:n.startRow||0,this._endRow=void 0!==n.row?n.row:n.endRow,this._startColumn=void 0!==n.column?n.column:n.startColumn||0,this._endColumn=void 0!==n.column?n.column:n.endColumn,this._includeAllSlots=!!n.includeAllSlots,this._skipRows=new Set,this._row=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}return m(e,[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(){var e=this._table.getChild(this._row);if(!e||this._isOverEndRow())return{done:!0};if(this._isOverEndColumn())return this._advanceToNextRow();var t=null,n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(n.cell,n.row,n.column));else{var r=e.getChild(this._cellIndex);if(!r)return this._advanceToNextRow();var i=parseInt(r.getAttribute("colspan")||1),o=parseInt(r.getAttribute("rowspan")||1);(i>1||o>1)&&this._recordSpans(r,o,i),this._shouldSkipSlot()||(t=this._formatOutValue(r)),this._nextCellAtColumn=this._column+i}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}},{key:"skipRow",value:function(e){this._skipRows.add(e)}},{key:"_advanceToNextRow",value:function(){return this._row++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}},{key:"_isOverEndRow",value:function(){return void 0!==this._endRow&&this._row>this._endRow}},{key:"_isOverEndColumn",value:function(){return void 0!==this._endColumn&&this._column>this._endColumn}},{key:"_formatOutValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._row,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._column;return{done:!1,value:new ev(this,e,t,n)}}},{key:"_shouldSkipSlot",value:function(){var e=this._skipRows.has(this._row),t=this._row<this._startRow,n=this._column<this._startColumn,r=void 0!==this._endColumn&&this._column>this._endColumn;return e||t||n||r}},{key:"_getSpanned",value:function(){var e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}},{key:"_recordSpans",value:function(e,t,n){for(var r={cell:e,row:this._row,column:this._column},i=this._row;i<this._row+t;i++)for(var o=this._column;o<this._column+n;o++)i==this._row&&o==this._column||this._markSpannedCell(i,o,r)}},{key:"_markSpannedCell",value:function(e,t,n){this._spannedCells.has(e)||this._spannedCells.set(e,new Map),this._spannedCells.get(e).set(t,n)}}]),e}(),ev=function(){function e(t,n,r,i){h(this,e),this.cell=n,this.row=t._row,this.column=t._column,this.cellAnchorRow=r,this.cellAnchorColumn=i,this._cellIndex=t._cellIndex,this._table=t._table}return m(e,[{key:"getPositionBefore",value:function(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}},{key:"isAnchor",get:function(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}},{key:"cellWidth",get:function(){return parseInt(this.cell.getAttribute("colspan")||1)}},{key:"cellHeight",get:function(){return parseInt(this.cell.getAttribute("rowspan")||1)}}]),e}();function tv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t.on("insert:table",(function(t,n,r){var i=n.item;if(r.consumable.consume(i,"insert")){r.consumable.consume(i,"attribute:headingRows:table"),r.consumable.consume(i,"attribute:headingColumns:table");var o,a,s,c=e&&e.asWidget,l=r.writer.createContainerElement("figure",{class:"table"}),d=r.writer.createContainerElement("table");r.writer.insert(r.writer.createPositionAt(l,0),d),c&&(a=l,(s=r.writer).setCustomProperty("table",!0,a),o=ku(a,s,{hasSelectionHandle:!0}));var f,h=new Zm(i),p={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0},m=new Map,v=u(h);try{for(v.s();!(f=v.n()).done;){var g=f.value,b=g.row,y=g.cell,_=i.getChild(b),w=m.get(b)||iv(d,_,b,p,r);m.set(b,w),r.consumable.consume(y,"insert"),rv(g,p,r.writer.createPositionAt(w,"end"),r,e)}}catch(e){v.e(e)}finally{v.f()}var k,x=u(i.getChildren());try{for(x.s();!(k=x.n()).done;){var C=k.value,S=C.index;m.has(S)||m.set(S,iv(d,C,S,p,r))}}catch(e){x.e(e)}finally{x.f()}var T=r.mapper.toViewPosition(n.range.start);r.mapper.bindElements(i,c?o:l),r.writer.insert(T,c?o:l)}}))}}function nv(e,t,n){var r=e.cell,i=ov(e,t),o=n.mapper.toViewElement(r);o&&o.name!==i&&function(e,t,n){var r=n.writer,i=n.mapper.toViewElement(e),o=Su(r.createEditableElement(t,i.getAttributes()),r);xu(o,r,(function(e,t,n){return n.addClass(cv(t.classes),e)}),(function(e,t,n){return n.removeClass(cv(t.classes),e)})),r.insert(r.createPositionAfter(i),o),r.move(r.createRangeIn(i),r.createPositionAt(o,0)),r.remove(r.createRangeOn(i)),n.mapper.unbindViewElement(i),n.mapper.bindElements(e,o)}(r,i,n)}function rv(e,t,n,r,i){var o=i&&i.asWidget,a=ov(e,t),s=o?Su(r.writer.createEditableElement(a),r.writer):r.writer.createContainerElement(a);o&&xu(s,r.writer,(function(e,t,n){return n.addClass(cv(t.classes),e)}),(function(e,t,n){return n.removeClass(cv(t.classes),e)}));var l=e.cell,u=l.getChild(0),d=1===l.childCount&&"paragraph"===u.name;if(r.writer.insert(n,s),d&&!c(u.getAttributeKeys()).length){var f=l.getChild(0),h=r.writer.createPositionAt(s,"end");if(r.consumable.consume(f,"insert"),o){var p=r.writer.createContainerElement("span",{style:"display:inline-block"});r.mapper.bindElements(f,p),r.writer.insert(h,p),r.mapper.bindElements(l,s)}else r.mapper.bindElements(l,s),r.mapper.bindElements(f,s)}else r.mapper.bindElements(l,s)}function iv(e,t,n,r,i){i.consumable.consume(t,"insert");var o=t.isEmpty?i.writer.createEmptyElement("tr"):i.writer.createContainerElement("tr");i.mapper.bindElements(t,o);var a=r.headingRows,s=function(e,t,n){return av(e,t)||function(e,t,n){var r=n.writer.createContainerElement(e),i=n.writer.createPositionAt(t,"tbody"==e?"end":0);return n.writer.insert(i,r),r}(e,t,n)}(function(e,t){return e<t.headingRows?"thead":"tbody"}(n,r),e,i),c=a>0&&n>=a?n-a:n,l=i.writer.createPositionAt(s,c);return i.writer.insert(l,o),o}function ov(e,t){var n=e.row,r=e.column,i=t.headingColumns,o=t.headingRows;return o&&o>n||i&&i>r?"th":"td"}function av(e,t){var n,r=u(t.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.name==e)return i}}catch(e){r.e(e)}finally{r.f()}}function sv(e,t,n){var r=av(e,t);r&&0===r.childCount&&n.writer.remove(n.writer.createRangeOn(r))}function cv(e){return Array.isArray(e)?e:[e]}var lv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema,r=function(e){var t=e.parent;return t===t.root?t:t.parent}(t.getFirstPosition());this.isEnabled=n.checkChild(r,"table")}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document.selection,r=this.editor.plugins.get("TableUtils"),i=Tu(n,t);t.change((function(n){var o=r.createTable(n,e);t.insertContent(o,i),n.setSelection(n.createPositionAt(o.getNodeByPath([0,0,0]),0))}))}}]),n}(Nl);function uv(e){var t,n=[],r=u(vv(e.getRanges()));try{for(r.s();!(t=r.n()).done;){var i=t.value.getContainedElement();i&&i.is("element","tableCell")&&n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}function dv(e){var t,n=[],r=u(e.getRanges());try{for(r.s();!(t=r.n()).done;){var i=t.value.start.findAncestor("tableCell");i&&n.push(i)}}catch(e){r.e(e)}finally{r.f()}return n}function fv(e){var t=uv(e);return t.length?t:dv(e)}function hv(e){return gv(e.map((function(e){return e.parent.index})))}function pv(e){var t=e[0].findAncestor("table");return gv(c(new Zm(t)).filter((function(t){return e.includes(t.cell)})).map((function(e){return e.column})))}function mv(e,t){if(e.length<2||!function(e){var t=e[0].findAncestor("table");if(!yv(hv(e),parseInt(t.getAttribute("headingRows")||0)))return!1;var n=parseInt(t.getAttribute("headingColumns")||0);return yv(pv(e),n)}(e))return!1;var n,r=new Set,i=new Set,o=0,a=u(e);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=t.getCellLocation(s),d=l.row,f=l.column,h=parseInt(s.getAttribute("rowspan")||1),p=parseInt(s.getAttribute("colspan")||1);r.add(d),i.add(f),h>1&&r.add(d+h-1),p>1&&i.add(f+p-1),o+=h*p}}catch(e){a.e(e)}finally{a.f()}return function(e,t){var n=Array.from(e.values()),r=Array.from(t.values());return(Math.max.apply(Math,c(n))-Math.min.apply(Math,c(n))+1)*(Math.max.apply(Math,c(r))-Math.min.apply(Math,c(r))+1)}(r,i)==o}function vv(e){return Array.from(e).sort(bv)}function gv(e){var t=e.sort((function(e,t){return e-t}));return{first:t[0],last:t[t.length-1]}}function bv(e,t){var n=e.start,r=t.start;return n.isBefore(r)?-1:1}function yv(e,t){return e.first<t==e.last<t}var _v=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,n),(r=t.call(this,e)).order=i.order||"below",r}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!e}},{key:"execute",value:function(){var e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),r="above"===this.order,i=fv(t),o=hv(i),a=r?o.first:o.last,s=i[0].findAncestor("table");n.insertRows(s,{at:r?a:a+1,copyStructureFromAbove:!r})}}]),n}(Nl),wv=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,n),(r=t.call(this,e)).order=i.order||"right",r}return m(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!e}},{key:"execute",value:function(){var e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),r="left"===this.order,i=fv(t),o=pv(i),a=r?o.first:o.last,s=i[0].findAncestor("table");n.insertColumns(s,{columns:1,at:r?a:a+1})}}]),n}(Nl),kv=function(e){v(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,n),(r=t.call(this,e)).direction=i.direction||"horizontally",r}return m(n,[{key:"refresh",value:function(){var e=fv(this.editor.model.document.selection);this.isEnabled=1===e.length}},{key:"execute",value:function(){var e=fv(this.editor.model.document.selection)[0],t="horizontally"===this.direction,n=this.editor.plugins.get("TableUtils");t?n.splitCellHorizontally(e,2):n.splitCellVertically(e,2)}}]),n}(Nl);function xv(e,t,n){for(var r=t.startRow,i=t.startColumn,o=t.endRow,a=t.endColumn,s=n.createElement("table"),l=o-r+1,d=0;d<l;d++)n.insertElement("tableRow",s,"end");var f,h=u(c(new Zm(e,{startRow:r,endRow:o,startColumn:i,endColumn:a,includeAllSlots:!0})));try{for(h.s();!(f=h.n()).done;){var p=f.value,m=p.row,v=p.column,g=p.cell,b=p.isAnchor,y=p.cellAnchorRow,_=p.cellAnchorColumn,w=m-r,k=s.getChild(w);if(b){var x=n.cloneElement(g);n.append(x,k),Mv(x,m,v,o,a,n)}else(y<r||_<i)&&Km(n,n.createPositionAt(k,"end"))}}catch(e){h.e(e)}finally{h.f()}return function(e,t,n,r,i){var o=parseInt(t.getAttribute("headingRows")||0);o>0&&Gm("headingRows",o-n,e,i,0);var a=parseInt(t.getAttribute("headingColumns")||0);a>0&&Gm("headingColumns",a-r,e,i,0)}(s,e,r,i,n),s}function Cv(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[],o=new Zm(e,{startRow:r,endRow:t-1}),a=u(o);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=s.row,l=s.cellHeight,d=c+l-1;c<t&&t<=d&&i.push(s)}}catch(e){a.e(e)}finally{a.f()}return i}function Sv(e,t,n){var r=e.parent,i=r.parent,o=r.index,a=t-o,s={},l=parseInt(e.getAttribute("rowspan"))-a;l>1&&(s.rowspan=l);var d=parseInt(e.getAttribute("colspan")||1);d>1&&(s.colspan=d);var f,h,p=o+a,m=null,v=u(c(new Zm(i,{startRow:o,endRow:p,includeAllSlots:!0})));try{for(v.s();!(h=v.n()).done;){var g=h.value,b=g.row,y=g.column;g.cell===e&&void 0===f&&(f=y),void 0!==f&&f===y&&b===p&&(m=Km(n,g.getPositionBefore(),s))}}catch(e){v.e(e)}finally{v.f()}return Gm("rowspan",a,e,n),m}function Tv(e,t){var n,r=[],i=u(new Zm(e));try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.column,s=o.cellWidth;a<t&&t<=a+s-1&&r.push(o)}}catch(e){i.e(e)}finally{i.f()}return r}function Av(e,t,n,r){var i=n-t,o={},a=parseInt(e.getAttribute("colspan"))-i;a>1&&(o.colspan=a);var s=parseInt(e.getAttribute("rowspan")||1);s>1&&(o.rowspan=s);var c=Km(r,r.createPositionAfter(e),o);return Gm("colspan",i,e,r),c}function Mv(e,t,n,r,i,o){var a=parseInt(e.getAttribute("colspan")||1),s=parseInt(e.getAttribute("rowspan")||1);n+a-1>i&&Gm("colspan",i-n+1,e,o,1),t+s-1>r&&Gm("rowspan",r-t+1,e,o,1)}function Ev(e,t){var n,r=t.getColumns(e),i=new Array(r).fill(0),o=u(new Zm(e));try{for(o.s();!(n=o.n()).done;){i[n.value.column]++}}catch(e){o.e(e)}finally{o.f()}var a=i.reduce((function(e,t,n){return t?e:[].concat(c(e),[n])}),[]);if(a.length>0){var s=a[a.length-1];return t.removeColumns(e,{at:s}),!0}return!1}function Ov(e,t){for(var n=[],r=0;r<e.childCount;r++)e.getChild(r).isEmpty&&n.push(r);if(n.length>0){var i=n[n.length-1];return t.removeRows(e,{at:i}),!0}return!1}function Pv(e,t){Ev(e,t)||Ov(e,t)}function Iv(e,t){var n=Array.from(new Zm(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(n.every((function(e){return 1===e.cellHeight})))return t.lastRow;var r=n[0].cellHeight-1;return t.lastRow+r}function Dv(e,t){var n=Array.from(new Zm(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(n.every((function(e){return 1===e.cellWidth})))return t.lastColumn;var r=n[0].cellWidth-1;return t.lastColumn+r}var jv=function(e){v(n,e);var t=g(n);function n(e,r){var i;return h(this,n),(i=t.call(this,e)).direction=r.direction,i.isHorizontal="right"==i.direction||"left"==i.direction,i}return m(n,[{key:"refresh",value:function(){var e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=dv(t.document.selection)[0],r=this.value,i=this.direction;t.change((function(t){var o="right"==i||"down"==i,a=o?n:r,s=o?r:n,c=s.parent;!function(e,t,n){Nv(e)||(Nv(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}(s,a,t);var l=e.isHorizontal?"colspan":"rowspan",u=parseInt(n.getAttribute(l)||1),d=parseInt(r.getAttribute(l)||1);t.setAttribute(l,u+d,a),t.setSelection(t.createRangeIn(a));var f=e.editor.plugins.get("TableUtils");Pv(c.findAncestor("table"),f)}))}},{key:"_getMergeableCell",value:function(){var e=dv(this.editor.model.document.selection)[0];if(e){var t=this.editor.plugins.get("TableUtils"),n=this.isHorizontal?function(e,t,n){var r=e.parent.parent,i="right"==t?e.nextSibling:e.previousSibling,o=(r.getAttribute("headingColumns")||0)>0;if(i){var a="right"==t?e:i,s="right"==t?i:e,c=n.getCellLocation(a).column,l=n.getCellLocation(s).column,u=parseInt(a.getAttribute("colspan")||1),d=Qm(n,a),f=Qm(n,s);if(!o||d==f)return c+u===l?i:void 0}}(e,this.direction,t):function(e,t){var n=e.parent,r=n.parent,i=r.getChildIndex(n);if(!("down"==t&&i===r.childCount-1||"up"==t&&0===i)){var o=parseInt(e.getAttribute("rowspan")||1),a=r.getAttribute("headingRows")||0;if(!a||!("down"==t&&i+o===a)&&!("up"==t&&i===a)){var s=parseInt(e.getAttribute("rowspan")||1),l="down"==t?i+s:i,u=c(new Zm(r,{endRow:l})),d=u.find((function(t){return t.cell===e})).column,f=u.find((function(e){var n=e.row,r=e.cellHeight;return e.column===d&&("down"==t?n===l:l===n+r)}));return f&&f.cell}}}(e,this.direction);if(n){var r=this.isHorizontal?"rowspan":"colspan",i=parseInt(e.getAttribute(r)||1);return parseInt(n.getAttribute(r)||1)===i?n:void 0}}}}]),n}(Nl);function Nv(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}var Rv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=fv(this.editor.model.document.selection),t=e[0];if(t){var n=t.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getRows(n)-1,i=hv(e),o=0===i.first&&i.last===r;this.isEnabled=!o}else this.isEnabled=!1}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=fv(t.document.selection),r=hv(n),i=n[0],o=i.findAncestor("table"),a=this.editor.plugins.get("TableUtils").getCellLocation(i).column;t.change((function(t){var n=r.last-r.first+1;e.editor.plugins.get("TableUtils").removeRows(o,{at:r.first,rows:n});var i=function(e,t,n){var r,i=e.getChild(t)||e.getChild(e.childCount-1),o=i.getChild(0),a=0,s=u(i.getChildren());try{for(s.s();!(r=s.n()).done;){var c=r.value;if(a>n)return o;o=c,a+=parseInt(c.getAttribute("colspan")||1)}}catch(e){s.e(e)}finally{s.f()}return o}(o,r.first,a);t.setSelection(t.createPositionAt(i,0))}))}}]),n}(Nl),Lv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=fv(this.editor.model.document.selection),t=e[0];if(t){var n=t.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getColumns(n),i=pv(e),o=i.first,a=i.last;this.isEnabled=a-o<r-1}else this.isEnabled=!1}},{key:"execute",value:function(){var e=this,t=l(function(e){var t=fv(e),n=t[0],r=t.pop(),i=[n,r];return n.isBefore(r)?i:i.reverse()}(this.editor.model.document.selection),2),n=t[0],r=t[1],i=n.parent.parent,o=c(new Zm(i)),a={first:o.find((function(e){return e.cell===n})).column,last:o.find((function(e){return e.cell===r})).column},s=function(e,t,n,r){return parseInt(n.getAttribute("colspan")||1)>1?n:t.previousSibling||n.nextSibling?n.nextSibling||t.previousSibling:r.first?e.reverse().find((function(e){return e.column<r.first})).cell:e.reverse().find((function(e){return e.column>r.last})).cell}(o,n,r,a);this.editor.model.change((function(t){var n=a.last-a.first+1;e.editor.plugins.get("TableUtils").removeColumns(i,{at:a.first,columns:n}),t.setSelection(t.createPositionAt(s,0))}))}}]),n}(Nl),zv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=this,t=fv(this.editor.model.document.selection),n=t.length>0;this.isEnabled=n,this.value=n&&t.every((function(t){return e._isInHeading(t,t.parent.parent)}))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.forceValue!==this.value){var t=this.editor.model,n=fv(t.document.selection),r=n[0].findAncestor("table"),i=hv(n),o=i.first,a=i.last,s=this.value?o:a+1,c=r.getAttribute("headingRows")||0;t.change((function(e){if(s){var t,n=u(Cv(r,s,s>c?c:0));try{for(n.s();!(t=n.n()).done;){Sv(t.value.cell,s,e)}}catch(e){n.e(e)}finally{n.f()}}Gm("headingRows",s,r,e,0)}))}}},{key:"_isInHeading",value:function(e,t){var n=parseInt(t.getAttribute("headingRows")||0);return!!n&&e.parent.index<n}}]),n}(Nl),Fv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=fv(this.editor.model.document.selection),t=this.editor.plugins.get("TableUtils"),n=e.length>0;this.isEnabled=n,this.value=n&&e.every((function(e){return Qm(t,e)}))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.forceValue!==this.value){var t=this.editor.model,n=fv(t.document.selection),r=n[0].findAncestor("table"),i=pv(n),o=i.first,a=i.last,s=this.value?o:a+1;t.change((function(e){if(s){var t,n=u(Tv(r,s));try{for(n.s();!(t=n.n()).done;){var i=t.value;Av(i.cell,i.column,s,e)}}catch(e){n.e(e)}finally{n.f()}}Gm("headingColumns",s,r,e,0)}))}}}]),n}(Nl),Bv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"getCellLocation",value:function(e){var t,n=e.parent,r=n.parent,i=r.getChildIndex(n),o=u(new Zm(r,{row:i}));try{for(o.s();!(t=o.n()).done;){var a=t.value,s=a.cell,c=a.row,l=a.column;if(s===e)return{row:c,column:l}}}catch(e){o.e(e)}finally{o.f()}}},{key:"createTable",value:function(e,t){var n=e.createElement("table");return $v(e,n,0,parseInt(t.rows)||2,parseInt(t.columns)||2),t.headingRows&&Gm("headingRows",t.headingRows,n,e,0),t.headingColumns&&Gm("headingColumns",t.headingColumns,n,e,0),n}},{key:"insertRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.editor.model,r=t.at||0,i=t.rows||1,o=void 0!==t.copyStructureFromAbove,a=t.copyStructureFromAbove?r-1:r,s=this.getRows(e),c=this.getColumns(e);n.change((function(t){var n=e.getAttribute("headingRows")||0;if(n>r&&Gm("headingRows",n+i,e,t,0),o||0!==r&&r!==s){var l,d=o?Math.max(r,a):r,f=new Zm(e,{endRow:d}),h=new Array(c).fill(1),p=u(f);try{for(p.s();!(l=p.n()).done;){var m=l.value,v=m.row,g=m.column,b=m.cellHeight,y=m.cellWidth,_=m.cell,w=v+b-1,k=v<=a&&a<=w;v<r&&r<=w?(t.setAttribute("rowspan",b+i,_),h[g]=-y):o&&k&&(h[g]=y)}}catch(e){p.e(e)}finally{p.f()}for(var x=0;x<i;x++){var C=t.createElement("tableRow");t.insert(C,e,r);for(var S=0;S<h.length;S++){var T=h[S],A=t.createPositionAt(C,"end");T>0&&Km(t,A,T>1?{colspan:T}:null),S+=Math.abs(T)-1}}}else $v(t,e,r,i,c)}))}},{key:"insertColumns",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.editor.model,i=n.at||0,o=n.columns||1;r.change((function(n){var r=e.getAttribute("headingColumns");i<r&&n.setAttribute("headingColumns",r+o,e);var a=t.getColumns(e);if(0!==i&&a!==i){var s,c=new Zm(e,{column:i,includeAllSlots:!0}),l=u(c);try{for(l.s();!(s=l.n()).done;){var d=s.value,f=d.row,h=d.cell,p=d.cellAnchorColumn,m=d.cellAnchorRow,v=d.cellWidth,g=d.cellHeight;if(p<i){n.setAttribute("colspan",v+o,h);for(var b=m+g-1,y=f;y<=b;y++)c.skipRow(y)}else Vv(o,n,d.getPositionBefore())}}catch(e){l.e(e)}finally{l.f()}}else{var _,w=u(e.getChildren());try{for(w.s();!(_=w.n()).done;){var k=_.value;Vv(o,n,n.createPositionAt(k,i?"end":0))}}catch(e){w.e(e)}finally{w.f()}}}))}},{key:"removeRows",value:function(e,t){var n=this,r=this.editor.model,i=t.rows||1,o=t.at,a=o+i-1;r.change((function(t){var r=function(e,t,n){var r,i=new Map,o=[],a=u(new Zm(e,{endRow:n}));try{for(a.s();!(r=a.n()).done;){var s=r.value,c=s.row,l=s.column,d=s.cellHeight,f=s.cell,h=c+d-1;if(c>=t&&c<=n&&h>n){var p=d-(n-c+1);i.set(l,{cell:f,rowspan:p})}if(c<t&&h>=t){var m;m=h>=n?n-t+1:h-t+1,o.push({cell:f,rowspan:d-m})}}}catch(e){a.e(e)}finally{a.f()}return{cellsToMove:i,cellsToTrim:o}}(e,o,a),i=r.cellsToMove,s=r.cellsToTrim;i.size&&function(e,t,n,r){var i,o,a=c(new Zm(e,{includeAllSlots:!0,row:t})),s=e.getChild(t),l=u(a);try{for(l.s();!(o=l.n()).done;){var d=o.value,f=d.column,h=d.cell,p=d.isAnchor;if(n.has(f)){var m=n.get(f),v=m.cell,g=m.rowspan,b=i?r.createPositionAfter(i):r.createPositionAt(s,0);r.move(r.createRangeOn(v),b),Gm("rowspan",g,v,r),i=v}else p&&(i=h)}}catch(e){l.e(e)}finally{l.f()}}(e,a+1,i,t);for(var l=a;l>=o;l--)t.remove(e.getChild(l));var d,f=u(s);try{for(f.s();!(d=f.n()).done;){var h=d.value;Gm("rowspan",h.rowspan,h.cell,t)}}catch(e){f.e(e)}finally{f.f()}!function(e,t,n,r){var i=e.getAttribute("headingRows")||0;t<i&&Gm("headingRows",n<i?i-(n-t+1):t,e,r,0)}(e,o,a,t),Ev(e,n)||Ov(e,n)}))}},{key:"removeColumns",value:function(e,t){var n=this,r=this.editor.model,i=t.at,o=t.columns||1,a=t.at+o-1;r.change((function(t){!function(e,t,n){var r=e.getAttribute("headingColumns")||0;if(r&&t.first<r){var i=Math.min(r-1,t.last)-t.first+1;n.setAttribute("headingColumns",r-i,e)}}(e,{first:i,last:a},t);for(var r=a;r>=i;r--)for(var o=0,s=c(new Zm(e));o<s.length;o++){var l=s[o],u=l.cell,d=l.column,f=l.cellWidth;d<=r&&f>1&&d+f>r?Gm("colspan",f-1,u,t):d===r&&t.remove(u)}Ov(e,n)||Ev(e,n)}))}},{key:"splitCellVertically",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,r=e.parent.parent,i=parseInt(e.getAttribute("rowspan")||1),o=parseInt(e.getAttribute("colspan")||1);n.change((function(n){if(o>1){var a=Hv(o,t),s=a.newCellsSpan;Gm("colspan",a.updatedSpan,e,n);var l={};s>1&&(l.colspan=s),i>1&&(l.rowspan=i),Vv(o>t?t-1:o-1,n,n.createPositionAfter(e),l)}if(o<t){var d,f=t-o,h=c(new Zm(r)),p=h.find((function(t){return t.cell===e})).column,m=u(h.filter((function(t){var n=t.cell,r=t.cellWidth,i=t.column;return n!==e&&i===p||i<p&&i+r>p})));try{for(m.s();!(d=m.n()).done;){var v=d.value,g=v.cell,b=v.cellWidth;n.setAttribute("colspan",b+f,g)}}catch(e){m.e(e)}finally{m.f()}var y={};i>1&&(y.rowspan=i),Vv(f,n,n.createPositionAfter(e),y);var _=r.getAttribute("headingColumns")||0;_>p&&Gm("headingColumns",_+f,r,n)}}))}},{key:"splitCellHorizontally",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,r=e.parent,i=r.parent,o=i.getChildIndex(r),a=parseInt(e.getAttribute("rowspan")||1),s=parseInt(e.getAttribute("colspan")||1);n.change((function(n){if(a>1){var r=c(new Zm(i,{startRow:o,endRow:o+a-1,includeAllSlots:!0})),l=Hv(a,t),d=l.newCellsSpan,f=l.updatedSpan;Gm("rowspan",f,e,n);var h=r.find((function(t){return t.cell===e})).column,p={};d>1&&(p.rowspan=d),s>1&&(p.colspan=s);for(var m=0,v=r;m<v.length;m++){var g=v[m],b=g.column,y=g.row;y>=o+f&&b===h&&(y+o+f)%d==0&&Vv(1,n,g.getPositionBefore(),p)}}if(a<t){var _,w=t-a,k=u(c(new Zm(i,{startRow:0,endRow:o})));try{for(k.s();!(_=k.n()).done;){var x=_.value,C=x.cell,S=x.cellHeight,T=x.row;if(C!==e&&T+S>o){var A=S+w;n.setAttribute("rowspan",A,C)}}}catch(e){k.e(e)}finally{k.f()}var M={};s>1&&(M.colspan=s),$v(n,i,o+1,w,1,M);var E=i.getAttribute("headingRows")||0;E>o&&Gm("headingRows",E+w,i,n)}}))}},{key:"getColumns",value:function(e){return c(e.getChild(0).getChildren()).reduce((function(e,t){return e+parseInt(t.getAttribute("colspan")||1)}),0)}},{key:"getRows",value:function(e){return e.childCount}}],[{key:"pluginName",get:function(){return"TableUtils"}}]),n}(Dl);function $v(e,t,n,r,i){for(var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=0;a<r;a++){var s=e.createElement("tableRow");e.insert(s,t,n),Vv(i,e,e.createPositionAt(s,"end"),o)}}function Vv(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=0;i<e;i++)Km(t,n,r)}function Hv(e,t){if(e<t)return{newCellsSpan:1,updatedSpan:1};var n=Math.floor(e/t);return{newCellsSpan:n,updatedSpan:e-n*t+n}}var Uv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=uv(this.editor.model.document.selection);this.isEnabled=mv(e,this.editor.plugins.get(Bv))}},{key:"execute",value:function(){var e=this.editor.model,t=this.editor.plugins.get(Bv);e.change((function(n){var r=uv(e.document.selection),i=r.shift(),o=function(e,t,n){var r,i=0,o=0,a=u(t);try{for(a.s();!(r=a.n()).done;){var s=r.value,c=n.getCellLocation(s),l=c.row;i=Yv(s,c.column,i,"colspan"),o=Yv(s,l,o,"rowspan")}}catch(e){a.e(e)}finally{a.f()}var d=n.getCellLocation(e),f=d.row;return{mergeWidth:i-d.column,mergeHeight:o-f}}(i,r,t),a=o.mergeWidth,s=o.mergeHeight;Gm("colspan",a,i,n),Gm("rowspan",s,i,n);var c,l=u(r);try{for(l.s();!(c=l.n()).done;){qv(c.value,i,n)}}catch(e){l.e(e)}finally{l.f()}Pv(i.findAncestor("table"),t),n.setSelection(i,"in")}))}}]),n}(Nl);function qv(e,t,n){Wv(e)||(Wv(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}function Wv(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}function Yv(e,t,n,r){var i=parseInt(e.getAttribute(r)||1);return Math.max(n,t+i)}var Gv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=fv(this.editor.model.document.selection);this.isEnabled=e.length>0}},{key:"execute",value:function(){for(var e=this.editor.model,t=fv(e.document.selection),n=hv(t),r=t[0].findAncestor("table"),i=[],o=n.first;o<=n.last;o++){var a,s=u(r.getChild(o).getChildren());try{for(s.s();!(a=s.n()).done;){var c=a.value;i.push(e.createRangeOn(c))}}catch(e){s.e(e)}finally{s.f()}}e.change((function(e){e.setSelection(i)}))}}]),n}(Nl),Kv=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var e=fv(this.editor.model.document.selection);this.isEnabled=e.length>0}},{key:"execute",value:function(){var e,t=this.editor.model,n=fv(t.document.selection),r=n[0],i=n.pop(),o=r.findAncestor("table"),a=this.editor.plugins.get("TableUtils"),s=a.getCellLocation(r),c=a.getCellLocation(i),l=Math.min(s.column,c.column),d=Math.max(s.column,c.column),f=[],h=u(new Zm(o,{startColumn:l,endColumn:d}));try{for(h.s();!(e=h.n()).done;){var p=e.value;f.push(t.createRangeOn(p.cell))}}catch(e){h.e(e)}finally{h.f()}t.change((function(e){e.setSelection(f)}))}}]),n}(Nl);function Qv(e,t){var n=!1,r=function(e){var t,n=parseInt(e.getAttribute("headingRows")||0),r=e.childCount,i=[],o=u(new Zm(e));try{for(o.s();!(t=o.n()).done;){var a=t.value,s=a.row,c=a.cell,l=a.cellHeight;if(!(l<2)){var d=s<n?n:r;if(s+l>d){var f=d-s;i.push({cell:c,rowspan:f})}}}}catch(e){o.e(e)}finally{o.f()}return i}(e);if(r.length){n=!0;var i,o=u(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;Gm("rowspan",a.rowspan,a.cell,t,1)}}catch(e){o.e(e)}finally{o.f()}}return n}function Jv(e,t){var n,r=!1,i=function(e){var t,n=new Array(e.childCount).fill(0),r=u(new Zm(e,{includeAllSlots:!0}));try{for(r.s();!(t=r.n()).done;){n[t.value.row]++}}catch(e){r.e(e)}finally{r.f()}return n}(e),o=[],a=u(i.entries());try{for(a.s();!(n=a.n()).done;){var s=l(n.value,2),c=s[0];s[1]||o.push(c)}}catch(e){a.e(e)}finally{a.f()}if(o.length){r=!0;var d,f=u(o.reverse());try{for(f.s();!(d=f.n()).done;){var h=d.value;t.remove(e.getChild(h)),i.splice(h,1)}}catch(e){f.e(e)}finally{f.f()}}var p=i[0];if(!i.every((function(e){return e===p}))){var m,v=i.reduce((function(e,t){return t>e?t:e}),0),g=u(i.entries());try{for(g.s();!(m=g.n()).done;){var b=l(m.value,2),y=b[0],_=v-b[1];if(_){for(var w=0;w<_;w++)Km(t,t.createPositionAt(e.getChild(y),"end"));r=!0}}}catch(e){g.e(e)}finally{g.f()}}return r}function Xv(e){var t="attribute"===e.type,n=e.attributeKey;return t&&("headingRows"===n||"colspan"===n||"rowspan"===n)}function Zv(e,t){var n,r=!1,i=u(e.getChildren());try{for(i.s();!(n=i.n()).done;){r=eg(n.value,t)||r}}catch(e){i.e(e)}finally{i.f()}return r}function eg(e,t){var n,r=!1,i=u(e.getChildren());try{for(i.s();!(n=i.n()).done;){r=tg(n.value,t)||r}}catch(e){i.e(e)}finally{i.f()}return r}function tg(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;var n,r=Array.from(e.getChildren()).filter((function(e){return e.is("$text")})),i=u(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.wrap(t.createRangeOn(o),"paragraph")}}catch(e){i.e(e)}finally{i.f()}return!!r.length}function ng(e){return!(!e.position||!e.position.parent.is("element","tableCell"))&&("insert"==e.type&&"$text"==e.name||"remove"==e.type)}function rg(e,t,n){if(!Array.from(e.getChildren()).some((function(e){return e.is("element","paragraph")})))return!1;if("attribute"==t){var r=Array.from(e.getChild(0).getAttributeKeys()).length;return 1===e.childCount&&r<2}return e.childCount<=("insert"==t?n+1:1)}n(104);var ig=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor,t=e.model,n=t.schema,r=e.conversion;n.register("table",{allowWhere:"$block",allowAttributes:["headingRows","headingColumns"],isObject:!0,isBlock:!0}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),n.extend("$block",{allowIn:"tableCell"}),n.addChildCheck((function(e,t){if("table"==t.name&&Array.from(e.getNames()).includes("table"))return!1})),r.for("upcast").add((function(e){e.on("element:table",(function(e,t,n){var r=t.viewItem;if(n.consumable.test(r,{name:!0})){var i=function(e){for(var t,n={headingRows:0,headingColumns:0},r=[],i=[],o=0,a=Array.from(e.getChildren());o<a.length;o++){var s=a[o];if("tbody"===s.name||"thead"===s.name||"tfoot"===s.name){"thead"!==s.name||t||(t=s);var c,l=u(Array.from(s.getChildren()).filter((function(e){return e.is("element","tr")})));try{for(l.s();!(c=l.n()).done;){var d=c.value;if("thead"===d.parent.name&&d.parent===t)n.headingRows++,r.push(d);else{i.push(d);var f=Xm(d);f>n.headingColumns&&(n.headingColumns=f)}}}catch(e){l.e(e)}finally{l.f()}}}return n.rows=[].concat(r,i),n}(r),o=i.rows,a=i.headingRows,s=i.headingColumns,c={};s&&(c.headingColumns=s),a&&(c.headingRows=a);var l=n.writer.createElement("table",c);if(n.safeInsert(l,t.modelCursor)){if(n.consumable.consume(r,{name:!0}),o.forEach((function(e){return n.convertItem(e,n.writer.createPositionAt(l,"end"))})),l.isEmpty){var d=n.writer.createElement("tableRow");n.writer.insert(d,n.writer.createPositionAt(l,"end")),Km(n.writer,n.writer.createPositionAt(d,"end"))}n.updateConversionResult(l,t)}}}))})),r.for("editingDowncast").add(tv({asWidget:!0})),r.for("dataDowncast").add(tv()),r.for("upcast").elementToElement({model:"tableRow",view:"tr"}),r.for("upcast").add((function(e){e.on("element:tr",(function(e,t){t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()}),{priority:"high"})})),r.for("editingDowncast").add((function(e){return e.on("insert:tableRow",(function(e,t,n){var r=t.item;if(n.consumable.consume(r,"insert")){var i,o=r.parent,a=function(e){var t,n=u(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;if("table"===r.name)return r}}catch(e){n.e(e)}finally{n.f()}}(n.mapper.toViewElement(o)),s=o.getChildIndex(r),c=new Zm(o,{row:s}),l={headingRows:o.getAttribute("headingRows")||0,headingColumns:o.getAttribute("headingColumns")||0},d=new Map,f=u(c);try{for(f.s();!(i=f.n()).done;){var h=i.value,p=d.get(s)||iv(a,r,s,l,n);d.set(s,p),n.consumable.consume(h.cell,"insert"),rv(h,l,n.writer.createPositionAt(p,"end"),n,{asWidget:!0})}}catch(e){f.e(e)}finally{f.f()}}}))})),r.for("editingDowncast").add((function(e){return e.on("remove:tableRow",(function(e,t,n){e.stop();var r,i=n.writer,o=n.mapper,a=o.toViewPosition(t.position).getLastMatchingPosition((function(e){return!e.item.is("element","tr")})).nodeAfter,s=a.parent.parent,c=i.createRangeOn(a),l=i.remove(c),d=u(i.createRangeIn(l).getItems());try{for(d.s();!(r=d.n()).done;){var f=r.value;o.unbindViewElement(f)}}catch(e){d.e(e)}finally{d.f()}sv("thead",s,n),sv("tbody",s,n)}),{priority:"higher"})})),r.for("upcast").elementToElement({model:"tableCell",view:"td"}),r.for("upcast").elementToElement({model:"tableCell",view:"th"}),r.for("upcast").add(Jm("td")),r.for("upcast").add(Jm("th")),r.for("editingDowncast").add((function(e){return e.on("insert:tableCell",(function(e,t,n){var r=t.item;if(n.consumable.consume(r,"insert")){var i,o=r.parent,a=o.parent,s=a.getChildIndex(o),c=new Zm(a,{row:s}),l={headingRows:a.getAttribute("headingRows")||0,headingColumns:a.getAttribute("headingColumns")||0},d=u(c);try{for(d.s();!(i=d.n()).done;){var f=i.value;if(f.cell===r){var h=n.mapper.toViewElement(o);return void rv(f,l,n.writer.createPositionAt(h,o.getChildIndex(r)),n,{asWidget:!0})}}}catch(e){d.e(e)}finally{d.f()}}}))})),r.attributeToAttribute({model:"colspan",view:"colspan"}),r.attributeToAttribute({model:"rowspan",view:"rowspan"}),r.for("editingDowncast").add((function(e){return e.on("attribute:headingColumns:table",(function(e,t,n){var r=t.item;if(n.consumable.consume(t.item,e.name)){var i,o={headingRows:r.getAttribute("headingRows")||0,headingColumns:r.getAttribute("headingColumns")||0},a=t.attributeOldValue,s=t.attributeNewValue,c=u(new Zm(r,{endColumn:(a>s?a:s)-1}));try{for(c.s();!(i=c.n()).done;){nv(i.value,o,n)}}catch(e){c.e(e)}finally{c.f()}}}))})),e.commands.add("insertTable",new lv(e)),e.commands.add("insertTableRowAbove",new _v(e,{order:"above"})),e.commands.add("insertTableRowBelow",new _v(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new wv(e,{order:"left"})),e.commands.add("insertTableColumnRight",new wv(e,{order:"right"})),e.commands.add("removeTableRow",new Rv(e)),e.commands.add("removeTableColumn",new Lv(e)),e.commands.add("splitTableCellVertically",new kv(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new kv(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new Uv(e)),e.commands.add("mergeTableCellRight",new jv(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new jv(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new jv(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new jv(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new Fv(e)),e.commands.add("setTableRowHeader",new zv(e)),e.commands.add("selectTableRow",new Gv(e)),e.commands.add("selectTableColumn",new Kv(e)),function(e){e.document.registerPostFixer((function(){return function(e){var t,n=e.document.differ,r=new Set,i=u(n.getChanges());try{for(i.s();!(t=i.n()).done;){var o=t.value;if("attribute"==o.type){var a=o.range.start.nodeAfter;a&&a.is("element","table")&&"headingRows"==o.attributeKey&&r.add(a)}}}catch(e){i.e(e)}finally{i.f()}if(r.size){var s,c=u(r.values());try{for(c.s();!(s=c.n()).done;){var l=s.value;n.refreshItem(l)}}catch(e){c.e(e)}finally{c.f()}return!0}return!1}(e)}))}(t),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,r=t.document.differ.getChanges(),i=!1,o=new Set,a=u(r);try{for(a.s();!(n=a.n()).done;){var s=n.value,c=void 0;"table"==s.name&&"insert"==s.type&&(c=s.position.nodeAfter),"tableRow"!=s.name&&"tableCell"!=s.name||(c=s.position.findAncestor("table")),Xv(s)&&(c=s.range.start.findAncestor("table")),c&&!o.has(c)&&(i=Qv(c,e)||i,i=Jv(c,e)||i,o.add(c))}}catch(e){a.e(e)}finally{a.f()}return i}(t,e)}))}(t),function(e){e.document.registerPostFixer((function(){return function(e){var t,n=e.document.differ,r=new Set,i=0,o=u(n.getChanges());try{for(o.s();!(t=o.n()).done;){var a=t.value,s="insert"==a.type||"remove"==a.type?a.position.parent:a.range.start.parent;s.is("element","tableCell")&&("insert"==a.type&&i++,rg(s,a.type,i)&&r.add(s))}}catch(e){o.e(e)}finally{o.f()}if(r.size){var c,l=u(r.values());try{for(l.s();!(c=l.n()).done;){var d=c.value;n.refreshItem(d)}}catch(e){l.e(e)}finally{l.f()}return!0}return!1}(e)}))}(t),function(e){e.document.registerPostFixer((function(t){return function(e,t){var n,r=!1,i=u(t.document.differ.getChanges());try{for(i.s();!(n=i.n()).done;){var o=n.value;"insert"==o.type&&"table"==o.name&&(r=Zv(o.position.nodeAfter,e)||r),"insert"==o.type&&"tableRow"==o.name&&(r=eg(o.position.nodeAfter,e)||r),"insert"==o.type&&"tableCell"==o.name&&(r=tg(o.position.nodeAfter,e)||r),ng(o)&&(r=tg(o.position.parent,e)||r)}}catch(e){i.e(e)}finally{i.f()}return r}(t,e)}))}(t)}}],[{key:"pluginName",get:function(){return"TableEditing"}},{key:"requires",get:function(){return[Bv]}}]),n}(Dl);n(106);var og=function(e){v(n,e);var t=g(n);function n(e){var r;h(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.items=r._createGridCollection(),r.set("rows",0),r.set("columns",0),r.bind("label").to(y(r),"columns",y(r),"rows",(function(e,t){return"".concat(t," × ").concat(e)})),r.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":i.to("boxover")},children:r.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:i.to("label")}]}],on:{mousedown:i.to((function(e){e.preventDefault()})),click:i.to((function(){r.fire("execute")}))}}),r.on("boxover",(function(e,t){var n=t.target.dataset,i=n.row,o=n.column;r.set({rows:parseInt(i),columns:parseInt(o)})})),r.on("change:columns",(function(){r._highlightGridBoxes()})),r.on("change:rows",(function(){r._highlightGridBoxes()})),r}return m(n,[{key:"focus",value:function(){}},{key:"focusLast",value:function(){}},{key:"_highlightGridBoxes",value:function(){var e=this.rows,t=this.columns;this.items.map((function(n,r){var i=Math.floor(r/10)<e&&r%10<t;n.set("isOn",i)}))}},{key:"_createGridCollection",value:function(){for(var e=[],t=0;t<100;t++){var n=Math.floor(t/10),r=t%10;e.push(new ag(this.locale,n+1,r+1))}return this.createCollection(e)}}]),n}(Yc),ag=function(e){v(n,e);var t=g(n);function n(e,r,i){var o;h(this,n);var a=(o=t.call(this,e)).bindTemplate;return o.set("isOn",!1),o.setTemplate({tag:"div",attributes:{class:["ck-insert-table-dropdown-grid-box",a.if("isOn","ck-on")],"data-row":r,"data-column":i}}),o}return n}(Yc),sg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=this.editor.t,r="ltr"===t.locale.contentLanguageDirection;t.ui.componentFactory.add("insertTable",(function(e){var r,i=t.commands.get("insertTable"),o=Cl(e);return o.bind("isEnabled").to(i),o.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:n("Insert table"),tooltip:!0}),o.on("change:isOpen",(function(){r||(r=new og(e),o.panelView.children.add(r),r.delegate("execute").to(o),o.buttonView.on("open",(function(){r.rows=0,r.columns=0})),o.on("execute",(function(){t.execute("insertTable",{rows:r.rows,columns:r.columns}),t.editing.view.focus()})))})),o})),t.ui.componentFactory.add("tableColumn",(function(t){var i=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:n("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:r?"insertTableColumnLeft":"insertTableColumnRight",label:n("Insert column left")}},{type:"button",model:{commandName:r?"insertTableColumnRight":"insertTableColumnLeft",label:n("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:n("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:n("Select column")}}];return e._prepareDropdown(n("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',i,t)})),t.ui.componentFactory.add("tableRow",(function(t){var r=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:n("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:n("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:n("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:n("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:n("Select row")}}];return e._prepareDropdown(n("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',r,t)})),t.ui.componentFactory.add("mergeTableCells",(function(t){var i=[{type:"button",model:{commandName:"mergeTableCellUp",label:n("Merge cell up")}},{type:"button",model:{commandName:r?"mergeTableCellRight":"mergeTableCellLeft",label:n("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:n("Merge cell down")}},{type:"button",model:{commandName:r?"mergeTableCellLeft":"mergeTableCellRight",label:n("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:n("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:n("Split cell horizontally")}}];return e._prepareMergeSplitButtonDropdown(n("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',i,t)}))}},{key:"_prepareDropdown",value:function(e,t,n,r){var i=this.editor,o=Cl(r),a=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:e,icon:t,tooltip:!0}),o.bind("isEnabled").toMany(a,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),this.listenTo(o,"execute",(function(e){i.execute(e.source.commandName),i.editing.view.focus()})),o}},{key:"_prepareMergeSplitButtonDropdown",value:function(e,t,n,r){var i=this.editor,o=Cl(r,_p);return this._fillDropdownWithListOptions(o,n),o.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),this.listenTo(o.buttonView,"execute",(function(){i.execute("mergeTableCells"),i.editing.view.focus()})),this.listenTo(o,"execute",(function(e){i.execute(e.source.commandName),i.editing.view.focus()})),o}},{key:"_fillDropdownWithListOptions",value:function(e,t){var n,r=this.editor,i=[],o=new sn,a=u(t);try{for(a.s();!(n=a.n()).done;){cg(n.value,r,i,o)}}catch(e){a.e(e)}finally{a.f()}return Tl(e,o,r.ui.componentFactory),i}}]),n}(Dl);function cg(e,t,n,r){var i=e.model=new rh(e.model),o=e.model,a=o.commandName,s=o.bindIsOn;if("button"===e.type||"switchbutton"===e.type){var c=t.commands.get(a);n.push(c),i.set({commandName:a}),i.bind("isEnabled").to(c),s&&i.bind("isOn").to(c,"value")}i.set({withText:!0}),r.add(e)}n(108);var lg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor.model;this.listenTo(t,"deleteContent",(function(t,n){return e._handleDeleteContent(t,n)}),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}},{key:"getSelectedTableCells",value:function(){var e=uv(this.editor.model.document.selection);return 0==e.length?null:e}},{key:"getSelectionAsFragment",value:function(){var e=this,t=this.getSelectedTableCells();return t?this.editor.model.change((function(n){var r=n.createDocumentFragment(),i=e.editor.plugins.get("TableUtils"),o=pv(t),a=o.first,s=o.last,c=hv(t),l=c.first,u=c.last,d=t[0].findAncestor("table"),f=u,h=s;if(mv(t,i)){var p={firstColumn:a,lastColumn:s,firstRow:l,lastRow:u};f=Iv(d,p),h=Dv(d,p)}var m=xv(d,{startRow:l,startColumn:a,endRow:f,endColumn:h},n);return n.insert(m,r,0),r})):null}},{key:"setCellSelection",value:function(e,t){var n=this._getCellsToSelect(e,t);this.editor.model.change((function(e){e.setSelection(n.cells.map((function(t){return e.createRangeOn(t)})),{backward:n.backward})}))}},{key:"getFocusCell",value:function(){var e=c(this.editor.model.document.selection.getRanges()).pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}},{key:"getAnchorCell",value:function(){var e=Ll(this.editor.model.document.selection.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}},{key:"_defineSelectionConverter",value:function(){var e=this,t=this.editor,n=new Set;t.conversion.for("editingDowncast").add((function(t){return t.on("selection",(function(t,r,i){var o=i.writer;!function(e){var t,r=u(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;e.removeClass("ck-editor__editable_selected",i)}}catch(e){r.e(e)}finally{r.f()}n.clear()}(o);var a=e.getSelectedTableCells();if(a){var s,c=u(a);try{for(c.s();!(s=c.n()).done;){var l=s.value,d=i.mapper.toViewElement(l);o.addClass("ck-editor__editable_selected",d),n.add(d)}}catch(e){c.e(e)}finally{c.f()}var f=i.mapper.toViewElement(a[a.length-1]);o.setSelection(f,0)}}),{priority:"lowest"})}))}},{key:"_enablePluginDisabling",value:function(){var e=this,t=this.editor;this.on("change:isEnabled",(function(){if(!e.isEnabled){var n=e.getSelectedTableCells();if(!n)return;t.model.change((function(e){var r=e.createPositionAt(n[0],0),i=t.model.schema.getNearestSelectionRange(r);e.setSelection(i)}))}}))}},{key:"_handleDeleteContent",value:function(e,t){var n=l(t,2),r=n[0],i=n[1],o=this.editor.model,a=!i||"backward"==i.direction,s=uv(r);s.length&&(e.stop(),o.change((function(e){var t=s[a?s.length-1:0];o.change((function(e){var t,n=u(s);try{for(n.s();!(t=n.n()).done;){var r=t.value;o.deleteContent(e.createSelection(r,"in"))}}catch(e){n.e(e)}finally{n.f()}}));var n=o.schema.getNearestSelectionRange(e.createPositionAt(t,0));r.is("documentSelection")?e.setSelection(n):r.setTo(n)})))}},{key:"_getCellsToSelect",value:function(e,t){var n,r=this.editor.plugins.get("TableUtils"),i=r.getCellLocation(e),o=r.getCellLocation(t),a=Math.min(i.row,o.row),s=Math.max(i.row,o.row),c=Math.min(i.column,o.column),l=Math.max(i.column,o.column),d=new Array(s-a+1).fill(null).map((function(){return[]})),f={startRow:a,endRow:s,startColumn:c,endColumn:l},h=u(new Zm(e.findAncestor("table"),f));try{for(h.s();!(n=h.n()).done;){var p=n.value,m=p.row,v=p.cell;d[m-a].push(v)}}catch(e){h.e(e)}finally{h.f()}var g=o.row<i.row,b=o.column<i.column;return g&&d.reverse(),b&&d.forEach((function(e){return e.reverse()})),{cells:d.flat(),backward:g||b}}}],[{key:"pluginName",get:function(){return"TableSelection"}},{key:"requires",get:function(){return[Bv]}}]),n}(Dl),ug=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this.listenTo(n,"copy",(function(t,n){return e._onCopyCut(t,n)})),this.listenTo(n,"cut",(function(t,n){return e._onCopyCut(t,n)})),this.listenTo(t.model,"insertContent",(function(t,n){return e._onInsertContent.apply(e,[t].concat(c(n)))}),{priority:"high"})}},{key:"_onCopyCut",value:function(e,t){var n=this.editor.plugins.get(lg);if(n.getSelectedTableCells()&&("cut"!=e.name||!this.editor.isReadOnly)){t.preventDefault(),e.stop();var r=this.editor.data,i=this.editor.editing.view.document,o=r.toView(n.getSelectionAsFragment());i.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:o,method:e.name})}}},{key:"_onInsertContent",value:function(e,t,n){var r=this;if(!n||n.is("documentSelection")){var i=this.editor.model,o=this.editor.plugins.get(Bv),a=function(e,t){if(!e.is("documentFragment")&&!e.is("element"))return null;if(e.is("element","table"))return e;if(1==e.childCount&&e.getChild(0).is("element","table"))return e.getChild(0);var n,r=t.createRangeIn(e),i=u(r.getItems());try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.is("element","table")){var a=t.createRange(r.start,t.createPositionBefore(o));if(t.hasContent(a,{ignoreWhitespaces:!0}))return null;var s=t.createRange(t.createPositionAfter(o),r.end);return t.hasContent(s,{ignoreWhitespaces:!0})?null:o}}}catch(e){i.e(e)}finally{i.f()}return null}(t,i);if(a){var s=fv(i.document.selection);s.length?(e.stop(),i.change((function(e){var t={width:o.getColumns(a),height:o.getRows(a)},n=function(e,t,n,r){var i=e[0].findAncestor("table"),o=pv(e),a=hv(e),s={firstColumn:o.first,lastColumn:o.last,firstRow:a.first,lastRow:a.last},c=1===e.length;return c&&(s.lastRow+=t.height-1,s.lastColumn+=t.width-1,function(e,t,n,r){var i=r.getColumns(e),o=r.getRows(e);n>i&&r.insertColumns(e,{at:i,columns:n-i}),t>o&&r.insertRows(e,{at:o,rows:t-o})}(i,s.lastRow+1,s.lastColumn+1,r)),c||!mv(e,r)?function(e,t,n){var r=t.firstRow,i=t.lastRow,o=t.firstColumn,a=t.lastColumn,s={first:r,last:i},c={first:o,last:a};fg(e,o,s,n),fg(e,a+1,s,n),dg(e,r,c,n),dg(e,i+1,c,n,r)}(i,s,n):(s.lastRow=Iv(i,s),s.lastColumn=Dv(i,s)),s}(s,t,e,o),i=n.lastRow-n.firstRow+1,l=n.lastColumn-n.firstColumn+1,d={startRow:0,startColumn:0,endRow:Math.min(i,t.height)-1,endColumn:Math.min(l,t.width)-1};a=xv(a,d,e);var f=s[0].findAncestor("table"),h=function(e,t,n,r,i){for(var o,a=t.width,s=t.height,l=function(e,t,n){var r,i=new Array(n).fill(null).map((function(){return new Array(t).fill(null)})),o=u(new Zm(e));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.column,c=a.row,l=a.cell;i[c][s]=l}}catch(e){o.e(e)}finally{o.f()}return i}(e,a,s),d=[],f=0,h=c(new Zm(n,{startRow:r.firstRow,endRow:r.lastRow,startColumn:r.firstColumn,endColumn:r.lastColumn,includeAllSlots:!0}));f<h.length;f++){var p=h[f],m=p.row,v=p.column,g=p.cell,b=p.isAnchor;v===r.firstColumn&&(o=p.getPositionBefore()),b&&i.remove(g);var y=m-r.firstRow,_=v-r.firstColumn,w=l[y%s][_%a];if(w){var k=i.cloneElement(w);Mv(k,m,v,r.lastRow,r.lastColumn,i),i.insert(k,o),d.push(k),o=i.createPositionAfter(k)}}var x=parseInt(n.getAttribute("headingRows")||0),C=parseInt(n.getAttribute("headingColumns")||0),S=r.firstRow<x&&x<=r.lastRow,T=r.firstColumn<C&&C<=r.lastColumn;if(S){var A=dg(n,x,{first:r.firstColumn,last:r.lastColumn},i,r.firstRow);d.push.apply(d,c(A))}if(T){var M=fg(n,C,{first:r.firstRow,last:r.lastRow},i);d.push.apply(d,c(M))}return d}(a,t,f,n,e);if(r.editor.plugins.get("TableSelection").isEnabled){var p=vv(h.map((function(t){return e.createRangeOn(t)})));e.setSelection(p)}else e.setSelection(h[0],0)}))):Pv(a,o)}}}}],[{key:"pluginName",get:function(){return"TableClipboard"}},{key:"requires",get:function(){return[lg,Bv]}}]),n}(Dl);function dg(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!(t<1))return Cv(e,t,i).filter((function(e){return hg(e.column,e.cellWidth,n)})).map((function(e){return Sv(e.cell,t,r)}))}function fg(e,t,n,r){if(!(t<1))return Tv(e,t).filter((function(e){return hg(e.row,e.cellHeight,n)})).map((function(e){return Av(e.cell,e.column,t,r)}))}function hg(e,t,n){var r=e+t-1,i=n.first,o=n.last;return e>=i&&e<=o||e<i&&r>=i}var pg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor.editing.view.document;this.editor.keystrokes.set("Tab",(function(){return e._handleTabOnSelectedTable.apply(e,arguments)}),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(t,"keydown",(function(){return e._onKeydown.apply(e,arguments)}),{priority:Yt.get("high")-10})}},{key:"_handleTabOnSelectedTable",value:function(e,t){var n=this.editor,r=n.model.document.selection.getSelectedElement();r&&r.is("element","table")&&(t(),n.model.change((function(e){e.setSelection(e.createRangeIn(r.getChild(0).getChild(0)))})))}},{key:"_getTabHandler",value:function(e){var t=this,n=this.editor;return function(r,i){var o=dv(n.model.document.selection)[0];if(o||(o=t.editor.plugins.get("TableSelection").getFocusCell()),o){i();var a=o.parent,s=a.parent,c=s.getChildIndex(a),l=a.getChildIndex(o),u=0===l;if(e||!u||0!==c){var d=l===a.childCount-1,f=c===s.childCount-1;if(e&&f&&d&&(n.execute("insertTableRowBelow"),c===s.childCount-1))n.model.change((function(e){e.setSelection(e.createRangeOn(s))}));else{var h;if(e&&d){var p=s.getChild(c+1);h=p.getChild(0)}else if(!e&&u){var m=s.getChild(c-1);h=m.getChild(m.childCount-1)}else h=a.getChild(l+(e?1:-1));n.model.change((function(e){e.setSelection(e.createRangeIn(h))}))}}else n.model.change((function(e){e.setSelection(e.createRangeOn(s))}))}}}},{key:"_onKeydown",value:function(e,t){var n=this.editor,r=t.keyCode;if(Gr(r)){var i=Kr(r,n.locale.contentLanguageDirection);this._handleArrowKeys(i,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}}},{key:"_handleArrowKeys",value:function(e,t){var n,r=this.editor.model.document.selection,i=["right","down"].includes(e),o=uv(r);if(o.length)return n=t?this.editor.plugins.get("TableSelection").getFocusCell():i?o[o.length-1]:o[0],this._navigateFromCellInDirection(n,e,t),!0;var a=r.focus.findAncestor("tableCell");return!(!a||t&&!r.isCollapsed&&r.isBackward==i||!this._isSelectionAtCellEdge(r,a,i)||(this._navigateFromCellInDirection(a,e,t),0))}},{key:"_isSelectionAtCellEdge",value:function(e,t,n){var r=this.editor.model,i=this.editor.model.schema,o=n?e.getLastPosition():e.getFirstPosition();if(!i.getLimitElement(o).is("element","tableCell"))return r.createPositionAt(t,n?"end":0).isTouching(o);var a=r.createSelection(o);return r.modifySelection(a,{direction:n?"forward":"backward"}),o.isEqual(a.focus)}},{key:"_navigateFromCellInDirection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.model,i=e.findAncestor("table"),o=c(new Zm(i,{includeAllSlots:!0})),a=o[o.length-1],s=a.row,l=a.column,u=o.find((function(t){return t.cell==e})),d=u.row,f=u.column;switch(t){case"left":f--;break;case"up":d--;break;case"right":f+=u.cellWidth;break;case"down":d+=u.cellHeight}if(d<0||d>s||f<0&&d<=0||f>l&&d>=s)r.change((function(e){e.setSelection(e.createRangeOn(i))}));else{f<0?(f=n?0:l,d--):f>l&&(f=n?l:0,d++);var h=o.find((function(e){return e.row==d&&e.column==f})).cell,p=["right","down"].includes(t),m=this.editor.plugins.get("TableSelection");if(n&&m.isEnabled){var v=m.getAnchorCell()||e;m.setCellSelection(v,h)}else{var g=r.createPositionAt(h,p?0:"end");r.change((function(e){e.setSelection(g)}))}}}}],[{key:"pluginName",get:function(){return"TableKeyboard"}},{key:"requires",get:function(){return[lg]}}]),n}(Dl),mg=function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).domEventType=["mousemove","mouseup","mouseleave"],r}return m(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(uo),vg=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.editor.editing.view.addObserver(mg),this._enableShiftClickSelection(),this._enableMouseDragSelection()}},{key:"_enableShiftClickSelection",value:function(){var e=this,t=this.editor,n=!1,r=t.plugins.get(lg);this.listenTo(t.editing.view.document,"mousedown",(function(i,o){if(e.isEnabled&&r.isEnabled&&o.domEvent.shiftKey){var a=r.getAnchorCell()||dv(t.model.document.selection)[0];if(a){var s=e._getModelTableCellFromDomEvent(o);s&&gg(a,s)&&(n=!0,r.setCellSelection(a,s),o.preventDefault())}}})),this.listenTo(t.editing.view.document,"mouseup",(function(){n=!1})),this.listenTo(t.editing.view.document,"selectionChange",(function(e){n&&e.stop()}),{priority:"highest"})}},{key:"_enableMouseDragSelection",value:function(){var e,t,n=this,r=this.editor,i=!1,o=!1,a=r.plugins.get(lg);this.listenTo(r.editing.view.document,"mousedown",(function(t,r){n.isEnabled&&a.isEnabled&&(r.domEvent.shiftKey||r.domEvent.ctrlKey||r.domEvent.altKey||(e=n._getModelTableCellFromDomEvent(r)))})),this.listenTo(r.editing.view.document,"mousemove",(function(r,s){if(s.domEvent.buttons&&e){var c=n._getModelTableCellFromDomEvent(s);c&&gg(e,c)&&(t=c,i||t==e||(i=!0)),i&&(o=!0,a.setCellSelection(e,t),s.preventDefault())}})),this.listenTo(r.editing.view.document,"mouseup",(function(){i=!1,o=!1,e=null,t=null})),this.listenTo(r.editing.view.document,"selectionChange",(function(e){o&&e.stop()}),{priority:"highest"})}},{key:"_getModelTableCellFromDomEvent",value:function(e){var t=e.target,n=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}],[{key:"pluginName",get:function(){return"TableMouse"}},{key:"requires",get:function(){return[lg]}}]),n}(Dl);function gg(e,t){return e.parent.parent==t.parent.parent}function bg(e){var t=e.getSelectedElement();return t&&_g(t)?t:null}function yg(e){var t=function(e,t){for(var n=t.parent;n;){if("table"===n.name)return n;n=n.parent}}(0,e.getFirstPosition());return t&&_g(t.parent)?t.parent:null}function _g(e){return!!e.getCustomProperty("table")&&wu(e)}n(110);var wg=/[\\^$.*+?()[\]{}|]/g,kg=RegExp(wg.source),xg={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:"1/2",to:"½"},oneThird:{from:"1/3",to:"⅓"},twoThirds:{from:"2/3",to:"⅔"},oneForth:{from:"1/4",to:"¼"},threeQuarters:{from:"3/4",to:"¾"},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:Eg('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:Eg("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:Eg("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:Eg('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:Eg('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:Eg("'"),to:[null,"‚",null,"’"]}},Cg={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},Sg=["symbols","mathematical","typography","quotes"];function Tg(e){return"string"==typeof e?new RegExp("(".concat(function(e){return(e=Dn(e))&&kg.test(e)?e.replace(wg,"\\$&"):e}(e),")$")):e}function Ag(e){return"string"==typeof e?function(){return[e]}:e instanceof Array?function(){return e}:e}function Mg(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function Eg(e){return new RegExp("(^|\\s)(".concat(e,")([^").concat(e,"]*)(").concat(e,")$"))}function Og(e){if(e.is("$text")||e.is("$textProxy"))return e.data;var t,n="",r=null,i=u(e.getChildren());try{for(i.s();!(t=i.n()).done;){var o=t.value,a=Og(o);r&&r.is("element")&&(n+="\n"),n+=a,r=o}}catch(e){i.e(e)}finally{i.f()}return n}var Pg=function(){function e(t,n){h(this,e),this.loader=t,this.options=n}return m(e,[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return new Promise((function(n,r){e._initRequest(),e._initListeners(n,r,t),e._sendRequest(t)}))}))}},{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"_initRequest",value:function(){var e=this.xhr=new XMLHttpRequest;e.open("POST",this.options.uploadUrl,!0),e.responseType="json"}},{key:"_initListeners",value:function(e,t,n){var r=this.xhr,i=this.loader,o="Couldn't upload file: ".concat(n.name,".");r.addEventListener("error",(function(){return t(o)})),r.addEventListener("abort",(function(){return t()})),r.addEventListener("load",(function(){var n=r.response;if(!n||n.error)return t(n&&n.error&&n.error.message?n.error.message:o);e(n.url?{default:n.url}:n.urls)})),r.upload&&r.upload.addEventListener("progress",(function(e){e.lengthComputable&&(i.uploadTotal=e.total,i.uploaded=e.loaded)}))}},{key:"_sendRequest",value:function(e){for(var t=this.options.headers||{},n=this.options.withCredentials||!1,r=0,i=Object.keys(t);r<i.length;r++){var o=i[r];this.xhr.setRequestHeader(o,t[o])}this.xhr.withCredentials=n;var a=new FormData;a.append("upload",e),this.xhr.send(a)}}]),e}(),Ig=function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return n}(Il);Ig.builtinPlugins=[function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Hl,Yl]}},{key:"pluginName",get:function(){return"Alignment"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}},{key:"afterInit",value:function(){this._enableEnterHandling(),this._enableShiftEnterHandling()}},{key:"_enableTypingHandling",value:function(){var e=this,t=this.editor,n=new Kl(t.model,(function(e){if(function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e)){var t=Xl(e.substr(0,e.length-1));return t?{url:t}:void 0}})),r=t.plugins.get("Input");n.on("matched:data",(function(n,i){var o=i.batch,a=i.range,s=i.url;if(r.isInput(o)){var c=a.end.getShiftedBy(-1),l=c.getShiftedBy(-s.length),u=t.model.createRange(l,c);e._applyAutoLink(s,u)}})),n.bind("isEnabled").to(this)}},{key:"_enableEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,r=t.commands.get("enter");r&&r.on("execute",(function(){var t=n.document.selection.getFirstPosition(),r=n.createRange(n.createPositionAt(t.parent.previousSibling,0),n.createPositionAt(t.parent.previousSibling,"end"));e._checkAndApplyAutoLinkOnRange(r)}))}},{key:"_enableShiftEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,r=t.commands.get("shiftEnter");r&&r.on("execute",(function(){var t=n.document.selection.getFirstPosition(),r=n.createRange(n.createPositionAt(t.parent,0),t.getShiftedBy(-1));e._checkAndApplyAutoLinkOnRange(r)}))}},{key:"_checkAndApplyAutoLinkOnRange",value:function(e){var t=this.editor.model,n=Gl(e,t),r=n.text,i=n.range,o=Xl(r);if(o){var a=t.createRange(i.end.getShiftedBy(-o.length),i.end);this._applyAutoLink(o,a)}}},{key:"_applyAutoLink",value:function(e,t){var n=this.editor.model;this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,n)&&n.enqueueChange((function(n){var r,i=(r=e,Jl.exec(r)?"mailto:"+e:e);n.setAttribute("linkHref",i,t)}))}}],[{key:"pluginName",get:function(){return"AutoLink"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[tu,ru]}},{key:"pluginName",get:function(){return"Bold"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"pluginName",get:function(){return"CKFinder"}},{key:"requires",get:function(){return[$d,iu,Gd]}}]),n}(Dl),Gd,function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[sd,ef,df,of,mf,Rf]}},{key:"pluginName",get:function(){return"Essentials"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Kf,Jf]}},{key:"pluginName",get:function(){return"FontColor"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[nh,ih]}},{key:"pluginName",get:function(){return"FontSize"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[fh,hh]}},{key:"pluginName",get:function(){return"Heading"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[zf,Ff]}},{key:"pluginName",get:function(){return"HorizontalLine"}}]),n}(Dl),zh,function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[$h]}},{key:"pluginName",get:function(){return"ImageCaption"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Yh,ip,Qh]}},{key:"pluginName",get:function(){return"ImageResize"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[mp,vp]}},{key:"pluginName",get:function(){return"ImageStyle"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"afterInit",value:function(){var e=this.editor,t=e.t;e.plugins.get(gp).register("image",{ariaLabel:t("Image toolbar"),items:e.config.get("image.toolbar")||[],getRelatedElement:Ou})}}],[{key:"requires",get:function(){return[gp]}},{key:"pluginName",get:function(){return"ImageToolbar"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"pluginName",get:function(){return"ImageUpload"}},{key:"requires",get:function(){return[zp,Mp,Ep]}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"pluginName",get:function(){return"Indent"}},{key:"requires",get:function(){return[$p,Up]}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Wp,Gp]}},{key:"pluginName",get:function(){return"Italic"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[jd,nm]}},{key:"pluginName",get:function(){return"Link"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[im,cm]}},{key:"pluginName",get:function(){return"LinkImage"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Dm,Nm]}},{key:"pluginName",get:function(){return"List"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Hm,Ym,qm,_h]}},{key:"pluginName",get:function(){return"MediaEmbed"}}]),n}(Dl),ch,function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"init",value:function(){var e=this.editor.config.get("simpleUpload");e&&(e.uploadUrl?this.editor.plugins.get(Ud).createUploadAdapter=function(t){return new Pg(t,e)}:console.warn(Object(Gt.a)('simple-upload-adapter-missing-uploadUrl: Missing the "uploadUrl" property in the "simpleUpload" editor configuration.')))}}],[{key:"requires",get:function(){return[Ud]}},{key:"pluginName",get:function(){return"SimpleUploadAdapter"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[ig,sg,lg,vg,pg,ug,_h]}},{key:"pluginName",get:function(){return"Table"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"afterInit",value:function(){var e=this.editor,t=e.t,n=e.plugins.get(gp),r=e.config.get("table.contentToolbar"),i=e.config.get("table.tableToolbar");r&&n.register("tableContent",{ariaLabel:t("Table toolbar"),items:r,getRelatedElement:yg}),i&&n.register("table",{ariaLabel:t("Table toolbar"),items:i,getRelatedElement:bg})}}],[{key:"requires",get:function(){return[gp]}},{key:"pluginName",get:function(){return"TableToolbar"}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),r=t.call(this,e),e.config.define("typing",{transformations:{include:Sg}}),r}return m(n,null,[{key:"pluginName",get:function(){return"TextTransformation"}}]),m(n,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}},{key:"_enableTransformationWatchers",value:function(){var e=this.editor,t=e.model,n=e.plugins.get("Input"),r=function(e){var t=e.extra||[],n=e.remove||[],r=function(e){return!n.includes(e)};return function(e){var t,n=new Set,r=u(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(Cg[i]){var o,a=u(Cg[i]);try{for(a.s();!(o=a.n()).done;){var s=o.value;n.add(s)}}catch(e){a.e(e)}finally{a.f()}}else n.add(i)}}catch(e){r.e(e)}finally{r.f()}return Array.from(n)}(e.include.concat(t).filter(r)).filter(r).map((function(e){return xg[e]||e})).map((function(e){return{from:Tg(e.from),to:Ag(e.to)}}))}(e.config.get("typing.transformations")),i=new Kl(e.model,(function(e){var t,n=u(r);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.from.test(e))return{normalizedTransformation:i}}}catch(e){n.e(e)}finally{n.f()}}));i.on("matched:data",(function(e,r){if(n.isInput(r.batch)){var i=r.normalizedTransformation,o=i.from,a=i.to,s=o.exec(r.text),c=a(s.slice(1)),l=r.range,u=s.index;t.enqueueChange((function(e){for(var n=1;n<s.length;n++){var r=s[n],i=c[n-1];if(null!=i){var o=l.start.getShiftedBy(u),a=t.createRange(o,o.getShiftedBy(r.length)),d=Mg(o);t.insertContent(e.createText(i,d),a),u+=i.length}else u+=r.length}}))}})),i.bind("isEnabled").to(this)}}]),n}(Dl),function(e){v(n,e);var t=g(n);function n(e){var r;return h(this,n),(r=t.call(this,e)).set("characters",0),r.set("words",0),Object.defineProperties(y(r),{characters:{get:function(){return this.characters=this._getCharacters()}},words:{get:function(){return this.words=this._getWords()}}}),r.set("_wordsLabel"),r.set("_charactersLabel"),r._config=e.config.get("wordCount")||{},r._outputView,r._wordsMatchRegExp=$r.isRegExpUnicodePropertySupported?new RegExp("[\\p{L}\\p{N}\\p{M}\\p{Pd}\\p{Pc}]+","gu"):/[\x2D0-9A-Z_a-z\xC0-\u017E]+/g,r}return m(n,[{key:"init",value:function(){var e=this;this.editor.model.document.on("change:data",np(this._refreshStats.bind(this),250)),"function"==typeof this._config.onUpdate&&this.on("update",(function(t,n){e._config.onUpdate(n)})),Bt(this._config.container)&&this._config.container.appendChild(this.wordCountContainer)}},{key:"destroy",value:function(){this._outputView&&(this._outputView.element.remove(),this._outputView.destroy()),s(C(n.prototype),"destroy",this).call(this)}},{key:"_getCharacters",value:function(){return Og(this.editor.model.document.getRoot()).replace(/\n/g,"").length}},{key:"_getWords",value:function(){return(Og(this.editor.model.document.getRoot()).match(this._wordsMatchRegExp)||[]).length}},{key:"_refreshStats",value:function(){var e=this.words=this._getWords(),t=this.characters=this._getCharacters();this.fire("update",{words:e,characters:t})}},{key:"wordCountContainer",get:function(){var e=this.editor,t=e.t,n=e.config.get("wordCount.displayWords"),r=e.config.get("wordCount.displayCharacters"),i=Mc.bind(this,this),o=[];return this._outputView||(this._outputView=new Yc,(n||void 0===n)&&(this.bind("_wordsLabel").to(this,"words",(function(e){return t("Words: %0",[e])})),o.push({tag:"div",children:[{text:[i.to("_wordsLabel")]}],attributes:{class:"ck-word-count__words"}})),(r||void 0===r)&&(this.bind("_charactersLabel").to(this,"characters",(function(e){return t("Characters: %0",[e])})),o.push({tag:"div",children:[{text:[i.to("_charactersLabel")]}],attributes:{class:"ck-word-count__characters"}})),this._outputView.setTemplate({tag:"div",attributes:{class:["ck","ck-word-count"]},children:o}),this._outputView.render()),this._outputView.element}}],[{key:"pluginName",get:function(){return"WordCount"}}]),n}(Dl)],t.default=Ig}]).default}))}).call(this,n(182)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof d?t:d,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return S()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=_(a,n);if(s){if(s===u)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===u)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u={};function d(){}function f(){}function h(){}var p={};p[i]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(C([])));v&&v!==t&&n.call(v,i)&&(p=v);var g=h.prototype=d.prototype=Object.create(p);function b(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=l(e[i],e,o);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function _(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,_(e,t),"throw"===t.method))return u;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,u;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,u):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,u)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return f.prototype=g.constructor=h,h.constructor=f,f.displayName=s(h,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,s(e,a,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(y.prototype),y.prototype[o]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new y(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),s(g,a,"Generator"),g[i]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,x.prototype={constructor:x,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),u},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),u}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";var r=n(22);n.n(r).a},function(e,t,n){(t=n(4)(!1)).push([e.i,"div.ck-editor__editable{min-height:500px}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(23);n.n(r).a},function(e,t,n){(t=n(4)(!1)).push([e.i,".mw-fc[data-v-1526165e]{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(24);n.n(r).a},function(e,t,n){(t=n(4)(!1)).push([e.i,"div.ck-editor__editable{min-height:500px}",""]),e.exports=t},function(e,t,n){"use strict";var r=n(25);n.n(r).a},function(e,t,n){(t=n(4)(!1)).push([e.i,".card .card-icon--success[data-v-77d962d2]{background-color:rgba(67,155,115,.03)}.card .card-icon--info[data-v-77d962d2]{background-color:rgba(31,162,255,.03)}.card .card-icon--warn[data-v-77d962d2]{background-color:rgba(255,143,0,.03)}.card .card-icon--danger[data-v-77d962d2]{background-color:rgba(192,36,40,.03)}.card .card-icon[data-v-77d962d2]{text-align:center;height:72px;width:72px;min-width:72px;border-radius:50%;margin-right:20px}.card--shadow[data-v-77d962d2]{box-shadow:0 1px 1px 0 rgba(10,22,70,.1),0 0 1px 0 rgba(10,22,70,.06)}.card[data-v-77d962d2]{padding:24px 36px;width:100%}.bg-white[data-v-77d962d2]{background-color:#fff!important}.d-flex[data-v-77d962d2]{display:flex!important;flex-direction:row}.flex-content-center[data-v-77d962d2]{align-content:center!important}.flex-justify-between[data-v-77d962d2]{justify-content:space-between!important}.card .card-content[data-v-77d962d2]{border-left:1px solid #f7f8f9;padding-left:20px;flex-grow:1;min-height:72px}.flex-justify-center[data-v-77d962d2]{justify-content:center!important}.flex-column[data-v-77d962d2]{flex-direction:column!important}.flex-items-center[data-v-77d962d2]{align-items:center!important}",""]),e.exports=t},function(e,t,n){"use strict";n.r(t);var r={en:{next:"Next",back:"Back",finish:"Finish"},es:{next:"Siguiente",back:"Atrás",finish:"Finalizar"},pt:{next:"Próximo",back:"Voltar",finish:"Finalizar"},ja:{next:"次へ",back:"戻る",finish:"完了"},he:{next:"הבא",back:"חזרה",finish:"סיום"},cn:{next:"下一步",back:"返回",finish:"完成"},ru:{next:"Вперед",back:"Назад",finish:"Готово"},ar:{next:"التالي",back:"السابق",finish:"انهاء"},nl:{next:"Volgende",back:"Vorige",finish:"Klaar"},sv:{next:"Nästa",back:"Tillbaka",finish:"Skicka"}},i={filters:{translate:function(e,t){return r[t][e]}},props:{locale:{type:String,default:"en"},topButtons:{type:Boolean,default:!1},steps:{type:Array,default:function(){return[{icon:"mail",name:"first",title:"Sample title 1",subtitle:"Subtitle sample"},{icon:"report_problem",name:"second",title:"Sample title 2",subtitle:"Subtitle sample"}]}},keepAlive:{type:Boolean,default:!0},reset:{type:Boolean,default:!1}},data(){return{currentStep:{},previousStep:{},nextButton:{},canContinue:!1,finalStep:!1,keepAliveData:this.keepAlive}},computed:{enterAnimation(){return this.currentStep.index<this.previousStep.index?"animated quick fadeInLeft":"animated quick fadeInRight"},leaveAnimation(){return this.currentStep.index>this.previousStep.index?"animated quick fadeOutLeft":"animated quick fadeOutRight"}},methods:{isStepActive(e,t){return this.currentStep.index===e?"activated":"deactivated"},activateStep(e,t=!1){this.steps[e]&&(this.previousStep=this.currentStep,this.currentStep={name:this.steps[e].name,index:e},e+1===this.steps.length?this.finalStep=!0:this.finalStep=!1,t||this.$emit("completed-step",this.previousStep)),this.$emit("active-step",this.currentStep)},nextStepAction(){if(this.nextButton[this.currentStep.name]=!0,this.canContinue){this.finalStep&&this.$emit("stepper-finished",this.currentStep);let e=this.currentStep.index+1;this.activateStep(e)}this.canContinue=!1,this.$forceUpdate()},nextStep(){this.$listeners&&this.$listeners["before-next-step"]||this.nextStepAction(),this.canContinue=!1,this.$emit("before-next-step",{currentStep:this.currentStep},(e=!0)=>{this.canContinue=!0,e&&this.nextStepAction()})},backStep(){this.$emit("clicking-back");let e=this.currentStep.index-1;e>=0&&this.activateStep(e,!0)},proceed(e){this.canContinue=e.value},changeNextBtnValue(e){this.nextButton[this.currentStep.name]=e.nextBtnValue,this.$forceUpdate()},init(){this.activateStep(0),this.steps.forEach(e=>{this.nextButton[e.name]=!1})}},watch:{reset(e){e&&(this.keepAliveData=!1,this.init(),this.previousStep={},this.$nextTick(()=>{this.keepAliveData=this.keepAlive,this.$emit("reset",!0)}))}},created(){this.init()}},o=(n(175),n(177),n(1)),a=Object(o.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stepper-box"},[n("div",{staticClass:"top"},[n("div",{staticClass:"divider-line",style:{width:100/e.steps.length*(e.steps.length-1)-10+"%"}}),e._v(" "),n("div",{staticClass:"steps-wrapper"},[e.topButtons?[e.currentStep.index>0?n("div",{staticClass:"stepper-button-top previous",on:{click:function(t){return e.backStep()}}},[n("i",{staticClass:"material-icons"},[e._v("keyboard_arrow_left")])]):e._e()]:e._e(),e._v(" "),e._l(e.steps,(function(t,r){return[n("div",{key:r,class:["step",e.isStepActive(r,t)],style:{width:100/e.steps.length+"%"}},[n("div",{staticClass:"circle"},[n("i",{staticClass:"material-icons md-18"},[e._v("\n                            "+e._s(t.completed?"done":t.icon)+"\n                        ")])]),e._v(" "),n("div",{staticClass:"step-title"},[n("h4",[e._v(e._s(t.title))]),e._v(" "),n("h5",{staticClass:"step-subtitle"},[e._v(e._s(t.subtitle))])])])]})),e._v(" "),e.topButtons?n("div",{class:["stepper-button-top next",e.canContinue?"":"deactivated"],on:{click:function(t){return e.nextStep()}}},[n("i",{staticClass:"material-icons"},[e._v("keyboard_arrow_right")])]):e._e()],2)]),e._v(" "),n("div",{staticClass:"content"},[n("transition",{attrs:{"enter-active-class":e.enterAnimation,"leave-active-class":e.leaveAnimation,mode:"out-in"}},[e.keepAliveData?n("keep-alive",[n(e.steps[e.currentStep.index].component,{tag:"component",attrs:{clickedNext:e.nextButton[e.currentStep.name],"current-step":e.currentStep},on:{"can-continue":e.proceed,"change-next":e.changeNextBtnValue}})],1):n(e.steps[e.currentStep.index].component,{tag:"component",attrs:{clickedNext:e.nextButton[e.currentStep.name],"current-step":e.currentStep},on:{"can-continue":e.proceed,"change-next":e.changeNextBtnValue}})],1)],1),e._v(" "),n("div",{class:["bottom",e.currentStep.index>0?"":"only-next"]},[e.currentStep.index>0?n("div",{staticClass:"stepper-button previous",on:{click:function(t){return e.backStep()}}},[n("i",{staticClass:"material-icons"},[e._v("keyboard_arrow_left")]),e._v(" "),n("span",[e._v(e._s(e._f("translate")("back",e.locale)))])]):e._e(),e._v(" "),n("div",{class:["stepper-button next",e.canContinue?"":"deactivated"],on:{click:function(t){return e.nextStep()}}},[n("span",[e._v(e._s(e._f("translate")(e.finalStep?"finish":"next",e.locale)))]),e._v(" "),n("i",{staticClass:"material-icons"},[e._v("keyboard_arrow_right")])])])])}),[],!1,null,"0cd2e8d8",null);t.default=a.exports},function(e,t,n){"use strict";n.r(t);var r={mixins:[n(9).a],mounted:function(){},computed:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("ais-instant-search",{attrs:{"search-client":e.searchClient,"index-name":e.prefix+"searchable_texts"}},[n("ais-configure",{attrs:{hitsPerPage:12}}),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"px-3"},[n("ais-search-box",{staticClass:"searchbox ",attrs:{placeholder:"Rechercher..."}})],1),e._v(" "),n("ais-stats",{staticClass:"mt-2 ml-3"}),e._v(" "),n("div",{staticClass:"my-4"},[n("ais-infinite-hits",{attrs:{"class-names":{"ais-InfiniteHits-list":"row","ais-InfiniteHits-item":"col-sm-3 mb-3"}},scopedSlots:e._u([{key:"item",fn:function(e){var t=e.item,r=e.index;return n("file-hit",{key:r,attrs:{hit:t}})}},{key:"loadMore",fn:function(t){t.page;var r=t.isLastPage,i=t.refineNext;return n("button",{staticClass:"btn btn-big mt-5",attrs:{disabled:r},on:{click:i}},[n("i",{staticClass:"far fa-plus-square mr-1"}),e._v("Voir plus\n                        ")])}}])})],1)],1)])],1)],1)}),[],!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"ActuLabosHit"},i=n(1),o=Object(i.a)(r,(function(){var e=this.$createElement;return(this._self._c||e)("div")}),[],!1,null,"5bd42f3b",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"CampaignHit",props:["hit","flip"]},i=(n(171),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.hit?n("div",{staticClass:"box p-1"},[n("div",[n("a",{attrs:{href:e.hit.url}},[n("h3",[void 0===e.hit._highlightResult?n("span",{domProps:{innerHTML:e._s(e.hit.title)}}):e._e(),e._v(" "),n("ais-highlight",{attrs:{attribute:"title",hit:e.hit}})],1)])]),e._v(" "),n("div",[n("img",{class:{"mh-campaign":!0,"float-left mr-3":!e.flip,"float-right ml-3":e.flip},attrs:{src:e.hit.image,alt:""}}),e._v(" "),n("div",{staticClass:"pb-2",domProps:{innerHTML:e._s(e.hit.description)}}),e._v(" "),n("a",{class:{"click-here":!0,"bottom-right":!e.flip,"bottom-left":e.flip},attrs:{href:e.hit.url}},[e._v("Lire ici")])])]):e._e()}),[],!1,null,"6009d5bd",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"CampaignInstantSearch",mixins:[n(9).a],mounted:function(){},computed:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("ais-instant-search",{attrs:{"search-client":e.searchClient,"index-name":e.prefix+"ad_campaigns"}},[n("ais-configure",{attrs:{hitsPerPage:10}}),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"px-3"},[n("ais-search-box",{staticClass:"searchbox ",attrs:{placeholder:"Rechercher..."}})],1),e._v(" "),n("ais-stats",{staticClass:"mt-2 ml-3"}),e._v(" "),n("div",{staticClass:"my-4"},[n("ais-infinite-hits",{attrs:{"class-names":{"ais-InfiniteHits-list":"row","ais-InfiniteHits-item":"col-sm-12 mb-3"}},scopedSlots:e._u([{key:"item",fn:function(e){var t=e.item,r=e.index;return n("campaign-hit",{key:r,attrs:{hit:t}})}},{key:"loadMore",fn:function(t){t.page;var r=t.isLastPage,i=t.refineNext;return n("button",{staticClass:"ais-InfiniteHits-loadMore",attrs:{disabled:r},on:{click:i}},[e._v("\n                      Voir plus\n                  ")])}}])})],1)],1)])],1)],1)}),[],!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"FileHit",props:["hit"],data:function(){return{}},computed:{viewLink:function(){var e="none"===this.hit._highlightResult.content.matchLevel?"1":this.hit.page;return"/view/".concat(this.hit.file.slug,"#page=").concat(e)}}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card w-100"},[n("img",{staticClass:"card-img-top",attrs:{src:e.hit.file.cover,alt:"Cover"}}),e._v(" "),n("div",{staticClass:"card-body"},[n("h5",{staticClass:"card-title text-center",domProps:{textContent:e._s(e.hit.file.title)}}),e._v(" "),n("p",{staticClass:"card-text"},e._l(e.hit.file.tags,(function(t){return n("span",{staticClass:"badge badge-light mr-1"},[n("i",{staticClass:"fas fa-tag"}),e._v(" "+e._s(t)+"\n            ")])})),0),e._v(" "),n("p",{staticClass:"card-text"},["none"!==e.hit._highlightResult.content.matchLevel?n("ais-snippet",{attrs:{attribute:"content",hit:e.hit}}):e._e()],1)]),e._v(" "),n("a",{staticClass:"btn btn-big mb-0",attrs:{href:e.viewLink,target:"_blank"}},[n("i",{staticClass:"fas fa-book-open mr-1"}),e._v(" Lire cette édition")])])}),[],!1,null,"fcf1250c",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={mixins:[n(9).a],mounted:function(){},computed:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h1",[e._v("Les archives de P.S.Q.")]),e._v(" "),n("ais-instant-search",{attrs:{"search-client":e.searchClient,"index-name":e.prefix+"searchable_texts"}},[n("ais-configure",{attrs:{hitsPerPage:12}}),e._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"px-3"},[n("ais-search-box",{staticClass:"searchbox ",attrs:{placeholder:"Rechercher..."}})],1),e._v(" "),n("ais-stats",{staticClass:"mt-2 ml-3"}),e._v(" "),n("div",{staticClass:"my-4"},[n("ais-infinite-hits",{attrs:{"class-names":{"ais-InfiniteHits-list":"row","ais-InfiniteHits-item":"col-sm-3 mb-3"}},scopedSlots:e._u([{key:"item",fn:function(e){var t=e.item,r=e.index;return n("file-hit",{key:r,attrs:{hit:t}})}},{key:"loadMore",fn:function(t){t.page;var r=t.isLastPage,i=t.refineNext;return n("button",{staticClass:"btn btn-big mt-5",attrs:{disabled:r},on:{click:i}},[n("i",{staticClass:"far fa-plus-square mr-1"}),e._v("Voir plus\n                        ")])}}])})],1)],1)])],1)],1)}),[],!1,null,null,null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"cover",mounted:function(){this.isMounted=!0},props:["dataImage","width","height"],data:function(){return{isMounted:!1,mouseX:0,mouseY:0,mouseLeaveDelay:null}},computed:{dimensions:function(){return{width:this.width,height:Math.round(this.c_height)+"px"}},c_width:function(){return this.isMounted?this.$refs.card.offsetWidth:0},c_height:function(){return this.isMounted?void 0===this.height?1.38*this.c_inner_width:this.height:0},c_inner_width:function(){return this.isMounted?this.$refs.inner.offsetWidth:0},mousePX:function(){return this.mouseX/this.c_width},mousePY:function(){return this.mouseY/this.c_height},cardStyle:function(){var e=20*this.mousePX,t=-20*this.mousePY;return{transform:"rotateY(".concat(e,"deg) rotateX(").concat(t,"deg)")}},cardBgTransform:function(){},cardBgImage:function(){return{backgroundImage:"url(".concat(this.dataImage,")")}}},methods:{handleMouseMove:function(e){this.mouseX=e.pageX-$(this.$refs.card).offset().left-this.c_width/2,this.mouseY=e.pageY-$(this.$refs.card).offset().top-this.c_height/2},handleMouseEnter:function(){clearTimeout(this.mouseLeaveDelay)},handleMouseLeave:function(){var e=this;this.mouseLeaveDelay=setTimeout((function(){e.mouseX=0,e.mouseY=0}),500)}}},i=(n(173),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"card",staticClass:"card-wrap",style:e.dimensions,on:{mousemove:e.handleMouseMove,mouseenter:e.handleMouseEnter,mouseleave:e.handleMouseLeave}},[n("div",{ref:"inner",staticClass:"cover",style:e.cardStyle},[n("div",{staticClass:"card-bg",style:[e.cardBgTransform,e.cardBgImage]}),e._v(" "),n("div",{staticClass:"card-info",style:{width:e.c_inner_width+"px"}},[e._t("header"),e._v(" "),e._t("content")],2)])])}),[],!1,null,"1a8b3214",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={components:{},data:function(){return{}},mounted:function(){},methods:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("h1",{staticClass:"mb-6"},[this._v("Live stats")]),this._v(" "),t("div",{staticClass:"row"},[t("div",{staticClass:"col"},[t("mg-stats",{attrs:{icon:"delivered",current:"20",total:"80",text:"delivered"}})],1),this._v(" "),t("div",{staticClass:"col"},[t("mg-stats",{attrs:{icon:"clicked",current:"20",total:"80",text:"clicked"}})],1),this._v(" "),t("div",{staticClass:"col"},[t("mg-stats",{attrs:{icon:"opened",current:"20",total:"80",text:"opened"}})],1)])])}),[],!1,null,"17570ad5",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"PollAnswers",data:function(){return{polls:[],selected_poll:null,poll_data:null,loaded:!1,selected_question:null}},watch:{selected_poll:function(e){var t=this;axios.get("/otherContent/pollAnswers/"+e.id).then((function(e){return t.poll_data=e.data}))}},mounted:function(){var e=this;axios.get("/otherContent/pollAnswers/list").then((function(t){e.polls=t.data,e.loaded=!0}))}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.polls.length>0?n("div",[n("div",{staticClass:"form-group mb-4"},[n("label",{attrs:{for:"polls"}}),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.selected_poll,expression:"selected_poll"}],staticClass:"form-control",attrs:{name:"polls",id:"polls"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.selected_poll=t.target.multiple?n:n[0]}}},e._l(e.polls,(function(t){return n("option",{domProps:{value:t}},[e._v(e._s(t.title))])})),0)]),e._v(" "),e.selected_poll?[null===e.poll_data?n("div",{staticClass:"alert alert-info"},[e._v("\n                    Chargement en cours...\n                ")]):e.poll_data&&0===e.poll_data.entries_count?n("div",{staticClass:"alert alert-warning"},[e._v("\n                    Aucune réponse pour le moment !\n                ")]):n("div",{staticClass:"box p-3"},[n("p",{staticClass:"lead"},[e._v(e._s(e.poll_data.entries_count)+" réponses enregistrées")]),e._v(" "),n("div",{staticClass:"form-group mb-2"},[n("label",{attrs:{for:"question"}},[e._v("Sélectionnez une question pour voir les résultats")]),e._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:e.selected_question,expression:"selected_question"}],staticClass:"form-control",attrs:{name:"question",id:"question"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.selected_question=t.target.multiple?n:n[0]}}},e._l(e.poll_data.questions,(function(t){return n("option",{domProps:{value:t}},[e._v(e._s(t.question))])})),0)]),e._v(" "),null===e.selected_question?n("div",{staticClass:"alert alert-info"},[e._v("\n                        Sélectionnez une question pour voir les réponses\n                    ")]):n("div",[n("table",{staticClass:"table table-hover"},[n("thead",{staticClass:"thead-light"},[n("tr",[n("th",[e._v("Réponse")]),e._v(" "),"poll_text"!==e.selected_question.type?n("th",[e._v("Occurences")]):e._e(),e._v(" "),"poll_text"!==e.selected_question.type?n("th",[e._v("Pourcentage")]):e._e()])]),e._v(" "),n("tbody",e._l(e.selected_question.answers,(function(t){return n("tr",{class:{"table-warning":"[no-answer]"===t.value}},[n("td",{domProps:{textContent:e._s("[no-answer]"===t.value?"[Aucune réponse]":t.value)}}),e._v(" "),"poll_text"!==e.selected_question.type?n("td",[e._v(e._s(t.count))]):e._e(),e._v(" "),"poll_text"!==e.selected_question.type?n("td",[e._v(e._s(t.percentage)+"%")]):e._e()])})),0)])])])]:e._e()],2):e.loaded?n("div",{staticClass:"alert alert-warning"},[e._v("\n            Aucun sondage trouvé\n        ")]):n("div",{staticClass:"alert alert-info"},[e._v("\n            Chargement en cours...\n        ")])])}),[],!1,null,"19882d56",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={name:"HeadlineRepeater",props:{value:{required:!0}},data:function(){return{headline:"",content:""}},computed:{val:{get:function(){return{headline:this.headline,content:this.content}},set:function(e){this.$emit("input",e)}}},watch:{val:function(e){this.$emit("input",e)}}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.headline,expression:"headline"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Tapez le titre ici..."},domProps:{value:e.headline},on:{input:function(t){t.target.composing||(e.headline=t.target.value)}}}),e._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"form-control mt-1",attrs:{placeholder:"Description rapide",rows:"4"},domProps:{value:e.content},on:{input:function(t){t.target.composing||(e.content=t.target.value)}}})])}),[],!1,null,"c9f24a5c",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r=n(27),i=n.n(r),o=n(38),a=n(39),s=n(12),c={components:{HorizontalStepper:i.a},data:function(){return{steps:[{icon:"cloud_upload",name:"upload",title:"Mise en ligne du PDF",subtitle:"Création de la liseuse",component:o.default,completed:!1},{icon:"mail",name:"email",title:"Mise en forme du message",subtitle:"",component:a.default,completed:!1},{icon:"send",name:"review",title:"Récapitulatif et envoi",subtitle:"Suivi des envois",component:s.default,completed:!1}]}},mounted:function(){},methods:{completeStep:function(e){this.steps.forEach((function(t){t.name===e.name&&(t.completed=!0)}))},isStepActive:function(e){this.steps.forEach((function(t){t.name===e.name&&!0===t.completed&&(t.completed=!1)}))},alert:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){alert("end")}))}},l=n(1),u=Object(l.a)(c,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("h1",{staticClass:"mb-6"},[this._v("Publier une lettre")]),this._v(" "),t("horizontal-stepper",{attrs:{steps:this.steps},on:{"completed-step":this.completeStep,"active-step":this.isStepActive,"stepper-finished":this.alert}})],1)}),[],!1,null,null,null);t.default=u.exports},function(e,t,n){"use strict";n.r(t);var r=n(27),i=n.n(r),o=n(40),a=n(12),s={components:{HorizontalStepper:i.a},data:function(){return{steps:[{icon:"mail",name:"email",title:"Mise en forme du message",subtitle:"",component:o.default,completed:!1},{icon:"send",name:"review",title:"Récapitulatif et envoi",subtitle:"Suivi des envois",component:a.default,completed:!1}]}},mounted:function(){},methods:{completeStep:function(e){this.steps.forEach((function(t){t.name===e.name&&(t.completed=!0)}))},isStepActive:function(e){this.steps.forEach((function(t){t.name===e.name&&!0===t.completed&&(t.completed=!1)}))},alert:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){alert("end")}))}},c=n(1),l=Object(c.a)(s,(function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("h1",{staticClass:"mb-6"},[this._v("Envoyer une newsletter")]),this._v(" "),t("horizontal-stepper",{attrs:{steps:this.steps},on:{"completed-step":this.completeStep,"active-step":this.isStepActive,"stepper-finished":this.alert}})],1)}),[],!1,null,null,null);t.default=l.exports},function(e,t,n){"use strict";n.r(t);var r={components:{},data:function(){return{batch:1,batches:[]}},mounted:function(){var e=this;axios.get("/statistics/batches").then((function(t){return e.batches=t.data.data}))},methods:{}},i=n(1),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("h2",[e._v("Statistiques")]),e._v(" "),n("hr"),e._v(" "),n("div",{staticClass:"form-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:e.batch,expression:"batch"}],staticClass:"form-control",attrs:{name:"batch",id:"batch"},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,(function(e){return e.selected})).map((function(e){return"_value"in e?e._value:e.value}));e.batch=t.target.multiple?n:n[0]}}},e._l(e.batches,(function(t){return n("option",{attrs:{value:"bat.id"}},[e._v(e._s(t.file.title))])})),0)])])}),[],!1,null,"e7971362",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);var r={components:{},props:["icon","current","total","text","customMetric","customLabel"],data:function(){return{}},methods:{}},i=(n(191),n(1)),o=Object(i.a)(r,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"card d-flex bg-white flex-items-center flex-content-center flex-justify-between card--shadow"},["delivered"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--success"},[n("svg",{staticClass:"svg-icon",attrs:{height:"24",width:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"delivered"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{attrs:{"fill-rule":"nonzero",d:"M1 11l4-2.9v5.082zM23 11l-4-2.9v5.082z"}}),e._v(" "),n("path",{attrs:{stroke:"#8BC1A9","stroke-width":"2",d:"M5 8.1L1 11v12h22V11l-4-2.9"}}),e._v(" "),n("path",{attrs:{stroke:"#439B73","stroke-width":"2",d:"M5 13.2V1h14v12.2"}}),e._v(" "),n("path",{attrs:{stroke:"#8BC1A9","stroke-width":"2",d:"M1 11l22 12M23 11l-11 6"}}),e._v(" "),n("path",{attrs:{stroke:"#439B73","stroke-linecap":"square","stroke-width":"2",d:"M9 6h6M9 10h6"}})])])]):e._e(),e._v(" "),"opened"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--info"},[n("svg",{staticClass:"svg-icon",attrs:{height:"23",width:"24",viewBox:"0 0 24 23",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"open-book"}},[n("g",{attrs:{stroke:"#006CE6","stroke-width":"2",fill:"none","fill-rule":"evenodd","stroke-linecap":"square"}},[n("path",{attrs:{opacity:".5",d:"M1 2l11 3 11-3v17l-11 3-11-3z"}}),e._v(" "),n("path",{attrs:{d:"M5 15.9L9 17M9 8.3L5 7.2M9 12.5l-4-1M19 15.9L15 17M15 8.3l4-1.1M15 12.5l4-1"}})])])]):e._e(),e._v(" "),"clicked"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--warn"},[n("svg",{staticClass:"svg-icon",attrs:{height:"30",width:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"click"}},[n("g",{attrs:{"stroke-width":"2",fill:"none","fill-rule":"evenodd","stroke-linecap":"square"}},[n("path",{attrs:{fill:"#FFBA62",d:"M15.0086638 29.1674982L9.5629583 9.5629583l19.6045399 5.4457055-7.1528135 3.0654915 6.3995289 6.3995289-3.9405294 3.9405294-6.3995289-6.3995289-3.0654915 7.1528135zm-2.5716221-16.7304565l2.9753471 10.7112496 1.9871401-4.6366602 7.0741553 7.0741553 1.1121022-1.1121022-7.0741553-7.0741553 4.6366602-1.9871401-10.7112496-2.9753471z"}}),e._v(" "),n("path",{attrs:{fill:"#FF8F00",d:"M3.34314558 4.75735971l1.41421356-1.41421356 2.82842712 2.82842712L6.1715727 7.58578683 3.34314558 4.7573597zM11.53554435.5355302l2.00000001.00000704-.00001414 4.00000209-2.00000005-.00000707.00001418-4.00000206zm8.77816397 2.80761595L21.7279219 4.7573597l-2.82842713 2.82842713-1.41421356-1.41421356 2.82842712-2.82842713zM4.75735914 21.72792244l-1.41421356-1.41421356 2.82842713-2.82842712 1.41421356 1.41421356-2.82842713 2.82842712zM.53554024 13.5355343v-2H4.5355352l3e-8 2.00000003-3.99999498-3e-8z"}})])])]):e._e(),e._v(" "),"failed"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--danger"},[n("svg",{staticClass:"svg-icon",attrs:{height:"23",width:"24",viewBox:"0 0 23 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"suppressed"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd","stroke-width":"2"}},[n("path",{attrs:{stroke:"#E47573",d:"M5 7.1L1 10v12h22V10l-4-2.9M1 10l22 12M23 10l-11 6"}}),e._v(" "),n("path",{attrs:{stroke:"#D41E1B","stroke-linecap":"square",d:"M15 2L9 8M9 2l6 6"}})])])]):e._e(),e._v(" "),"suppressed"===e.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--warn"},[n("svg",{staticClass:"svg-icon",attrs:{height:"23",width:"24",viewBox:"0 0 23 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"suppressed"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd","stroke-width":"2"}},[n("path",{attrs:{stroke:"#FFBA62",d:"M5 7.1L1 10v12h22V10l-4-2.9M1 10l22 12M23 10l-11 6"}}),e._v(" "),n("path",{attrs:{stroke:"#FF8F00","stroke-linecap":"square",d:"M15 2L9 8M9 2l6 6"}})])])]):e._e(),e._v(" "),n("div",{staticClass:"card-content d-flex flex-column flex-justify-center"},[n("div",{staticClass:"card-label text-small text-gray-light"},[e.customLabel?[e._v(e._s(e.customLabel))]:[e._v("\n                "+e._s(e.current)+" / "+e._s(e.total)+" "+e._s(e.text)+"\n            ")]],2),e._v(" "),n("div",{staticClass:"h3"},[e.customMetric?[e._v(e._s(e.customMetric))]:[e._v("\n                "+e._s(0!==e.total?Math.ceil(100*e.current/e.total):0)+"%\n            ")]],2)])])}),[],!1,null,"77d962d2",null);t.default=o.exports},function(e,t,n){"use strict";n.r(t);n(95);class r{constructor(e){this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",broadcaster:"pusher",csrfToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(e),this.connect()}setOptions(e){return this.options=Object.assign(this._defaultOptions,e),this.csrfToken()&&(this.options.auth.headers["X-CSRF-TOKEN"]=this.csrfToken()),e}csrfToken(){let e;return"undefined"!=typeof window&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:"undefined"!=typeof document&&"function"==typeof document.querySelector&&(e=document.querySelector('meta[name="csrf-token"]'))?e.getAttribute("content"):null}}class i{listenForWhisper(e,t){return this.listen(".client-"+e,t)}notification(e){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",e)}stopListeningForWhisper(e){return this.stopListening(".client-"+e)}}class o{constructor(e){this.setNamespace(e)}format(e){return"."===e.charAt(0)||"\\"===e.charAt(0)?e.substr(1):(this.namespace&&(e=this.namespace+"."+e),e.replace(/\./g,"\\"))}setNamespace(e){this.namespace=e}}class a extends i{constructor(e,t,n){super(),this.name=t,this.pusher=e,this.options=n,this.eventFormatter=new o(this.options.namespace),this.subscribe()}subscribe(){this.subscription=this.pusher.subscribe(this.name)}unsubscribe(){this.pusher.unsubscribe(this.name)}listen(e,t){return this.on(this.eventFormatter.format(e),t),this}stopListening(e){return this.subscription.unbind(this.eventFormatter.format(e)),this}on(e,t){return this.subscription.bind(e,t),this}}class s extends a{whisper(e,t){return this.pusher.channels.channels[this.name].trigger("client-"+e,t),this}}class c extends a{whisper(e,t){return this.pusher.channels.channels[this.name].trigger("client-"+e,t),this}}class l extends a{here(e){return this.on("pusher:subscription_succeeded",t=>{e(Object.keys(t.members).map(e=>t.members[e]))}),this}joining(e){return this.on("pusher:member_added",t=>{e(t.info)}),this}leaving(e){return this.on("pusher:member_removed",t=>{e(t.info)}),this}whisper(e,t){return this.pusher.channels.channels[this.name].trigger("client-"+e,t),this}}class u extends i{constructor(e,t,n){super(),this.events={},this.name=t,this.socket=e,this.options=n,this.eventFormatter=new o(this.options.namespace),this.subscribe(),this.configureReconnector()}subscribe(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}unsubscribe(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}listen(e,t){return this.on(this.eventFormatter.format(e),t),this}stopListening(e){const t=this.eventFormatter.format(e);return this.socket.removeListener(t),delete this.events[t],this}on(e,t){let n=(e,n)=>{this.name==e&&t(n)};this.socket.on(e,n),this.bind(e,n)}configureReconnector(){const e=()=>{this.subscribe()};this.socket.on("reconnect",e),this.bind("reconnect",e)}bind(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)}unbind(){Object.keys(this.events).forEach(e=>{this.events[e].forEach(t=>{this.socket.removeListener(e,t)}),delete this.events[e]})}}class d extends u{whisper(e,t){return this.socket.emit("client event",{channel:this.name,event:"client-"+e,data:t}),this}}class f extends d{here(e){return this.on("presence:subscribed",t=>{e(t.map(e=>e.user_info))}),this}joining(e){return this.on("presence:joining",t=>e(t.user_info)),this}leaving(e){return this.on("presence:leaving",t=>e(t.user_info)),this}}class h extends i{subscribe(){}unsubscribe(){}listen(e,t){return this}stopListening(e){return this}on(e,t){return this}}class p extends h{whisper(e,t){return this}}class m extends h{here(e){return this}joining(e){return this}leaving(e){return this}whisper(e,t){return this}}class v extends r{constructor(){super(...arguments),this.channels={}}connect(){void 0!==this.options.client?this.pusher=this.options.client:this.pusher=new Pusher(this.options.key,this.options)}listen(e,t,n){return this.channel(e).listen(t,n)}channel(e){return this.channels[e]||(this.channels[e]=new a(this.pusher,e,this.options)),this.channels[e]}privateChannel(e){return this.channels["private-"+e]||(this.channels["private-"+e]=new s(this.pusher,"private-"+e,this.options)),this.channels["private-"+e]}encryptedPrivateChannel(e){return this.channels["private-encrypted-"+e]||(this.channels["private-encrypted-"+e]=new c(this.pusher,"private-encrypted-"+e,this.options)),this.channels["private-encrypted-"+e]}presenceChannel(e){return this.channels["presence-"+e]||(this.channels["presence-"+e]=new l(this.pusher,"presence-"+e,this.options)),this.channels["presence-"+e]}leave(e){[e,"private-"+e,"presence-"+e].forEach((e,t)=>{this.leaveChannel(e)})}leaveChannel(e){this.channels[e]&&(this.channels[e].unsubscribe(),delete this.channels[e])}socketId(){return this.pusher.connection.socket_id}disconnect(){this.pusher.disconnect()}}class g extends r{constructor(){super(...arguments),this.channels={}}connect(){let e=this.getSocketIO();return this.socket=e(this.options.host,this.options),this.socket}getSocketIO(){if(void 0!==this.options.client)return this.options.client;if("undefined"!=typeof io)return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}listen(e,t,n){return this.channel(e).listen(t,n)}channel(e){return this.channels[e]||(this.channels[e]=new u(this.socket,e,this.options)),this.channels[e]}privateChannel(e){return this.channels["private-"+e]||(this.channels["private-"+e]=new d(this.socket,"private-"+e,this.options)),this.channels["private-"+e]}presenceChannel(e){return this.channels["presence-"+e]||(this.channels["presence-"+e]=new f(this.socket,"presence-"+e,this.options)),this.channels["presence-"+e]}leave(e){[e,"private-"+e,"presence-"+e].forEach(e=>{this.leaveChannel(e)})}leaveChannel(e){this.channels[e]&&(this.channels[e].unsubscribe(),delete this.channels[e])}socketId(){return this.socket.id}disconnect(){this.socket.disconnect()}}class b extends r{constructor(){super(...arguments),this.channels={}}connect(){}listen(e,t,n){return new h}channel(e){return new h}privateChannel(e){return new p}presenceChannel(e){return new m}leave(e){}leaveChannel(e){}socketId(){return"fake-socket-id"}disconnect(){}}var y=class{constructor(e){this.options=e,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}channel(e){return this.connector.channel(e)}connect(){"pusher"==this.options.broadcaster?this.connector=new v(this.options):"socket.io"==this.options.broadcaster?this.connector=new g(this.options):"null"==this.options.broadcaster?this.connector=new b(this.options):"function"==typeof this.options.broadcaster&&(this.connector=new this.options.broadcaster(this.options))}disconnect(){this.connector.disconnect()}join(e){return this.connector.presenceChannel(e)}leave(e){this.connector.leave(e)}leaveChannel(e){this.connector.leaveChannel(e)}listen(e,t,n){return this.connector.listen(e,t,n)}private(e){return this.connector.privateChannel(e)}encryptedPrivate(e){return this.connector.encryptedPrivateChannel(e)}socketId(){return this.connector.socketId()}registerInterceptors(){"function"==typeof Vue&&Vue.http&&this.registerVueRequestInterceptor(),"function"==typeof axios&&this.registerAxiosRequestInterceptor(),"function"==typeof jQuery&&this.registerjQueryAjaxSetup()}registerVueRequestInterceptor(){Vue.http.interceptors.push((e,t)=>{this.socketId()&&e.headers.set("X-Socket-ID",this.socketId()),t()})}registerAxiosRequestInterceptor(){axios.interceptors.request.use(e=>(this.socketId()&&(e.headers["X-Socket-Id"]=this.socketId()),e))}registerjQueryAjaxSetup(){void 0!==jQuery.ajax&&jQuery.ajaxPrefilter((e,t,n)=>{this.socketId()&&n.setRequestHeader("X-Socket-Id",this.socketId())})}};window._=n(34);try{window.Popper=n(52).default,window.$=window.jQuery=n(35),n(97)}catch(e){}window.axios=n(98),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",window.Pusher=n(115),window.Echo=new y({broadcaster:"pusher",key:"459380cb6d0a29d6861f",cluster:"eu",encrypted:!0})},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fb15")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),l=n("7f20"),u=n("38fd"),d=n("2b4c")("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,m,v,g){c(n,t,p);var b,y,_,w=function(e){if(!f&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",x="values"==m,C=!1,S=e.prototype,T=S[d]||S["@@iterator"]||m&&S[m],A=T||w(m),M=m?x?w("entries"):A:void 0,E="Array"==t&&S.entries||T;if(E&&(_=u(E.call(new e)))!==Object.prototype&&_.next&&(l(_,k,!0),r||"function"==typeof _[d]||a(_,d,h)),x&&T&&"values"!==T.name&&(C=!0,A=function(){return T.call(this)}),r&&!g||!f&&!C&&S[d]||a(S,d,A),s[t]=A,s[k]=h,m)if(b={values:x?A:w("values"),keys:v?A:w("keys"),entries:M},g)for(y in b)y in S||o(S,y,b[y]);else i(i.P+i.F*(f||C),t,b);return b}},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),c=n("c69a"),l=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?l:function(e,t){if(e=o(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,c=0;s>c;)r.f(e,n=a[c++],t[n]);return e}},"1bc3":function(e,t,n){var r=n("f772");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(e,t,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},"1ecd":function(e,t,n){"use strict";var r=n("629f");n.n(r).a},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),c=(""+s).split("toString");n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c=function(){var e,t=n("230e")("iframe"),r=o.length;for(t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2ef0":function(e,t,n){(function(e,r){var i;(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",l="[object Array]",u="[object Boolean]",d="[object Date]",f="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",g="[object Object]",b="[object RegExp]",y="[object Set]",_="[object String]",w="[object Symbol]",k="[object WeakMap]",x="[object ArrayBuffer]",C="[object DataView]",S="[object Float32Array]",T="[object Float64Array]",A="[object Int8Array]",M="[object Int16Array]",E="[object Int32Array]",O="[object Uint8Array]",P="[object Uint16Array]",I="[object Uint32Array]",D=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,R=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,z=RegExp(R.source),F=RegExp(L.source),B=/<%-([\s\S]+?)%>/g,$=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,H=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,q=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(W.source),G=/^\s+|\s+$/g,K=/^\s+/,Q=/\s+$/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ce=/^(?:0|[1-9]\d*)$/,le=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ue=/($^)/,de=/['\n\r\u2028\u2029\\]/g,fe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",he="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",me="["+he+"]",ve="["+fe+"]",ge="\\d+",be="[\\u2700-\\u27bf]",ye="[a-z\\xdf-\\xf6\\xf8-\\xff]",_e="[^\\ud800-\\udfff"+he+ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",we="\\ud83c[\\udffb-\\udfff]",ke="[^\\ud800-\\udfff]",xe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ce="[\\ud800-\\udbff][\\udc00-\\udfff]",Se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Te="(?:"+ye+"|"+_e+")",Ae="(?:"+Se+"|"+_e+")",Me="(?:"+ve+"|"+we+")"+"?",Ee="[\\ufe0e\\ufe0f]?"+Me+("(?:\\u200d(?:"+[ke,xe,Ce].join("|")+")[\\ufe0e\\ufe0f]?"+Me+")*"),Oe="(?:"+[be,xe,Ce].join("|")+")"+Ee,Pe="(?:"+[ke+ve+"?",ve,xe,Ce,pe].join("|")+")",Ie=RegExp("['’]","g"),De=RegExp(ve,"g"),je=RegExp(we+"(?="+we+")|"+Pe+Ee,"g"),Ne=RegExp([Se+"?"+ye+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[me,Se,"$"].join("|")+")",Ae+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[me,Se+Te,"$"].join("|")+")",Se+"?"+Te+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ge,Oe].join("|"),"g"),Re=RegExp("[\\u200d\\ud800-\\udfff"+fe+"\\ufe0e\\ufe0f]"),Le=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ze=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Fe=-1,Be={};Be[S]=Be[T]=Be[A]=Be[M]=Be[E]=Be[O]=Be["[object Uint8ClampedArray]"]=Be[P]=Be[I]=!0,Be[c]=Be[l]=Be[x]=Be[u]=Be[C]=Be[d]=Be[f]=Be[h]=Be[m]=Be[v]=Be[g]=Be[b]=Be[y]=Be[_]=Be[k]=!1;var $e={};$e[c]=$e[l]=$e[x]=$e[C]=$e[u]=$e[d]=$e[S]=$e[T]=$e[A]=$e[M]=$e[E]=$e[m]=$e[v]=$e[g]=$e[b]=$e[y]=$e[_]=$e[w]=$e[O]=$e["[object Uint8ClampedArray]"]=$e[P]=$e[I]=!0,$e[f]=$e[h]=$e[k]=!1;var Ve={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},He=parseFloat,Ue=parseInt,qe="object"==typeof e&&e&&e.Object===Object&&e,We="object"==typeof self&&self&&self.Object===Object&&self,Ye=qe||We||Function("return this")(),Ge=t&&!t.nodeType&&t,Ke=Ge&&"object"==typeof r&&r&&!r.nodeType&&r,Qe=Ke&&Ke.exports===Ge,Je=Qe&&qe.process,Xe=function(){try{var e=Ke&&Ke.require&&Ke.require("util").types;return e||Je&&Je.binding&&Je.binding("util")}catch(e){}}(),Ze=Xe&&Xe.isArrayBuffer,et=Xe&&Xe.isDate,tt=Xe&&Xe.isMap,nt=Xe&&Xe.isRegExp,rt=Xe&&Xe.isSet,it=Xe&&Xe.isTypedArray;function ot(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function ut(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function dt(e,t){return!!(null==e?0:e.length)&&wt(e,t,0)>-1}function ft(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function ht(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function mt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function vt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var bt=St("length");function yt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function _t(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function wt(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):_t(e,xt,n)}function kt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function xt(e){return e!=e}function Ct(e,t){var n=null==e?0:e.length;return n?Mt(e,t)/n:NaN}function St(e){return function(t){return null==t?void 0:t[e]}}function Tt(e){return function(t){return null==e?void 0:e[t]}}function At(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Mt(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Et(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Ot(e){return function(t){return e(t)}}function Pt(e,t){return ht(t,(function(t){return e[t]}))}function It(e,t){return e.has(t)}function Dt(e,t){for(var n=-1,r=e.length;++n<r&&wt(t,e[n],0)>-1;);return n}function jt(e,t){for(var n=e.length;n--&&wt(t,e[n],0)>-1;);return n}function Nt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Rt=Tt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Lt=Tt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function zt(e){return"\\"+Ve[e]}function Ft(e){return Re.test(e)}function Bt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function $t(e,t){return function(n){return e(t(n))}}function Vt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function Ht(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function qt(e){return Ft(e)?function(e){var t=je.lastIndex=0;for(;je.test(e);)++t;return t}(e):bt(e)}function Wt(e){return Ft(e)?function(e){return e.match(je)||[]}(e):function(e){return e.split("")}(e)}var Yt=Tt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Gt=function e(t){var n,r=(t=null==t?Ye:Gt.defaults(Ye.Object(),t,Gt.pick(Ye,ze))).Array,i=t.Date,fe=t.Error,he=t.Function,pe=t.Math,me=t.Object,ve=t.RegExp,ge=t.String,be=t.TypeError,ye=r.prototype,_e=he.prototype,we=me.prototype,ke=t["__core-js_shared__"],xe=_e.toString,Ce=we.hasOwnProperty,Se=0,Te=(n=/[^.]+$/.exec(ke&&ke.keys&&ke.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ae=we.toString,Me=xe.call(me),Ee=Ye._,Oe=ve("^"+xe.call(Ce).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pe=Qe?t.Buffer:void 0,je=t.Symbol,Re=t.Uint8Array,Ve=Pe?Pe.allocUnsafe:void 0,qe=$t(me.getPrototypeOf,me),We=me.create,Ge=we.propertyIsEnumerable,Ke=ye.splice,Je=je?je.isConcatSpreadable:void 0,Xe=je?je.iterator:void 0,bt=je?je.toStringTag:void 0,Tt=function(){try{var e=Zi(me,"defineProperty");return e({},"",{}),e}catch(e){}}(),Kt=t.clearTimeout!==Ye.clearTimeout&&t.clearTimeout,Qt=i&&i.now!==Ye.Date.now&&i.now,Jt=t.setTimeout!==Ye.setTimeout&&t.setTimeout,Xt=pe.ceil,Zt=pe.floor,en=me.getOwnPropertySymbols,tn=Pe?Pe.isBuffer:void 0,nn=t.isFinite,rn=ye.join,on=$t(me.keys,me),an=pe.max,sn=pe.min,cn=i.now,ln=t.parseInt,un=pe.random,dn=ye.reverse,fn=Zi(t,"DataView"),hn=Zi(t,"Map"),pn=Zi(t,"Promise"),mn=Zi(t,"Set"),vn=Zi(t,"WeakMap"),gn=Zi(me,"create"),bn=vn&&new vn,yn={},_n=Ao(fn),wn=Ao(hn),kn=Ao(pn),xn=Ao(mn),Cn=Ao(vn),Sn=je?je.prototype:void 0,Tn=Sn?Sn.valueOf:void 0,An=Sn?Sn.toString:void 0;function Mn(e){if(Ua(e)&&!Da(e)&&!(e instanceof In)){if(e instanceof Pn)return e;if(Ce.call(e,"__wrapped__"))return Mo(e)}return new Pn(e)}var En=function(){function e(){}return function(t){if(!Ha(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function On(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function In(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Nn;++t<n;)this.add(e[t])}function Ln(e){var t=this.__data__=new jn(e);this.size=t.size}function zn(e,t){var n=Da(e),r=!n&&Ia(e),i=!n&&!r&&La(e),o=!n&&!r&&!i&&Xa(e),a=n||r||i||o,s=a?Et(e.length,ge):[],c=s.length;for(var l in e)!t&&!Ce.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ao(l,c))||s.push(l);return s}function Fn(e){var t=e.length;return t?e[Rr(0,t-1)]:void 0}function Bn(e,t){return Co(gi(e),Kn(t,0,e.length))}function $n(e){return Co(gi(e))}function Vn(e,t,n){(void 0!==n&&!Ea(e[t],n)||void 0===n&&!(t in e))&&Yn(e,t,n)}function Hn(e,t,n){var r=e[t];Ce.call(e,t)&&Ea(r,n)&&(void 0!==n||t in e)||Yn(e,t,n)}function Un(e,t){for(var n=e.length;n--;)if(Ea(e[n][0],t))return n;return-1}function qn(e,t,n,r){return er(e,(function(e,i,o){t(r,e,n(e),o)})),r}function Wn(e,t){return e&&bi(t,_s(t),e)}function Yn(e,t,n){"__proto__"==t&&Tt?Tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Gn(e,t){for(var n=-1,i=t.length,o=r(i),a=null==e;++n<i;)o[n]=a?void 0:ms(e,t[n]);return o}function Kn(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Qn(e,t,n,r,i,o){var a,s=1&t,l=2&t,f=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ha(e))return e;var k=Da(e);if(k){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ce.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return gi(e,a)}else{var D=no(e),j=D==h||D==p;if(La(e))return di(e,s);if(D==g||D==c||j&&!i){if(a=l||j?{}:io(e),!s)return l?function(e,t){return bi(e,to(e),t)}(e,function(e,t){return e&&bi(t,ws(t),e)}(a,e)):function(e,t){return bi(e,eo(e),t)}(e,Wn(a,e))}else{if(!$e[D])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case x:return fi(e);case u:case d:return new r(+e);case C:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case S:case T:case A:case M:case E:case O:case"[object Uint8ClampedArray]":case P:case I:return hi(e,n);case m:return new r;case v:case _:return new r(e);case b:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case y:return new r;case w:return i=e,Tn?me(Tn.call(i)):{}}var i}(e,D,s)}}o||(o=new Ln);var N=o.get(e);if(N)return N;o.set(e,a),Ka(e)?e.forEach((function(r){a.add(Qn(r,t,n,r,e,o))})):qa(e)&&e.forEach((function(r,i){a.set(i,Qn(r,t,n,i,e,o))}));var R=k?void 0:(f?l?Wi:qi:l?ws:_s)(e);return st(R||e,(function(r,i){R&&(r=e[i=r]),Hn(a,i,Qn(r,t,n,i,e,o))})),a}function Jn(e,t,n){var r=n.length;if(null==e)return!r;for(e=me(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Xn(e,t,n){if("function"!=typeof e)throw new be(o);return _o((function(){e.apply(void 0,n)}),t)}function Zn(e,t,n,r){var i=-1,o=dt,a=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=ht(t,Ot(n))),r?(o=ft,a=!1):t.length>=200&&(o=It,a=!1,t=new Rn(t));e:for(;++i<s;){var u=e[i],d=null==n?u:n(u);if(u=r||0!==u?u:0,a&&d==d){for(var f=l;f--;)if(t[f]===d)continue e;c.push(u)}else o(t,d,r)||c.push(u)}return c}Mn.templateSettings={escape:B,evaluate:$,interpolate:V,variable:"",imports:{_:Mn}},Mn.prototype=On.prototype,Mn.prototype.constructor=Mn,Pn.prototype=En(On.prototype),Pn.prototype.constructor=Pn,In.prototype=En(On.prototype),In.prototype.constructor=In,Dn.prototype.clear=function(){this.__data__=gn?gn(null):{},this.size=0},Dn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Dn.prototype.get=function(e){var t=this.__data__;if(gn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ce.call(t,e)?t[e]:void 0},Dn.prototype.has=function(e){var t=this.__data__;return gn?void 0!==t[e]:Ce.call(t,e)},Dn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gn&&void 0===t?"__lodash_hash_undefined__":t,this},jn.prototype.clear=function(){this.__data__=[],this.size=0},jn.prototype.delete=function(e){var t=this.__data__,n=Un(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,!0)},jn.prototype.get=function(e){var t=this.__data__,n=Un(t,e);return n<0?void 0:t[n][1]},jn.prototype.has=function(e){return Un(this.__data__,e)>-1},jn.prototype.set=function(e,t){var n=this.__data__,r=Un(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Nn.prototype.clear=function(){this.size=0,this.__data__={hash:new Dn,map:new(hn||jn),string:new Dn}},Nn.prototype.delete=function(e){var t=Ji(this,e).delete(e);return this.size-=t?1:0,t},Nn.prototype.get=function(e){return Ji(this,e).get(e)},Nn.prototype.has=function(e){return Ji(this,e).has(e)},Nn.prototype.set=function(e,t){var n=Ji(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Rn.prototype.add=Rn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Rn.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.clear=function(){this.__data__=new jn,this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ln.prototype.get=function(e){return this.__data__.get(e)},Ln.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.set=function(e,t){var n=this.__data__;if(n instanceof jn){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nn(r)}return n.set(e,t),this.size=n.size,this};var er=wi(cr),tr=wi(lr,!0);function nr(e,t){var n=!0;return er(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function rr(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!Ja(a):n(a,s)))var s=a,c=o}return c}function ir(e,t){var n=[];return er(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function or(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=oo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?or(s,t-1,n,r,i):pt(i,s):r||(i[i.length]=s)}return i}var ar=ki(),sr=ki(!0);function cr(e,t){return e&&ar(e,t,_s)}function lr(e,t){return e&&sr(e,t,_s)}function ur(e,t){return ut(t,(function(t){return Ba(e[t])}))}function dr(e,t){for(var n=0,r=(t=si(t,e)).length;null!=e&&n<r;)e=e[To(t[n++])];return n&&n==r?e:void 0}function fr(e,t,n){var r=t(e);return Da(e)?r:pt(r,n(e))}function hr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":bt&&bt in me(e)?function(e){var t=Ce.call(e,bt),n=e[bt];try{e[bt]=void 0;var r=!0}catch(e){}var i=Ae.call(e);r&&(t?e[bt]=n:delete e[bt]);return i}(e):function(e){return Ae.call(e)}(e)}function pr(e,t){return e>t}function mr(e,t){return null!=e&&Ce.call(e,t)}function vr(e,t){return null!=e&&t in me(e)}function gr(e,t,n){for(var i=n?ft:dt,o=e[0].length,a=e.length,s=a,c=r(a),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=ht(d,Ot(t))),l=sn(d.length,l),c[s]=!n&&(t||o>=120&&d.length>=120)?new Rn(s&&d):void 0}d=e[0];var f=-1,h=c[0];e:for(;++f<o&&u.length<l;){var p=d[f],m=t?t(p):p;if(p=n||0!==p?p:0,!(h?It(h,m):i(u,m,n))){for(s=a;--s;){var v=c[s];if(!(v?It(v,m):i(e[s],m,n)))continue e}h&&h.push(m),u.push(p)}}return u}function br(e,t,n){var r=null==(e=vo(e,t=si(t,e)))?e:e[To(Fo(t))];return null==r?void 0:ot(r,e,n)}function yr(e){return Ua(e)&&hr(e)==c}function _r(e,t,n,r,i){return e===t||(null==e||null==t||!Ua(e)&&!Ua(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=Da(e),s=Da(t),h=a?l:no(e),p=s?l:no(t),k=(h=h==c?g:h)==g,S=(p=p==c?g:p)==g,T=h==p;if(T&&La(e)){if(!La(t))return!1;a=!0,k=!1}if(T&&!k)return o||(o=new Ln),a||Xa(e)?Hi(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!o(new Re(e),new Re(t)));case u:case d:case v:return Ea(+e,+t);case f:return e.name==t.name&&e.message==t.message;case b:case _:return e==t+"";case m:var s=Bt;case y:var c=1&r;if(s||(s=Ht),e.size!=t.size&&!c)return!1;var l=a.get(e);if(l)return l==t;r|=2,a.set(e,t);var h=Hi(s(e),s(t),r,i,o,a);return a.delete(e),h;case w:if(Tn)return Tn.call(e)==Tn.call(t)}return!1}(e,t,h,n,r,i,o);if(!(1&n)){var A=k&&Ce.call(e,"__wrapped__"),M=S&&Ce.call(t,"__wrapped__");if(A||M){var E=A?e.value():e,O=M?t.value():t;return o||(o=new Ln),i(E,O,n,r,o)}}if(!T)return!1;return o||(o=new Ln),function(e,t,n,r,i,o){var a=1&n,s=qi(e),c=s.length,l=qi(t).length;if(c!=l&&!a)return!1;var u=c;for(;u--;){var d=s[u];if(!(a?d in t:Ce.call(t,d)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var h=!0;o.set(e,t),o.set(t,e);var p=a;for(;++u<c;){d=s[u];var m=e[d],v=t[d];if(r)var g=a?r(v,m,d,t,e,o):r(m,v,d,e,t,o);if(!(void 0===g?m===v||i(m,v,n,r,o):g)){h=!1;break}p||(p="constructor"==d)}if(h&&!p){var b=e.constructor,y=t.constructor;b==y||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return o.delete(e),o.delete(t),h}(e,t,n,r,i,o)}(e,t,n,r,_r,i))}function wr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=me(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var c=(s=n[i])[0],l=e[c],u=s[1];if(a&&s[2]){if(void 0===l&&!(c in e))return!1}else{var d=new Ln;if(r)var f=r(l,u,c,e,t,d);if(!(void 0===f?_r(u,l,3,r,d):f))return!1}}return!0}function kr(e){return!(!Ha(e)||(t=e,Te&&Te in t))&&(Ba(e)?Oe:ae).test(Ao(e));var t}function xr(e){return"function"==typeof e?e:null==e?Ws:"object"==typeof e?Da(e)?Er(e[0],e[1]):Mr(e):tc(e)}function Cr(e){if(!fo(e))return on(e);var t=[];for(var n in me(e))Ce.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Sr(e){if(!Ha(e))return function(e){var t=[];if(null!=e)for(var n in me(e))t.push(n);return t}(e);var t=fo(e),n=[];for(var r in e)("constructor"!=r||!t&&Ce.call(e,r))&&n.push(r);return n}function Tr(e,t){return e<t}function Ar(e,t){var n=-1,i=Na(e)?r(e.length):[];return er(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function Mr(e){var t=Xi(e);return 1==t.length&&t[0][2]?po(t[0][0],t[0][1]):function(n){return n===e||wr(n,e,t)}}function Er(e,t){return co(e)&&ho(t)?po(To(e),t):function(n){var r=ms(n,e);return void 0===r&&r===t?vs(n,e):_r(t,r,3)}}function Or(e,t,n,r,i){e!==t&&ar(t,(function(o,a){if(i||(i=new Ln),Ha(o))!function(e,t,n,r,i,o,a){var s=bo(e,n),c=bo(t,n),l=a.get(c);if(l)return void Vn(e,n,l);var u=o?o(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var f=Da(c),h=!f&&La(c),p=!f&&!h&&Xa(c);u=c,f||h||p?Da(s)?u=s:Ra(s)?u=gi(s):h?(d=!1,u=di(c,!0)):p?(d=!1,u=hi(c,!0)):u=[]:Ya(c)||Ia(c)?(u=s,Ia(s)?u=as(s):Ha(s)&&!Ba(s)||(u=io(c))):d=!1}d&&(a.set(c,u),i(u,c,r,o,a),a.delete(c));Vn(e,n,u)}(e,t,a,n,Or,r,i);else{var s=r?r(bo(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),Vn(e,a,s)}}),ws)}function Pr(e,t){var n=e.length;if(n)return ao(t+=t<0?n:0,n)?e[t]:void 0}function Ir(e,t,n){var r=-1;return t=ht(t.length?t:[Ws],Ot(Qi())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Ar(e,(function(e,n,i){return{criteria:ht(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var c=pi(i[r],o[r]);if(c){if(r>=s)return c;var l=n[r];return c*("desc"==l?-1:1)}}return e.index-t.index}(e,t,n)}))}function Dr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=dr(e,a);n(s,a)&&$r(o,si(a,e),s)}return o}function jr(e,t,n,r){var i=r?kt:wt,o=-1,a=t.length,s=e;for(e===t&&(t=gi(t)),n&&(s=ht(e,Ot(n)));++o<a;)for(var c=0,l=t[o],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Ke.call(s,c,1),Ke.call(e,c,1);return e}function Nr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;ao(i)?Ke.call(e,i,1):Zr(e,i)}}return e}function Rr(e,t){return e+Zt(un()*(t-e+1))}function Lr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Zt(t/2))&&(e+=e)}while(t);return n}function zr(e,t){return wo(mo(e,t,Ws),e+"")}function Fr(e){return Fn(Es(e))}function Br(e,t){var n=Es(e);return Co(n,Kn(t,0,n.length))}function $r(e,t,n,r){if(!Ha(e))return e;for(var i=-1,o=(t=si(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var c=To(t[i]),l=n;if(i!=a){var u=s[c];void 0===(l=r?r(u,c,s):void 0)&&(l=Ha(u)?u:ao(t[i+1])?[]:{})}Hn(s,c,l),s=s[c]}return e}var Vr=bn?function(e,t){return bn.set(e,t),e}:Ws,Hr=Tt?function(e,t){return Tt(e,"toString",{configurable:!0,enumerable:!1,value:Hs(t),writable:!0})}:Ws;function Ur(e){return Co(Es(e))}function qr(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function Wr(e,t){var n;return er(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Yr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Ja(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Gr(e,t,Ws,n)}function Gr(e,t,n,r){t=n(t);for(var i=0,o=null==e?0:e.length,a=t!=t,s=null===t,c=Ja(t),l=void 0===t;i<o;){var u=Zt((i+o)/2),d=n(e[u]),f=void 0!==d,h=null===d,p=d==d,m=Ja(d);if(a)var v=r||p;else v=l?p&&(r||f):s?p&&f&&(r||!h):c?p&&f&&!h&&(r||!m):!h&&!m&&(r?d<=t:d<t);v?i=u+1:o=u}return sn(o,4294967294)}function Kr(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!Ea(s,c)){var c=s;o[i++]=0===a?0:a}}return o}function Qr(e){return"number"==typeof e?e:Ja(e)?NaN:+e}function Jr(e){if("string"==typeof e)return e;if(Da(e))return ht(e,Jr)+"";if(Ja(e))return An?An.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Xr(e,t,n){var r=-1,i=dt,o=e.length,a=!0,s=[],c=s;if(n)a=!1,i=ft;else if(o>=200){var l=t?null:Li(e);if(l)return Ht(l);a=!1,i=It,c=new Rn}else c=t?[]:s;e:for(;++r<o;){var u=e[r],d=t?t(u):u;if(u=n||0!==u?u:0,a&&d==d){for(var f=c.length;f--;)if(c[f]===d)continue e;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Zr(e,t){return null==(e=vo(e,t=si(t,e)))||delete e[To(Fo(t))]}function ei(e,t,n,r){return $r(e,t,n(dr(e,t)),r)}function ti(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?qr(e,r?0:o,r?o+1:i):qr(e,r?o+1:0,r?i:o)}function ni(e,t){var n=e;return n instanceof In&&(n=n.value()),mt(t,(function(e,t){return t.func.apply(t.thisArg,pt([e],t.args))}),n)}function ri(e,t,n){var i=e.length;if(i<2)return i?Xr(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],c=-1;++c<i;)c!=o&&(a[o]=Zn(a[o]||s,e[c],t,n));return Xr(or(a,1),t,n)}function ii(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}function oi(e){return Ra(e)?e:[]}function ai(e){return"function"==typeof e?e:Ws}function si(e,t){return Da(e)?e:co(e,t)?[e]:So(ss(e))}var ci=zr;function li(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:qr(e,t,n)}var ui=Kt||function(e){return Ye.clearTimeout(e)};function di(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Re(t).set(new Re(e)),t}function hi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function pi(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=Ja(e),a=void 0!==t,s=null===t,c=t==t,l=Ja(t);if(!s&&!l&&!o&&e>t||o&&a&&c&&!s&&!l||r&&a&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!c)return-1}return 0}function mi(e,t,n,i){for(var o=-1,a=e.length,s=n.length,c=-1,l=t.length,u=an(a-s,0),d=r(l+u),f=!i;++c<l;)d[c]=t[c];for(;++o<s;)(f||o<a)&&(d[n[o]]=e[o]);for(;u--;)d[c++]=e[o++];return d}function vi(e,t,n,i){for(var o=-1,a=e.length,s=-1,c=n.length,l=-1,u=t.length,d=an(a-c,0),f=r(d+u),h=!i;++o<d;)f[o]=e[o];for(var p=o;++l<u;)f[p+l]=t[l];for(;++s<c;)(h||o<a)&&(f[p+n[s]]=e[o++]);return f}function gi(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function bi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?Yn(n,s,c):Hn(n,s,c)}return n}function yi(e,t){return function(n,r){var i=Da(n)?at:qn,o=t?t():{};return i(n,e,Qi(r,2),o)}}function _i(e){return zr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=me(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}function wi(e,t){return function(n,r){if(null==n)return n;if(!Na(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=me(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function ki(e){return function(t,n,r){for(var i=-1,o=me(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}function xi(e){return function(t){var n=Ft(t=ss(t))?Wt(t):void 0,r=n?n[0]:t.charAt(0),i=n?li(n,1).join(""):t.slice(1);return r[e]()+i}}function Ci(e){return function(t){return mt(Bs(Is(t).replace(Ie,"")),e,"")}}function Si(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=En(e.prototype),r=e.apply(n,t);return Ha(r)?r:n}}function Ti(e){return function(t,n,r){var i=me(t);if(!Na(t)){var o=Qi(n,3);t=_s(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}function Ai(e){return Ui((function(t){var n=t.length,r=n,i=Pn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new be(o);if(i&&!s&&"wrapper"==Gi(a))var s=new Pn([],!0)}for(r=s?r:n;++r<n;){var c=Gi(a=t[r]),l="wrapper"==c?Yi(a):void 0;s=l&&lo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[Gi(l[0])].apply(s,l[3]):1==a.length&&lo(a)?s[c]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Da(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Mi(e,t,n,i,o,a,s,c,l,u){var d=128&t,f=1&t,h=2&t,p=24&t,m=512&t,v=h?void 0:Si(e);return function g(){for(var b=arguments.length,y=r(b),_=b;_--;)y[_]=arguments[_];if(p)var w=Ki(g),k=Nt(y,w);if(i&&(y=mi(y,i,o,p)),a&&(y=vi(y,a,s,p)),b-=k,p&&b<u){var x=Vt(y,w);return Ni(e,t,Mi,g.placeholder,n,y,x,c,l,u-b)}var C=f?n:this,S=h?C[e]:e;return b=y.length,c?y=go(y,c):m&&b>1&&y.reverse(),d&&l<b&&(y.length=l),this&&this!==Ye&&this instanceof g&&(S=v||Si(S)),S.apply(C,y)}}function Ei(e,t){return function(n,r){return function(e,t,n,r){return cr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Oi(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Jr(n),r=Jr(r)):(n=Qr(n),r=Qr(r)),i=e(n,r)}return i}}function Pi(e){return Ui((function(t){return t=ht(t,Ot(Qi())),zr((function(n){var r=this;return e(t,(function(e){return ot(e,r,n)}))}))}))}function Ii(e,t){var n=(t=void 0===t?" ":Jr(t)).length;if(n<2)return n?Lr(t,e):t;var r=Lr(t,Xt(e/qt(t)));return Ft(t)?li(Wt(r),0,e).join(""):r.slice(0,e)}function Di(e){return function(t,n,i){return i&&"number"!=typeof i&&so(t,n,i)&&(n=i=void 0),t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n,i){for(var o=-1,a=an(Xt((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,i=void 0===i?t<n?1:-1:ns(i),e)}}function ji(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=os(t),n=os(n)),e(t,n)}}function Ni(e,t,n,r,i,o,a,s,c,l){var u=8&t;t|=u?32:64,4&(t&=~(u?64:32))||(t&=-4);var d=[e,t,i,u?o:void 0,u?a:void 0,u?void 0:o,u?void 0:a,s,c,l],f=n.apply(void 0,d);return lo(e)&&yo(f,d),f.placeholder=r,ko(f,e,t)}function Ri(e){var t=pe[e];return function(e,n){if(e=os(e),(n=null==n?0:sn(rs(n),292))&&nn(e)){var r=(ss(e)+"e").split("e");return+((r=(ss(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Li=mn&&1/Ht(new mn([,-0]))[1]==1/0?function(e){return new mn(e)}:Js;function zi(e){return function(t){var n=no(t);return n==m?Bt(t):n==y?Ut(t):function(e,t){return ht(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Fi(e,t,n,i,s,c,l,u){var d=2&t;if(!d&&"function"!=typeof e)throw new be(o);var f=i?i.length:0;if(f||(t&=-97,i=s=void 0),l=void 0===l?l:an(rs(l),0),u=void 0===u?u:rs(u),f-=s?s.length:0,64&t){var h=i,p=s;i=s=void 0}var m=d?void 0:Yi(e),v=[e,t,n,i,s,h,p,c,l,u];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var c=t[3];if(c){var l=e[3];e[3]=l?mi(l,c,t[4]):c,e[4]=l?Vt(e[3],a):t[4]}(c=t[5])&&(l=e[5],e[5]=l?vi(l,c,t[6]):c,e[6]=l?Vt(e[5],a):t[6]);(c=t[7])&&(e[7]=c);128&r&&(e[8]=null==e[8]?t[8]:sn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(v,m),e=v[0],t=v[1],n=v[2],i=v[3],s=v[4],!(u=v[9]=void 0===v[9]?d?0:e.length:an(v[9]-f,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,n){var i=Si(e);return function o(){for(var a=arguments.length,s=r(a),c=a,l=Ki(o);c--;)s[c]=arguments[c];var u=a<3&&s[0]!==l&&s[a-1]!==l?[]:Vt(s,l);if((a-=u.length)<n)return Ni(e,t,Mi,o.placeholder,void 0,s,u,void 0,void 0,n-a);var d=this&&this!==Ye&&this instanceof o?i:e;return ot(d,this,s)}}(e,t,u):32!=t&&33!=t||s.length?Mi.apply(void 0,v):function(e,t,n,i){var o=1&t,a=Si(e);return function t(){for(var s=-1,c=arguments.length,l=-1,u=i.length,d=r(u+c),f=this&&this!==Ye&&this instanceof t?a:e;++l<u;)d[l]=i[l];for(;c--;)d[l++]=arguments[++s];return ot(f,o?n:this,d)}}(e,t,n,i);else var g=function(e,t,n){var r=1&t,i=Si(e);return function t(){var o=this&&this!==Ye&&this instanceof t?i:e;return o.apply(r?n:this,arguments)}}(e,t,n);return ko((m?Vr:yo)(g,v),e,t)}function Bi(e,t,n,r){return void 0===e||Ea(e,we[n])&&!Ce.call(r,n)?t:e}function $i(e,t,n,r,i,o){return Ha(e)&&Ha(t)&&(o.set(t,e),Or(e,t,void 0,$i,o),o.delete(t)),e}function Vi(e){return Ya(e)?void 0:e}function Hi(e,t,n,r,i,o){var a=1&n,s=e.length,c=t.length;if(s!=c&&!(a&&c>s))return!1;var l=o.get(e);if(l&&o.get(t))return l==t;var u=-1,d=!0,f=2&n?new Rn:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var h=e[u],p=t[u];if(r)var m=a?r(p,h,u,t,e,o):r(h,p,u,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(f){if(!gt(t,(function(e,t){if(!It(f,t)&&(h===e||i(h,e,n,r,o)))return f.push(t)}))){d=!1;break}}else if(h!==p&&!i(h,p,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ui(e){return wo(mo(e,void 0,jo),e+"")}function qi(e){return fr(e,_s,eo)}function Wi(e){return fr(e,ws,to)}var Yi=bn?function(e){return bn.get(e)}:Js;function Gi(e){for(var t=e.name+"",n=yn[t],r=Ce.call(yn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Ki(e){return(Ce.call(Mn,"placeholder")?Mn:e).placeholder}function Qi(){var e=Mn.iteratee||Ys;return e=e===Ys?xr:e,arguments.length?e(arguments[0],arguments[1]):e}function Ji(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Xi(e){for(var t=_s(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ho(i)]}return t}function Zi(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return kr(n)?n:void 0}var eo=en?function(e){return null==e?[]:(e=me(e),ut(en(e),(function(t){return Ge.call(e,t)})))}:ic,to=en?function(e){for(var t=[];e;)pt(t,eo(e)),e=qe(e);return t}:ic,no=hr;function ro(e,t,n){for(var r=-1,i=(t=si(t,e)).length,o=!1;++r<i;){var a=To(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Va(i)&&ao(a,i)&&(Da(e)||Ia(e))}function io(e){return"function"!=typeof e.constructor||fo(e)?{}:En(qe(e))}function oo(e){return Da(e)||Ia(e)||!!(Je&&e&&e[Je])}function ao(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ce.test(e))&&e>-1&&e%1==0&&e<t}function so(e,t,n){if(!Ha(n))return!1;var r=typeof t;return!!("number"==r?Na(n)&&ao(t,n.length):"string"==r&&t in n)&&Ea(n[t],e)}function co(e,t){if(Da(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ja(e))||(U.test(e)||!H.test(e)||null!=t&&e in me(t))}function lo(e){var t=Gi(e),n=Mn[t];if("function"!=typeof n||!(t in In.prototype))return!1;if(e===n)return!0;var r=Yi(n);return!!r&&e===r[0]}(fn&&no(new fn(new ArrayBuffer(1)))!=C||hn&&no(new hn)!=m||pn&&"[object Promise]"!=no(pn.resolve())||mn&&no(new mn)!=y||vn&&no(new vn)!=k)&&(no=function(e){var t=hr(e),n=t==g?e.constructor:void 0,r=n?Ao(n):"";if(r)switch(r){case _n:return C;case wn:return m;case kn:return"[object Promise]";case xn:return y;case Cn:return k}return t});var uo=ke?Ba:oc;function fo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function ho(e){return e==e&&!Ha(e)}function po(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in me(n)))}}function mo(e,t,n){return t=an(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=an(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var c=r(t+1);++o<t;)c[o]=i[o];return c[t]=n(s),ot(e,this,c)}}function vo(e,t){return t.length<2?e:dr(e,qr(t,0,-1))}function go(e,t){for(var n=e.length,r=sn(t.length,n),i=gi(e);r--;){var o=t[r];e[r]=ao(o,n)?i[o]:void 0}return e}function bo(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var yo=xo(Vr),_o=Jt||function(e,t){return Ye.setTimeout(e,t)},wo=xo(Hr);function ko(e,t,n){var r=t+"";return wo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(J,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!dt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(Z):[]}(r),n)))}function xo(e){var t=0,n=0;return function(){var r=cn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Co(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=Rr(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var So=function(e){var t=xa(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(q,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function To(e){if("string"==typeof e||Ja(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ao(e){if(null!=e){try{return xe.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Mo(e){if(e instanceof In)return e.clone();var t=new Pn(e.__wrapped__,e.__chain__);return t.__actions__=gi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Eo=zr((function(e,t){return Ra(e)?Zn(e,or(t,1,Ra,!0)):[]})),Oo=zr((function(e,t){var n=Fo(t);return Ra(n)&&(n=void 0),Ra(e)?Zn(e,or(t,1,Ra,!0),Qi(n,2)):[]})),Po=zr((function(e,t){var n=Fo(t);return Ra(n)&&(n=void 0),Ra(e)?Zn(e,or(t,1,Ra,!0),void 0,n):[]}));function Io(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),_t(e,Qi(t,3),i)}function Do(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rs(n),i=n<0?an(r+i,0):sn(i,r-1)),_t(e,Qi(t,3),i,!0)}function jo(e){return(null==e?0:e.length)?or(e,1):[]}function No(e){return e&&e.length?e[0]:void 0}var Ro=zr((function(e){var t=ht(e,oi);return t.length&&t[0]===e[0]?gr(t):[]})),Lo=zr((function(e){var t=Fo(e),n=ht(e,oi);return t===Fo(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?gr(n,Qi(t,2)):[]})),zo=zr((function(e){var t=Fo(e),n=ht(e,oi);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?gr(n,void 0,t):[]}));function Fo(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var Bo=zr($o);function $o(e,t){return e&&e.length&&t&&t.length?jr(e,t):e}var Vo=Ui((function(e,t){var n=null==e?0:e.length,r=Gn(e,t);return Nr(e,ht(t,(function(e){return ao(e,n)?+e:e})).sort(pi)),r}));function Ho(e){return null==e?e:dn.call(e)}var Uo=zr((function(e){return Xr(or(e,1,Ra,!0))})),qo=zr((function(e){var t=Fo(e);return Ra(t)&&(t=void 0),Xr(or(e,1,Ra,!0),Qi(t,2))})),Wo=zr((function(e){var t=Fo(e);return t="function"==typeof t?t:void 0,Xr(or(e,1,Ra,!0),void 0,t)}));function Yo(e){if(!e||!e.length)return[];var t=0;return e=ut(e,(function(e){if(Ra(e))return t=an(e.length,t),!0})),Et(t,(function(t){return ht(e,St(t))}))}function Go(e,t){if(!e||!e.length)return[];var n=Yo(e);return null==t?n:ht(n,(function(e){return ot(t,void 0,e)}))}var Ko=zr((function(e,t){return Ra(e)?Zn(e,t):[]})),Qo=zr((function(e){return ri(ut(e,Ra))})),Jo=zr((function(e){var t=Fo(e);return Ra(t)&&(t=void 0),ri(ut(e,Ra),Qi(t,2))})),Xo=zr((function(e){var t=Fo(e);return t="function"==typeof t?t:void 0,ri(ut(e,Ra),void 0,t)})),Zo=zr(Yo);var ea=zr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Go(e,n)}));function ta(e){var t=Mn(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var ra=Ui((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Gn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof In&&ao(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var ia=yi((function(e,t,n){Ce.call(e,n)?++e[n]:Yn(e,n,1)}));var oa=Ti(Io),aa=Ti(Do);function sa(e,t){return(Da(e)?st:er)(e,Qi(t,3))}function ca(e,t){return(Da(e)?ct:tr)(e,Qi(t,3))}var la=yi((function(e,t,n){Ce.call(e,n)?e[n].push(t):Yn(e,n,[t])}));var ua=zr((function(e,t,n){var i=-1,o="function"==typeof t,a=Na(e)?r(e.length):[];return er(e,(function(e){a[++i]=o?ot(t,e,n):br(e,t,n)})),a})),da=yi((function(e,t,n){Yn(e,n,t)}));function fa(e,t){return(Da(e)?ht:Ar)(e,Qi(t,3))}var ha=yi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var pa=zr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&so(e,t[0],t[1])?t=[]:n>2&&so(t[0],t[1],t[2])&&(t=[t[0]]),Ir(e,or(t,1),[])})),ma=Qt||function(){return Ye.Date.now()};function va(e,t,n){return t=n?void 0:t,Fi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ga(e,t){var n;if("function"!=typeof t)throw new be(o);return e=rs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ba=zr((function(e,t,n){var r=1;if(n.length){var i=Vt(n,Ki(ba));r|=32}return Fi(e,r,t,n,i)})),ya=zr((function(e,t,n){var r=3;if(n.length){var i=Vt(n,Ki(ya));r|=32}return Fi(t,r,e,n,i)}));function _a(e,t,n){var r,i,a,s,c,l,u=0,d=!1,f=!1,h=!0;if("function"!=typeof e)throw new be(o);function p(t){var n=r,o=i;return r=i=void 0,u=t,s=e.apply(o,n)}function m(e){return u=e,c=_o(g,t),d?p(e):s}function v(e){var n=e-l;return void 0===l||n>=t||n<0||f&&e-u>=a}function g(){var e=ma();if(v(e))return b(e);c=_o(g,function(e){var n=t-(e-l);return f?sn(n,a-(e-u)):n}(e))}function b(e){return c=void 0,h&&r?p(e):(r=i=void 0,s)}function y(){var e=ma(),n=v(e);if(r=arguments,i=this,l=e,n){if(void 0===c)return m(l);if(f)return ui(c),c=_o(g,t),p(l)}return void 0===c&&(c=_o(g,t)),s}return t=os(t)||0,Ha(n)&&(d=!!n.leading,a=(f="maxWait"in n)?an(os(n.maxWait)||0,t):a,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==c&&ui(c),u=0,r=l=i=c=void 0},y.flush=function(){return void 0===c?s:b(ma())},y}var wa=zr((function(e,t){return Xn(e,1,t)})),ka=zr((function(e,t,n){return Xn(e,os(t)||0,n)}));function xa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new be(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(xa.Cache||Nn),n}function Ca(e){if("function"!=typeof e)throw new be(o);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}xa.Cache=Nn;var Sa=ci((function(e,t){var n=(t=1==t.length&&Da(t[0])?ht(t[0],Ot(Qi())):ht(or(t,1),Ot(Qi()))).length;return zr((function(r){for(var i=-1,o=sn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ot(e,this,r)}))})),Ta=zr((function(e,t){return Fi(e,32,void 0,t,Vt(t,Ki(Ta)))})),Aa=zr((function(e,t){return Fi(e,64,void 0,t,Vt(t,Ki(Aa)))})),Ma=Ui((function(e,t){return Fi(e,256,void 0,void 0,void 0,t)}));function Ea(e,t){return e===t||e!=e&&t!=t}var Oa=ji(pr),Pa=ji((function(e,t){return e>=t})),Ia=yr(function(){return arguments}())?yr:function(e){return Ua(e)&&Ce.call(e,"callee")&&!Ge.call(e,"callee")},Da=r.isArray,ja=Ze?Ot(Ze):function(e){return Ua(e)&&hr(e)==x};function Na(e){return null!=e&&Va(e.length)&&!Ba(e)}function Ra(e){return Ua(e)&&Na(e)}var La=tn||oc,za=et?Ot(et):function(e){return Ua(e)&&hr(e)==d};function Fa(e){if(!Ua(e))return!1;var t=hr(e);return t==f||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ya(e)}function Ba(e){if(!Ha(e))return!1;var t=hr(e);return t==h||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function $a(e){return"number"==typeof e&&e==rs(e)}function Va(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ha(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ua(e){return null!=e&&"object"==typeof e}var qa=tt?Ot(tt):function(e){return Ua(e)&&no(e)==m};function Wa(e){return"number"==typeof e||Ua(e)&&hr(e)==v}function Ya(e){if(!Ua(e)||hr(e)!=g)return!1;var t=qe(e);if(null===t)return!0;var n=Ce.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&xe.call(n)==Me}var Ga=nt?Ot(nt):function(e){return Ua(e)&&hr(e)==b};var Ka=rt?Ot(rt):function(e){return Ua(e)&&no(e)==y};function Qa(e){return"string"==typeof e||!Da(e)&&Ua(e)&&hr(e)==_}function Ja(e){return"symbol"==typeof e||Ua(e)&&hr(e)==w}var Xa=it?Ot(it):function(e){return Ua(e)&&Va(e.length)&&!!Be[hr(e)]};var Za=ji(Tr),es=ji((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Na(e))return Qa(e)?Wt(e):gi(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=no(e);return(t==m?Bt:t==y?Ht:Es)(e)}function ns(e){return e?(e=os(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function rs(e){var t=ns(e),n=t%1;return t==t?n?t-n:t:0}function is(e){return e?Kn(rs(e),0,4294967295):0}function os(e){if("number"==typeof e)return e;if(Ja(e))return NaN;if(Ha(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ha(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(G,"");var n=oe.test(e);return n||se.test(e)?Ue(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function as(e){return bi(e,ws(e))}function ss(e){return null==e?"":Jr(e)}var cs=_i((function(e,t){if(fo(t)||Na(t))bi(t,_s(t),e);else for(var n in t)Ce.call(t,n)&&Hn(e,n,t[n])})),ls=_i((function(e,t){bi(t,ws(t),e)})),us=_i((function(e,t,n,r){bi(t,ws(t),e,r)})),ds=_i((function(e,t,n,r){bi(t,_s(t),e,r)})),fs=Ui(Gn);var hs=zr((function(e,t){e=me(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&so(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=ws(o),s=-1,c=a.length;++s<c;){var l=a[s],u=e[l];(void 0===u||Ea(u,we[l])&&!Ce.call(e,l))&&(e[l]=o[l])}return e})),ps=zr((function(e){return e.push(void 0,$i),ot(xs,void 0,e)}));function ms(e,t,n){var r=null==e?void 0:dr(e,t);return void 0===r?n:r}function vs(e,t){return null!=e&&ro(e,t,vr)}var gs=Ei((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),e[t]=n}),Hs(Ws)),bs=Ei((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ae.call(t)),Ce.call(e,t)?e[t].push(n):e[t]=[n]}),Qi),ys=zr(br);function _s(e){return Na(e)?zn(e):Cr(e)}function ws(e){return Na(e)?zn(e,!0):Sr(e)}var ks=_i((function(e,t,n){Or(e,t,n)})),xs=_i((function(e,t,n,r){Or(e,t,n,r)})),Cs=Ui((function(e,t){var n={};if(null==e)return n;var r=!1;t=ht(t,(function(t){return t=si(t,e),r||(r=t.length>1),t})),bi(e,Wi(e),n),r&&(n=Qn(n,7,Vi));for(var i=t.length;i--;)Zr(n,t[i]);return n}));var Ss=Ui((function(e,t){return null==e?{}:function(e,t){return Dr(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Ts(e,t){if(null==e)return{};var n=ht(Wi(e),(function(e){return[e]}));return t=Qi(t),Dr(e,n,(function(e,n){return t(e,n[0])}))}var As=zi(_s),Ms=zi(ws);function Es(e){return null==e?[]:Pt(e,_s(e))}var Os=Ci((function(e,t,n){return t=t.toLowerCase(),e+(n?Ps(t):t)}));function Ps(e){return Fs(ss(e).toLowerCase())}function Is(e){return(e=ss(e))&&e.replace(le,Rt).replace(De,"")}var Ds=Ci((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),js=Ci((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ns=xi("toLowerCase");var Rs=Ci((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ls=Ci((function(e,t,n){return e+(n?" ":"")+Fs(t)}));var zs=Ci((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Fs=xi("toUpperCase");function Bs(e,t,n){return e=ss(e),void 0===(t=n?void 0:t)?function(e){return Le.test(e)}(e)?function(e){return e.match(Ne)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var $s=zr((function(e,t){try{return ot(e,void 0,t)}catch(e){return Fa(e)?e:new fe(e)}})),Vs=Ui((function(e,t){return st(t,(function(t){t=To(t),Yn(e,t,ba(e[t],e))})),e}));function Hs(e){return function(){return e}}var Us=Ai(),qs=Ai(!0);function Ws(e){return e}function Ys(e){return xr("function"==typeof e?e:Qn(e,1))}var Gs=zr((function(e,t){return function(n){return br(n,e,t)}})),Ks=zr((function(e,t){return function(n){return br(e,n,t)}}));function Qs(e,t,n){var r=_s(t),i=ur(t,r);null!=n||Ha(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=ur(t,_s(t)));var o=!(Ha(n)&&"chain"in n&&!n.chain),a=Ba(e);return st(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=gi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Js(){}var Xs=Pi(ht),Zs=Pi(lt),ec=Pi(gt);function tc(e){return co(e)?St(To(e)):function(e){return function(t){return dr(t,e)}}(e)}var nc=Di(),rc=Di(!0);function ic(){return[]}function oc(){return!1}var ac=Oi((function(e,t){return e+t}),0),sc=Ri("ceil"),cc=Oi((function(e,t){return e/t}),1),lc=Ri("floor");var uc,dc=Oi((function(e,t){return e*t}),1),fc=Ri("round"),hc=Oi((function(e,t){return e-t}),0);return Mn.after=function(e,t){if("function"!=typeof t)throw new be(o);return e=rs(e),function(){if(--e<1)return t.apply(this,arguments)}},Mn.ary=va,Mn.assign=cs,Mn.assignIn=ls,Mn.assignInWith=us,Mn.assignWith=ds,Mn.at=fs,Mn.before=ga,Mn.bind=ba,Mn.bindAll=Vs,Mn.bindKey=ya,Mn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Da(e)?e:[e]},Mn.chain=ta,Mn.chunk=function(e,t,n){t=(n?so(e,t,n):void 0===t)?1:an(rs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=r(Xt(i/t));o<i;)s[a++]=qr(e,o,o+=t);return s},Mn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},Mn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return pt(Da(n)?gi(n):[n],or(t,1))},Mn.cond=function(e){var t=null==e?0:e.length,n=Qi();return e=t?ht(e,(function(e){if("function"!=typeof e[1])throw new be(o);return[n(e[0]),e[1]]})):[],zr((function(n){for(var r=-1;++r<t;){var i=e[r];if(ot(i[0],this,n))return ot(i[1],this,n)}}))},Mn.conforms=function(e){return function(e){var t=_s(e);return function(n){return Jn(n,e,t)}}(Qn(e,1))},Mn.constant=Hs,Mn.countBy=ia,Mn.create=function(e,t){var n=En(e);return null==t?n:Wn(n,t)},Mn.curry=function e(t,n,r){var i=Fi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Mn.curryRight=function e(t,n,r){var i=Fi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},Mn.debounce=_a,Mn.defaults=hs,Mn.defaultsDeep=ps,Mn.defer=wa,Mn.delay=ka,Mn.difference=Eo,Mn.differenceBy=Oo,Mn.differenceWith=Po,Mn.drop=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=n||void 0===t?1:rs(t))<0?0:t,r):[]},Mn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,0,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t):[]},Mn.dropRightWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3),!0,!0):[]},Mn.dropWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3),!0):[]},Mn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&so(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=rs(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Mn.filter=function(e,t){return(Da(e)?ut:ir)(e,Qi(t,3))},Mn.flatMap=function(e,t){return or(fa(e,t),1)},Mn.flatMapDeep=function(e,t){return or(fa(e,t),1/0)},Mn.flatMapDepth=function(e,t,n){return n=void 0===n?1:rs(n),or(fa(e,t),n)},Mn.flatten=jo,Mn.flattenDeep=function(e){return(null==e?0:e.length)?or(e,1/0):[]},Mn.flattenDepth=function(e,t){return(null==e?0:e.length)?or(e,t=void 0===t?1:rs(t)):[]},Mn.flip=function(e){return Fi(e,512)},Mn.flow=Us,Mn.flowRight=qs,Mn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},Mn.functions=function(e){return null==e?[]:ur(e,_s(e))},Mn.functionsIn=function(e){return null==e?[]:ur(e,ws(e))},Mn.groupBy=la,Mn.initial=function(e){return(null==e?0:e.length)?qr(e,0,-1):[]},Mn.intersection=Ro,Mn.intersectionBy=Lo,Mn.intersectionWith=zo,Mn.invert=gs,Mn.invertBy=bs,Mn.invokeMap=ua,Mn.iteratee=Ys,Mn.keyBy=da,Mn.keys=_s,Mn.keysIn=ws,Mn.map=fa,Mn.mapKeys=function(e,t){var n={};return t=Qi(t,3),cr(e,(function(e,r,i){Yn(n,t(e,r,i),e)})),n},Mn.mapValues=function(e,t){var n={};return t=Qi(t,3),cr(e,(function(e,r,i){Yn(n,r,t(e,r,i))})),n},Mn.matches=function(e){return Mr(Qn(e,1))},Mn.matchesProperty=function(e,t){return Er(e,Qn(t,1))},Mn.memoize=xa,Mn.merge=ks,Mn.mergeWith=xs,Mn.method=Gs,Mn.methodOf=Ks,Mn.mixin=Qs,Mn.negate=Ca,Mn.nthArg=function(e){return e=rs(e),zr((function(t){return Pr(t,e)}))},Mn.omit=Cs,Mn.omitBy=function(e,t){return Ts(e,Ca(Qi(t)))},Mn.once=function(e){return ga(2,e)},Mn.orderBy=function(e,t,n,r){return null==e?[]:(Da(t)||(t=null==t?[]:[t]),Da(n=r?void 0:n)||(n=null==n?[]:[n]),Ir(e,t,n))},Mn.over=Xs,Mn.overArgs=Sa,Mn.overEvery=Zs,Mn.overSome=ec,Mn.partial=Ta,Mn.partialRight=Aa,Mn.partition=ha,Mn.pick=Ss,Mn.pickBy=Ts,Mn.property=tc,Mn.propertyOf=function(e){return function(t){return null==e?void 0:dr(e,t)}},Mn.pull=Bo,Mn.pullAll=$o,Mn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?jr(e,t,Qi(n,2)):e},Mn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?jr(e,t,void 0,n):e},Mn.pullAt=Vo,Mn.range=nc,Mn.rangeRight=rc,Mn.rearg=Ma,Mn.reject=function(e,t){return(Da(e)?ut:ir)(e,Ca(Qi(t,3)))},Mn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Qi(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Nr(e,i),n},Mn.rest=function(e,t){if("function"!=typeof e)throw new be(o);return zr(e,t=void 0===t?t:rs(t))},Mn.reverse=Ho,Mn.sampleSize=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),(Da(e)?Bn:Br)(e,t)},Mn.set=function(e,t,n){return null==e?e:$r(e,t,n)},Mn.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:$r(e,t,n,r)},Mn.shuffle=function(e){return(Da(e)?$n:Ur)(e)},Mn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&so(e,t,n)?(t=0,n=r):(t=null==t?0:rs(t),n=void 0===n?r:rs(n)),qr(e,t,n)):[]},Mn.sortBy=pa,Mn.sortedUniq=function(e){return e&&e.length?Kr(e):[]},Mn.sortedUniqBy=function(e,t){return e&&e.length?Kr(e,Qi(t,2)):[]},Mn.split=function(e,t,n){return n&&"number"!=typeof n&&so(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Ga(t))&&!(t=Jr(t))&&Ft(e)?li(Wt(e),0,n):e.split(t,n):[]},Mn.spread=function(e,t){if("function"!=typeof e)throw new be(o);return t=null==t?0:an(rs(t),0),zr((function(n){var r=n[t],i=li(n,0,t);return r&&pt(i,r),ot(e,this,i)}))},Mn.tail=function(e){var t=null==e?0:e.length;return t?qr(e,1,t):[]},Mn.take=function(e,t,n){return e&&e.length?qr(e,0,(t=n||void 0===t?1:rs(t))<0?0:t):[]},Mn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?qr(e,(t=r-(t=n||void 0===t?1:rs(t)))<0?0:t,r):[]},Mn.takeRightWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3),!1,!0):[]},Mn.takeWhile=function(e,t){return e&&e.length?ti(e,Qi(t,3)):[]},Mn.tap=function(e,t){return t(e),e},Mn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new be(o);return Ha(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),_a(e,t,{leading:r,maxWait:t,trailing:i})},Mn.thru=na,Mn.toArray=ts,Mn.toPairs=As,Mn.toPairsIn=Ms,Mn.toPath=function(e){return Da(e)?ht(e,To):Ja(e)?[e]:gi(So(ss(e)))},Mn.toPlainObject=as,Mn.transform=function(e,t,n){var r=Da(e),i=r||La(e)||Xa(e);if(t=Qi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ha(e)&&Ba(o)?En(qe(e)):{}}return(i?st:cr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Mn.unary=function(e){return va(e,1)},Mn.union=Uo,Mn.unionBy=qo,Mn.unionWith=Wo,Mn.uniq=function(e){return e&&e.length?Xr(e):[]},Mn.uniqBy=function(e,t){return e&&e.length?Xr(e,Qi(t,2)):[]},Mn.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Xr(e,void 0,t):[]},Mn.unset=function(e,t){return null==e||Zr(e,t)},Mn.unzip=Yo,Mn.unzipWith=Go,Mn.update=function(e,t,n){return null==e?e:ei(e,t,ai(n))},Mn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:ei(e,t,ai(n),r)},Mn.values=Es,Mn.valuesIn=function(e){return null==e?[]:Pt(e,ws(e))},Mn.without=Ko,Mn.words=Bs,Mn.wrap=function(e,t){return Ta(ai(t),e)},Mn.xor=Qo,Mn.xorBy=Jo,Mn.xorWith=Xo,Mn.zip=Zo,Mn.zipObject=function(e,t){return ii(e||[],t||[],Hn)},Mn.zipObjectDeep=function(e,t){return ii(e||[],t||[],$r)},Mn.zipWith=ea,Mn.entries=As,Mn.entriesIn=Ms,Mn.extend=ls,Mn.extendWith=us,Qs(Mn,Mn),Mn.add=ac,Mn.attempt=$s,Mn.camelCase=Os,Mn.capitalize=Ps,Mn.ceil=sc,Mn.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=os(n))==n?n:0),void 0!==t&&(t=(t=os(t))==t?t:0),Kn(os(e),t,n)},Mn.clone=function(e){return Qn(e,4)},Mn.cloneDeep=function(e){return Qn(e,5)},Mn.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},Mn.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},Mn.conformsTo=function(e,t){return null==t||Jn(e,t,_s(t))},Mn.deburr=Is,Mn.defaultTo=function(e,t){return null==e||e!=e?t:e},Mn.divide=cc,Mn.endsWith=function(e,t,n){e=ss(e),t=Jr(t);var r=e.length,i=n=void 0===n?r:Kn(rs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Mn.eq=Ea,Mn.escape=function(e){return(e=ss(e))&&F.test(e)?e.replace(L,Lt):e},Mn.escapeRegExp=function(e){return(e=ss(e))&&Y.test(e)?e.replace(W,"\\$&"):e},Mn.every=function(e,t,n){var r=Da(e)?lt:nr;return n&&so(e,t,n)&&(t=void 0),r(e,Qi(t,3))},Mn.find=oa,Mn.findIndex=Io,Mn.findKey=function(e,t){return yt(e,Qi(t,3),cr)},Mn.findLast=aa,Mn.findLastIndex=Do,Mn.findLastKey=function(e,t){return yt(e,Qi(t,3),lr)},Mn.floor=lc,Mn.forEach=sa,Mn.forEachRight=ca,Mn.forIn=function(e,t){return null==e?e:ar(e,Qi(t,3),ws)},Mn.forInRight=function(e,t){return null==e?e:sr(e,Qi(t,3),ws)},Mn.forOwn=function(e,t){return e&&cr(e,Qi(t,3))},Mn.forOwnRight=function(e,t){return e&&lr(e,Qi(t,3))},Mn.get=ms,Mn.gt=Oa,Mn.gte=Pa,Mn.has=function(e,t){return null!=e&&ro(e,t,mr)},Mn.hasIn=vs,Mn.head=No,Mn.identity=Ws,Mn.includes=function(e,t,n,r){e=Na(e)?e:Es(e),n=n&&!r?rs(n):0;var i=e.length;return n<0&&(n=an(i+n,0)),Qa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&wt(e,t,n)>-1},Mn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),wt(e,t,i)},Mn.inRange=function(e,t,n){return t=ns(t),void 0===n?(n=t,t=0):n=ns(n),function(e,t,n){return e>=sn(t,n)&&e<an(t,n)}(e=os(e),t,n)},Mn.invoke=ys,Mn.isArguments=Ia,Mn.isArray=Da,Mn.isArrayBuffer=ja,Mn.isArrayLike=Na,Mn.isArrayLikeObject=Ra,Mn.isBoolean=function(e){return!0===e||!1===e||Ua(e)&&hr(e)==u},Mn.isBuffer=La,Mn.isDate=za,Mn.isElement=function(e){return Ua(e)&&1===e.nodeType&&!Ya(e)},Mn.isEmpty=function(e){if(null==e)return!0;if(Na(e)&&(Da(e)||"string"==typeof e||"function"==typeof e.splice||La(e)||Xa(e)||Ia(e)))return!e.length;var t=no(e);if(t==m||t==y)return!e.size;if(fo(e))return!Cr(e).length;for(var n in e)if(Ce.call(e,n))return!1;return!0},Mn.isEqual=function(e,t){return _r(e,t)},Mn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?_r(e,t,void 0,n):!!r},Mn.isError=Fa,Mn.isFinite=function(e){return"number"==typeof e&&nn(e)},Mn.isFunction=Ba,Mn.isInteger=$a,Mn.isLength=Va,Mn.isMap=qa,Mn.isMatch=function(e,t){return e===t||wr(e,t,Xi(t))},Mn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,wr(e,t,Xi(t),n)},Mn.isNaN=function(e){return Wa(e)&&e!=+e},Mn.isNative=function(e){if(uo(e))throw new fe("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(e)},Mn.isNil=function(e){return null==e},Mn.isNull=function(e){return null===e},Mn.isNumber=Wa,Mn.isObject=Ha,Mn.isObjectLike=Ua,Mn.isPlainObject=Ya,Mn.isRegExp=Ga,Mn.isSafeInteger=function(e){return $a(e)&&e>=-9007199254740991&&e<=9007199254740991},Mn.isSet=Ka,Mn.isString=Qa,Mn.isSymbol=Ja,Mn.isTypedArray=Xa,Mn.isUndefined=function(e){return void 0===e},Mn.isWeakMap=function(e){return Ua(e)&&no(e)==k},Mn.isWeakSet=function(e){return Ua(e)&&"[object WeakSet]"==hr(e)},Mn.join=function(e,t){return null==e?"":rn.call(e,t)},Mn.kebabCase=Ds,Mn.last=Fo,Mn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?an(r+i,0):sn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):_t(e,xt,i,!0)},Mn.lowerCase=js,Mn.lowerFirst=Ns,Mn.lt=Za,Mn.lte=es,Mn.max=function(e){return e&&e.length?rr(e,Ws,pr):void 0},Mn.maxBy=function(e,t){return e&&e.length?rr(e,Qi(t,2),pr):void 0},Mn.mean=function(e){return Ct(e,Ws)},Mn.meanBy=function(e,t){return Ct(e,Qi(t,2))},Mn.min=function(e){return e&&e.length?rr(e,Ws,Tr):void 0},Mn.minBy=function(e,t){return e&&e.length?rr(e,Qi(t,2),Tr):void 0},Mn.stubArray=ic,Mn.stubFalse=oc,Mn.stubObject=function(){return{}},Mn.stubString=function(){return""},Mn.stubTrue=function(){return!0},Mn.multiply=dc,Mn.nth=function(e,t){return e&&e.length?Pr(e,rs(t)):void 0},Mn.noConflict=function(){return Ye._===this&&(Ye._=Ee),this},Mn.noop=Js,Mn.now=ma,Mn.pad=function(e,t,n){e=ss(e);var r=(t=rs(t))?qt(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ii(Zt(i),n)+e+Ii(Xt(i),n)},Mn.padEnd=function(e,t,n){e=ss(e);var r=(t=rs(t))?qt(e):0;return t&&r<t?e+Ii(t-r,n):e},Mn.padStart=function(e,t,n){e=ss(e);var r=(t=rs(t))?qt(e):0;return t&&r<t?Ii(t-r,n)+e:e},Mn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),ln(ss(e).replace(K,""),t||0)},Mn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&so(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ns(e),void 0===t?(t=e,e=0):t=ns(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=un();return sn(e+i*(t-e+He("1e-"+((i+"").length-1))),t)}return Rr(e,t)},Mn.reduce=function(e,t,n){var r=Da(e)?mt:At,i=arguments.length<3;return r(e,Qi(t,4),n,i,er)},Mn.reduceRight=function(e,t,n){var r=Da(e)?vt:At,i=arguments.length<3;return r(e,Qi(t,4),n,i,tr)},Mn.repeat=function(e,t,n){return t=(n?so(e,t,n):void 0===t)?1:rs(t),Lr(ss(e),t)},Mn.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Mn.result=function(e,t,n){var r=-1,i=(t=si(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[To(t[r])];void 0===o&&(r=i,o=n),e=Ba(o)?o.call(e):o}return e},Mn.round=fc,Mn.runInContext=e,Mn.sample=function(e){return(Da(e)?Fn:Fr)(e)},Mn.size=function(e){if(null==e)return 0;if(Na(e))return Qa(e)?qt(e):e.length;var t=no(e);return t==m||t==y?e.size:Cr(e).length},Mn.snakeCase=Rs,Mn.some=function(e,t,n){var r=Da(e)?gt:Wr;return n&&so(e,t,n)&&(t=void 0),r(e,Qi(t,3))},Mn.sortedIndex=function(e,t){return Yr(e,t)},Mn.sortedIndexBy=function(e,t,n){return Gr(e,t,Qi(n,2))},Mn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Yr(e,t);if(r<n&&Ea(e[r],t))return r}return-1},Mn.sortedLastIndex=function(e,t){return Yr(e,t,!0)},Mn.sortedLastIndexBy=function(e,t,n){return Gr(e,t,Qi(n,2),!0)},Mn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Yr(e,t,!0)-1;if(Ea(e[n],t))return n}return-1},Mn.startCase=Ls,Mn.startsWith=function(e,t,n){return e=ss(e),n=null==n?0:Kn(rs(n),0,e.length),t=Jr(t),e.slice(n,n+t.length)==t},Mn.subtract=hc,Mn.sum=function(e){return e&&e.length?Mt(e,Ws):0},Mn.sumBy=function(e,t){return e&&e.length?Mt(e,Qi(t,2)):0},Mn.template=function(e,t,n){var r=Mn.templateSettings;n&&so(e,t,n)&&(t=void 0),e=ss(e),t=us({},t,r,Bi);var i,o,a=us({},t.imports,r.imports,Bi),s=_s(a),c=Pt(a,s),l=0,u=t.interpolate||ue,d="__p += '",f=ve((t.escape||ue).source+"|"+u.source+"|"+(u===V?ne:ue).source+"|"+(t.evaluate||ue).source+"|$","g"),h="//# sourceURL="+(Ce.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++Fe+"]")+"\n";e.replace(f,(function(t,n,r,a,s,c){return r||(r=a),d+=e.slice(l,c).replace(de,zt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),d+="';\n";var p=Ce.call(t,"variable")&&t.variable;p||(d="with (obj) {\n"+d+"\n}\n"),d=(o?d.replace(D,""):d).replace(j,"$1").replace(N,"$1;"),d="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=$s((function(){return he(s,h+"return "+d).apply(void 0,c)}));if(m.source=d,Fa(m))throw m;return m},Mn.times=function(e,t){if((e=rs(e))<1||e>9007199254740991)return[];var n=4294967295,r=sn(e,4294967295);e-=4294967295;for(var i=Et(r,t=Qi(t));++n<e;)t(n);return i},Mn.toFinite=ns,Mn.toInteger=rs,Mn.toLength=is,Mn.toLower=function(e){return ss(e).toLowerCase()},Mn.toNumber=os,Mn.toSafeInteger=function(e){return e?Kn(rs(e),-9007199254740991,9007199254740991):0===e?e:0},Mn.toString=ss,Mn.toUpper=function(e){return ss(e).toUpperCase()},Mn.trim=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(G,"");if(!e||!(t=Jr(t)))return e;var r=Wt(e),i=Wt(t);return li(r,Dt(r,i),jt(r,i)+1).join("")},Mn.trimEnd=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(Q,"");if(!e||!(t=Jr(t)))return e;var r=Wt(e);return li(r,0,jt(r,Wt(t))+1).join("")},Mn.trimStart=function(e,t,n){if((e=ss(e))&&(n||void 0===t))return e.replace(K,"");if(!e||!(t=Jr(t)))return e;var r=Wt(e);return li(r,Dt(r,Wt(t))).join("")},Mn.truncate=function(e,t){var n=30,r="...";if(Ha(t)){var i="separator"in t?t.separator:i;n="length"in t?rs(t.length):n,r="omission"in t?Jr(t.omission):r}var o=(e=ss(e)).length;if(Ft(e)){var a=Wt(e);o=a.length}if(n>=o)return e;var s=n-qt(r);if(s<1)return r;var c=a?li(a,0,s).join(""):e.slice(0,s);if(void 0===i)return c+r;if(a&&(s+=c.length-s),Ga(i)){if(e.slice(s).search(i)){var l,u=c;for(i.global||(i=ve(i.source,ss(re.exec(i))+"g")),i.lastIndex=0;l=i.exec(u);)var d=l.index;c=c.slice(0,void 0===d?s:d)}}else if(e.indexOf(Jr(i),s)!=s){var f=c.lastIndexOf(i);f>-1&&(c=c.slice(0,f))}return c+r},Mn.unescape=function(e){return(e=ss(e))&&z.test(e)?e.replace(R,Yt):e},Mn.uniqueId=function(e){var t=++Se;return ss(e)+t},Mn.upperCase=zs,Mn.upperFirst=Fs,Mn.each=sa,Mn.eachRight=ca,Mn.first=No,Qs(Mn,(uc={},cr(Mn,(function(e,t){Ce.call(Mn.prototype,t)||(uc[t]=e)})),uc),{chain:!1}),Mn.VERSION="4.17.15",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Mn[e].placeholder=Mn})),st(["drop","take"],(function(e,t){In.prototype[e]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!t?new In(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},In.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;In.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");In.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");In.prototype[e]=function(){return this.__filtered__?new In(this):this[n](1)}})),In.prototype.compact=function(){return this.filter(Ws)},In.prototype.find=function(e){return this.filter(e).head()},In.prototype.findLast=function(e){return this.reverse().find(e)},In.prototype.invokeMap=zr((function(e,t){return"function"==typeof e?new In(this):this.map((function(n){return br(n,e,t)}))})),In.prototype.reject=function(e){return this.filter(Ca(Qi(e)))},In.prototype.slice=function(e,t){e=rs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new In(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=rs(t))<0?n.dropRight(-t):n.take(t-e)),n)},In.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},In.prototype.toArray=function(){return this.take(4294967295)},cr(In.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Mn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Mn.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof In,c=a[0],l=s||Da(t),u=function(e){var t=i.apply(Mn,pt([e],a));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var d=this.__chain__,f=!!this.__actions__.length,h=o&&!d,p=s&&!f;if(!o&&l){t=p?t:new In(this);var m=e.apply(t,a);return m.__actions__.push({func:na,args:[u],thisArg:void 0}),new Pn(m,d)}return h&&p?e.apply(this,a):(m=this.thru(u),h?r?m.value()[0]:m.value():m)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Mn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Da(i)?i:[],e)}return this[n]((function(n){return t.apply(Da(n)?n:[],e)}))}})),cr(In.prototype,(function(e,t){var n=Mn[t];if(n){var r=n.name+"";Ce.call(yn,r)||(yn[r]=[]),yn[r].push({name:t,func:n})}})),yn[Mi(void 0,2).name]=[{name:"wrapper",func:void 0}],In.prototype.clone=function(){var e=new In(this.__wrapped__);return e.__actions__=gi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=gi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=gi(this.__views__),e},In.prototype.reverse=function(){if(this.__filtered__){var e=new In(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},In.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Da(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=sn(t,e+a);break;case"takeRight":e=an(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,c=s-a,l=r?s:a-1,u=this.__iteratees__,d=u.length,f=0,h=sn(c,this.__takeCount__);if(!n||!r&&i==c&&h==c)return ni(e,this.__actions__);var p=[];e:for(;c--&&f<h;){for(var m=-1,v=e[l+=t];++m<d;){var g=u[m],b=g.iteratee,y=g.type,_=b(v);if(2==y)v=_;else if(!_){if(1==y)continue e;break e}}p[f++]=v}return p},Mn.prototype.at=ra,Mn.prototype.chain=function(){return ta(this)},Mn.prototype.commit=function(){return new Pn(this.value(),this.__chain__)},Mn.prototype.next=function(){void 0===this.__values__&&(this.__values__=ts(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Mn.prototype.plant=function(e){for(var t,n=this;n instanceof On;){var r=Mo(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Mn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof In){var t=e;return this.__actions__.length&&(t=new In(this)),(t=t.reverse()).__actions__.push({func:na,args:[Ho],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Ho)},Mn.prototype.toJSON=Mn.prototype.valueOf=Mn.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},Mn.prototype.first=Mn.prototype.head,Xe&&(Mn.prototype[Xe]=function(){return this}),Mn}();Ye._=Gt,void 0===(i=function(){return Gt}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(e))},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"341a":function(e,t,n){},"35e8":function(e,t,n){var r=n("d9f6"),i=n("aebd");e.exports=n("8e60")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"454f":function(e,t,n){n("46a7");var r=n("584a").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(e){return i(r(e))}}))},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"46a7":function(e,t,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"52a7":function(e,t){t.f={}.propertyIsEnumerable},5404:function(e,t,n){"use strict";var r=n("97f5");n.n(r).a},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"584a":function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c=function(e,t,n){var l,u,d,f,h=e&c.F,p=e&c.G,m=e&c.S,v=e&c.P,g=e&c.B,b=p?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,y=p?i:i[t]||(i[t]={}),_=y.prototype||(y.prototype={});for(l in p&&(n=t),n)d=((u=!h&&b&&void 0!==b[l])?b:n)[l],f=g&&u?s(d,r):v&&"function"==typeof d?s(Function.call,d):d,b&&a(b,l,d,e&c.U),y[l]!=d&&o(y,l,f),v&&_[l]!=d&&(_[l]=d)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"629f":function(e,t,n){},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"63b6":function(e,t,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),c=function(e,t,n){var l,u,d,f=e&c.F,h=e&c.G,p=e&c.S,m=e&c.P,v=e&c.B,g=e&c.W,b=h?i:i[t]||(i[t]={}),y=b.prototype,_=h?r:p?r[t]:(r[t]||{}).prototype;for(l in h&&(n=t),n)(u=!f&&_&&void 0!==_[l])&&s(b,l)||(d=u?_[l]:n[l],b[l]=h&&"function"!=typeof _[l]?n[l]:v&&u?o(d,r):g&&_[l]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((b.virtual||(b.virtual={}))[l]=d,e&c.R&&y&&!y[l]&&a(y,l,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},"794b":function(e,t,n){e.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},8378:function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"84f2":function(e,t){e.exports={}},"85f2":function(e,t,n){e.exports=n("454f")},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8e60":function(e,t,n){e.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8e6e":function(e,t,n){var r=n("5ca1"),i=n("990b"),o=n("6821"),a=n("11e9"),s=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=o(e),c=a.f,l=i(r),u={},d=0;l.length>d;)void 0!==(n=c(r,t=l[d++]))&&s(u,t,n);return u}})},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"97f5":function(e,t,n){},"990b":function(e,t,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),a=n("7726").Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;null==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9d16":function(e,t,n){"use strict";var r=n("341a");n.n(r).a},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),c=n("84f2"),l=n("2b4c"),u=l("iterator"),d=l("toStringTag"),f=c.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(h),m=0;m<p.length;m++){var v,g=p[m],b=h[g],y=a[g],_=y&&y.prototype;if(_&&(_[u]||s(_,u,f),_[d]||s(_,d,g),c[g]=f,b))for(v in r)_[v]||o(_,v,r[v],!0)}},aebd:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},be13:function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},d3f4:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d864:function(e,t,n){var r=n("79aa");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},d9f6:function(e,t,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;t.f=n("8e60")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(e,t,n){var r=n("f772");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},e53d:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},f1ae:function(e,t,n){"use strict";var r=n("86cc"),i=n("4630");e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},f6fd:function(e,t){!function(e){var t=e.getElementsByTagName("script");"currentScript"in e||Object.defineProperty(e,"currentScript",{get:function(){try{throw new Error}catch(r){var e,n=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(e in t)if(t[e].src==n||"interactive"==t[e].readyState)return t[e];return null}}})}(document)},f772:function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},fa5b:function(e,t,n){e.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fb15:function(e,t,n){"use strict";var r;(n.r(t),"undefined"!=typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("8e6e"),n("ac6a"),n("cadf"),n("456d");var i=n("85f2"),o=n.n(i);function a(e,t,n){return t in e?o()(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n("2ef0"),c={name:"repeater-block",props:["isFirst","isLast","icon"],methods:{dragStart:function(e){e.target.style.opacity=.5,this.$emit("dragStart",e)},dragEnd:function(e){e.target.style.opacity=1,this.$emit("dragEnd",e)}}};n("5404");function l(e,t,n,r,i,o,a,s){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}var u=l(c,(function(){var e,t=this,n=t.$createElement,r=t._self._c||n;return r("div",{staticClass:"repeater-block",attrs:{draggable:"true"},on:{dragstart:t.dragStart,dragend:t.dragEnd,click:function(e){return t.$emit("click")}}},[r("div",{staticClass:"toolbar"},[t.icon?r("div",{staticClass:"block-icon"},[r("button",[r("i",{class:(e={},e[t.icon]=!0,e)})])]):t._e(),r("button",{attrs:{title:"Add"},on:{click:function(e){return e.stopPropagation(),t.$emit("add")}}},[r("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M6.5 6.5V1C6.5 0.854167 6.54688 0.734375 6.64062 0.640625C6.73438 0.546875 6.85417 0.5 7 0.5C7.14583 0.5 7.26562 0.546875 7.35938 0.640625C7.45312 0.734375 7.5 0.854167 7.5 1V6.5H13C13.1458 6.5 13.2656 6.54688 13.3594 6.64062C13.4531 6.73438 13.5 6.85417 13.5 7C13.5 7.14583 13.4531 7.26562 13.3594 7.35938C13.2656 7.45312 13.1458 7.5 13 7.5H7.5V13C7.5 13.1458 7.45312 13.2656 7.35938 13.3594C7.26562 13.4531 7.14583 13.5 7 13.5C6.85417 13.5 6.73438 13.4531 6.64062 13.3594C6.54688 13.2656 6.5 13.1458 6.5 13V7.5H1C0.854167 7.5 0.734375 7.45312 0.640625 7.35938C0.546875 7.26562 0.5 7.14583 0.5 7C0.5 6.85417 0.546875 6.73438 0.640625 6.64062C0.734375 6.54688 0.854167 6.5 1 6.5H6.5Z",fill:"black"}})])]),r("button",{attrs:{content:"Duplicate"},on:{click:function(e){return e.stopPropagation(),t.$emit("duplicate")}}},[r("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M11 12C10.9896 12.5625 10.7917 13.0312 10.4062 13.4062C10.0312 13.7917 9.5625 13.9896 9 14H2C1.4375 13.9896 0.963542 13.7917 0.578125 13.4062C0.203125 13.0312 0.0104167 12.5625 0 12V5C0.0104167 4.4375 0.203125 3.96875 0.578125 3.59375C0.963542 3.20833 1.4375 3.01042 2 3V4C1.71875 4.01042 1.48438 4.10938 1.29688 4.29688C1.10938 4.48438 1.01042 4.71875 1 5V12C1.01042 12.2812 1.10938 12.5156 1.29688 12.7031C1.48438 12.8906 1.71875 12.9896 2 13H9C9.28125 12.9896 9.51562 12.8906 9.70312 12.7031C9.89062 12.5156 9.98958 12.2812 10 12H11ZM5 1C4.71875 1.01042 4.48438 1.10938 4.29688 1.29688C4.10938 1.48438 4.01042 1.71875 4 2V9C4.01042 9.28125 4.10938 9.51562 4.29688 9.70312C4.48438 9.89062 4.71875 9.98958 5 10H12C12.2812 9.98958 12.5156 9.89062 12.7031 9.70312C12.8906 9.51562 12.9896 9.28125 13 9V2C12.9896 1.71875 12.8906 1.48438 12.7031 1.29688C12.5156 1.10938 12.2812 1.01042 12 1H5ZM5 0H12C12.5625 0.0104167 13.0312 0.208333 13.4062 0.59375C13.7917 0.96875 13.9896 1.4375 14 2V9C13.9896 9.5625 13.7917 10.0365 13.4062 10.4219C13.0312 10.7969 12.5625 10.9896 12 11H5C4.4375 10.9896 3.96354 10.7969 3.57812 10.4219C3.20312 10.0365 3.01042 9.5625 3 9V2C3.01042 1.4375 3.20312 0.96875 3.57812 0.59375C3.96354 0.208333 4.4375 0.0104167 5 0Z",fill:"black"}})])]),r("button",{attrs:{title:"Remove block"},on:{click:function(e){return e.stopPropagation(),t.$emit("remove")}}},[r("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M1.5 3H0.5C0.354167 3 0.234375 2.95312 0.140625 2.85938C0.046875 2.76562 0 2.64583 0 2.5C0 2.35417 0.046875 2.23438 0.140625 2.14062C0.234375 2.04688 0.354167 2 0.5 2H4.5V0.5C4.5 0.354167 4.54688 0.234375 4.64062 0.140625C4.73438 0.046875 4.85417 0 5 0H9C9.14583 0 9.26562 0.046875 9.35938 0.140625C9.45312 0.234375 9.5 0.354167 9.5 0.5V2H13.5C13.6458 2 13.7656 2.04688 13.8594 2.14062C13.9531 2.23438 14 2.35417 14 2.5C14 2.64583 13.9531 2.76562 13.8594 2.85938C13.7656 2.95312 13.6458 3 13.5 3H12.5V13.5C12.5 13.6458 12.4531 13.7656 12.3594 13.8594C12.2656 13.9531 12.1458 14 12 14H2C1.85417 14 1.73438 13.9531 1.64062 13.8594C1.54688 13.7656 1.5 13.6458 1.5 13.5V3ZM8.5 2V1H5.5V2H8.5ZM2.5 13H11.5V3H2.5V13ZM5.5 11C5.35417 11 5.23438 10.9531 5.14062 10.8594C5.04688 10.7656 5 10.6458 5 10.5V5.5C5 5.35417 5.04688 5.23438 5.14062 5.14062C5.23438 5.04688 5.35417 5 5.5 5C5.64583 5 5.76562 5.04688 5.85938 5.14062C5.95312 5.23438 6 5.35417 6 5.5V10.5C6 10.6458 5.95312 10.7656 5.85938 10.8594C5.76562 10.9531 5.64583 11 5.5 11ZM8.5 11C8.35417 11 8.23438 10.9531 8.14062 10.8594C8.04688 10.7656 8 10.6458 8 10.5V5.5C8 5.35417 8.04688 5.23438 8.14062 5.14062C8.23438 5.04688 8.35417 5 8.5 5C8.64583 5 8.76562 5.04688 8.85938 5.14062C8.95312 5.23438 9 5.35417 9 5.5V10.5C9 10.6458 8.95312 10.7656 8.85938 10.8594C8.76562 10.9531 8.64583 11 8.5 11Z",fill:"black"}})])])]),r("div",{staticClass:"navigation"},[t.isFirst?t._e():r("button",{staticClass:"nav-button up",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.$emit("up")}}},[r("svg",{attrs:{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",role:"img","aria-hidden":"true",focusable:"false"}},[r("polygon",{attrs:{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "}})])]),r("button",{staticClass:"nav-anchor",attrs:{type:"button"}},[r("svg",{attrs:{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",role:"img","aria-hidden":"true",focusable:"false"}},[r("path",{attrs:{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"}})])]),t.isLast?t._e():r("button",{staticClass:"nav-button down",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.$emit("down")}}},[r("svg",{attrs:{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",role:"img","aria-hidden":"true",focusable:"false"}},[r("polygon",{attrs:{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "}})])])]),t._t("default")],2)}),[],!1,null,"25650116",null).exports,d={name:"repeater-drop-zone"};n("9d16");function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var p={name:"repeater",components:{"repeater-block":u,"repeater-drop-zone":l(d,(function(){var e=this,t=e.$createElement;return(e._self._c||t)("div",{staticClass:"repeater-drop-zone",on:{dragover:function(e){e.preventDefault()},drop:function(t){return e.$emit("drop",t)},dragenter:function(t){return e.$emit("dragEnter",t)}}},[e._t("default")],2)}),[],!1,null,"423cbaa4",null).exports},model:{prop:"fields",event:"change"},props:["fields"],mounted:function(){document.body.addEventListener("click",this.clickOutside)},beforeDestroy:function(){document.body.removeEventListener("click",this.clickOutside)},data:function(){return{pFields:this.fields.map((function(e){return h({},e,{defaultValue:Object(s.cloneDeep)(e.value)})})),entered:-1}},methods:{clickOutside:function(e){this.deactivate()},setFields:function(e){this.pFields=e,this.$emit("change",this.pFields)},add:function(e,t){var n=Object(s.cloneDeep)(this.pFields),r=Object(s.cloneDeep)(t);r.value=r.defaultValue,r.active=!1,n.splice(e,0,r),this.setFields(n)},remove:function(e){var t=Object(s.cloneDeep)(this.pFields);t.splice(e,1),this.setFields(t)},duplicate:function(e,t){var n=Object(s.cloneDeep)(this.pFields),r=Object(s.cloneDeep)(t);r.active=!1,n.splice(e,0,r),this.setFields(n)},move:function(e,t){e=parseInt(e,10)||0;var n=Object(s.cloneDeep)(this.pFields),r=n.splice(e,1);n.splice(t,0,r[0]),this.setFields(n),this.entered=-1},deactivate:function(){var e=Object(s.cloneDeep)(this.pFields).map((function(e){return h({},e,{active:!1})}));this.setFields(e)},activate:function(e){this.deactivate();var t=Object(s.cloneDeep)(this.pFields);t[e].active=!0,this.setFields(t)},dragEnd:function(e){var t=e.y,n=this.$refs.repeater.getBoundingClientRect().bottom,r=e.dataTransfer.getData("index"),i=this.pFields.length-1;t>n&&this.move(r,i)}}},m=(n("1ecd"),l(p,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"repeater",staticClass:"repeater",on:{click:function(e){e.stopPropagation()}}},e._l(e.pFields,(function(t,r){return n("repeater-drop-zone",{key:t.name+r,class:{entered:e.entered===r},on:{drop:function(t){e.move(t.dataTransfer.getData("index"),r)},dragEnter:function(t){e.entered=r}}},[n("repeater-block",{class:{active:t.active},attrs:{isFirst:0===r,isLast:r===e.pFields.length-1},on:{dragStart:function(e){return e.dataTransfer.setData("index",r)},dragEnd:e.dragEnd,add:function(n){return e.add(r,t)},remove:function(t){return e.remove(r)},duplicate:function(n){return e.duplicate(r,t)},up:function(t){return e.move(r,r-1)},down:function(t){return e.move(r,r+1)},click:function(t){return e.activate(r)}}},[n(t.name,{tag:"component",model:{value:t.value,callback:function(n){e.$set(t,"value",n)},expression:"field.value"}})],1)],1)})),1)}),[],!1,null,null,null).exports);t.default=m}}).default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="dist",n(n.s=0)}([function(e,t,n){var r;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){function n(e,t){var r,i,o;n.installed||(n.installed=!0,t&&t.lodash?(e.lodash=t.lodash,e._=t.lodash,Object.defineProperties(e.prototype,{lodash:{get:function(){return t.lodash}},_:{get:function(){return t.lodash}}}),t.name&&(e[t.name]=t.lodash,Object.defineProperties(e.prototype,(r={},o={get:function(){return t.lodash}},(i=t.name)in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r)))):console.error("You have to install lodash"))}"object"==i(t)?e.exports=n:void 0===(r=function(){return n}.apply(t,[]))||(e.exports=r)}()}])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(434)},function(e,t,n){"use strict";n.r(t);n(123),n(124),n(126);var r=n(26),i=n.n(r),o=n(77),a=n(209),s=n.n(a),c=(n(435),n(34)),l=n.n(c),u=n(273),d=n.n(u);n(208),window.Vue=n(33),window.Vue.use(i.a),window.Vue.use(o.MdProgress),window.Vue.use(s.a),window.Vue.component("vue-repeater",s.a);var f=Vue.options.components["vue-repeater"].extend({methods:{add:function(e,t){var n=Object(c.cloneDeep)(this.pFields),r=Object(c.cloneDeep)(t);r.value=r.defaultValue,r.active=!1,n.push(r),this.setFields(n)}}});window.Vue.component("vue-repeater-after",f),window.Vue.use(d.a,{lodash:l.a});var h=n(170);h.keys().map((function(e){return Vue.component(e.split("/").pop().split(".")[0],h(e).default)}));new Vue({el:"#app",data:{publishState:{file:{title:"",slug:""},email:{subject:"",content:""}}}})},function(e,t,n){var r=n(3),i=n(436);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(4)(!1)).push([e.i,".repeater-block[data-v-25650116]{padding:16px;background:var(--white,var(--def-white));position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100px;border:1px solid transparent;border-left-width:3px}.repeater-block.active[data-v-25650116]{border-color:var(--border-base,var(--def-border-base))}.repeater-block.active .navigation[data-v-25650116]{display:block}.repeater-block.active .toolbar[data-v-25650116]{display:-webkit-box;display:-ms-flexbox;display:flex}.repeater-block .toolbar[data-v-25650116]{position:absolute;top:-36px;left:-3px;display:none;padding:0;background:var(--white,var(--def-white));overflow:hidden;border:1px solid var(--border-light,var(--def-border-light));border-left-width:3px}.repeater-block .toolbar .block-icon[data-v-25650116],.repeater-block .toolbar[data-v-25650116]{height:36px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.repeater-block .toolbar .block-icon[data-v-25650116]{background:var(--background-base,var(--def-background-base));width:48px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.repeater-block .toolbar .block-icon button[data-v-25650116]{cursor:default}.repeater-block .toolbar .block-icon button[data-v-25650116]:hover{-webkit-box-shadow:none;box-shadow:none;border:0}.repeater-block .toolbar button[data-v-25650116]{background:transparent;border:1px solid transparent;border-radius:4px;display:block;width:30px;height:30px;cursor:pointer;font-size:16px;margin:0 4px}.repeater-block .toolbar button[data-v-25650116]:hover{border:1px solid var(--border-base,var(--def-border-base));-webkit-box-shadow:0 1px 1px var(--border-base,var(--def-border-base));box-shadow:0 1px 1px var(--border-base,var(--def-border-base))}.repeater-block[data-v-25650116]:hover{border-color:var(--border-base,var(--def-border-base))}.repeater-block:hover .navigation[data-v-25650116]{display:block}.repeater-block:hover .toolbar[data-v-25650116]{display:-webkit-box;display:-ms-flexbox;display:flex}.repeater-block .navigation[data-v-25650116]{position:absolute;top:0;bottom:0;left:-29px;width:29px;display:none}.repeater-block .navigation button[data-v-25650116]{background:transparent;position:absolute;left:-2px;opacity:.5;margin-right:2px}.repeater-block .navigation button[data-v-25650116]:hover{opacity:1}.repeater-block .navigation .nav-anchor[data-v-25650116]{border:none;padding:2px 5px;outline:none;cursor:pointer;top:27px}.repeater-block .navigation .nav-button[data-v-25650116]{border:none;cursor:pointer;padding:2px 5px;border-radius:4px;margin-bottom:5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.repeater-block .navigation .nav-button[data-v-25650116]:hover{-webkit-box-shadow:inset 0 0 0 1px var(--border-light,var(--def-border-light)),inset 0 0 0 2px var(--white,var(--def-white)),0 1px 1px var(--border-base,var(--def-border-base));box-shadow:inset 0 0 0 1px var(--border-light,var(--def-border-light)),inset 0 0 0 2px var(--white,var(--def-white)),0 1px 1px var(--border-base,var(--def-border-base))}.repeater-block .navigation .nav-button.up[data-v-25650116]{top:0}.repeater-block .navigation .nav-button.down[data-v-25650116]{top:51px}.entered[data-v-423cbaa4]{-webkit-box-shadow:inset 0 3px 0 0 var(--primary,var(--def-primary));box-shadow:inset 0 3px 0 0 var(--primary,var(--def-primary))}.repeater-drop-zone[data-v-423cbaa4]{padding-top:8px}:root{--def-primary:#409eff;--def-success:#67c23a;--def-warning:#e6a23c;--def-danger:#f56c6c;--def-info:#909399;--def-text-primary:#303133;--def-text-regular:#555d66;--def-text-secondary:#909399;--def-text-placeholder:#c0c4cc;--def-border-base:#dcdfe6;--def-border-light:#e4e7ed;--def-border-extra-light:#f2f6fc;--def-white:#fff;--def-black:#000;--def-background-base:#f5f7fa}.test{width:900px;margin:200px auto 0}.address[data-v-1b0fdeb4],.row[data-v-1b0fdeb4]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.row[data-v-1b0fdeb4]{margin-bottom:16px}label[data-v-1b0fdeb4]{text-align:left;margin-bottom:4px}input[data-v-1b0fdeb4]{height:32px;border-radius:4px;border:1px solid var(--def-border-base)}",""]),e.exports=t}]);
\ No newline at end of file
+!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=725)}([function(t,e,n){t.exports=n(300)},function(t,e,n){"use strict";const r=n(136),i=n(325),o=n(326),a=n(19),{StripeConnectionError:s,StripeAuthenticationError:u,StripePermissionError:l,StripeRateLimitError:c,StripeError:f,StripeAPIError:d}=n(39),h=new r.Agent({keepAlive:!0}),p=new i.Agent({keepAlive:!0});m.extend=a.protoExtend,m.method=n(194),m.BASIC_METHODS=n(422),m.MAX_BUFFERED_REQUEST_METRICS=100;function m(t,e){if(this._stripe=t,e)throw new Error("Support for curried url params was dropped in stripe-node v7.0.0. Instead, pass two ids.");this.basePath=a.makeURLInterpolator(this.basePath||t.getApiField("basePath")),this.resourcePath=this.path,this.path=a.makeURLInterpolator(this.path),this.includeBasic&&this.includeBasic.forEach((function(t){this[t]=m.BASIC_METHODS[t]}),this),this.initialize(...arguments)}m.prototype={path:"",basePath:null,initialize(){},requestDataProcessor:null,validateRequest:null,createFullPath(t,e){return o.join(this.basePath(e),this.path(e),"function"==typeof t?t(e):t).replace(/\\/g,"/")},createResourcePathWithSymbols(t){return"/"+o.join(this.resourcePath,t||"").replace(/\\/g,"/")},wrapTimeout:a.callbackifyPromiseWithTimeout,_timeoutHandler(t,e,n){return()=>{const r=new TypeError("ETIMEDOUT");r.code="ETIMEDOUT",e._isAborted=!0,e.abort(),n.call(this,new s({message:`Request aborted due to timeout being reached (${t}ms)`,detail:r}),null)}},_responseHandler(t,e){return n=>{let r="";n.setEncoding("utf8"),n.on("data",t=>{r+=t}),n.once("end",()=>{const i=n.headers||{};n.requestId=i["request-id"];const o=i["stripe-account"];o&&(n.stripeAccount=o);const s=i["stripe-version"];s&&(n.apiVersion=s);const h=i["idempotency-key"];h&&(n.idempotencyKey=h);const p=Date.now(),m=p-t._requestStart,v=a.removeNullish({api_version:i["stripe-version"],account:i["stripe-account"],idempotency_key:i["idempotency-key"],method:t._requestEvent.method,path:t._requestEvent.path,status:n.statusCode,request_id:n.requestId,elapsed:m,request_start_time:t._requestStart,request_end_time:p});this._stripe._emitter.emit("response",v);try{if(r=JSON.parse(r),r.error){let t;return"string"==typeof r.error&&(r.error={type:r.error,message:r.error_description}),r.error.headers=i,r.error.statusCode=n.statusCode,r.error.requestId=n.requestId,t=401===n.statusCode?new u(r.error):403===n.statusCode?new l(r.error):429===n.statusCode?new c(r.error):f.generate(r.error),e.call(this,t,null)}}catch(t){return e.call(this,new d({message:"Invalid JSON received from the Stripe API",response:r,exception:t,requestId:i["request-id"]}),null)}this._recordRequestMetrics(n.requestId,m),Object.defineProperty(r,"lastResponse",{enumerable:!1,writable:!1,value:n}),e.call(this,null,r)})}},_generateConnectionErrorMessage:t=>"An error occurred with our connection to Stripe."+(t>0?` Request was retried ${t} times.`:""),_errorHandler(t,e,n){return r=>{t._isAborted||n.call(this,new s({message:this._generateConnectionErrorMessage(e),detail:r}),null)}},_shouldRetry:(t,e,n)=>!(e>=n)&&(!t||(!t.headers||"false"!==t.headers["stripe-should-retry"])&&(!(!t.headers||"true"!==t.headers["stripe-should-retry"])||(409===t.statusCode||t.statusCode>=500))),_getSleepTimeInMS(t,e=null){const n=this._stripe.getInitialNetworkRetryDelay(),r=this._stripe.getMaxNetworkRetryDelay();let i=Math.min(n*Math.pow(t-1,2),r);return i*=.5*(1+Math.random()),i=Math.max(n,i),Number.isInteger(e)&&e<=60&&(i=Math.max(i,e)),1e3*i},_getMaxNetworkRetries(t={}){return t.maxNetworkRetries&&Number.isInteger(t.maxNetworkRetries)?t.maxNetworkRetries:this._stripe.getMaxNetworkRetries()},_defaultIdempotencyKey(t,e){const n=this._getMaxNetworkRetries(e);return"POST"===t&&n>0?"stripe-node-retry-"+a.uuid4():null},_makeHeaders(t,e,n,r,i,o,s){const u={Authorization:t?"Bearer "+t:this._stripe.getApiField("auth"),Accept:"application/json","Content-Type":"application/x-www-form-urlencoded","Content-Length":e,"User-Agent":this._getUserAgentString(),"X-Stripe-Client-User-Agent":r,"X-Stripe-Client-Telemetry":this._getTelemetryHeader(),"Stripe-Version":n,"Idempotency-Key":this._defaultIdempotencyKey(i,s)};return Object.assign(a.removeNullish(u),a.normalizeHeaders(o))},_getUserAgentString(){return`Stripe/v1 NodeBindings/${this._stripe.getConstant("PACKAGE_VERSION")} ${this._stripe._appInfo?this._stripe.getAppInfoAsString():""}`.trim()},_getTelemetryHeader(){if(this._stripe.getTelemetryEnabled()&&this._stripe._prevRequestMetrics.length>0){const t=this._stripe._prevRequestMetrics.shift();return JSON.stringify({last_request_metrics:t})}},_recordRequestMetrics(t,e){this._stripe.getTelemetryEnabled()&&t&&(this._stripe._prevRequestMetrics.length>m.MAX_BUFFERED_REQUEST_METRICS?a.emitWarning("Request metrics buffer is full, dropping telemetry message."):this._stripe._prevRequestMetrics.push({request_id:t,request_duration_ms:e}))},_request(t,e,n,o,s,u={},l){let c;const f=(t,e,n,r,i)=>setTimeout(t,this._getSleepTimeInMS(r,i),e,n,r+1),d=(o,s,m)=>{const v=u.settings&&Number.isInteger(u.settings.timeout)&&u.settings.timeout>=0?u.settings.timeout:this._stripe.getApiField("timeout"),g="http"===this._stripe.getApiField("protocol");let b=this._stripe.getApiField("agent");null==b&&(b=g?h:p);const y=(g?r:i).request({host:e||this._stripe.getApiField("host"),port:this._stripe.getApiField("port"),path:n,method:t,agent:b,headers:s,ciphers:"DEFAULT:!aNULL:!eNULL:!LOW:!EXPORT:!SSLv2:!MD5"}),w=Date.now(),_=a.removeNullish({api_version:o,account:s["Stripe-Account"],idempotency_key:s["Idempotency-Key"],method:t,path:n,request_start_time:w}),k=m||0,M=this._getMaxNetworkRetries(u.settings);y._requestEvent=_,y._requestStart=w,this._stripe._emitter.emit("request",_),y.setTimeout(v,this._timeoutHandler(v,y,l)),y.once("response",t=>this._shouldRetry(t,k,M)?f(d,o,s,k,((t||{}).headers||{})["retry-after"]):this._responseHandler(y,l)(t)),y.on("error",t=>this._shouldRetry(null,k,M)?f(d,o,s,k,null):this._errorHandler(y,k,l)(t)),y.once("socket",t=>{t.connecting?t.once(g?"connect":"secureConnect",()=>{y.write(c),y.end()}):(y.write(c),y.end())})},m=(e,n)=>{if(e)return l(e);c=n,this._stripe.getClientUserAgent(e=>{const n=this._stripe.getApiField("version"),r=this._makeHeaders(s,c.length,n,e,t,u.headers,u.settings);d(n,r)})};this.requestDataProcessor?this.requestDataProcessor(t,o,u.headers,m):m(null,a.stringifyRequestData(o||{}))}},t.exports=m},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:l}}n.d(e,"a",(function(){return r}))},function(t,e,n){var r=n(6),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,l=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&h())}function h(){if(!c){var t=s(d);c=!0;for(var e=l.length;e;){for(u=l,l=[];++f<e;)u&&u[f].run();f=-1,e=l.length}u=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||c||s(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";(function(t){var r=n(235),i=n(236),o=n(117);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=d(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|p(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|h(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?s(t,0):d(t,e);if("Buffer"===e.type&&o(e.data))return d(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(c(e),t=s(t,e<0?0:0|h(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function d(t,e){var n=e.length<0?0:0|h(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function h(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(t).length;default:if(r)return F(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return E(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return A(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return S(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function v(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:b(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;o<s;o++)if(l(t,o)===l(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(l(t,o+d)!==l(e,d)){f=!1;break}if(f)return o}return-1}function y(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function w(t,e,n,r){return V(F(e,t.length-n),t,n,r)}function _(t,e,n,r){return V(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function k(t,e,n,r){return _(t,e,n,r)}function M(t,e,n,r){return V(q(e),t,n,r)}function x(t,e,n,r){return V(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function S(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,u,l=t[i],c=null,f=l>239?4:l>223?3:l>191?2:1;if(i+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=u,e.SlowBuffer=function(t){+t!=t&&(t=0);return u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return l(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return c(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return f(null,t)},u.allocUnsafeSlow=function(t){return f(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=u.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},u.byteLength=p,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)v(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)v(this,e,e+3),v(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)v(this,e,e+7),v(this,e+1,e+6),v(this,e+2,e+5),v(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):m.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),f=0;f<s;++f)if(l[f]!==c[f]){o=l[f],a=c[f];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":return _(this,t,e,n);case"latin1":case"binary":return k(this,t,e,n);case"base64":return M(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function A(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function E(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=z(t[o]);return i}function O(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function R(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function j(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function D(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,r,o){return o||D(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function L(t,e,n,r,o){return o||D(t,0,n,8),i.write(t,e,n,r,52,8),n+8}u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=u.prototype;else{var i=e-t;n=new u(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},u.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||I(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},u.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||I(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):j(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);I(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);I(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):j(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):j(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return L(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return L(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},u.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=u.isBuffer(t)?t:F(new u(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function z(t){return t<16?"0"+t.toString(16):t.toString(16)}function F(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(7))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r,i=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},o=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function u(t,e){for(var n={},r=[],i=0;i<t.length;i++){var o=t[i],u=e.base?o[0]+e.base:o[0],l=n[u]||0,c="".concat(u," ").concat(l);n[u]=l+1;var f=s(c),d={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(a[f].references++,a[f].updater(d)):a.push({identifier:c,updater:v(d,e),references:1}),r.push(c)}return r}function l(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var i=n.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var c,f=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function d(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=f(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function h(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var p=null,m=0;function v(t,e){var n,r,i;if(e.singleton){var o=m++;n=p||(p=l(e)),r=d.bind(null,n,o,!1),i=d.bind(null,n,o,!0)}else n=l(e),r=h.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=u(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=s(n[r]);a[i].references--}for(var o=u(t,e),l=0;l<n.length;l++){var c=s(n[l]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}n=o}}}},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,u;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<t.length;s++){var u=[].concat(t[s]);r&&i[u[0]]||(n&&(u[2]?u[2]="".concat(n," and ").concat(u[2]):u[2]=n),e.push(u))}},e}},,function(t,e,n){"use strict";var r=n(109),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){return"[object Function]"===i.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}t.exports={isArray:o,isArrayBuffer:function(t){return"[object ArrayBuffer]"===i.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:s,isUndefined:a,isDate:function(t){return"[object Date]"===i.call(t)},isFile:function(t){return"[object File]"===i.call(t)},isBlob:function(t){return"[object Blob]"===i.call(t)},isFunction:u,isStream:function(t){return s(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:l,merge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]=n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return e},deepMerge:function t(){var e={};function n(n,r){"object"==typeof e[r]&&"object"==typeof n?e[r]=t(e[r],n):e[r]="object"==typeof n?t({},n):n}for(var r=0,i=arguments.length;r<i;r++)l(arguments[r],n);return e},extend:function(t,e,n){return l(e,(function(e,i){t[i]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=n,n.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},function(t,e,n){"use strict";var r=e,i=n(18),o=n(12),a=n(178);r.assert=o,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(t,e,n){var r=new Array(Math.max(t.bitLength(),n)+1);r.fill(0);for(var i=1<<e+1,o=t.clone(),a=0;a<r.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},r.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r=0,i=0;t.cmpn(-r)>0||e.cmpn(-i)>0;){var o,a,s,u=t.andln(3)+r&3,l=e.andln(3)+i&3;if(3===u&&(u=-1),3===l&&(l=-1),0==(1&u))o=0;else o=3!==(s=t.andln(7)+r&7)&&5!==s||2!==l?u:-u;if(n[0].push(o),0==(1&l))a=0;else a=3!==(s=e.andln(7)+i&7)&&5!==s||2!==u?l:-l;n[1].push(a),2*r===o+1&&(r=1-r),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return n},r.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(t){return"string"==typeof t?r.toArray(t,"hex"):t},r.intFromLE=function(t){return new i(t,"hex","le")}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise((function(n,r){function i(){void 0!==o&&t.removeListener("error",o),n([].slice.call(arguments))}var o;"error"!==e&&(o=function(n){t.removeListener(e,i),r(n)},t.once("error",o)),t.once(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function l(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,n,r){var i,o,a,s;if(l(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=c(t))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(i):v(i,i.length)}function m(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");u=t}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var r="error"===t,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)o(u,this,e);else{var l=u.length,c=v(u,l);for(n=0;n<l;++n)o(c[n],this,e)}return!0},s.prototype.addListener=function(t,e){return f(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return f(this,t,e,!0)},s.prototype.once=function(t,e){return l(e),this.on(t,h(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return l(e),this.prependListener(t,h(this,t,e)),this},s.prototype.removeListener=function(t,e){var n,r,i,o,a;if(l(e),void 0===(r=this._events))return this;if(void 0===(n=r[t]))return this;if(n===e||n.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete r[t],r.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(r=e.length-1;r>=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){"use strict";var r=n(12),i=n(2);function o(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(var r=0,i=0;i<t.length;i++){var a=t.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(t,i)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i<t.length;i++)n[i]=0|t[i];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=s(t[n].toString(16));return e},e.htonl=a,e.toHex32=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t[r];"little"===e&&(i=a(i)),n+=u(i.toString(16))}return n},e.zero2=s,e.zero8=u,e.join32=function(t,e,n,i){var o=n-e;r(o%4==0);for(var a=new Array(o/4),s=0,u=e;s<a.length;s++,u+=4){var l;l="big"===i?t[u]<<24|t[u+1]<<16|t[u+2]<<8|t[u+3]:t[u+3]<<24|t[u+2]<<16|t[u+1]<<8|t[u],a[s]=l>>>0}return a},e.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r<t.length;r++,i+=4){var o=t[r];"big"===e?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},e.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},e.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,a=(o<r?1:0)+n+i;t[e]=a>>>0,t[e+1]=o},e.sum64_hi=function(t,e,n,r){return(e+r>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,r){return e+r>>>0},e.sum64_4_hi=function(t,e,n,r,i,o,a,s){var u=0,l=e;return u+=(l=l+r>>>0)<e?1:0,u+=(l=l+o>>>0)<o?1:0,t+n+i+a+(u+=(l=l+s>>>0)<s?1:0)>>>0},e.sum64_4_lo=function(t,e,n,r,i,o,a,s){return e+r+o+s>>>0},e.sum64_5_hi=function(t,e,n,r,i,o,a,s,u,l){var c=0,f=e;return c+=(f=f+r>>>0)<e?1:0,c+=(f=f+o>>>0)<o?1:0,c+=(f=f+s>>>0)<s?1:0,t+n+i+a+u+(c+=(f=f+l>>>0)<l?1:0)>>>0},e.sum64_5_lo=function(t,e,n,r,i,o,a,s,u,l){return e+r+o+s+l>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},,function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(383).Buffer}catch(t){}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c<s;c+=r)l=u(t,c,c+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=u(t,c,t.length,e),c=0;c<a;c++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var c=u>>>26,f=67108863&u,d=Math.min(l,e.length-1),h=Math.max(0,l-t.length+1);h<=d;h++){var p=l-h|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[h])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=c[t],h=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(t);n=(p=p.idivn(h)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var h=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,_=y>>>13,k=0|a[4],M=8191&k,x=k>>>13,S=0|a[5],C=8191&S,A=S>>>13,T=0|a[6],E=8191&T,O=T>>>13,P=0|a[7],I=8191&P,R=P>>>13,j=0|a[8],D=8191&j,N=j>>>13,L=0|a[9],B=8191&L,z=L>>>13,F=0|s[0],q=8191&F,V=F>>>13,$=0|s[1],H=8191&$,U=$>>>13,W=0|s[2],K=8191&W,Y=W>>>13,G=0|s[3],Z=8191&G,J=G>>>13,X=0|s[4],Q=8191&X,tt=X>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ft=8191&ct,dt=ct>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,V))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,V))+Math.imul(m,q)|0,o=Math.imul(m,V);var gt=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,U)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,U)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,q),i=(i=Math.imul(g,V))+Math.imul(b,q)|0,o=Math.imul(b,V),r=r+Math.imul(p,H)|0,i=(i=i+Math.imul(p,U)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,U)|0;var bt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,K)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,V))+Math.imul(_,q)|0,o=Math.imul(_,V),r=r+Math.imul(g,H)|0,i=(i=i+Math.imul(g,U)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,U)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Y)|0;var yt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,Z)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,V))+Math.imul(x,q)|0,o=Math.imul(x,V),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,U)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,U)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0;var wt=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,V))+Math.imul(A,q)|0,o=Math.imul(A,V),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,U)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,U)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(d,nt)|0))<<13)|0;l=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,V))+Math.imul(O,q)|0,o=Math.imul(O,V),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,U)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,U)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,r=r+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var kt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(d,ot)|0))<<13)|0;l=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(I,q),i=(i=Math.imul(I,V))+Math.imul(R,q)|0,o=Math.imul(R,V),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,U)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,U)|0,r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(l+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(d,ut)|0))<<13)|0;l=((o=o+Math.imul(d,lt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,V))+Math.imul(N,q)|0,o=Math.imul(N,V),r=r+Math.imul(I,H)|0,i=(i=i+Math.imul(I,U)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,U)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0;var xt=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,dt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,V))+Math.imul(z,q)|0,o=Math.imul(z,V),r=r+Math.imul(D,H)|0,i=(i=i+Math.imul(D,U)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,U)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,H),i=(i=Math.imul(B,U))+Math.imul(z,H)|0,o=Math.imul(z,U),r=r+Math.imul(D,K)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0;var Ct=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,K),i=(i=Math.imul(B,Y))+Math.imul(z,K)|0,o=Math.imul(z,Y),r=r+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,lt)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,dt)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0;var At=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(B,Z),i=(i=Math.imul(B,J))+Math.imul(z,Z)|0,o=Math.imul(z,J),r=r+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,lt)|0,r=r+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,dt)|0;var Tt=(l+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,tt))+Math.imul(z,Q)|0,o=Math.imul(z,tt),r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,lt)|0,r=r+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0;var Et=(l+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(z,nt)|0,o=Math.imul(z,rt),r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,lt)|0,r=r+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,dt)|0)+Math.imul(O,ft)|0,o=o+Math.imul(O,dt)|0;var Ot=(l+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,lt)|0,r=r+Math.imul(I,ft)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0;var Pt=(l+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(O,pt)|0))<<13)|0;l=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,lt))+Math.imul(z,ut)|0,o=Math.imul(z,lt),r=r+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(N,ft)|0,o=o+Math.imul(N,dt)|0;var It=(l+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(R,pt)|0))<<13)|0;l=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(B,ft),i=(i=Math.imul(B,dt))+Math.imul(z,ft)|0,o=Math.imul(z,dt);var Rt=(l+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,mt)|0)+Math.imul(N,pt)|0))<<13)|0;l=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(l+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(z,pt)|0))<<13)|0;return l=((o=Math.imul(z,mt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=xt,u[9]=St,u[10]=Ct,u[11]=At,u[12]=Tt,u[13]=Et,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=Rt,u[18]=jt,0!==l&&(u[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(h=d),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?h(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=u;l++){var c=o-l,f=(0|t.words[c])*(0|e.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},m.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=u,d=l,h=0;h<a;h++){var p=n[c+h],m=r[c+h],v=n[c+h+a],g=r[c+h+a],b=f*v-d*g;g=f*g+d*v,v=b,n[c+h]=p+v,r[c+h]=m+g,n[c+h+a]=p-v,r[c+h+a]=m-g,h!==s&&(b=u*f-l*d,d=u*d+l*f,f=b)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},m.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),l=new Array(r),c=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,l,r),this.transform(a,o,s,u,r,i),this.transform(l,o,c,f,r,i);for(var h=0;h<r;h++){var p=s[h]*c[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var l=0;l<a;l++)u.words[l]=this.words[l];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=r.clone()._ishlnsubmul(i,1,u);0===c.negative&&(r=c,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=e.clone();!e.isZero();){for(var d=0,h=1;0==(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0==(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function M(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(b,g),b.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(y,g),i(w,g),i(_,g),_.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return v[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;0!==h.cmp(s);){for(var m=h,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new o(1).iushln(p-v-1));d=d.redMul(g),f=g.redSqr(),h=h.redMul(f),p=v}return d},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),r=e.length-1;r>=0;r--){for(var l=e.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new M(t)},i(M,k),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(14)(t))},function(t,e,n){"use strict";(function(e,r){const i=n(15).EventEmitter,o=n(93),a=n(144),s=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let u=null;try{u=n(!function(){var t=new Error("Cannot find module 'child_process'");throw t.code="MODULE_NOT_FOUND",t}()).exec}catch(t){if("MODULE_NOT_FOUND"!==t.code)throw t}const l=["apiKey","idempotencyKey","stripeAccount","apiVersion","maxNetworkRetries","timeout"],c={api_key:"apiKey",idempotency_key:"idempotencyKey",stripe_account:"stripeAccount",stripe_version:"apiVersion",stripeVersion:"apiVersion"},f=Object.keys(c),d=t.exports={isOptionsHash:t=>t&&"object"==typeof t&&(l.some(e=>s(t,e))||f.some(e=>s(t,e))),stringifyRequestData:t=>o.stringify(t,{serializeDate:t=>Math.floor(t.getTime()/1e3)}).replace(/%5B/g,"[").replace(/%5D/g,"]"),makeURLInterpolator:(()=>{const t={"\n":"\\n",'"':'\\"',"\u2028":"\\u2028","\u2029":"\\u2029"};return e=>{const n=e.replace(/["\n\r\u2028\u2029]/g,e=>t[e]);return t=>n.replace(/\{([\s\S]+?)\}/g,(e,n)=>encodeURIComponent(t[n]||""))}})(),extractUrlParams:t=>{const e=t.match(/\{\w+\}/g);return e?e.map(t=>t.replace(/[{}]/g,"")):[]},getDataFromArgs(t){if(!Array.isArray(t)||!t[0]||"object"!=typeof t[0])return{};if(!d.isOptionsHash(t[0]))return t.shift();const e=Object.keys(t[0]),n=e.filter(t=>l.includes(t));return n.length>0&&n.length!==e.length&&h(`Options found in arguments (${n.join(", ")}). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options.`),{}},getOptionsFromArgs:t=>{const e={auth:null,headers:{},settings:{}};if(t.length>0){const n=t[t.length-1];if("string"==typeof n)e.auth=t.pop();else if(d.isOptionsHash(n)){const n={...t.pop()},r=Object.keys(n).filter(t=>!l.includes(t));if(r.length){r.filter(t=>{if(!c[t])return!0;const e=c[t];if(n[e])throw Error(`Both '${e}' and '${t}' were provided; please remove '${t}', which is deprecated.`);h(`'${t}' is deprecated; use '${e}' instead.`),n[e]=n[t]}).length&&h(`Invalid options found (${r.join(", ")}); ignoring.`)}n.apiKey&&(e.auth=n.apiKey),n.idempotencyKey&&(e.headers["Idempotency-Key"]=n.idempotencyKey),n.stripeAccount&&(e.headers["Stripe-Account"]=n.stripeAccount),n.apiVersion&&(e.headers["Stripe-Version"]=n.apiVersion),Number.isInteger(n.maxNetworkRetries)&&(e.settings.maxNetworkRetries=n.maxNetworkRetries),Number.isInteger(n.timeout)&&(e.settings.timeout=n.timeout)}}return e},protoExtend(t){const e=this,n=s(t,"constructor")?t.constructor:function(...t){e.apply(this,t)};return Object.assign(n,e),n.prototype=Object.create(e.prototype),Object.assign(n.prototype,t),n},secureCompare:(t,n)=>{if(t=e.from(t),n=e.from(n),t.length!==n.length)return!1;if(a.timingSafeEqual)return a.timingSafeEqual(t,n);const r=t.length;let i=0;for(let e=0;e<r;++e)i|=t[e]^n[e];return 0===i},removeNullish:t=>{if("object"!=typeof t)throw new Error("Argument must be an object");return Object.keys(t).reduce((e,n)=>(null!=t[n]&&(e[n]=t[n]),e),{})},normalizeHeaders:t=>t&&"object"==typeof t?Object.keys(t).reduce((e,n)=>(e[d.normalizeHeader(n)]=t[n],e),{}):t,normalizeHeader:t=>t.split("-").map(t=>t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()).join("-"),checkForStream:t=>!(!t.file||!t.file.data)&&t.file.data instanceof i,callbackifyPromiseWithTimeout:(t,e)=>e?t.then(t=>{setTimeout(()=>{e(null,t)},0)},t=>{setTimeout(()=>{e(t,null)},0)}):t,pascalToCamelCase:t=>"OAuth"===t?"oauth":t[0].toLowerCase()+t.substring(1),emitWarning:h,safeExec:(t,e)=>{if(null!==d._exec)try{d._exec(t,e)}catch(t){e(t,null)}else e(new Error("exec not available"),null)},_exec:u,isObject:t=>{const e=typeof t;return("function"===e||"object"===e)&&!!t},flattenAndStringify:t=>{const n={},r=(t,i)=>{Object.keys(t).forEach(o=>{const a=t[o],s=i?`${i}[${o}]`:o;if(d.isObject(a)){if(!e.isBuffer(a)&&!a.hasOwnProperty("data"))return r(a,s);n[s]=a}else n[s]=String(a)})};return r(t),n},uuid4:()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}),validateInteger:(t,e,n)=>{if(!Number.isInteger(e)){if(void 0!==n)return n;throw new Error(t+" must be an integer")}return e}};function h(t){return"function"!=typeof r.emitWarning?console.warn("Stripe: "+t):r.emitWarning(t,"Stripe")}}).call(this,n(6).Buffer,n(5))},function(t,e,n){var r=n(4).Buffer,i=n(340).Transform,o=n(22).StringDecoder;function a(t){i.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(2)(a,i),a.prototype.update=function(t,e,n){"string"==typeof t&&(t=r.from(t,e));var i=this._update(t);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,n){var r;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){r=t}finally{n(r)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||r.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new o(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var r=this._decoder.write(t);return n&&(r+=this._decoder.end()),r},t.exports=a},function(t,e,n){"use strict";var r=n(45),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=f;var o=Object.create(n(34));o.inherits=n(2);var a=n(139),s=n(72);o.inherits(f,a);for(var u=i(s.prototype),l=0;l<u.length;l++){var c=u[l];f.prototype[c]||(f.prototype[c]=s.prototype[c])}function f(t){if(!(this instanceof f))return new f(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||r.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),f.prototype._destroy=function(t,e){this.push(null),this.end(),r.nextTick(e,t)}},function(t,e,n){"use strict";var r=n(4).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=l,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=c,this.end=f,e=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function c(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function h(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var n=function(t,e,n){var r=e.length-1;if(r<n)return 0;var i=a(e[r]);if(i>=0)return i>0&&(t.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=a(e[r]))>=0)return i>0&&(t.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=a(e[r]))>=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},,function(t,e,n){"use strict";(function(e,r){var i=n(4).Buffer,o=e.crypto||e.msCrypto;o&&o.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var n=i.allocUnsafe(t);if(t>0)if(t>65536)for(var a=0;a<t;a+=65536)o.getRandomValues(n.slice(a,a+65536));else o.getRandomValues(n);if("function"==typeof e)return r.nextTick((function(){e(null,n)}));return n}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(7),n(5))},function(t,e,n){"use strict";var r={};function i(t,e,n){n||(n=Error);var i=function(t){var n,r;function i(n,r,i){return t.call(this,function(t,n,r){return"string"==typeof e?e:e(t,n,r)}(n,r,i))||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=t,r[t]=i}function o(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,i,a,s;if("string"==typeof e&&(i="not ",e.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",e=e.replace(/^not /,"")):r="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))s="The ".concat(t," ").concat(r," ").concat(o(e,"type"));else{var u=function(t,e,n){return"number"!=typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(u," ").concat(r," ").concat(o(e,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=l;var i=n(146),o=n(150);n(2)(l,i);for(var a=r(o.prototype),s=0;s<a.length;s++){var u=a[s];l.prototype[u]||(l.prototype[u]=o.prototype[u])}function l(t){if(!(this instanceof l))return new l(t);i.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||e.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,n(5))},function(t,e,n){var r=n(4).Buffer;function i(t,e){this._block=r.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}i.prototype.update=function(t,e){"string"==typeof t&&(e=e||"utf8",t=r.from(t,e));for(var n=this._block,i=this._blockSize,o=t.length,a=this._len,s=0;s<o;){for(var u=a%i,l=Math.min(o-s,i-u),c=0;c<l;c++)n[u+c]=t[s+c];s+=l,(a+=l)%i==0&&this._update(n)}return this._len+=o,this},i.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},function(t,e,n){"use strict";var r={};function i(t,e,n){n||(n=Error);var i=function(t){var n,r;function i(n,r,i){return t.call(this,function(t,n,r){return"string"==typeof e?e:e(t,n,r)}(n,r,i))||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=t,r[t]=i}function o(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,i,a,s;if("string"==typeof e&&(i="not ",e.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",e=e.replace(/^not /,"")):r="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))s="The ".concat(t," ").concat(r," ").concat(o(e,"type"));else{var u=function(t,e,n){return"number"!=typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(u," ").concat(r," ").concat(o(e,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},function(t,e,n){"use strict";(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=l;var i=n(172),o=n(176);n(2)(l,i);for(var a=r(o.prototype),s=0;s<a.length;s++){var u=a[s];l.prototype[u]||(l.prototype[u]=o.prototype[u])}function l(t){if(!(this instanceof l))return new l(t);i.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||e.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,n(5))},function(t,e,n){"use strict";var r=n(198),i=n.n(r);e.a={data:function(){return{searchClient:i()(php_vars.algolia_app_id,php_vars.algolia_search_key),prefix:php_vars.algolia_prefix}},props:[]}},,,function(t,e,n){(e=t.exports=n(139)).Stream=e,e.Readable=e,e.Writable=n(72),e.Duplex=n(21),e.Transform=n(142),e.PassThrough=n(316)},function(t,e,n){(function(t){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=t.isBuffer}).call(this,n(6).Buffer)},function(t,e,n){"use strict";var r=n(2),i=n(74),o=n(76),a=n(77),s=n(20);function u(t){s.call(this,"digest"),this._hash=t}r(u,s),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new i:"rmd160"===t||"ripemd160"===t?new o:new u(a(t))}},function(t,e,n){(function(e){t.exports=function(t,n){for(var r=Math.min(t.length,n.length),i=new e(r),o=0;o<r;++o)i[o]=t[o]^n[o];return i}}).call(this,n(6).Buffer)},function(t,e,n){"use strict";var r=n(16),i=n(12);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=r.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=r.join32(t,0,t.length-n,this.endian);for(var i=0;i<t.length;i+=this._delta32)this._update(t,i,i+this._delta32)}return this},o.prototype.digest=function(t){return this.update(this._pad()),i(null===this.pending),this._digest(t)},o.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(t<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=t>>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},function(t,e,n){"use strict";const r=n(2),i=n(90).Reporter,o=n(88).Buffer;function a(t,e){i.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function s(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return s.isEncoderBuffer(t)||(t=new s(t,e)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}r(a,i),e.DecoderBuffer=a,a.isDecoderBuffer=function(t){if(t instanceof a)return!0;return"object"==typeof t&&o.isBuffer(t.base)&&"DecoderBuffer"===t.constructor.name&&"number"==typeof t.offset&&"number"==typeof t.length&&"function"==typeof t.save&&"function"==typeof t.restore&&"function"==typeof t.isEmpty&&"function"==typeof t.readUInt8&&"function"==typeof t.skip&&"function"==typeof t.raw},a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(t){const e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,i.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");const n=new a(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=s,s.isEncoderBuffer=function(t){if(t instanceof s)return!0;return"object"==typeof t&&"EncoderBuffer"===t.constructor.name&&"number"==typeof t.length&&"function"==typeof t.join},s.prototype.join=function(t,e){return t||(t=o.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(t,e),e+=n.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},function(t,e,n){"use strict";class r extends Error{constructor(t={}){super(t.message),this.type=this.constructor.name,this.raw=t,this.rawType=t.type,this.code=t.code,this.doc_url=t.doc_url,this.param=t.param,this.detail=t.detail,this.headers=t.headers,this.requestId=t.requestId,this.statusCode=t.statusCode,this.message=t.message,this.charge=t.charge,this.decline_code=t.decline_code,this.payment_intent=t.payment_intent,this.payment_method=t.payment_method,this.setup_intent=t.setup_intent,this.source=t.source}static generate(t){switch(t.type){case"card_error":return new i(t);case"invalid_request_error":return new o(t);case"api_error":return new a(t);case"authentication_error":return new s(t);case"rate_limit_error":return new u(t);case"idempotency_error":return new l(t);case"invalid_grant":return new c(t);default:return new GenericError("Generic","Unknown Error")}}}class i extends r{}class o extends r{}class a extends r{}class s extends r{}class u extends r{}class l extends r{}class c extends r{}t.exports.generate=r.generate,t.exports.StripeError=r,t.exports.StripeCardError=i,t.exports.StripeInvalidRequestError=o,t.exports.StripeAPIError=a,t.exports.StripeAuthenticationError=s,t.exports.StripePermissionError=class extends r{},t.exports.StripeRateLimitError=u,t.exports.StripeConnectionError=class extends r{},t.exports.StripeSignatureVerificationError=class extends r{},t.exports.StripeIdempotencyError=l,t.exports.StripeInvalidGrantError=c},function(t,e,n){"use strict";n.r(e);var r=n(62),i={components:{ProgressBar:n.n(r).a},data:function(){return{email:this.$root.publishState.email,recipients_count:0,status:"En attente",counters:{delivered:0,opened:0,clicked:0},publishing:!1,done:!1,statusData:{status:null,current:0,total:0}}},computed:{progress:function(){return"init"===this.statusData.status||0==this.statusData.total?0:Math.ceil(100*this.statusData.current/this.statusData.total)}},methods:{processMailEvent:function(t){"delivered"===t.data.event&&this.counters.delivered++,"opened"===t.data.event&&this.counters.opened++,"clicked"===t.data.event&&this.counters.clicked++},processProgressEvent:function(t){if(!this.done)switch(this.statusData=t.data,t.data.status){case"init":this.status="Préparation en cours";break;case"processing":this.status="Traitement en cours : (".concat(t.data.current," / ").concat(t.data.total,")");break;case"done":this.status="Terminé, ".concat(t.data.total," emails envoyés"),this.done=!0,this.$emit("can-continue",{value:!0})}},publish:function(){var t=this;axios({method:"post",url:"/publish",data:{data:this.$root.publishState}}).then((function(e){Echo.private("emailBatch.".concat(e.data.data)).listen(".mailgun.event",t.processMailEvent).listen(".batch.status",t.processProgressEvent),t.publishing=!0}))}},mounted:function(){var t=this;void 0===this.$root.publishState.recipient_group?axios.get("publish/recipients").then((function(e){return t.recipients_count=e.data.data})):this.recipients_count=this.$root.publishState.recipient_group.count}},o=(n(304),n(3)),a=Object(o.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"stepper-step"},[n("div",{staticClass:"mb-3"},[n("h3",{staticClass:"text-center"},[t._v("\n            "+t._s(t.email.subject)+"\n        ")])]),t._v(" "),t.publishing?t._e():n("div",{staticClass:"alert alert-info my-2 mx-auto d-block mw-400"},[n("i",{staticClass:"far fa-check-circle"}),t._v("\n         Votre message est prêt à être envoyé !\n    ")]),t._v(" "),t.publishing?t._e():n("div",{staticClass:"mt-3"},[n("button",{staticClass:"btn btn-success d-block m-auto",on:{click:t.publish}},[n("i",{staticClass:"far fa-paper-plane"}),t._v("\n            Envoyer "+t._s(t.recipients_count)+" emails\n        ")])]),t._v(" "),t.publishing?n("div",[n("div",{staticClass:"alert alert-success my-3 mx-auto d-block mw-400"},[n("strong",[t._v("Statut : ")]),t._v(t._s(t.status)+"\n        ")]),t._v(" "),n("div",[n("progress-bar",{attrs:{size:"medium",val:t.progress,text:t.progress+"%"}})],1),t._v(" "),n("div",{staticClass:"row mt-4",attrs:{id:"counters"}},[t._m(0),t._v(" "),n("div",{staticClass:"col-md-4"},[n("mg-stats",{attrs:{icon:"delivered",current:t.counters.delivered,total:t.statusData.total,text:"reçus"}})],1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("mg-stats",{attrs:{icon:"opened",current:t.counters.opened,total:t.statusData.total,text:"ouverts"}})],1),t._v(" "),n("div",{staticClass:"col-md-4"},[n("mg-stats",{attrs:{icon:"clicked",current:t.counters.clicked,total:t.statusData.total,text:"cliqués"}})],1)])]):t._e()])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"col-12 mb-2"},[e("h4",[this._v("Statistiques\n                    "),e("span",{staticClass:"badge badge-danger"},[e("span",{staticClass:"blink"},[this._v("•")]),this._v("\n                         en direct\n                    ")])])])}],!1,null,"1526165e",null);e.default=a.exports},,,,,function(t,e,n){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,r)}));case 4:return e.nextTick((function(){t.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a<o.length;)o[a++]=arguments[a];return e.nextTick((function(){t.apply(null,o)}))}}}:t.exports=e}).call(this,n(5))},function(t,e,n){var r=n(4).Buffer;function i(t){r.isBuffer(t)||(t=r.from(t));for(var e=t.length/4|0,n=new Array(e),i=0;i<e;i++)n[i]=t.readUInt32BE(4*i);return n}function o(t){for(;0<t.length;t++)t[0]=0}function a(t,e,n,r,i){for(var o,a,s,u,l=n[0],c=n[1],f=n[2],d=n[3],h=t[0]^e[0],p=t[1]^e[1],m=t[2]^e[2],v=t[3]^e[3],g=4,b=1;b<i;b++)o=l[h>>>24]^c[p>>>16&255]^f[m>>>8&255]^d[255&v]^e[g++],a=l[p>>>24]^c[m>>>16&255]^f[v>>>8&255]^d[255&h]^e[g++],s=l[m>>>24]^c[v>>>16&255]^f[h>>>8&255]^d[255&p]^e[g++],u=l[v>>>24]^c[h>>>16&255]^f[p>>>8&255]^d[255&m]^e[g++],h=o,p=a,m=s,v=u;return o=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[m>>>8&255]<<8|r[255&v])^e[g++],a=(r[p>>>24]<<24|r[m>>>16&255]<<16|r[v>>>8&255]<<8|r[255&h])^e[g++],s=(r[m>>>24]<<24|r[v>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^e[g++],u=(r[v>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&m])^e[g++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99,n[a]=l,r[l]=a;var c=t[a],f=t[c],d=t[f],h=257*t[l]^16843008*l;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*d^65537*f^257*c^16843008*a,o[0][l]=h<<24|h>>>8,o[1][l]=h<<16|h>>>16,o[2][l]=h<<8|h>>>24,o[3][l]=h,0===a?a=s=1:(a=c^t[t[t[d^c]]],s^=t[t[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function l(t){this._key=i(t),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,r=4*(n+1),i=[],o=0;o<e;o++)i[o]=t[o];for(o=e;o<r;o++){var a=i[o-1];o%e==0?(a=a<<8|a>>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/e|0]<<24):e>6&&o%e==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-e]^a}for(var l=[],c=0;c<r;c++){var f=r-c,d=i[f-(c%4?0:4)];l[c]=c<4||f<=4?d:u.INV_SUB_MIX[0][u.SBOX[d>>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(t){return a(t=i(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},l.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=r.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},l.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var n=a(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},l.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=l},function(t,e,n){var r=n(4).Buffer,i=n(74);t.exports=function(t,e,n,o){if(r.isBuffer(t)||(t=r.from(t,"binary")),e&&(r.isBuffer(e)||(e=r.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=r.alloc(a),u=r.alloc(o||0),l=r.alloc(0);a>0||o>0;){var c=new i;c.update(l),c.update(t),e&&c.update(e),l=c.digest();var f=0;if(a>0){var d=s.length-a;f=Math.min(a,l.length),l.copy(s,d,0,f),a-=f}if(f<l.length&&o>0){var h=u.length-o,p=Math.min(o,l.length-f);l.copy(u,h,f,f+p),o-=p}}return l.fill(0),{key:s,iv:u}}},function(t,e,n){"use strict";var r=n(18),i=n(13),o=i.getNAF,a=i.getJSF,s=i.assert;function u(t,e){this.type=t,this.p=new r(e.p,16),this.red=e.prime?r.red(e.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=e.n&&new r(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){s(t.precomputed);var n=t._getDoubles(),r=o(e,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;for(var a=[],u=0;u<r.length;u+=n.step){var l=0;for(e=u+n.step-1;e>=u;e--)l=(l<<1)+r[e];a.push(l)}for(var c=this.jpoint(null,null,null),f=this.jpoint(null,null,null),d=i;d>0;d--){for(u=0;u<a.length;u++){(l=a[u])===d?f=f.mixedAdd(n.points[u]):l===-d&&(f=f.mixedAdd(n.points[u].neg()))}c=c.add(f)}return c.toP()},u.prototype._wnafMul=function(t,e){var n=4,r=t._getNAFPoints(n);n=r.wnd;for(var i=r.points,a=o(e,n,this._bitLength),u=this.jpoint(null,null,null),l=a.length-1;l>=0;l--){for(e=0;l>=0&&0===a[l];l--)e++;if(l>=0&&e++,u=u.dblp(e),l<0)break;var c=a[l];s(0!==c),u="affine"===t.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,n,r,i){for(var s=this._wnafT1,u=this._wnafT2,l=this._wnafT3,c=0,f=0;f<r;f++){var d=(S=e[f])._getNAFPoints(t);s[f]=d.wnd,u[f]=d.points}for(f=r-1;f>=1;f-=2){var h=f-1,p=f;if(1===s[h]&&1===s[p]){var m=[e[h],null,null,e[p]];0===e[h].y.cmp(e[p].y)?(m[1]=e[h].add(e[p]),m[2]=e[h].toJ().mixedAdd(e[p].neg())):0===e[h].y.cmp(e[p].y.redNeg())?(m[1]=e[h].toJ().mixedAdd(e[p]),m[2]=e[h].add(e[p].neg())):(m[1]=e[h].toJ().mixedAdd(e[p]),m[2]=e[h].toJ().mixedAdd(e[p].neg()));var v=[-3,-1,-5,-7,0,7,5,1,3],g=a(n[h],n[p]);c=Math.max(g[0].length,c),l[h]=new Array(c),l[p]=new Array(c);for(var b=0;b<c;b++){var y=0|g[0][b],w=0|g[1][b];l[h][b]=v[3*(y+1)+(w+1)],l[p][b]=0,u[h]=m}}else l[h]=o(n[h],s[h],this._bitLength),l[p]=o(n[p],s[p],this._bitLength),c=Math.max(l[h].length,c),c=Math.max(l[p].length,c)}var _=this.jpoint(null,null,null),k=this._wnafT4;for(f=c;f>=0;f--){for(var M=0;f>=0;){var x=!0;for(b=0;b<r;b++)k[b]=0|l[b][f],0!==k[b]&&(x=!1);if(!x)break;M++,f--}if(f>=0&&M++,_=_.dblp(M),f<0)break;for(b=0;b<r;b++){var S,C=k[b];0!==C&&(C>0?S=u[b][C-1>>1]:C<0&&(S=u[b][-C-1>>1].neg()),_="affine"===S.type?_.mixedAdd(S):_.add(S))}}for(f=0;f<r;f++)u[f]=null;return i?_:_.toP()},u.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(t,e){t=i.toArray(t,e);var n=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1==2*n)return 6===t[0]?s(t[t.length-1]%2==0):7===t[0]&&s(t[t.length-1]%2==1),this.point(t.slice(1,1+n),t.slice(1+n,1+2*n));if((2===t[0]||3===t[0])&&t.length-1===n)return this.pointFromX(t.slice(1,1+n),3===t[0]);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(t){return this.encode(t,!0)},l.prototype._encode=function(t){var e=this.curve.p.byteLength(),n=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",e))},l.prototype.encode=function(t,e){return i.encode(this._encode(e),t)},l.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},l.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},l.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<e;i+=t){for(var o=0;o<t;o++)r=r.dbl();n.push(r)}return{step:t,points:n}},l.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],n=(1<<t)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)e[i]=e[i-1].add(r);return{wnd:t,points:e}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(t){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}},function(t,e,n){var r=n(402),i=n(410),o=n(411),a=n(79),s=n(157),u=n(4).Buffer;function l(t){var e;"object"!=typeof t||u.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=u.from(t));var n,l,c=o(t,e),f=c.tag,d=c.data;switch(f){case"CERTIFICATE":l=r.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=r.PublicKey.decode(d,"der")),n=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=r.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":d=function(t,e){var n=t.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[t.algorithm.decrypt.cipher.algo.join(".")],l=t.algorithm.decrypt.cipher.iv,c=t.subjectPrivateKey,f=parseInt(o.split("-")[1],10)/8,d=s.pbkdf2Sync(e,n,r,f,"sha1"),h=a.createDecipheriv(o,d,l),p=[];return p.push(h.update(c)),p.push(h.final()),u.concat(p)}(d=r.EncryptedPrivateKey.decode(d,"der"),e);case"PRIVATE KEY":switch(n=(l=r.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:r.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=r.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=r.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+f)}}t.exports=l,l.signature=r.signature},function(t,e,n){var r=n(8),i=n(289);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){var r=n(8),i=n(291);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){var r=n(8),i=n(293);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){var r=n(8),i=n(295);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){var r=n(8),i=n(297);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){var r=n(8),i=n(303);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){var r=n(8),i=n(305);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){var r=n(8),i=n(307);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){var r=n(8),i=n(309);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){var r=n(8),i=n(486);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){window,t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(1))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";n.r(e);var r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},i=n(0),o="object"==typeof self&&self&&self.Object===Object&&self,a=i.a||o||Function("return this")(),s=function(){return a.Date.now()},u=a.Symbol,l=Object.prototype,c=l.hasOwnProperty,f=l.toString,d=u?u.toStringTag:void 0,h=Object.prototype.toString,p=u?u.toStringTag:void 0,m=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":p&&p in Object(t)?function(t){var e=c.call(t,d),n=t[d];try{t[d]=void 0;var r=!0}catch(t){}var i=f.call(t);return r&&(e?t[d]=n:delete t[d]),i}(t):function(t){return h.call(t)}(t)},v=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,y=/^0o[0-7]+$/i,w=parseInt,_=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==m(t)}(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(v,"");var n=b.test(t);return n||y.test(t)?w(t.slice(2),n?2:8):g.test(t)?NaN:+t},k=Math.max,M=Math.min,x={name:"ckeditor",render(t){return t(this.tagName)},props:{editor:{type:Function,default:null},value:{type:String,default:""},config:{type:Object,default:()=>({})},tagName:{type:String,default:"div"},disabled:{type:Boolean,default:!1}},data:()=>({instance:null,$_lastEditorData:{type:String,default:""}}),mounted(){const t=Object.assign({},this.config);this.value&&(t.initialData=this.value),this.editor.create(this.$el,t).then(t=>{this.instance=t,t.isReadOnly=this.disabled,this.$_setUpEditorEvents(),this.$emit("ready",t)}).catch(t=>{console.error(t)})},beforeDestroy(){this.instance&&(this.instance.destroy(),this.instance=null),this.$emit("destroy",this.instance)},watch:{value(t,e){t!==e&&t!==this.$_lastEditorData&&this.instance.setData(t)},disabled(t){this.instance.isReadOnly=t}},methods:{$_setUpEditorEvents(){const t=this.instance,e=function(t,e,n){var i,o,a,u,l,c,f=0,d=!1,h=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=i,r=o;return i=o=void 0,f=e,u=t.apply(r,n)}function v(t){var n=t-c;return void 0===c||n>=e||n<0||h&&t-f>=a}function g(){var t=s();if(v(t))return b(t);l=setTimeout(g,function(t){var n=e-(t-c);return h?M(n,a-(t-f)):n}(t))}function b(t){return l=void 0,p&&i?m(t):(i=o=void 0,u)}function y(){var t=s(),n=v(t);if(i=arguments,o=this,c=t,n){if(void 0===l)return function(t){return f=t,l=setTimeout(g,e),d?m(t):u}(c);if(h)return clearTimeout(l),l=setTimeout(g,e),m(c)}return void 0===l&&(l=setTimeout(g,e)),u}return e=_(e)||0,r(n)&&(d=!!n.leading,a=(h="maxWait"in n)?k(_(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==l&&clearTimeout(l),f=0,i=c=o=l=void 0},y.flush=function(){return void 0===l?u:b(s())},y}(e=>{const n=this.$_lastEditorData=t.getData();this.$emit("input",n,e,t)},300,{leading:!0});t.model.document.on("change:data",e),t.editing.view.document.on("focus",e=>{this.$emit("focus",e,t)}),t.editing.view.document.on("blur",e=>{this.$emit("blur",e,t)})}}};const S={install(t){t.component("ckeditor",x)},component:x};e.default=S}]).default},function(t,e,n){t.exports=n(487)},function(t,e,n){var r;r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VueSimpleProgress=void 0;var r,i=n(1),o=(r=i)&&r.__esModule?r:{default:r};"undefined"!=typeof window&&window.Vue&&Vue.component("vue-simple-progress",o.default),e.VueSimpleProgress=o.default,e.default=o.default},function(t,e,n){var r=n(2)(n(3),n(4),null,null);t.exports=r.exports},function(t,e){t.exports=function(t,e,n,r){var i,o=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(i=t,o=t.default);var s="function"==typeof o?o.options:o;if(e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),n&&(s._scopeId=n),r){var u=Object.create(s.computed||null);Object.keys(r).forEach((function(t){var e=r[t];u[t]=function(){return e}})),s.computed=u}return{esModule:i,exports:o,options:s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){return!isNaN(parseFloat(t))&&isFinite(t)};e.default={props:{val:{default:0},max:{default:100},size:{default:3},"bg-color":{type:String,default:"#eee"},"bar-color":{type:String,default:"#2196f3"},"bar-transition":{type:String,default:"all 0.5s ease"},"bar-border-radius":{type:Number,default:0},spacing:{type:Number,default:4},text:{type:String,default:""},"text-align":{type:String,default:"center"},"text-position":{type:String,default:"bottom"},"font-size":{type:Number,default:13},"text-fg-color":{type:String,default:"#222"}},computed:{pct:function(){var t=this.val/this.max*100;return t=t.toFixed(2),Math.min(t,this.max)},size_px:function(){switch(this.size){case"tiny":return 2;case"small":return 4;case"medium":return 8;case"large":return 12;case"big":return 16;case"huge":return 32;case"massive":return 64}return r(this.size)?this.size:32},text_padding:function(){switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":return Math.min(Math.max(Math.ceil(this.size_px/8),3),12)}return r(this.spacing)?this.spacing:4},text_font_size:function(){switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":return Math.min(Math.max(Math.ceil(1.4*this.size_px),11),32)}return r(this.fontSize)?this.fontSize:13},progress_style:function(){var t={background:this.bgColor};return"middle"!=this.textPosition&&"inside"!=this.textPosition||(t.position="relative",t["min-height"]=this.size_px+"px",t["z-index"]="-2"),this.barBorderRadius>0&&(t["border-radius"]=this.barBorderRadius+"px"),t},bar_style:function(){var t={background:this.barColor,width:this.pct+"%",height:this.size_px+"px",transition:this.barTransition};return this.barBorderRadius>0&&(t["border-radius"]=this.barBorderRadius+"px"),"middle"!=this.textPosition&&"inside"!=this.textPosition||(t.position="absolute",t.top="0",t.height="100%",t["min-height"]=this.size_px+"px",t["z-index"]="-1"),t},text_style:function(){var t={color:this.textFgColor,"font-size":this.text_font_size+"px","text-align":this.textAlign};return"top"!=this.textPosition&&"middle"!=this.textPosition&&"inside"!=this.textPosition||(t["padding-bottom"]=this.text_padding+"px"),"bottom"!=this.textPosition&&"middle"!=this.textPosition&&"inside"!=this.textPosition||(t["padding-top"]=this.text_padding+"px"),t}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.text.length>0&&"top"==t.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:t.text_style},[t._v(t._s(t.text))]):t._e(),t._v(" "),n("div",{staticClass:"vue-simple-progress",style:t.progress_style},[t.text.length>0&&"middle"==t.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:t.text_style},[t._v(t._s(t.text))]):t._e(),t._v(" "),t.text.length>0&&"inside"==t.textPosition?n("div",{staticStyle:{position:"relative",left:"-9999px"},style:t.text_style},[t._v(t._s(t.text))]):t._e(),t._v(" "),n("div",{staticClass:"vue-simple-progress-bar",style:t.bar_style},[t.text.length>0&&"inside"==t.textPosition?n("div",{style:t.text_style},[t._v(t._s(t.text))]):t._e()])]),t._v(" "),t.text.length>0&&"bottom"==t.textPosition?n("div",{staticClass:"vue-simple-progress-text",style:t.text_style},[t._v(t._s(t.text))]):t._e()])},staticRenderFns:[]}}]).default},t.exports=r()},function(t,e,n){"use strict";var r=n(60),i=n.n(r);n(298);e.a={components:{ckeditor:i.a.component},data:function(){return{editor:ClassicEditor,editorConfig:{toolbar:{items:["heading","|","alignment","fontColor","fontSize","|","bold","italic","|","link","bulletedList","numberedList","|","indent","outdent","|","imageUpload","undo","redo"]},link:{addTargetToExternalLinks:!0,defaultProtocol:"http://"},mediaEmbed:{previewsInData:!0},fontSize:{options:[16,"default",18,22,24,28,34,38],supportAllValues:!0},language:"fr",image:{toolbar:["linkImage"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},fontColor:{colors:[{label:"psq_red",color:"#d04d4a"},{label:"psq_blue",color:"#074e9c"},{label:"psq_light_blue",color:"#cddceb"},{label:"psq_purple",color:"#AD5ED3"},{label:"psq_cyan",color:"#288ed7"},{label:"psq_magenta",color:"#ce317c"},{label:"psq_orange",color:"#e79817"},{label:"psq_grey",color:"#546983"},{label:"psq_denim",color:"#0c2c50"},{label:"psq_green",color:"#41BD53"},{label:"psq_mag_blue",color:"#2a6ba3"}]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Titre 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Titre 2",class:"ck-heading_heading2"}]},simpleUpload:{uploadUrl:"/ckeditor/upload",headers:{"X-CSRF-TOKEN":document.querySelectorAll('meta[name="csrf-token"]')[0].content}}}}}}},,,,function(t,e,n){t.exports=n(237)},function(t,e,n){(function(t,r){var i;(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",l="[object Array]",c="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",g="[object Object]",b="[object RegExp]",y="[object Set]",w="[object String]",_="[object Symbol]",k="[object WeakMap]",M="[object ArrayBuffer]",x="[object DataView]",S="[object Float32Array]",C="[object Float64Array]",A="[object Int8Array]",T="[object Int16Array]",E="[object Int32Array]",O="[object Uint8Array]",P="[object Uint16Array]",I="[object Uint32Array]",R=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,B=RegExp(N.source),z=RegExp(L.source),F=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,K=RegExp(W.source),Y=/^\s+|\s+$/g,G=/^\s+/,Z=/\s+$/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ft=/['\n\r\u2028\u2029\\]/g,dt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ht="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",mt="["+ht+"]",vt="["+dt+"]",gt="\\d+",bt="[\\u2700-\\u27bf]",yt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+ht+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="\\ud83c[\\udffb-\\udfff]",kt="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",xt="[\\ud800-\\udbff][\\udc00-\\udfff]",St="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ct="(?:"+yt+"|"+wt+")",At="(?:"+St+"|"+wt+")",Tt="(?:"+vt+"|"+_t+")"+"?",Et="[\\ufe0e\\ufe0f]?"+Tt+("(?:\\u200d(?:"+[kt,Mt,xt].join("|")+")[\\ufe0e\\ufe0f]?"+Tt+")*"),Ot="(?:"+[bt,Mt,xt].join("|")+")"+Et,Pt="(?:"+[kt+vt+"?",vt,Mt,xt,pt].join("|")+")",It=RegExp("['’]","g"),Rt=RegExp(vt,"g"),jt=RegExp(_t+"(?="+_t+")|"+Pt+Et,"g"),Dt=RegExp([St+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[mt,St,"$"].join("|")+")",At+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[mt,St+Ct,"$"].join("|")+")",St+"?"+Ct+"+(?:['’](?:d|ll|m|re|s|t|ve))?",St+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,Ot].join("|"),"g"),Nt=RegExp("[\\u200d\\ud800-\\udfff"+dt+"\\ufe0e\\ufe0f]"),Lt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zt=-1,Ft={};Ft[S]=Ft[C]=Ft[A]=Ft[T]=Ft[E]=Ft[O]=Ft["[object Uint8ClampedArray]"]=Ft[P]=Ft[I]=!0,Ft[u]=Ft[l]=Ft[M]=Ft[c]=Ft[x]=Ft[f]=Ft[d]=Ft[h]=Ft[m]=Ft[v]=Ft[g]=Ft[b]=Ft[y]=Ft[w]=Ft[k]=!1;var qt={};qt[u]=qt[l]=qt[M]=qt[x]=qt[c]=qt[f]=qt[S]=qt[C]=qt[A]=qt[T]=qt[E]=qt[m]=qt[v]=qt[g]=qt[b]=qt[y]=qt[w]=qt[_]=qt[O]=qt["[object Uint8ClampedArray]"]=qt[P]=qt[I]=!0,qt[d]=qt[h]=qt[k]=!1;var Vt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$t=parseFloat,Ht=parseInt,Ut="object"==typeof t&&t&&t.Object===Object&&t,Wt="object"==typeof self&&self&&self.Object===Object&&self,Kt=Ut||Wt||Function("return this")(),Yt=e&&!e.nodeType&&e,Gt=Yt&&"object"==typeof r&&r&&!r.nodeType&&r,Zt=Gt&&Gt.exports===Yt,Jt=Zt&&Ut.process,Xt=function(){try{var t=Gt&&Gt.require&&Gt.require("util").types;return t||Jt&&Jt.binding&&Jt.binding("util")}catch(t){}}(),Qt=Xt&&Xt.isArrayBuffer,te=Xt&&Xt.isDate,ee=Xt&&Xt.isMap,ne=Xt&&Xt.isRegExp,re=Xt&&Xt.isSet,ie=Xt&&Xt.isTypedArray;function oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ae(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ue(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function le(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ce(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function fe(t,e){return!!(null==t?0:t.length)&&_e(t,e,0)>-1}function de(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function he(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function pe(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function me(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function ve(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function ge(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var be=Se("length");function ye(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function we(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function _e(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):we(t,Me,n)}function ke(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Me(t){return t!=t}function xe(t,e){var n=null==t?0:t.length;return n?Te(t,e)/n:NaN}function Se(t){return function(e){return null==e?void 0:e[t]}}function Ce(t){return function(e){return null==t?void 0:t[e]}}function Ae(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Te(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Ee(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Oe(t){return function(e){return t(e)}}function Pe(t,e){return he(e,(function(e){return t[e]}))}function Ie(t,e){return t.has(e)}function Re(t,e){for(var n=-1,r=t.length;++n<r&&_e(e,t[n],0)>-1;);return n}function je(t,e){for(var n=t.length;n--&&_e(e,t[n],0)>-1;);return n}function De(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var Ne=Ce({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Le=Ce({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Be(t){return"\\"+Vt[t]}function ze(t){return Nt.test(t)}function Fe(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function qe(t,e){return function(n){return t(e(n))}}function Ve(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function $e(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function He(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function Ue(t){return ze(t)?function(t){var e=jt.lastIndex=0;for(;jt.test(t);)++e;return e}(t):be(t)}function We(t){return ze(t)?function(t){return t.match(jt)||[]}(t):function(t){return t.split("")}(t)}var Ke=Ce({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Ye=function t(e){var n,r=(e=null==e?Kt:Ye.defaults(Kt.Object(),e,Ye.pick(Kt,Bt))).Array,i=e.Date,dt=e.Error,ht=e.Function,pt=e.Math,mt=e.Object,vt=e.RegExp,gt=e.String,bt=e.TypeError,yt=r.prototype,wt=ht.prototype,_t=mt.prototype,kt=e["__core-js_shared__"],Mt=wt.toString,xt=_t.hasOwnProperty,St=0,Ct=(n=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",At=_t.toString,Tt=Mt.call(mt),Et=Kt._,Ot=vt("^"+Mt.call(xt).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pt=Zt?e.Buffer:void 0,jt=e.Symbol,Nt=e.Uint8Array,Vt=Pt?Pt.allocUnsafe:void 0,Ut=qe(mt.getPrototypeOf,mt),Wt=mt.create,Yt=_t.propertyIsEnumerable,Gt=yt.splice,Jt=jt?jt.isConcatSpreadable:void 0,Xt=jt?jt.iterator:void 0,be=jt?jt.toStringTag:void 0,Ce=function(){try{var t=Qi(mt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ge=e.clearTimeout!==Kt.clearTimeout&&e.clearTimeout,Ze=i&&i.now!==Kt.Date.now&&i.now,Je=e.setTimeout!==Kt.setTimeout&&e.setTimeout,Xe=pt.ceil,Qe=pt.floor,tn=mt.getOwnPropertySymbols,en=Pt?Pt.isBuffer:void 0,nn=e.isFinite,rn=yt.join,on=qe(mt.keys,mt),an=pt.max,sn=pt.min,un=i.now,ln=e.parseInt,cn=pt.random,fn=yt.reverse,dn=Qi(e,"DataView"),hn=Qi(e,"Map"),pn=Qi(e,"Promise"),mn=Qi(e,"Set"),vn=Qi(e,"WeakMap"),gn=Qi(mt,"create"),bn=vn&&new vn,yn={},wn=Ao(dn),_n=Ao(hn),kn=Ao(pn),Mn=Ao(mn),xn=Ao(vn),Sn=jt?jt.prototype:void 0,Cn=Sn?Sn.valueOf:void 0,An=Sn?Sn.toString:void 0;function Tn(t){if(Ha(t)&&!Ra(t)&&!(t instanceof In)){if(t instanceof Pn)return t;if(xt.call(t,"__wrapped__"))return To(t)}return new Pn(t)}var En=function(){function t(){}return function(e){if(!$a(e))return{};if(Wt)return Wt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function On(){}function Pn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function In(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Dn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Nn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Dn;++e<n;)this.add(t[e])}function Ln(t){var e=this.__data__=new jn(t);this.size=e.size}function Bn(t,e){var n=Ra(t),r=!n&&Ia(t),i=!n&&!r&&La(t),o=!n&&!r&&!i&&Xa(t),a=n||r||i||o,s=a?Ee(t.length,gt):[],u=s.length;for(var l in t)!e&&!xt.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ao(l,u))||s.push(l);return s}function zn(t){var e=t.length;return e?t[Nr(0,e-1)]:void 0}function Fn(t,e){return xo(gi(t),Gn(e,0,t.length))}function qn(t){return xo(gi(t))}function Vn(t,e,n){(void 0!==n&&!Ea(t[e],n)||void 0===n&&!(e in t))&&Kn(t,e,n)}function $n(t,e,n){var r=t[e];xt.call(t,e)&&Ea(r,n)&&(void 0!==n||e in t)||Kn(t,e,n)}function Hn(t,e){for(var n=t.length;n--;)if(Ea(t[n][0],e))return n;return-1}function Un(t,e,n,r){return tr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function Wn(t,e){return t&&bi(e,ws(e),t)}function Kn(t,e,n){"__proto__"==e&&Ce?Ce(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Yn(t,e){for(var n=-1,i=e.length,o=r(i),a=null==t;++n<i;)o[n]=a?void 0:ms(t,e[n]);return o}function Gn(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function Zn(t,e,n,r,i,o){var a,s=1&e,l=2&e,d=4&e;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!$a(t))return t;var k=Ra(t);if(k){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&xt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!s)return gi(t,a)}else{var R=no(t),j=R==h||R==p;if(La(t))return fi(t,s);if(R==g||R==u||j&&!i){if(a=l||j?{}:io(t),!s)return l?function(t,e){return bi(t,eo(t),e)}(t,function(t,e){return t&&bi(e,_s(e),t)}(a,t)):function(t,e){return bi(t,to(t),e)}(t,Wn(a,t))}else{if(!qt[R])return i?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case M:return di(t);case c:case f:return new r(+t);case x:return function(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case S:case C:case A:case T:case E:case O:case"[object Uint8ClampedArray]":case P:case I:return hi(t,n);case m:return new r;case v:case w:return new r(t);case b:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case y:return new r;case _:return i=t,Cn?mt(Cn.call(i)):{}}var i}(t,R,s)}}o||(o=new Ln);var D=o.get(t);if(D)return D;o.set(t,a),Ga(t)?t.forEach((function(r){a.add(Zn(r,e,n,r,t,o))})):Ua(t)&&t.forEach((function(r,i){a.set(i,Zn(r,e,n,i,t,o))}));var N=k?void 0:(d?l?Wi:Ui:l?_s:ws)(t);return se(N||t,(function(r,i){N&&(r=t[i=r]),$n(a,i,Zn(r,e,n,i,t,o))})),a}function Jn(t,e,n){var r=n.length;if(null==t)return!r;for(t=mt(t);r--;){var i=n[r],o=e[i],a=t[i];if(void 0===a&&!(i in t)||!o(a))return!1}return!0}function Xn(t,e,n){if("function"!=typeof t)throw new bt(o);return wo((function(){t.apply(void 0,n)}),e)}function Qn(t,e,n,r){var i=-1,o=fe,a=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=he(e,Oe(n))),r?(o=de,a=!1):e.length>=200&&(o=Ie,a=!1,e=new Nn(e));t:for(;++i<s;){var c=t[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f==f){for(var d=l;d--;)if(e[d]===f)continue t;u.push(c)}else o(e,f,r)||u.push(c)}return u}Tn.templateSettings={escape:F,evaluate:q,interpolate:V,variable:"",imports:{_:Tn}},Tn.prototype=On.prototype,Tn.prototype.constructor=Tn,Pn.prototype=En(On.prototype),Pn.prototype.constructor=Pn,In.prototype=En(On.prototype),In.prototype.constructor=In,Rn.prototype.clear=function(){this.__data__=gn?gn(null):{},this.size=0},Rn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Rn.prototype.get=function(t){var e=this.__data__;if(gn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return xt.call(e,t)?e[t]:void 0},Rn.prototype.has=function(t){var e=this.__data__;return gn?void 0!==e[t]:xt.call(e,t)},Rn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=gn&&void 0===e?"__lodash_hash_undefined__":e,this},jn.prototype.clear=function(){this.__data__=[],this.size=0},jn.prototype.delete=function(t){var e=this.__data__,n=Hn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Gt.call(e,n,1),--this.size,!0)},jn.prototype.get=function(t){var e=this.__data__,n=Hn(e,t);return n<0?void 0:e[n][1]},jn.prototype.has=function(t){return Hn(this.__data__,t)>-1},jn.prototype.set=function(t,e){var n=this.__data__,r=Hn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Dn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||jn),string:new Rn}},Dn.prototype.delete=function(t){var e=Ji(this,t).delete(t);return this.size-=e?1:0,e},Dn.prototype.get=function(t){return Ji(this,t).get(t)},Dn.prototype.has=function(t){return Ji(this,t).has(t)},Dn.prototype.set=function(t,e){var n=Ji(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(t){return this.__data__.has(t)},Ln.prototype.clear=function(){this.__data__=new jn,this.size=0},Ln.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Ln.prototype.get=function(t){return this.__data__.get(t)},Ln.prototype.has=function(t){return this.__data__.has(t)},Ln.prototype.set=function(t,e){var n=this.__data__;if(n instanceof jn){var r=n.__data__;if(!hn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Dn(r)}return n.set(t,e),this.size=n.size,this};var tr=_i(ur),er=_i(lr,!0);function nr(t,e){var n=!0;return tr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function rr(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(void 0===s?a==a&&!Ja(a):n(a,s)))var s=a,u=o}return u}function ir(t,e){var n=[];return tr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function or(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=oo),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?or(s,e-1,n,r,i):pe(i,s):r||(i[i.length]=s)}return i}var ar=ki(),sr=ki(!0);function ur(t,e){return t&&ar(t,e,ws)}function lr(t,e){return t&&sr(t,e,ws)}function cr(t,e){return ce(e,(function(e){return Fa(t[e])}))}function fr(t,e){for(var n=0,r=(e=si(e,t)).length;null!=t&&n<r;)t=t[Co(e[n++])];return n&&n==r?t:void 0}function dr(t,e,n){var r=e(t);return Ra(t)?r:pe(r,n(t))}function hr(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":be&&be in mt(t)?function(t){var e=xt.call(t,be),n=t[be];try{t[be]=void 0;var r=!0}catch(t){}var i=At.call(t);r&&(e?t[be]=n:delete t[be]);return i}(t):function(t){return At.call(t)}(t)}function pr(t,e){return t>e}function mr(t,e){return null!=t&&xt.call(t,e)}function vr(t,e){return null!=t&&e in mt(t)}function gr(t,e,n){for(var i=n?de:fe,o=t[0].length,a=t.length,s=a,u=r(a),l=1/0,c=[];s--;){var f=t[s];s&&e&&(f=he(f,Oe(e))),l=sn(f.length,l),u[s]=!n&&(e||o>=120&&f.length>=120)?new Nn(s&&f):void 0}f=t[0];var d=-1,h=u[0];t:for(;++d<o&&c.length<l;){var p=f[d],m=e?e(p):p;if(p=n||0!==p?p:0,!(h?Ie(h,m):i(c,m,n))){for(s=a;--s;){var v=u[s];if(!(v?Ie(v,m):i(t[s],m,n)))continue t}h&&h.push(m),c.push(p)}}return c}function br(t,e,n){var r=null==(t=vo(t,e=si(e,t)))?t:t[Co(zo(e))];return null==r?void 0:oe(r,t,n)}function yr(t){return Ha(t)&&hr(t)==u}function wr(t,e,n,r,i){return t===e||(null==t||null==e||!Ha(t)&&!Ha(e)?t!=t&&e!=e:function(t,e,n,r,i,o){var a=Ra(t),s=Ra(e),h=a?l:no(t),p=s?l:no(e),k=(h=h==u?g:h)==g,S=(p=p==u?g:p)==g,C=h==p;if(C&&La(t)){if(!La(e))return!1;a=!0,k=!1}if(C&&!k)return o||(o=new Ln),a||Xa(t)?$i(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case M:return!(t.byteLength!=e.byteLength||!o(new Nt(t),new Nt(e)));case c:case f:case v:return Ea(+t,+e);case d:return t.name==e.name&&t.message==e.message;case b:case w:return t==e+"";case m:var s=Fe;case y:var u=1&r;if(s||(s=$e),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var h=$i(s(t),s(e),r,i,o,a);return a.delete(t),h;case _:if(Cn)return Cn.call(t)==Cn.call(e)}return!1}(t,e,h,n,r,i,o);if(!(1&n)){var A=k&&xt.call(t,"__wrapped__"),T=S&&xt.call(e,"__wrapped__");if(A||T){var E=A?t.value():t,O=T?e.value():e;return o||(o=new Ln),i(E,O,n,r,o)}}if(!C)return!1;return o||(o=new Ln),function(t,e,n,r,i,o){var a=1&n,s=Ui(t),u=s.length,l=Ui(e).length;if(u!=l&&!a)return!1;var c=u;for(;c--;){var f=s[c];if(!(a?f in e:xt.call(e,f)))return!1}var d=o.get(t),h=o.get(e);if(d&&h)return d==e&&h==t;var p=!0;o.set(t,e),o.set(e,t);var m=a;for(;++c<u;){f=s[c];var v=t[f],g=e[f];if(r)var b=a?r(g,v,f,e,t,o):r(v,g,f,t,e,o);if(!(void 0===b?v===g||i(v,g,n,r,o):b)){p=!1;break}m||(m="constructor"==f)}if(p&&!m){var y=t.constructor,w=e.constructor;y==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w||(p=!1)}return o.delete(t),o.delete(e),p}(t,e,n,r,i,o)}(t,e,n,r,wr,i))}function _r(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=mt(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){var u=(s=n[i])[0],l=t[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in t))return!1}else{var f=new Ln;if(r)var d=r(l,c,u,t,e,f);if(!(void 0===d?wr(c,l,3,r,f):d))return!1}}return!0}function kr(t){return!(!$a(t)||(e=t,Ct&&Ct in e))&&(Fa(t)?Ot:at).test(Ao(t));var e}function Mr(t){return"function"==typeof t?t:null==t?Ws:"object"==typeof t?Ra(t)?Er(t[0],t[1]):Tr(t):eu(t)}function xr(t){if(!fo(t))return on(t);var e=[];for(var n in mt(t))xt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Sr(t){if(!$a(t))return function(t){var e=[];if(null!=t)for(var n in mt(t))e.push(n);return e}(t);var e=fo(t),n=[];for(var r in t)("constructor"!=r||!e&&xt.call(t,r))&&n.push(r);return n}function Cr(t,e){return t<e}function Ar(t,e){var n=-1,i=Da(t)?r(t.length):[];return tr(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function Tr(t){var e=Xi(t);return 1==e.length&&e[0][2]?po(e[0][0],e[0][1]):function(n){return n===t||_r(n,t,e)}}function Er(t,e){return uo(t)&&ho(e)?po(Co(t),e):function(n){var r=ms(n,t);return void 0===r&&r===e?vs(n,t):wr(e,r,3)}}function Or(t,e,n,r,i){t!==e&&ar(e,(function(o,a){if(i||(i=new Ln),$a(o))!function(t,e,n,r,i,o,a){var s=bo(t,n),u=bo(e,n),l=a.get(u);if(l)return void Vn(t,n,l);var c=o?o(s,u,n+"",t,e,a):void 0,f=void 0===c;if(f){var d=Ra(u),h=!d&&La(u),p=!d&&!h&&Xa(u);c=u,d||h||p?Ra(s)?c=s:Na(s)?c=gi(s):h?(f=!1,c=fi(u,!0)):p?(f=!1,c=hi(u,!0)):c=[]:Ka(u)||Ia(u)?(c=s,Ia(s)?c=as(s):$a(s)&&!Fa(s)||(c=io(u))):f=!1}f&&(a.set(u,c),i(c,u,r,o,a),a.delete(u));Vn(t,n,c)}(t,e,a,n,Or,r,i);else{var s=r?r(bo(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Vn(t,a,s)}}),_s)}function Pr(t,e){var n=t.length;if(n)return ao(e+=e<0?n:0,n)?t[e]:void 0}function Ir(t,e,n){e=e.length?he(e,(function(t){return Ra(t)?function(e){return fr(e,1===t.length?t[0]:t)}:t})):[Ws];var r=-1;return e=he(e,Oe(Zi())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Ar(t,(function(t,n,i){return{criteria:he(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;for(;++r<a;){var u=pi(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}(t,e,n)}))}function Rr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=fr(t,a);n(s,a)&&qr(o,si(a,t),s)}return o}function jr(t,e,n,r){var i=r?ke:_e,o=-1,a=e.length,s=t;for(t===e&&(e=gi(e)),n&&(s=he(t,Oe(n)));++o<a;)for(var u=0,l=e[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==t&&Gt.call(s,u,1),Gt.call(t,u,1);return t}function Dr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;ao(i)?Gt.call(t,i,1):Qr(t,i)}}return t}function Nr(t,e){return t+Qe(cn()*(e-t+1))}function Lr(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=Qe(e/2))&&(t+=t)}while(e);return n}function Br(t,e){return _o(mo(t,e,Ws),t+"")}function zr(t){return zn(Es(t))}function Fr(t,e){var n=Es(t);return xo(n,Gn(e,0,n.length))}function qr(t,e,n,r){if(!$a(t))return t;for(var i=-1,o=(e=si(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var u=Co(e[i]),l=n;if("__proto__"===u||"constructor"===u||"prototype"===u)return t;if(i!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=$a(c)?c:ao(e[i+1])?[]:{})}$n(s,u,l),s=s[u]}return t}var Vr=bn?function(t,e){return bn.set(t,e),t}:Ws,$r=Ce?function(t,e){return Ce(t,"toString",{configurable:!0,enumerable:!1,value:$s(e),writable:!0})}:Ws;function Hr(t){return xo(Es(t))}function Ur(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i<o;)a[i]=t[i+e];return a}function Wr(t,e){var n;return tr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function Kr(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!Ja(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return Yr(t,e,Ws,n)}function Yr(t,e,n,r){var i=0,o=null==t?0:t.length;if(0===o)return 0;for(var a=(e=n(e))!=e,s=null===e,u=Ja(e),l=void 0===e;i<o;){var c=Qe((i+o)/2),f=n(t[c]),d=void 0!==f,h=null===f,p=f==f,m=Ja(f);if(a)var v=r||p;else v=l?p&&(r||d):s?p&&d&&(r||!h):u?p&&d&&!h&&(r||!m):!h&&!m&&(r?f<=e:f<e);v?i=c+1:o=c}return sn(o,4294967294)}function Gr(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Ea(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Zr(t){return"number"==typeof t?t:Ja(t)?NaN:+t}function Jr(t){if("string"==typeof t)return t;if(Ra(t))return he(t,Jr)+"";if(Ja(t))return An?An.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Xr(t,e,n){var r=-1,i=fe,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=de;else if(o>=200){var l=e?null:Li(t);if(l)return $e(l);a=!1,i=Ie,u=new Nn}else u=e?[]:s;t:for(;++r<o;){var c=t[r],f=e?e(c):c;if(c=n||0!==c?c:0,a&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue t;e&&u.push(f),s.push(c)}else i(u,f,n)||(u!==s&&u.push(f),s.push(c))}return s}function Qr(t,e){return null==(t=vo(t,e=si(e,t)))||delete t[Co(zo(e))]}function ti(t,e,n,r){return qr(t,e,n(fr(t,e)),r)}function ei(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Ur(t,r?0:o,r?o+1:i):Ur(t,r?o+1:0,r?i:o)}function ni(t,e){var n=t;return n instanceof In&&(n=n.value()),me(e,(function(t,e){return e.func.apply(e.thisArg,pe([t],e.args))}),n)}function ri(t,e,n){var i=t.length;if(i<2)return i?Xr(t[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=t[o],u=-1;++u<i;)u!=o&&(a[o]=Qn(a[o]||s,t[u],e,n));return Xr(or(a,1),e,n)}function ii(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}function oi(t){return Na(t)?t:[]}function ai(t){return"function"==typeof t?t:Ws}function si(t,e){return Ra(t)?t:uo(t,e)?[t]:So(ss(t))}var ui=Br;function li(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Ur(t,e,n)}var ci=Ge||function(t){return Kt.clearTimeout(t)};function fi(t,e){if(e)return t.slice();var n=t.length,r=Vt?Vt(n):new t.constructor(n);return t.copy(r),r}function di(t){var e=new t.constructor(t.byteLength);return new Nt(e).set(new Nt(t)),e}function hi(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function pi(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Ja(t),a=void 0!==e,s=null===e,u=e==e,l=Ja(e);if(!s&&!l&&!o&&t>e||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function mi(t,e,n,i){for(var o=-1,a=t.length,s=n.length,u=-1,l=e.length,c=an(a-s,0),f=r(l+c),d=!i;++u<l;)f[u]=e[u];for(;++o<s;)(d||o<a)&&(f[n[o]]=t[o]);for(;c--;)f[u++]=t[o++];return f}function vi(t,e,n,i){for(var o=-1,a=t.length,s=-1,u=n.length,l=-1,c=e.length,f=an(a-u,0),d=r(f+c),h=!i;++o<f;)d[o]=t[o];for(var p=o;++l<c;)d[p+l]=e[l];for(;++s<u;)(h||o<a)&&(d[p+n[s]]=t[o++]);return d}function gi(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function bi(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?Kn(n,s,u):$n(n,s,u)}return n}function yi(t,e){return function(n,r){var i=Ra(n)?ae:Un,o=e?e():{};return i(n,t,Zi(r,2),o)}}function wi(t){return Br((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=mt(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e}))}function _i(t,e){return function(n,r){if(null==n)return n;if(!Da(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=mt(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function ki(t){return function(e,n,r){for(var i=-1,o=mt(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function Mi(t){return function(e){var n=ze(e=ss(e))?We(e):void 0,r=n?n[0]:e.charAt(0),i=n?li(n,1).join(""):e.slice(1);return r[t]()+i}}function xi(t){return function(e){return me(Fs(Is(e).replace(It,"")),t,"")}}function Si(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=En(t.prototype),r=t.apply(n,e);return $a(r)?r:n}}function Ci(t){return function(e,n,r){var i=mt(e);if(!Da(e)){var o=Zi(n,3);e=ws(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}}function Ai(t){return Hi((function(e){var n=e.length,r=n,i=Pn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new bt(o);if(i&&!s&&"wrapper"==Yi(a))var s=new Pn([],!0)}for(r=s?r:n;++r<n;){var u=Yi(a=e[r]),l="wrapper"==u?Ki(a):void 0;s=l&&lo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[Yi(l[0])].apply(s,l[3]):1==a.length&&lo(a)?s[u]():s.thru(a)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&Ra(r))return s.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function Ti(t,e,n,i,o,a,s,u,l,c){var f=128&e,d=1&e,h=2&e,p=24&e,m=512&e,v=h?void 0:Si(t);return function g(){for(var b=arguments.length,y=r(b),w=b;w--;)y[w]=arguments[w];if(p)var _=Gi(g),k=De(y,_);if(i&&(y=mi(y,i,o,p)),a&&(y=vi(y,a,s,p)),b-=k,p&&b<c){var M=Ve(y,_);return Di(t,e,Ti,g.placeholder,n,y,M,u,l,c-b)}var x=d?n:this,S=h?x[t]:t;return b=y.length,u?y=go(y,u):m&&b>1&&y.reverse(),f&&l<b&&(y.length=l),this&&this!==Kt&&this instanceof g&&(S=v||Si(S)),S.apply(x,y)}}function Ei(t,e){return function(n,r){return function(t,e,n,r){return ur(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Oi(t,e){return function(n,r){var i;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Jr(n),r=Jr(r)):(n=Zr(n),r=Zr(r)),i=t(n,r)}return i}}function Pi(t){return Hi((function(e){return e=he(e,Oe(Zi())),Br((function(n){var r=this;return t(e,(function(t){return oe(t,r,n)}))}))}))}function Ii(t,e){var n=(e=void 0===e?" ":Jr(e)).length;if(n<2)return n?Lr(e,t):e;var r=Lr(e,Xe(t/Ue(e)));return ze(e)?li(We(r),0,t).join(""):r.slice(0,t)}function Ri(t){return function(e,n,i){return i&&"number"!=typeof i&&so(e,n,i)&&(n=i=void 0),e=ns(e),void 0===n?(n=e,e=0):n=ns(n),function(t,e,n,i){for(var o=-1,a=an(Xe((e-t)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=t,t+=n;return s}(e,n,i=void 0===i?e<n?1:-1:ns(i),t)}}function ji(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=os(e),n=os(n)),t(e,n)}}function Di(t,e,n,r,i,o,a,s,u,l){var c=8&e;e|=c?32:64,4&(e&=~(c?64:32))||(e&=-4);var f=[t,e,i,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,u,l],d=n.apply(void 0,f);return lo(t)&&yo(d,f),d.placeholder=r,ko(d,t,e)}function Ni(t){var e=pt[t];return function(t,n){if(t=os(t),(n=null==n?0:sn(rs(n),292))&&nn(t)){var r=(ss(t)+"e").split("e");return+((r=(ss(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Li=mn&&1/$e(new mn([,-0]))[1]==1/0?function(t){return new mn(t)}:Js;function Bi(t){return function(e){var n=no(e);return n==m?Fe(e):n==y?He(e):function(t,e){return he(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function zi(t,e,n,i,s,u,l,c){var f=2&e;if(!f&&"function"!=typeof t)throw new bt(o);var d=i?i.length:0;if(d||(e&=-97,i=s=void 0),l=void 0===l?l:an(rs(l),0),c=void 0===c?c:rs(c),d-=s?s.length:0,64&e){var h=i,p=s;i=s=void 0}var m=f?void 0:Ki(t),v=[t,e,n,i,s,h,p,u,l,c];if(m&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var l=t[3];t[3]=l?mi(l,u,e[4]):u,t[4]=l?Ve(t[3],a):e[4]}(u=e[5])&&(l=t[5],t[5]=l?vi(l,u,e[6]):u,t[6]=l?Ve(t[5],a):e[6]);(u=e[7])&&(t[7]=u);128&r&&(t[8]=null==t[8]?e[8]:sn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(v,m),t=v[0],e=v[1],n=v[2],i=v[3],s=v[4],!(c=v[9]=void 0===v[9]?f?0:t.length:an(v[9]-d,0))&&24&e&&(e&=-25),e&&1!=e)g=8==e||16==e?function(t,e,n){var i=Si(t);return function o(){for(var a=arguments.length,s=r(a),u=a,l=Gi(o);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:Ve(s,l);if((a-=c.length)<n)return Di(t,e,Ti,o.placeholder,void 0,s,c,void 0,void 0,n-a);var f=this&&this!==Kt&&this instanceof o?i:t;return oe(f,this,s)}}(t,e,c):32!=e&&33!=e||s.length?Ti.apply(void 0,v):function(t,e,n,i){var o=1&e,a=Si(t);return function e(){for(var s=-1,u=arguments.length,l=-1,c=i.length,f=r(c+u),d=this&&this!==Kt&&this instanceof e?a:t;++l<c;)f[l]=i[l];for(;u--;)f[l++]=arguments[++s];return oe(d,o?n:this,f)}}(t,e,n,i);else var g=function(t,e,n){var r=1&e,i=Si(t);return function e(){var o=this&&this!==Kt&&this instanceof e?i:t;return o.apply(r?n:this,arguments)}}(t,e,n);return ko((m?Vr:yo)(g,v),t,e)}function Fi(t,e,n,r){return void 0===t||Ea(t,_t[n])&&!xt.call(r,n)?e:t}function qi(t,e,n,r,i,o){return $a(t)&&$a(e)&&(o.set(e,t),Or(t,e,void 0,qi,o),o.delete(e)),t}function Vi(t){return Ka(t)?void 0:t}function $i(t,e,n,r,i,o){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(t),c=o.get(e);if(l&&c)return l==e&&c==t;var f=-1,d=!0,h=2&n?new Nn:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var p=t[f],m=e[f];if(r)var v=a?r(m,p,f,e,t,o):r(p,m,f,t,e,o);if(void 0!==v){if(v)continue;d=!1;break}if(h){if(!ge(e,(function(t,e){if(!Ie(h,e)&&(p===t||i(p,t,n,r,o)))return h.push(e)}))){d=!1;break}}else if(p!==m&&!i(p,m,n,r,o)){d=!1;break}}return o.delete(t),o.delete(e),d}function Hi(t){return _o(mo(t,void 0,jo),t+"")}function Ui(t){return dr(t,ws,to)}function Wi(t){return dr(t,_s,eo)}var Ki=bn?function(t){return bn.get(t)}:Js;function Yi(t){for(var e=t.name+"",n=yn[e],r=xt.call(yn,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Gi(t){return(xt.call(Tn,"placeholder")?Tn:t).placeholder}function Zi(){var t=Tn.iteratee||Ks;return t=t===Ks?Mr:t,arguments.length?t(arguments[0],arguments[1]):t}function Ji(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Xi(t){for(var e=ws(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,ho(i)]}return e}function Qi(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return kr(n)?n:void 0}var to=tn?function(t){return null==t?[]:(t=mt(t),ce(tn(t),(function(e){return Yt.call(t,e)})))}:iu,eo=tn?function(t){for(var e=[];t;)pe(e,to(t)),t=Ut(t);return e}:iu,no=hr;function ro(t,e,n){for(var r=-1,i=(e=si(e,t)).length,o=!1;++r<i;){var a=Co(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Va(i)&&ao(a,i)&&(Ra(t)||Ia(t))}function io(t){return"function"!=typeof t.constructor||fo(t)?{}:En(Ut(t))}function oo(t){return Ra(t)||Ia(t)||!!(Jt&&t&&t[Jt])}function ao(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ut.test(t))&&t>-1&&t%1==0&&t<e}function so(t,e,n){if(!$a(n))return!1;var r=typeof e;return!!("number"==r?Da(n)&&ao(e,n.length):"string"==r&&e in n)&&Ea(n[e],t)}function uo(t,e){if(Ra(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Ja(t))||(H.test(t)||!$.test(t)||null!=e&&t in mt(e))}function lo(t){var e=Yi(t),n=Tn[e];if("function"!=typeof n||!(e in In.prototype))return!1;if(t===n)return!0;var r=Ki(n);return!!r&&t===r[0]}(dn&&no(new dn(new ArrayBuffer(1)))!=x||hn&&no(new hn)!=m||pn&&"[object Promise]"!=no(pn.resolve())||mn&&no(new mn)!=y||vn&&no(new vn)!=k)&&(no=function(t){var e=hr(t),n=e==g?t.constructor:void 0,r=n?Ao(n):"";if(r)switch(r){case wn:return x;case _n:return m;case kn:return"[object Promise]";case Mn:return y;case xn:return k}return e});var co=kt?Fa:ou;function fo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_t)}function ho(t){return t==t&&!$a(t)}function po(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in mt(n)))}}function mo(t,e,n){return e=an(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=an(i.length-e,0),s=r(a);++o<a;)s[o]=i[e+o];o=-1;for(var u=r(e+1);++o<e;)u[o]=i[o];return u[e]=n(s),oe(t,this,u)}}function vo(t,e){return e.length<2?t:fr(t,Ur(e,0,-1))}function go(t,e){for(var n=t.length,r=sn(e.length,n),i=gi(t);r--;){var o=e[r];t[r]=ao(o,n)?i[o]:void 0}return t}function bo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var yo=Mo(Vr),wo=Je||function(t,e){return Kt.setTimeout(t,e)},_o=Mo($r);function ko(t,e,n){var r=e+"";return _o(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(J,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return se(s,(function(n){var r="_."+n[0];e&n[1]&&!fe(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(X);return e?e[1].split(Q):[]}(r),n)))}function Mo(t){var e=0,n=0;return function(){var r=un(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function xo(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n<e;){var o=Nr(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var So=function(t){var e=Ma(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(U,(function(t,n,r,i){e.push(r?i.replace(et,"$1"):n||t)})),e}));function Co(t){if("string"==typeof t||Ja(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ao(t){if(null!=t){try{return Mt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function To(t){if(t instanceof In)return t.clone();var e=new Pn(t.__wrapped__,t.__chain__);return e.__actions__=gi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Eo=Br((function(t,e){return Na(t)?Qn(t,or(e,1,Na,!0)):[]})),Oo=Br((function(t,e){var n=zo(e);return Na(n)&&(n=void 0),Na(t)?Qn(t,or(e,1,Na,!0),Zi(n,2)):[]})),Po=Br((function(t,e){var n=zo(e);return Na(n)&&(n=void 0),Na(t)?Qn(t,or(e,1,Na,!0),void 0,n):[]}));function Io(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),we(t,Zi(e,3),i)}function Ro(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rs(n),i=n<0?an(r+i,0):sn(i,r-1)),we(t,Zi(e,3),i,!0)}function jo(t){return(null==t?0:t.length)?or(t,1):[]}function Do(t){return t&&t.length?t[0]:void 0}var No=Br((function(t){var e=he(t,oi);return e.length&&e[0]===t[0]?gr(e):[]})),Lo=Br((function(t){var e=zo(t),n=he(t,oi);return e===zo(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?gr(n,Zi(e,2)):[]})),Bo=Br((function(t){var e=zo(t),n=he(t,oi);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?gr(n,void 0,e):[]}));function zo(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Fo=Br(qo);function qo(t,e){return t&&t.length&&e&&e.length?jr(t,e):t}var Vo=Hi((function(t,e){var n=null==t?0:t.length,r=Yn(t,e);return Dr(t,he(e,(function(t){return ao(t,n)?+t:t})).sort(pi)),r}));function $o(t){return null==t?t:fn.call(t)}var Ho=Br((function(t){return Xr(or(t,1,Na,!0))})),Uo=Br((function(t){var e=zo(t);return Na(e)&&(e=void 0),Xr(or(t,1,Na,!0),Zi(e,2))})),Wo=Br((function(t){var e=zo(t);return e="function"==typeof e?e:void 0,Xr(or(t,1,Na,!0),void 0,e)}));function Ko(t){if(!t||!t.length)return[];var e=0;return t=ce(t,(function(t){if(Na(t))return e=an(t.length,e),!0})),Ee(e,(function(e){return he(t,Se(e))}))}function Yo(t,e){if(!t||!t.length)return[];var n=Ko(t);return null==e?n:he(n,(function(t){return oe(e,void 0,t)}))}var Go=Br((function(t,e){return Na(t)?Qn(t,e):[]})),Zo=Br((function(t){return ri(ce(t,Na))})),Jo=Br((function(t){var e=zo(t);return Na(e)&&(e=void 0),ri(ce(t,Na),Zi(e,2))})),Xo=Br((function(t){var e=zo(t);return e="function"==typeof e?e:void 0,ri(ce(t,Na),void 0,e)})),Qo=Br(Ko);var ta=Br((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Yo(t,n)}));function ea(t){var e=Tn(t);return e.__chain__=!0,e}function na(t,e){return e(t)}var ra=Hi((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Yn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof In&&ao(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var ia=yi((function(t,e,n){xt.call(t,n)?++t[n]:Kn(t,n,1)}));var oa=Ci(Io),aa=Ci(Ro);function sa(t,e){return(Ra(t)?se:tr)(t,Zi(e,3))}function ua(t,e){return(Ra(t)?ue:er)(t,Zi(e,3))}var la=yi((function(t,e,n){xt.call(t,n)?t[n].push(e):Kn(t,n,[e])}));var ca=Br((function(t,e,n){var i=-1,o="function"==typeof e,a=Da(t)?r(t.length):[];return tr(t,(function(t){a[++i]=o?oe(e,t,n):br(t,e,n)})),a})),fa=yi((function(t,e,n){Kn(t,n,e)}));function da(t,e){return(Ra(t)?he:Ar)(t,Zi(e,3))}var ha=yi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var pa=Br((function(t,e){if(null==t)return[];var n=e.length;return n>1&&so(t,e[0],e[1])?e=[]:n>2&&so(e[0],e[1],e[2])&&(e=[e[0]]),Ir(t,or(e,1),[])})),ma=Ze||function(){return Kt.Date.now()};function va(t,e,n){return e=n?void 0:e,zi(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ga(t,e){var n;if("function"!=typeof e)throw new bt(o);return t=rs(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ba=Br((function(t,e,n){var r=1;if(n.length){var i=Ve(n,Gi(ba));r|=32}return zi(t,r,e,n,i)})),ya=Br((function(t,e,n){var r=3;if(n.length){var i=Ve(n,Gi(ya));r|=32}return zi(e,r,t,n,i)}));function wa(t,e,n){var r,i,a,s,u,l,c=0,f=!1,d=!1,h=!0;if("function"!=typeof t)throw new bt(o);function p(e){var n=r,o=i;return r=i=void 0,c=e,s=t.apply(o,n)}function m(t){return c=t,u=wo(g,e),f?p(t):s}function v(t){var n=t-l;return void 0===l||n>=e||n<0||d&&t-c>=a}function g(){var t=ma();if(v(t))return b(t);u=wo(g,function(t){var n=e-(t-l);return d?sn(n,a-(t-c)):n}(t))}function b(t){return u=void 0,h&&r?p(t):(r=i=void 0,s)}function y(){var t=ma(),n=v(t);if(r=arguments,i=this,l=t,n){if(void 0===u)return m(l);if(d)return ci(u),u=wo(g,e),p(l)}return void 0===u&&(u=wo(g,e)),s}return e=os(e)||0,$a(n)&&(f=!!n.leading,a=(d="maxWait"in n)?an(os(n.maxWait)||0,e):a,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==u&&ci(u),c=0,r=l=i=u=void 0},y.flush=function(){return void 0===u?s:b(ma())},y}var _a=Br((function(t,e){return Xn(t,1,e)})),ka=Br((function(t,e,n){return Xn(t,os(e)||0,n)}));function Ma(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new bt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ma.Cache||Dn),n}function xa(t){if("function"!=typeof t)throw new bt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ma.Cache=Dn;var Sa=ui((function(t,e){var n=(e=1==e.length&&Ra(e[0])?he(e[0],Oe(Zi())):he(or(e,1),Oe(Zi()))).length;return Br((function(r){for(var i=-1,o=sn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return oe(t,this,r)}))})),Ca=Br((function(t,e){return zi(t,32,void 0,e,Ve(e,Gi(Ca)))})),Aa=Br((function(t,e){return zi(t,64,void 0,e,Ve(e,Gi(Aa)))})),Ta=Hi((function(t,e){return zi(t,256,void 0,void 0,void 0,e)}));function Ea(t,e){return t===e||t!=t&&e!=e}var Oa=ji(pr),Pa=ji((function(t,e){return t>=e})),Ia=yr(function(){return arguments}())?yr:function(t){return Ha(t)&&xt.call(t,"callee")&&!Yt.call(t,"callee")},Ra=r.isArray,ja=Qt?Oe(Qt):function(t){return Ha(t)&&hr(t)==M};function Da(t){return null!=t&&Va(t.length)&&!Fa(t)}function Na(t){return Ha(t)&&Da(t)}var La=en||ou,Ba=te?Oe(te):function(t){return Ha(t)&&hr(t)==f};function za(t){if(!Ha(t))return!1;var e=hr(t);return e==d||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ka(t)}function Fa(t){if(!$a(t))return!1;var e=hr(t);return e==h||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function qa(t){return"number"==typeof t&&t==rs(t)}function Va(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function $a(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ha(t){return null!=t&&"object"==typeof t}var Ua=ee?Oe(ee):function(t){return Ha(t)&&no(t)==m};function Wa(t){return"number"==typeof t||Ha(t)&&hr(t)==v}function Ka(t){if(!Ha(t)||hr(t)!=g)return!1;var e=Ut(t);if(null===e)return!0;var n=xt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Mt.call(n)==Tt}var Ya=ne?Oe(ne):function(t){return Ha(t)&&hr(t)==b};var Ga=re?Oe(re):function(t){return Ha(t)&&no(t)==y};function Za(t){return"string"==typeof t||!Ra(t)&&Ha(t)&&hr(t)==w}function Ja(t){return"symbol"==typeof t||Ha(t)&&hr(t)==_}var Xa=ie?Oe(ie):function(t){return Ha(t)&&Va(t.length)&&!!Ft[hr(t)]};var Qa=ji(Cr),ts=ji((function(t,e){return t<=e}));function es(t){if(!t)return[];if(Da(t))return Za(t)?We(t):gi(t);if(Xt&&t[Xt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Xt]());var e=no(t);return(e==m?Fe:e==y?$e:Es)(t)}function ns(t){return t?(t=os(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function rs(t){var e=ns(t),n=e%1;return e==e?n?e-n:e:0}function is(t){return t?Gn(rs(t),0,4294967295):0}function os(t){if("number"==typeof t)return t;if(Ja(t))return NaN;if($a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=$a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Y,"");var n=ot.test(t);return n||st.test(t)?Ht(t.slice(2),n?2:8):it.test(t)?NaN:+t}function as(t){return bi(t,_s(t))}function ss(t){return null==t?"":Jr(t)}var us=wi((function(t,e){if(fo(e)||Da(e))bi(e,ws(e),t);else for(var n in e)xt.call(e,n)&&$n(t,n,e[n])})),ls=wi((function(t,e){bi(e,_s(e),t)})),cs=wi((function(t,e,n,r){bi(e,_s(e),t,r)})),fs=wi((function(t,e,n,r){bi(e,ws(e),t,r)})),ds=Hi(Yn);var hs=Br((function(t,e){t=mt(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&so(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=_s(o),s=-1,u=a.length;++s<u;){var l=a[s],c=t[l];(void 0===c||Ea(c,_t[l])&&!xt.call(t,l))&&(t[l]=o[l])}return t})),ps=Br((function(t){return t.push(void 0,qi),oe(Ms,void 0,t)}));function ms(t,e,n){var r=null==t?void 0:fr(t,e);return void 0===r?n:r}function vs(t,e){return null!=t&&ro(t,e,vr)}var gs=Ei((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=At.call(e)),t[e]=n}),$s(Ws)),bs=Ei((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=At.call(e)),xt.call(t,e)?t[e].push(n):t[e]=[n]}),Zi),ys=Br(br);function ws(t){return Da(t)?Bn(t):xr(t)}function _s(t){return Da(t)?Bn(t,!0):Sr(t)}var ks=wi((function(t,e,n){Or(t,e,n)})),Ms=wi((function(t,e,n,r){Or(t,e,n,r)})),xs=Hi((function(t,e){var n={};if(null==t)return n;var r=!1;e=he(e,(function(e){return e=si(e,t),r||(r=e.length>1),e})),bi(t,Wi(t),n),r&&(n=Zn(n,7,Vi));for(var i=e.length;i--;)Qr(n,e[i]);return n}));var Ss=Hi((function(t,e){return null==t?{}:function(t,e){return Rr(t,e,(function(e,n){return vs(t,n)}))}(t,e)}));function Cs(t,e){if(null==t)return{};var n=he(Wi(t),(function(t){return[t]}));return e=Zi(e),Rr(t,n,(function(t,n){return e(t,n[0])}))}var As=Bi(ws),Ts=Bi(_s);function Es(t){return null==t?[]:Pe(t,ws(t))}var Os=xi((function(t,e,n){return e=e.toLowerCase(),t+(n?Ps(e):e)}));function Ps(t){return zs(ss(t).toLowerCase())}function Is(t){return(t=ss(t))&&t.replace(lt,Ne).replace(Rt,"")}var Rs=xi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),js=xi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ds=Mi("toLowerCase");var Ns=xi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Ls=xi((function(t,e,n){return t+(n?" ":"")+zs(e)}));var Bs=xi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),zs=Mi("toUpperCase");function Fs(t,e,n){return t=ss(t),void 0===(e=n?void 0:e)?function(t){return Lt.test(t)}(t)?function(t){return t.match(Dt)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(e)||[]}var qs=Br((function(t,e){try{return oe(t,void 0,e)}catch(t){return za(t)?t:new dt(t)}})),Vs=Hi((function(t,e){return se(e,(function(e){e=Co(e),Kn(t,e,ba(t[e],t))})),t}));function $s(t){return function(){return t}}var Hs=Ai(),Us=Ai(!0);function Ws(t){return t}function Ks(t){return Mr("function"==typeof t?t:Zn(t,1))}var Ys=Br((function(t,e){return function(n){return br(n,t,e)}})),Gs=Br((function(t,e){return function(n){return br(t,n,e)}}));function Zs(t,e,n){var r=ws(e),i=cr(e,r);null!=n||$a(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=cr(e,ws(e)));var o=!($a(n)&&"chain"in n&&!n.chain),a=Fa(t);return se(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=gi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,pe([this.value()],arguments))})})),t}function Js(){}var Xs=Pi(he),Qs=Pi(le),tu=Pi(ge);function eu(t){return uo(t)?Se(Co(t)):function(t){return function(e){return fr(e,t)}}(t)}var nu=Ri(),ru=Ri(!0);function iu(){return[]}function ou(){return!1}var au=Oi((function(t,e){return t+e}),0),su=Ni("ceil"),uu=Oi((function(t,e){return t/e}),1),lu=Ni("floor");var cu,fu=Oi((function(t,e){return t*e}),1),du=Ni("round"),hu=Oi((function(t,e){return t-e}),0);return Tn.after=function(t,e){if("function"!=typeof e)throw new bt(o);return t=rs(t),function(){if(--t<1)return e.apply(this,arguments)}},Tn.ary=va,Tn.assign=us,Tn.assignIn=ls,Tn.assignInWith=cs,Tn.assignWith=fs,Tn.at=ds,Tn.before=ga,Tn.bind=ba,Tn.bindAll=Vs,Tn.bindKey=ya,Tn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ra(t)?t:[t]},Tn.chain=ea,Tn.chunk=function(t,e,n){e=(n?so(t,e,n):void 0===e)?1:an(rs(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,s=r(Xe(i/e));o<i;)s[a++]=Ur(t,o,o+=e);return s},Tn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Tn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return pe(Ra(n)?gi(n):[n],or(e,1))},Tn.cond=function(t){var e=null==t?0:t.length,n=Zi();return t=e?he(t,(function(t){if("function"!=typeof t[1])throw new bt(o);return[n(t[0]),t[1]]})):[],Br((function(n){for(var r=-1;++r<e;){var i=t[r];if(oe(i[0],this,n))return oe(i[1],this,n)}}))},Tn.conforms=function(t){return function(t){var e=ws(t);return function(n){return Jn(n,t,e)}}(Zn(t,1))},Tn.constant=$s,Tn.countBy=ia,Tn.create=function(t,e){var n=En(t);return null==e?n:Wn(n,e)},Tn.curry=function t(e,n,r){var i=zi(e,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=t.placeholder,i},Tn.curryRight=function t(e,n,r){var i=zi(e,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=t.placeholder,i},Tn.debounce=wa,Tn.defaults=hs,Tn.defaultsDeep=ps,Tn.defer=_a,Tn.delay=ka,Tn.difference=Eo,Tn.differenceBy=Oo,Tn.differenceWith=Po,Tn.drop=function(t,e,n){var r=null==t?0:t.length;return r?Ur(t,(e=n||void 0===e?1:rs(e))<0?0:e,r):[]},Tn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Ur(t,0,(e=r-(e=n||void 0===e?1:rs(e)))<0?0:e):[]},Tn.dropRightWhile=function(t,e){return t&&t.length?ei(t,Zi(e,3),!0,!0):[]},Tn.dropWhile=function(t,e){return t&&t.length?ei(t,Zi(e,3),!0):[]},Tn.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&so(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=rs(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Tn.filter=function(t,e){return(Ra(t)?ce:ir)(t,Zi(e,3))},Tn.flatMap=function(t,e){return or(da(t,e),1)},Tn.flatMapDeep=function(t,e){return or(da(t,e),1/0)},Tn.flatMapDepth=function(t,e,n){return n=void 0===n?1:rs(n),or(da(t,e),n)},Tn.flatten=jo,Tn.flattenDeep=function(t){return(null==t?0:t.length)?or(t,1/0):[]},Tn.flattenDepth=function(t,e){return(null==t?0:t.length)?or(t,e=void 0===e?1:rs(e)):[]},Tn.flip=function(t){return zi(t,512)},Tn.flow=Hs,Tn.flowRight=Us,Tn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Tn.functions=function(t){return null==t?[]:cr(t,ws(t))},Tn.functionsIn=function(t){return null==t?[]:cr(t,_s(t))},Tn.groupBy=la,Tn.initial=function(t){return(null==t?0:t.length)?Ur(t,0,-1):[]},Tn.intersection=No,Tn.intersectionBy=Lo,Tn.intersectionWith=Bo,Tn.invert=gs,Tn.invertBy=bs,Tn.invokeMap=ca,Tn.iteratee=Ks,Tn.keyBy=fa,Tn.keys=ws,Tn.keysIn=_s,Tn.map=da,Tn.mapKeys=function(t,e){var n={};return e=Zi(e,3),ur(t,(function(t,r,i){Kn(n,e(t,r,i),t)})),n},Tn.mapValues=function(t,e){var n={};return e=Zi(e,3),ur(t,(function(t,r,i){Kn(n,r,e(t,r,i))})),n},Tn.matches=function(t){return Tr(Zn(t,1))},Tn.matchesProperty=function(t,e){return Er(t,Zn(e,1))},Tn.memoize=Ma,Tn.merge=ks,Tn.mergeWith=Ms,Tn.method=Ys,Tn.methodOf=Gs,Tn.mixin=Zs,Tn.negate=xa,Tn.nthArg=function(t){return t=rs(t),Br((function(e){return Pr(e,t)}))},Tn.omit=xs,Tn.omitBy=function(t,e){return Cs(t,xa(Zi(e)))},Tn.once=function(t){return ga(2,t)},Tn.orderBy=function(t,e,n,r){return null==t?[]:(Ra(e)||(e=null==e?[]:[e]),Ra(n=r?void 0:n)||(n=null==n?[]:[n]),Ir(t,e,n))},Tn.over=Xs,Tn.overArgs=Sa,Tn.overEvery=Qs,Tn.overSome=tu,Tn.partial=Ca,Tn.partialRight=Aa,Tn.partition=ha,Tn.pick=Ss,Tn.pickBy=Cs,Tn.property=eu,Tn.propertyOf=function(t){return function(e){return null==t?void 0:fr(t,e)}},Tn.pull=Fo,Tn.pullAll=qo,Tn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?jr(t,e,Zi(n,2)):t},Tn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?jr(t,e,void 0,n):t},Tn.pullAt=Vo,Tn.range=nu,Tn.rangeRight=ru,Tn.rearg=Ta,Tn.reject=function(t,e){return(Ra(t)?ce:ir)(t,xa(Zi(e,3)))},Tn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Zi(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Dr(t,i),n},Tn.rest=function(t,e){if("function"!=typeof t)throw new bt(o);return Br(t,e=void 0===e?e:rs(e))},Tn.reverse=$o,Tn.sampleSize=function(t,e,n){return e=(n?so(t,e,n):void 0===e)?1:rs(e),(Ra(t)?Fn:Fr)(t,e)},Tn.set=function(t,e,n){return null==t?t:qr(t,e,n)},Tn.setWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:qr(t,e,n,r)},Tn.shuffle=function(t){return(Ra(t)?qn:Hr)(t)},Tn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&so(t,e,n)?(e=0,n=r):(e=null==e?0:rs(e),n=void 0===n?r:rs(n)),Ur(t,e,n)):[]},Tn.sortBy=pa,Tn.sortedUniq=function(t){return t&&t.length?Gr(t):[]},Tn.sortedUniqBy=function(t,e){return t&&t.length?Gr(t,Zi(e,2)):[]},Tn.split=function(t,e,n){return n&&"number"!=typeof n&&so(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=ss(t))&&("string"==typeof e||null!=e&&!Ya(e))&&!(e=Jr(e))&&ze(t)?li(We(t),0,n):t.split(e,n):[]},Tn.spread=function(t,e){if("function"!=typeof t)throw new bt(o);return e=null==e?0:an(rs(e),0),Br((function(n){var r=n[e],i=li(n,0,e);return r&&pe(i,r),oe(t,this,i)}))},Tn.tail=function(t){var e=null==t?0:t.length;return e?Ur(t,1,e):[]},Tn.take=function(t,e,n){return t&&t.length?Ur(t,0,(e=n||void 0===e?1:rs(e))<0?0:e):[]},Tn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Ur(t,(e=r-(e=n||void 0===e?1:rs(e)))<0?0:e,r):[]},Tn.takeRightWhile=function(t,e){return t&&t.length?ei(t,Zi(e,3),!1,!0):[]},Tn.takeWhile=function(t,e){return t&&t.length?ei(t,Zi(e,3)):[]},Tn.tap=function(t,e){return e(t),t},Tn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new bt(o);return $a(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wa(t,e,{leading:r,maxWait:e,trailing:i})},Tn.thru=na,Tn.toArray=es,Tn.toPairs=As,Tn.toPairsIn=Ts,Tn.toPath=function(t){return Ra(t)?he(t,Co):Ja(t)?[t]:gi(So(ss(t)))},Tn.toPlainObject=as,Tn.transform=function(t,e,n){var r=Ra(t),i=r||La(t)||Xa(t);if(e=Zi(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:$a(t)&&Fa(o)?En(Ut(t)):{}}return(i?se:ur)(t,(function(t,r,i){return e(n,t,r,i)})),n},Tn.unary=function(t){return va(t,1)},Tn.union=Ho,Tn.unionBy=Uo,Tn.unionWith=Wo,Tn.uniq=function(t){return t&&t.length?Xr(t):[]},Tn.uniqBy=function(t,e){return t&&t.length?Xr(t,Zi(e,2)):[]},Tn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Xr(t,void 0,e):[]},Tn.unset=function(t,e){return null==t||Qr(t,e)},Tn.unzip=Ko,Tn.unzipWith=Yo,Tn.update=function(t,e,n){return null==t?t:ti(t,e,ai(n))},Tn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:ti(t,e,ai(n),r)},Tn.values=Es,Tn.valuesIn=function(t){return null==t?[]:Pe(t,_s(t))},Tn.without=Go,Tn.words=Fs,Tn.wrap=function(t,e){return Ca(ai(e),t)},Tn.xor=Zo,Tn.xorBy=Jo,Tn.xorWith=Xo,Tn.zip=Qo,Tn.zipObject=function(t,e){return ii(t||[],e||[],$n)},Tn.zipObjectDeep=function(t,e){return ii(t||[],e||[],qr)},Tn.zipWith=ta,Tn.entries=As,Tn.entriesIn=Ts,Tn.extend=ls,Tn.extendWith=cs,Zs(Tn,Tn),Tn.add=au,Tn.attempt=qs,Tn.camelCase=Os,Tn.capitalize=Ps,Tn.ceil=su,Tn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=os(n))==n?n:0),void 0!==e&&(e=(e=os(e))==e?e:0),Gn(os(t),e,n)},Tn.clone=function(t){return Zn(t,4)},Tn.cloneDeep=function(t){return Zn(t,5)},Tn.cloneDeepWith=function(t,e){return Zn(t,5,e="function"==typeof e?e:void 0)},Tn.cloneWith=function(t,e){return Zn(t,4,e="function"==typeof e?e:void 0)},Tn.conformsTo=function(t,e){return null==e||Jn(t,e,ws(e))},Tn.deburr=Is,Tn.defaultTo=function(t,e){return null==t||t!=t?e:t},Tn.divide=uu,Tn.endsWith=function(t,e,n){t=ss(t),e=Jr(e);var r=t.length,i=n=void 0===n?r:Gn(rs(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Tn.eq=Ea,Tn.escape=function(t){return(t=ss(t))&&z.test(t)?t.replace(L,Le):t},Tn.escapeRegExp=function(t){return(t=ss(t))&&K.test(t)?t.replace(W,"\\$&"):t},Tn.every=function(t,e,n){var r=Ra(t)?le:nr;return n&&so(t,e,n)&&(e=void 0),r(t,Zi(e,3))},Tn.find=oa,Tn.findIndex=Io,Tn.findKey=function(t,e){return ye(t,Zi(e,3),ur)},Tn.findLast=aa,Tn.findLastIndex=Ro,Tn.findLastKey=function(t,e){return ye(t,Zi(e,3),lr)},Tn.floor=lu,Tn.forEach=sa,Tn.forEachRight=ua,Tn.forIn=function(t,e){return null==t?t:ar(t,Zi(e,3),_s)},Tn.forInRight=function(t,e){return null==t?t:sr(t,Zi(e,3),_s)},Tn.forOwn=function(t,e){return t&&ur(t,Zi(e,3))},Tn.forOwnRight=function(t,e){return t&&lr(t,Zi(e,3))},Tn.get=ms,Tn.gt=Oa,Tn.gte=Pa,Tn.has=function(t,e){return null!=t&&ro(t,e,mr)},Tn.hasIn=vs,Tn.head=Do,Tn.identity=Ws,Tn.includes=function(t,e,n,r){t=Da(t)?t:Es(t),n=n&&!r?rs(n):0;var i=t.length;return n<0&&(n=an(i+n,0)),Za(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&_e(t,e,n)>-1},Tn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),_e(t,e,i)},Tn.inRange=function(t,e,n){return e=ns(e),void 0===n?(n=e,e=0):n=ns(n),function(t,e,n){return t>=sn(e,n)&&t<an(e,n)}(t=os(t),e,n)},Tn.invoke=ys,Tn.isArguments=Ia,Tn.isArray=Ra,Tn.isArrayBuffer=ja,Tn.isArrayLike=Da,Tn.isArrayLikeObject=Na,Tn.isBoolean=function(t){return!0===t||!1===t||Ha(t)&&hr(t)==c},Tn.isBuffer=La,Tn.isDate=Ba,Tn.isElement=function(t){return Ha(t)&&1===t.nodeType&&!Ka(t)},Tn.isEmpty=function(t){if(null==t)return!0;if(Da(t)&&(Ra(t)||"string"==typeof t||"function"==typeof t.splice||La(t)||Xa(t)||Ia(t)))return!t.length;var e=no(t);if(e==m||e==y)return!t.size;if(fo(t))return!xr(t).length;for(var n in t)if(xt.call(t,n))return!1;return!0},Tn.isEqual=function(t,e){return wr(t,e)},Tn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?wr(t,e,void 0,n):!!r},Tn.isError=za,Tn.isFinite=function(t){return"number"==typeof t&&nn(t)},Tn.isFunction=Fa,Tn.isInteger=qa,Tn.isLength=Va,Tn.isMap=Ua,Tn.isMatch=function(t,e){return t===e||_r(t,e,Xi(e))},Tn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:void 0,_r(t,e,Xi(e),n)},Tn.isNaN=function(t){return Wa(t)&&t!=+t},Tn.isNative=function(t){if(co(t))throw new dt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(t)},Tn.isNil=function(t){return null==t},Tn.isNull=function(t){return null===t},Tn.isNumber=Wa,Tn.isObject=$a,Tn.isObjectLike=Ha,Tn.isPlainObject=Ka,Tn.isRegExp=Ya,Tn.isSafeInteger=function(t){return qa(t)&&t>=-9007199254740991&&t<=9007199254740991},Tn.isSet=Ga,Tn.isString=Za,Tn.isSymbol=Ja,Tn.isTypedArray=Xa,Tn.isUndefined=function(t){return void 0===t},Tn.isWeakMap=function(t){return Ha(t)&&no(t)==k},Tn.isWeakSet=function(t){return Ha(t)&&"[object WeakSet]"==hr(t)},Tn.join=function(t,e){return null==t?"":rn.call(t,e)},Tn.kebabCase=Rs,Tn.last=zo,Tn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?an(r+i,0):sn(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):we(t,Me,i,!0)},Tn.lowerCase=js,Tn.lowerFirst=Ds,Tn.lt=Qa,Tn.lte=ts,Tn.max=function(t){return t&&t.length?rr(t,Ws,pr):void 0},Tn.maxBy=function(t,e){return t&&t.length?rr(t,Zi(e,2),pr):void 0},Tn.mean=function(t){return xe(t,Ws)},Tn.meanBy=function(t,e){return xe(t,Zi(e,2))},Tn.min=function(t){return t&&t.length?rr(t,Ws,Cr):void 0},Tn.minBy=function(t,e){return t&&t.length?rr(t,Zi(e,2),Cr):void 0},Tn.stubArray=iu,Tn.stubFalse=ou,Tn.stubObject=function(){return{}},Tn.stubString=function(){return""},Tn.stubTrue=function(){return!0},Tn.multiply=fu,Tn.nth=function(t,e){return t&&t.length?Pr(t,rs(e)):void 0},Tn.noConflict=function(){return Kt._===this&&(Kt._=Et),this},Tn.noop=Js,Tn.now=ma,Tn.pad=function(t,e,n){t=ss(t);var r=(e=rs(e))?Ue(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Ii(Qe(i),n)+t+Ii(Xe(i),n)},Tn.padEnd=function(t,e,n){t=ss(t);var r=(e=rs(e))?Ue(t):0;return e&&r<e?t+Ii(e-r,n):t},Tn.padStart=function(t,e,n){t=ss(t);var r=(e=rs(e))?Ue(t):0;return e&&r<e?Ii(e-r,n)+t:t},Tn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),ln(ss(t).replace(G,""),e||0)},Tn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&so(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=ns(t),void 0===e?(e=t,t=0):e=ns(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=cn();return sn(t+i*(e-t+$t("1e-"+((i+"").length-1))),e)}return Nr(t,e)},Tn.reduce=function(t,e,n){var r=Ra(t)?me:Ae,i=arguments.length<3;return r(t,Zi(e,4),n,i,tr)},Tn.reduceRight=function(t,e,n){var r=Ra(t)?ve:Ae,i=arguments.length<3;return r(t,Zi(e,4),n,i,er)},Tn.repeat=function(t,e,n){return e=(n?so(t,e,n):void 0===e)?1:rs(e),Lr(ss(t),e)},Tn.replace=function(){var t=arguments,e=ss(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Tn.result=function(t,e,n){var r=-1,i=(e=si(e,t)).length;for(i||(i=1,t=void 0);++r<i;){var o=null==t?void 0:t[Co(e[r])];void 0===o&&(r=i,o=n),t=Fa(o)?o.call(t):o}return t},Tn.round=du,Tn.runInContext=t,Tn.sample=function(t){return(Ra(t)?zn:zr)(t)},Tn.size=function(t){if(null==t)return 0;if(Da(t))return Za(t)?Ue(t):t.length;var e=no(t);return e==m||e==y?t.size:xr(t).length},Tn.snakeCase=Ns,Tn.some=function(t,e,n){var r=Ra(t)?ge:Wr;return n&&so(t,e,n)&&(e=void 0),r(t,Zi(e,3))},Tn.sortedIndex=function(t,e){return Kr(t,e)},Tn.sortedIndexBy=function(t,e,n){return Yr(t,e,Zi(n,2))},Tn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Kr(t,e);if(r<n&&Ea(t[r],e))return r}return-1},Tn.sortedLastIndex=function(t,e){return Kr(t,e,!0)},Tn.sortedLastIndexBy=function(t,e,n){return Yr(t,e,Zi(n,2),!0)},Tn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=Kr(t,e,!0)-1;if(Ea(t[n],e))return n}return-1},Tn.startCase=Ls,Tn.startsWith=function(t,e,n){return t=ss(t),n=null==n?0:Gn(rs(n),0,t.length),e=Jr(e),t.slice(n,n+e.length)==e},Tn.subtract=hu,Tn.sum=function(t){return t&&t.length?Te(t,Ws):0},Tn.sumBy=function(t,e){return t&&t.length?Te(t,Zi(e,2)):0},Tn.template=function(t,e,n){var r=Tn.templateSettings;n&&so(t,e,n)&&(e=void 0),t=ss(t),e=cs({},e,r,Fi);var i,o,a=cs({},e.imports,r.imports,Fi),s=ws(a),u=Pe(a,s),l=0,c=e.interpolate||ct,f="__p += '",d=vt((e.escape||ct).source+"|"+c.source+"|"+(c===V?nt:ct).source+"|"+(e.evaluate||ct).source+"|$","g"),h="//# sourceURL="+(xt.call(e,"sourceURL")?(e.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zt+"]")+"\n";t.replace(d,(function(e,n,r,a,s,u){return r||(r=a),f+=t.slice(l,u).replace(ft,Be),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),f+="';\n";var p=xt.call(e,"variable")&&e.variable;p||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(R,""):f).replace(j,"$1").replace(D,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=qs((function(){return ht(s,h+"return "+f).apply(void 0,u)}));if(m.source=f,za(m))throw m;return m},Tn.times=function(t,e){if((t=rs(t))<1||t>9007199254740991)return[];var n=4294967295,r=sn(t,4294967295);t-=4294967295;for(var i=Ee(r,e=Zi(e));++n<t;)e(n);return i},Tn.toFinite=ns,Tn.toInteger=rs,Tn.toLength=is,Tn.toLower=function(t){return ss(t).toLowerCase()},Tn.toNumber=os,Tn.toSafeInteger=function(t){return t?Gn(rs(t),-9007199254740991,9007199254740991):0===t?t:0},Tn.toString=ss,Tn.toUpper=function(t){return ss(t).toUpperCase()},Tn.trim=function(t,e,n){if((t=ss(t))&&(n||void 0===e))return t.replace(Y,"");if(!t||!(e=Jr(e)))return t;var r=We(t),i=We(e);return li(r,Re(r,i),je(r,i)+1).join("")},Tn.trimEnd=function(t,e,n){if((t=ss(t))&&(n||void 0===e))return t.replace(Z,"");if(!t||!(e=Jr(e)))return t;var r=We(t);return li(r,0,je(r,We(e))+1).join("")},Tn.trimStart=function(t,e,n){if((t=ss(t))&&(n||void 0===e))return t.replace(G,"");if(!t||!(e=Jr(e)))return t;var r=We(t);return li(r,Re(r,We(e))).join("")},Tn.truncate=function(t,e){var n=30,r="...";if($a(e)){var i="separator"in e?e.separator:i;n="length"in e?rs(e.length):n,r="omission"in e?Jr(e.omission):r}var o=(t=ss(t)).length;if(ze(t)){var a=We(t);o=a.length}if(n>=o)return t;var s=n-Ue(r);if(s<1)return r;var u=a?li(a,0,s).join(""):t.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),Ya(i)){if(t.slice(s).search(i)){var l,c=u;for(i.global||(i=vt(i.source,ss(rt.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;u=u.slice(0,void 0===f?s:f)}}else if(t.indexOf(Jr(i),s)!=s){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},Tn.unescape=function(t){return(t=ss(t))&&B.test(t)?t.replace(N,Ke):t},Tn.uniqueId=function(t){var e=++St;return ss(t)+e},Tn.upperCase=Bs,Tn.upperFirst=zs,Tn.each=sa,Tn.eachRight=ua,Tn.first=Do,Zs(Tn,(cu={},ur(Tn,(function(t,e){xt.call(Tn.prototype,e)||(cu[e]=t)})),cu),{chain:!1}),Tn.VERSION="4.17.20",se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Tn[t].placeholder=Tn})),se(["drop","take"],(function(t,e){In.prototype[t]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!e?new In(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},In.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),se(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;In.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Zi(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");In.prototype[t]=function(){return this[n](1).value()[0]}})),se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");In.prototype[t]=function(){return this.__filtered__?new In(this):this[n](1)}})),In.prototype.compact=function(){return this.filter(Ws)},In.prototype.find=function(t){return this.filter(t).head()},In.prototype.findLast=function(t){return this.reverse().find(t)},In.prototype.invokeMap=Br((function(t,e){return"function"==typeof t?new In(this):this.map((function(n){return br(n,t,e)}))})),In.prototype.reject=function(t){return this.filter(xa(Zi(t)))},In.prototype.slice=function(t,e){t=rs(t);var n=this;return n.__filtered__&&(t>0||e<0)?new In(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=rs(e))<0?n.dropRight(-e):n.take(e-t)),n)},In.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},In.prototype.toArray=function(){return this.take(4294967295)},ur(In.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Tn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(Tn.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof In,u=a[0],l=s||Ra(e),c=function(t){var e=i.apply(Tn,pe([t],a));return r&&f?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var f=this.__chain__,d=!!this.__actions__.length,h=o&&!f,p=s&&!d;if(!o&&l){e=p?e:new In(this);var m=t.apply(e,a);return m.__actions__.push({func:na,args:[c],thisArg:void 0}),new Pn(m,f)}return h&&p?t.apply(this,a):(m=this.thru(c),h?r?m.value()[0]:m.value():m)})})),se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=yt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Tn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ra(i)?i:[],t)}return this[n]((function(n){return e.apply(Ra(n)?n:[],t)}))}})),ur(In.prototype,(function(t,e){var n=Tn[e];if(n){var r=n.name+"";xt.call(yn,r)||(yn[r]=[]),yn[r].push({name:e,func:n})}})),yn[Ti(void 0,2).name]=[{name:"wrapper",func:void 0}],In.prototype.clone=function(){var t=new In(this.__wrapped__);return t.__actions__=gi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=gi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=gi(this.__views__),t},In.prototype.reverse=function(){if(this.__filtered__){var t=new In(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},In.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ra(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=sn(e,t+a);break;case"takeRight":t=an(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,h=sn(u,this.__takeCount__);if(!n||!r&&i==u&&h==u)return ni(t,this.__actions__);var p=[];t:for(;u--&&d<h;){for(var m=-1,v=t[l+=e];++m<f;){var g=c[m],b=g.iteratee,y=g.type,w=b(v);if(2==y)v=w;else if(!w){if(1==y)continue t;break t}}p[d++]=v}return p},Tn.prototype.at=ra,Tn.prototype.chain=function(){return ea(this)},Tn.prototype.commit=function(){return new Pn(this.value(),this.__chain__)},Tn.prototype.next=function(){void 0===this.__values__&&(this.__values__=es(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Tn.prototype.plant=function(t){for(var e,n=this;n instanceof On;){var r=To(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},Tn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof In){var e=t;return this.__actions__.length&&(e=new In(this)),(e=e.reverse()).__actions__.push({func:na,args:[$o],thisArg:void 0}),new Pn(e,this.__chain__)}return this.thru($o)},Tn.prototype.toJSON=Tn.prototype.valueOf=Tn.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},Tn.prototype.first=Tn.prototype.head,Xt&&(Tn.prototype[Xt]=function(){return this}),Tn}();Kt._=Ye,void 0===(i=function(){return Ye}.call(e,n,e,r))||(r.exports=i)}).call(this)}).call(this,n(7),n(14)(t))},function(t,e,n){var r;!function(e,n){"use strict";"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,(function(n,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,u=o.flat?function(t){return o.flat.call(t)}:function(t){return o.concat.apply([],t)},l=o.push,c=o.indexOf,f={},d=f.toString,h=f.hasOwnProperty,p=h.toString,m=p.call(Object),v={},g=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},b=function(t){return null!=t&&t===t.window},y=n.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function _(t,e,n){var r,i,o=(n=n||y).createElement("script");if(o.text=t,e)for(r in w)(i=e[r]||e.getAttribute&&e.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function k(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?f[d.call(t)]||"object":typeof t}var M=function(t,e){return new M.fn.init(t,e)};function x(t){var e=!!t&&"length"in t&&t.length,n=k(t);return!g(t)&&!b(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}M.fn=M.prototype={jquery:"3.5.1",constructor:M,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=M.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return M.each(this,t)},map:function(t){return this.pushStack(M.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(M.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(M.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:o.sort,splice:o.splice},M.extend=M.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||g(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(t=arguments[s]))for(e in t)r=t[e],"__proto__"!==e&&a!==r&&(l&&r&&(M.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[e],o=i&&!Array.isArray(n)?[]:i||M.isPlainObject(n)?n:{},i=!1,a[e]=M.extend(l,o,r)):void 0!==r&&(a[e]=r));return a},M.extend({expando:"jQuery"+("3.5.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==d.call(t))&&(!(e=a(t))||"function"==typeof(n=h.call(e,"constructor")&&e.constructor)&&p.call(n)===m)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){_(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,r=0;if(x(t))for(n=t.length;r<n&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(x(Object(t))?M.merge(n,"string"==typeof t?[t]:t):l.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:c.call(e,t,n)},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;r++)t[i++]=e[r];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var r,i,o=0,a=[];if(x(t))for(r=t.length;o<r;o++)null!=(i=e(t[o],o,n))&&a.push(i);else for(o in t)null!=(i=e(t[o],o,n))&&a.push(i);return u(a)},guid:1,support:v}),"function"==typeof Symbol&&(M.fn[Symbol.iterator]=o[Symbol.iterator]),M.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){f["[object "+e+"]"]=e.toLowerCase()}));var S=function(t){var e,n,r,i,o,a,s,u,l,c,f,d,h,p,m,v,g,b,y,w="sizzle"+1*new Date,_=t.document,k=0,M=0,x=ut(),S=ut(),C=ut(),A=ut(),T=function(t,e){return t===e&&(f=!0),0},E={}.hasOwnProperty,O=[],P=O.pop,I=O.push,R=O.push,j=O.slice,D=function(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1},N="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+L+"*("+B+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+L+"*\\]",F=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",q=new RegExp(L+"+","g"),V=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),$=new RegExp("^"+L+"*,"+L+"*"),H=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp(L+"|>"),W=new RegExp(F),K=new RegExp("^"+B+"$"),Y={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+N+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},rt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){d()},at=wt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{R.apply(O=j.call(_.childNodes),_.childNodes),O[_.childNodes.length].nodeType}catch(t){R={apply:O.length?function(t,e){I.apply(t,j.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function st(t,e,r,i){var o,s,l,c,f,p,g,b=e&&e.ownerDocument,_=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==_&&9!==_&&11!==_)return r;if(!i&&(d(e),e=e||h,m)){if(11!==_&&(f=Q.exec(t)))if(o=f[1]){if(9===_){if(!(l=e.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(b&&(l=b.getElementById(o))&&y(e,l)&&l.id===o)return r.push(l),r}else{if(f[2])return R.apply(r,e.getElementsByTagName(t)),r;if((o=f[3])&&n.getElementsByClassName&&e.getElementsByClassName)return R.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!A[t+" "]&&(!v||!v.test(t))&&(1!==_||"object"!==e.nodeName.toLowerCase())){if(g=t,b=e,1===_&&(U.test(t)||H.test(t))){for((b=tt.test(t)&&gt(e.parentNode)||e)===e&&n.scope||((c=e.getAttribute("id"))?c=c.replace(rt,it):e.setAttribute("id",c=w)),s=(p=a(t)).length;s--;)p[s]=(c?"#"+c:":scope")+" "+yt(p[s]);g=p.join(",")}try{return R.apply(r,b.querySelectorAll(g)),r}catch(e){A(t,!0)}finally{c===w&&e.removeAttribute("id")}}}return u(t.replace(V,"$1"),e,r,i)}function ut(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function lt(t){return t[w]=!0,t}function ct(t){var e=h.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ft(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function dt(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ht(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function mt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function vt(t){return lt((function(e){return e=+e,lt((function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=st.support={},o=st.isXML=function(t){var e=t.namespaceURI,n=(t.ownerDocument||t).documentElement;return!G.test(e||n&&n.nodeName||"HTML")},d=st.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:_;return a!=h&&9===a.nodeType&&a.documentElement?(p=(h=a).documentElement,m=!o(h),_!=h&&(i=h.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ot,!1):i.attachEvent&&i.attachEvent("onunload",ot)),n.scope=ct((function(t){return p.appendChild(t).appendChild(h.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),n.attributes=ct((function(t){return t.className="i",!t.getAttribute("className")})),n.getElementsByTagName=ct((function(t){return t.appendChild(h.createComment("")),!t.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(h.getElementsByClassName),n.getById=ct((function(t){return p.appendChild(t).id=w,!h.getElementsByName||!h.getElementsByName(w).length})),n.getById?(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},g=[],v=[],(n.qsa=X.test(h.querySelectorAll))&&(ct((function(t){var e;p.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+L+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+L+"*(?:value|"+N+")"),t.querySelectorAll("[id~="+w+"-]").length||v.push("~="),(e=h.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||v.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||v.push(".#.+[+~]"),t.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ct((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=h.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+L+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=X.test(b=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ct((function(t){n.disconnectedMatch=b.call(t,"*"),b.call(t,"[s!='']:x"),g.push("!=",F)})),v=v.length&&new RegExp(v.join("|")),g=g.length&&new RegExp(g.join("|")),e=X.test(p.compareDocumentPosition),y=e||X.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},T=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t==h||t.ownerDocument==_&&y(_,t)?-1:e==h||e.ownerDocument==_&&y(_,e)?1:c?D(c,t)-D(c,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t==h?-1:e==h?1:i?-1:o?1:c?D(c,t)-D(c,e):0;if(i===o)return dt(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?dt(a[r],s[r]):a[r]==_?-1:s[r]==_?1:0},h):h},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(d(t),n.matchesSelector&&m&&!A[e+" "]&&(!g||!g.test(e))&&(!v||!v.test(e)))try{var r=b.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){A(e,!0)}return st(e,h,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=h&&d(t),y(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=h&&d(t);var i=r.attrHandle[e.toLowerCase()],o=i&&E.call(r.attrHandle,e.toLowerCase())?i(t,e,!m):void 0;return void 0!==o?o:n.attributes||!m?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(rt,it)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(T),f){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return c=null,t},i=st.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=st.selectors={cacheLength:50,createPseudo:lt,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=x[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&x(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,n){return function(r){var i=st.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(q," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,d,h,p,m=o!==a?"nextSibling":"previousSibling",v=e.parentNode,g=s&&e.nodeName.toLowerCase(),b=!u&&!s,y=!1;if(v){if(o){for(;m;){for(d=e;d=d[m];)if(s?d.nodeName.toLowerCase()===g:1===d.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?v.firstChild:v.lastChild],a&&b){for(y=(h=(l=(c=(f=(d=v)[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[t]||[])[0]===k&&l[1])&&l[2],d=h&&v.childNodes[h];d=++h&&d&&d[m]||(y=h=0)||p.pop();)if(1===d.nodeType&&++y&&d===e){c[t]=[k,h,y];break}}else if(b&&(y=h=(l=(c=(f=(d=e)[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[t]||[])[0]===k&&l[1]),!1===y)for(;(d=++h&&d&&d[m]||(y=h=0)||p.pop())&&((s?d.nodeName.toLowerCase()!==g:1!==d.nodeType)||!++y||(b&&((c=(f=d[w]||(d[w]={}))[d.uniqueID]||(f[d.uniqueID]={}))[t]=[k,y]),d!==e)););return(y-=i)===r||y%r==0&&y/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return i[w]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?lt((function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=D(t,o[a])]=!(n[r]=o[a])})):function(t){return i(t,0,n)}):i}},pseudos:{not:lt((function(t){var e=[],n=[],r=s(t.replace(V,"$1"));return r[w]?lt((function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))})):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}})),has:lt((function(t){return function(e){return st(t,e).length>0}})),contains:lt((function(t){return t=t.replace(et,nt),function(e){return(e.textContent||i(e)).indexOf(t)>-1}})),lang:lt((function(t){return K.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===h.activeElement&&(!h.hasFocus||h.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return J.test(t.nodeName)},input:function(t){return Z.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:vt((function(){return[0]})),last:vt((function(t,e){return[e-1]})),eq:vt((function(t,e,n){return[n<0?n+e:n]})),even:vt((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:vt((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:vt((function(t,e,n){for(var r=n<0?n+e:n>e?e:n;--r>=0;)t.push(r);return t})),gt:vt((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push(r);return t}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[e]=ht(e);for(e in{submit:!0,reset:!0})r.pseudos[e]=pt(e);function bt(){}function yt(t){for(var e=0,n=t.length,r="";e<n;e++)r+=t[e].value;return r}function wt(t,e,n){var r=e.dir,i=e.next,o=i||r,a=n&&"parentNode"===o,s=M++;return e.first?function(e,n,i){for(;e=e[r];)if(1===e.nodeType||a)return t(e,n,i);return!1}:function(e,n,u){var l,c,f,d=[k,s];if(u){for(;e=e[r];)if((1===e.nodeType||a)&&t(e,n,u))return!0}else for(;e=e[r];)if(1===e.nodeType||a)if(c=(f=e[w]||(e[w]={}))[e.uniqueID]||(f[e.uniqueID]={}),i&&i===e.nodeName.toLowerCase())e=e[r]||e;else{if((l=c[o])&&l[0]===k&&l[1]===s)return d[2]=l[2];if(c[o]=d,d[2]=t(e,n,u))return!0}return!1}}function _t(t){return t.length>1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function kt(t,e,n,r,i){for(var o,a=[],s=0,u=t.length,l=null!=e;s<u;s++)(o=t[s])&&(n&&!n(o,r,i)||(a.push(o),l&&e.push(s)));return a}function Mt(t,e,n,r,i,o){return r&&!r[w]&&(r=Mt(r)),i&&!i[w]&&(i=Mt(i,o)),lt((function(o,a,s,u){var l,c,f,d=[],h=[],p=a.length,m=o||function(t,e,n){for(var r=0,i=e.length;r<i;r++)st(t,e[r],n);return n}(e||"*",s.nodeType?[s]:s,[]),v=!t||!o&&e?m:kt(m,d,t,s,u),g=n?i||(o?t:p||r)?[]:a:v;if(n&&n(v,g,s,u),r)for(l=kt(g,h),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(g[h[c]]=!(v[h[c]]=f));if(o){if(i||t){if(i){for(l=[],c=g.length;c--;)(f=g[c])&&l.push(v[c]=f);i(null,g=[],l,u)}for(c=g.length;c--;)(f=g[c])&&(l=i?D(o,f):d[c])>-1&&(o[l]=!(a[l]=f))}}else g=kt(g===a?g.splice(p,g.length):g),i?i(null,a,g,u):R.apply(a,g)}))}function xt(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],u=a?1:0,c=wt((function(t){return t===e}),s,!0),f=wt((function(t){return D(e,t)>-1}),s,!0),d=[function(t,n,r){var i=!a&&(r||n!==l)||((e=n).nodeType?c(t,n,r):f(t,n,r));return e=null,i}];u<o;u++)if(n=r.relative[t[u].type])d=[wt(_t(d),n)];else{if((n=r.filter[t[u].type].apply(null,t[u].matches))[w]){for(i=++u;i<o&&!r.relative[t[i].type];i++);return Mt(u>1&&_t(d),u>1&&yt(t.slice(0,u-1).concat({value:" "===t[u-2].type?"*":""})).replace(V,"$1"),n,u<i&&xt(t.slice(u,i)),i<o&&xt(t=t.slice(i)),i<o&&yt(t))}d.push(n)}return _t(d)}return bt.prototype=r.filters=r.pseudos,r.setFilters=new bt,a=st.tokenize=function(t,e){var n,i,o,a,s,u,l,c=S[t+" "];if(c)return e?0:c.slice(0);for(s=t,u=[],l=r.preFilter;s;){for(a in n&&!(i=$.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=H.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(V," ")}),s=s.slice(n.length)),r.filter)!(i=Y[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?st.error(t):S(t,u).slice(0)},s=st.compile=function(t,e){var n,i=[],o=[],s=C[t+" "];if(!s){for(e||(e=a(t)),n=e.length;n--;)(s=xt(e[n]))[w]?i.push(s):o.push(s);(s=C(t,function(t,e){var n=e.length>0,i=t.length>0,o=function(o,a,s,u,c){var f,p,v,g=0,b="0",y=o&&[],w=[],_=l,M=o||i&&r.find.TAG("*",c),x=k+=null==_?1:Math.random()||.1,S=M.length;for(c&&(l=a==h||a||c);b!==S&&null!=(f=M[b]);b++){if(i&&f){for(p=0,a||f.ownerDocument==h||(d(f),s=!m);v=t[p++];)if(v(f,a||h,s)){u.push(f);break}c&&(k=x)}n&&((f=!v&&f)&&g--,o&&y.push(f))}if(g+=b,n&&b!==g){for(p=0;v=e[p++];)v(y,w,a,s);if(o){if(g>0)for(;b--;)y[b]||w[b]||(w[b]=P.call(u));w=kt(w)}R.apply(u,w),c&&!o&&w.length>0&&g+e.length>1&&st.uniqueSort(u)}return c&&(k=x,l=_),y};return n?lt(o):o}(o,i))).selector=t}return s},u=st.select=function(t,e,n,i){var o,u,l,c,f,d="function"==typeof t&&t,h=!i&&a(t=d.selector||t);if(n=n||[],1===h.length){if((u=h[0]=h[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===e.nodeType&&m&&r.relative[u[1].type]){if(!(e=(r.find.ID(l.matches[0].replace(et,nt),e)||[])[0]))return n;d&&(e=e.parentNode),t=t.slice(u.shift().value.length)}for(o=Y.needsContext.test(t)?0:u.length;o--&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(et,nt),tt.test(u[0].type)&&gt(e.parentNode)||e))){if(u.splice(o,1),!(t=i.length&&yt(u)))return R.apply(n,i),n;break}}return(d||s(t,h))(i,e,!m,n,!e||tt.test(t)&&gt(e.parentNode)||e),n},n.sortStable=w.split("").sort(T).join("")===w,n.detectDuplicates=!!f,d(),n.sortDetached=ct((function(t){return 1&t.compareDocumentPosition(h.createElement("fieldset"))})),ct((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ft("type|href|height|width",(function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),n.attributes&&ct((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ft("value",(function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ct((function(t){return null==t.getAttribute("disabled")}))||ft(N,(function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null})),st}(n);M.find=S,M.expr=S.selectors,M.expr[":"]=M.expr.pseudos,M.uniqueSort=M.unique=S.uniqueSort,M.text=S.getText,M.isXMLDoc=S.isXML,M.contains=S.contains,M.escapeSelector=S.escape;var C=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&M(t).is(n))break;r.push(t)}return r},A=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},T=M.expr.match.needsContext;function E(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(t,e,n){return g(e)?M.grep(t,(function(t,r){return!!e.call(t,r,t)!==n})):e.nodeType?M.grep(t,(function(t){return t===e!==n})):"string"!=typeof e?M.grep(t,(function(t){return c.call(e,t)>-1!==n})):M.filter(e,t,n)}M.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?M.find.matchesSelector(r,t)?[r]:[]:M.find.matches(t,M.grep(e,(function(t){return 1===t.nodeType})))},M.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(M(t).filter((function(){for(e=0;e<r;e++)if(M.contains(i[e],this))return!0})));for(n=this.pushStack([]),e=0;e<r;e++)M.find(t,i[e],n);return r>1?M.uniqueSort(n):n},filter:function(t){return this.pushStack(P(this,t||[],!1))},not:function(t){return this.pushStack(P(this,t||[],!0))},is:function(t){return!!P(this,"string"==typeof t&&T.test(t)?M(t):t||[],!1).length}});var I,R=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(M.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||I,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:R.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof M?e[0]:e,M.merge(this,M.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),O.test(r[1])&&M.isPlainObject(e))for(r in e)g(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=y.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):g(t)?void 0!==n.ready?n.ready(t):t(M):M.makeArray(t,this)}).prototype=M.fn,I=M(y);var j=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};function N(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}M.fn.extend({has:function(t){var e=M(t,this),n=e.length;return this.filter((function(){for(var t=0;t<n;t++)if(M.contains(this,e[t]))return!0}))},closest:function(t,e){var n,r=0,i=this.length,o=[],a="string"!=typeof t&&M(t);if(!T.test(t))for(;r<i;r++)for(n=this[r];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&M.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?M.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?c.call(M(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(M.uniqueSort(M.merge(this.get(),M(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),M.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return C(t,"parentNode")},parentsUntil:function(t,e,n){return C(t,"parentNode",n)},next:function(t){return N(t,"nextSibling")},prev:function(t){return N(t,"previousSibling")},nextAll:function(t){return C(t,"nextSibling")},prevAll:function(t){return C(t,"previousSibling")},nextUntil:function(t,e,n){return C(t,"nextSibling",n)},prevUntil:function(t,e,n){return C(t,"previousSibling",n)},siblings:function(t){return A((t.parentNode||{}).firstChild,t)},children:function(t){return A(t.firstChild)},contents:function(t){return null!=t.contentDocument&&a(t.contentDocument)?t.contentDocument:(E(t,"template")&&(t=t.content||t),M.merge([],t.childNodes))}},(function(t,e){M.fn[t]=function(n,r){var i=M.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=M.filter(r,i)),this.length>1&&(D[t]||M.uniqueSort(i),j.test(t)&&i.reverse()),this.pushStack(i)}}));var L=/[^\x20\t\r\n\f]+/g;function B(t){return t}function z(t){throw t}function F(t,e,n,r){var i;try{t&&g(i=t.promise)?i.call(t).done(e).fail(n):t&&g(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}M.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return M.each(t.match(L)||[],(function(t,n){e[n]=!0})),e}(t):M.extend({},t);var e,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){M.each(n,(function(n,r){g(r)?t.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==k(r)&&e(r)}))}(arguments),n&&!e&&u()),this},remove:function(){return M.each(arguments,(function(t,e){for(var n;(n=M.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(t){return t?M.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},M.extend({Deferred:function(t){var e=[["notify","progress",M.Callbacks("memory"),M.Callbacks("memory"),2],["resolve","done",M.Callbacks("once memory"),M.Callbacks("once memory"),0,"resolved"],["reject","fail",M.Callbacks("once memory"),M.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return M.Deferred((function(n){M.each(e,(function(e,r){var i=g(t[r[4]])&&t[r[4]];o[r[1]]((function(){var t=i&&i.apply(this,arguments);t&&g(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)}))})),t=null})).promise()},then:function(t,r,i){var o=0;function a(t,e,r,i){return function(){var s=this,u=arguments,l=function(){var n,l;if(!(t<o)){if((n=r.apply(s,u))===e.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,g(l)?i?l.call(n,a(o,e,B,i),a(o,e,z,i)):(o++,l.call(n,a(o,e,B,i),a(o,e,z,i),a(o,e,B,e.notifyWith))):(r!==B&&(s=void 0,u=[n]),(i||e.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(n){M.Deferred.exceptionHook&&M.Deferred.exceptionHook(n,c.stackTrace),t+1>=o&&(r!==z&&(s=void 0,u=[n]),e.rejectWith(s,u))}};t?c():(M.Deferred.getStackHook&&(c.stackTrace=M.Deferred.getStackHook()),n.setTimeout(c))}}return M.Deferred((function(n){e[0][3].add(a(0,n,g(i)?i:B,n.notifyWith)),e[1][3].add(a(0,n,g(t)?t:B)),e[2][3].add(a(0,n,g(r)?r:z))})).promise()},promise:function(t){return null!=t?M.extend(t,i):i}},o={};return M.each(e,(function(t,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add((function(){r=s}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith})),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=s.call(arguments),o=M.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?s.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(F(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||g(i[n]&&i[n].then)))return o.then();for(;n--;)F(i[n],a(n),o.reject);return o.promise()}});var q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;M.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&q.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},M.readyException=function(t){n.setTimeout((function(){throw t}))};var V=M.Deferred();function $(){y.removeEventListener("DOMContentLoaded",$),n.removeEventListener("load",$),M.ready()}M.fn.ready=function(t){return V.then(t).catch((function(t){M.readyException(t)})),this},M.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--M.readyWait:M.isReady)||(M.isReady=!0,!0!==t&&--M.readyWait>0||V.resolveWith(y,[M]))}}),M.ready.then=V.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(M.ready):(y.addEventListener("DOMContentLoaded",$),n.addEventListener("load",$));var H=function(t,e,n,r,i,o,a){var s=0,u=t.length,l=null==n;if("object"===k(n))for(s in i=!0,n)H(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(M(t),n)})),e))for(;s<u;s++)e(t[s],n,a?r:r.call(t[s],s,e(t[s],n)));return i?t:l?e.call(t):u?e(t[0],n):o},U=/^-ms-/,W=/-([a-z])/g;function K(t,e){return e.toUpperCase()}function Y(t){return t.replace(U,"ms-").replace(W,K)}var G=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function Z(){this.expando=M.expando+Z.uid++}Z.uid=1,Z.prototype={cache:function(t){var e=t[this.expando];return e||(e={},G(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var r,i=this.cache(t);if("string"==typeof e)i[Y(e)]=n;else for(r in e)i[Y(r)]=e[r];return i},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][Y(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,r=t[this.expando];if(void 0!==r){if(void 0!==e){n=(e=Array.isArray(e)?e.map(Y):(e=Y(e))in r?[e]:e.match(L)||[]).length;for(;n--;)delete r[e[n]]}(void 0===e||M.isEmptyObject(r))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!M.isEmptyObject(e)}};var J=new Z,X=new Z,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,tt=/[A-Z]/g;function et(t,e,n){var r;if(void 0===n&&1===t.nodeType)if(r="data-"+e.replace(tt,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(r))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Q.test(t)?JSON.parse(t):t)}(n)}catch(t){}X.set(t,e,n)}else n=void 0;return n}M.extend({hasData:function(t){return X.hasData(t)||J.hasData(t)},data:function(t,e,n){return X.access(t,e,n)},removeData:function(t,e){X.remove(t,e)},_data:function(t,e,n){return J.access(t,e,n)},_removeData:function(t,e){J.remove(t,e)}}),M.fn.extend({data:function(t,e){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(i=X.get(o),1===o.nodeType&&!J.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=Y(r.slice(5)),et(o,r,i[r]));J.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof t?this.each((function(){X.set(this,t)})):H(this,(function(e){var n;if(o&&void 0===e)return void 0!==(n=X.get(o,t))||void 0!==(n=et(o,t))?n:void 0;this.each((function(){X.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){X.remove(this,t)}))}}),M.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=J.get(t,e),n&&(!r||Array.isArray(n)?r=J.access(t,e,M.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=M.queue(t,e),r=n.length,i=n.shift(),o=M._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,(function(){M.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return J.get(t,n)||J.access(t,n,{empty:M.Callbacks("once memory").add((function(){J.remove(t,[e+"queue",n])}))})}}),M.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?M.queue(this[0],t):void 0===e?this:this.each((function(){var n=M.queue(this,t,e);M._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&M.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){M.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,r=1,i=M.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=J.get(o[a],t+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(e)}});var nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,rt=new RegExp("^(?:([+-])=|)("+nt+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],ot=y.documentElement,at=function(t){return M.contains(t.ownerDocument,t)},st={composed:!0};ot.getRootNode&&(at=function(t){return M.contains(t.ownerDocument,t)||t.getRootNode(st)===t.ownerDocument});var ut=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&at(t)&&"none"===M.css(t,"display")};function lt(t,e,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return M.css(t,e,"")},u=s(),l=n&&n[3]||(M.cssNumber[e]?"":"px"),c=t.nodeType&&(M.cssNumber[e]||"px"!==l&&+u)&&rt.exec(M.css(t,e));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)M.style(t,e,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,M.style(t,e,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ct={};function ft(t){var e,n=t.ownerDocument,r=t.nodeName,i=ct[r];return i||(e=n.body.appendChild(n.createElement(r)),i=M.css(e,"display"),e.parentNode.removeChild(e),"none"===i&&(i="block"),ct[r]=i,i)}function dt(t,e){for(var n,r,i=[],o=0,a=t.length;o<a;o++)(r=t[o]).style&&(n=r.style.display,e?("none"===n&&(i[o]=J.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ut(r)&&(i[o]=ft(r))):"none"!==n&&(i[o]="none",J.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(t[o].style.display=i[o]);return t}M.fn.extend({show:function(){return dt(this,!0)},hide:function(){return dt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){ut(this)?M(this).show():M(this).hide()}))}});var ht,pt,mt=/^(?:checkbox|radio)$/i,vt=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,gt=/^$|^module$|\/(?:java|ecma)script/i;ht=y.createDocumentFragment().appendChild(y.createElement("div")),(pt=y.createElement("input")).setAttribute("type","radio"),pt.setAttribute("checked","checked"),pt.setAttribute("name","t"),ht.appendChild(pt),v.checkClone=ht.cloneNode(!0).cloneNode(!0).lastChild.checked,ht.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!ht.cloneNode(!0).lastChild.defaultValue,ht.innerHTML="<option></option>",v.option=!!ht.lastChild;var bt={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function yt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&E(t,e)?M.merge([t],n):n}function wt(t,e){for(var n=0,r=t.length;n<r;n++)J.set(t[n],"globalEval",!e||J.get(e[n],"globalEval"))}bt.tbody=bt.tfoot=bt.colgroup=bt.caption=bt.thead,bt.th=bt.td,v.option||(bt.optgroup=bt.option=[1,"<select multiple='multiple'>","</select>"]);var _t=/<|&#?\w+;/;function kt(t,e,n,r,i){for(var o,a,s,u,l,c,f=e.createDocumentFragment(),d=[],h=0,p=t.length;h<p;h++)if((o=t[h])||0===o)if("object"===k(o))M.merge(d,o.nodeType?[o]:o);else if(_t.test(o)){for(a=a||f.appendChild(e.createElement("div")),s=(vt.exec(o)||["",""])[1].toLowerCase(),u=bt[s]||bt._default,a.innerHTML=u[1]+M.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;M.merge(d,a.childNodes),(a=f.firstChild).textContent=""}else d.push(e.createTextNode(o));for(f.textContent="",h=0;o=d[h++];)if(r&&M.inArray(o,r)>-1)i&&i.push(o);else if(l=at(o),a=yt(f.appendChild(o),"script"),l&&wt(a),n)for(c=0;o=a[c++];)gt.test(o.type||"")&&n.push(o);return f}var Mt=/^key/,xt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,St=/^([^.]*)(?:\.(.+)|)/;function Ct(){return!0}function At(){return!1}function Tt(t,e){return t===function(){try{return y.activeElement}catch(t){}}()==("focus"===e)}function Et(t,e,n,r,i,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=void 0),e)Et(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=At;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return M().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=M.guid++)),t.each((function(){M.event.add(this,e,i,r,n)}))}function Ot(t,e,n){n?(J.set(t,e,!1),M.event.add(t,e,{namespace:!1,handler:function(t){var r,i,o=J.get(this,e);if(1&t.isTrigger&&this[e]){if(o.length)(M.event.special[e]||{}).delegateType&&t.stopPropagation();else if(o=s.call(arguments),J.set(this,e,o),r=n(this,e),this[e](),o!==(i=J.get(this,e))||r?J.set(this,e,!1):i={},o!==i)return t.stopImmediatePropagation(),t.preventDefault(),i.value}else o.length&&(J.set(this,e,{value:M.event.trigger(M.extend(o[0],M.Event.prototype),o.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===J.get(t,e)&&M.event.add(t,e,Ct)}M.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,h,p,m,v=J.get(t);if(G(t))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&M.find.matchesSelector(ot,i),n.guid||(n.guid=M.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return void 0!==M&&M.event.triggered!==e.type?M.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(L)||[""]).length;l--;)h=m=(s=St.exec(e[l])||[])[1],p=(s[2]||"").split(".").sort(),h&&(f=M.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,f=M.event.special[h]||{},c=M.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&M.expr.match.needsContext.test(i),namespace:p.join(".")},o),(d=u[h])||((d=u[h]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,p,a)||t.addEventListener&&t.addEventListener(h,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),M.event.global[h]=!0)},remove:function(t,e,n,r,i){var o,a,s,u,l,c,f,d,h,p,m,v=J.hasData(t)&&J.get(t);if(v&&(u=v.events)){for(l=(e=(e||"").match(L)||[""]).length;l--;)if(h=m=(s=St.exec(e[l])||[])[1],p=(s[2]||"").split(".").sort(),h){for(f=M.event.special[h]||{},d=u[h=(r?f.delegateType:f.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)c=d[o],!i&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(t,c));a&&!d.length&&(f.teardown&&!1!==f.teardown.call(t,p,v.handle)||M.removeEvent(t,h,v.handle),delete u[h])}else for(h in u)M.event.remove(t,h+e[l],n,r,!0);M.isEmptyObject(u)&&J.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=new Array(arguments.length),u=M.event.fix(t),l=(J.get(this,"events")||Object.create(null))[u.type]||[],c=M.event.special[u.type]||{};for(s[0]=u,e=1;e<arguments.length;e++)s[e]=arguments[e];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(a=M.event.handlers.call(this,u,l),e=0;(i=a[e++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((M.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(t,e){var n,r,i,o,a,s=[],u=e.delegateCount,l=t.target;if(u&&l.nodeType&&!("click"===t.type&&t.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=e[n]).selector+" "]&&(a[i]=r.needsContext?M(i,this).index(l)>-1:M.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<e.length&&s.push({elem:l,handlers:e.slice(u)}),s},addProp:function(t,e){Object.defineProperty(M.Event.prototype,t,{enumerable:!0,configurable:!0,get:g(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[M.expando]?t:new M.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return mt.test(e.type)&&e.click&&E(e,"input")&&Ot(e,"click",Ct),!1},trigger:function(t){var e=this||t;return mt.test(e.type)&&e.click&&E(e,"input")&&Ot(e,"click"),!0},_default:function(t){var e=t.target;return mt.test(e.type)&&e.click&&E(e,"input")&&J.get(e,"click")||E(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},M.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},M.Event=function(t,e){if(!(this instanceof M.Event))return new M.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Ct:At,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&M.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[M.expando]=!0},M.Event.prototype={constructor:M.Event,isDefaultPrevented:At,isPropagationStopped:At,isImmediatePropagationStopped:At,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Ct,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Ct,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Ct,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},M.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&Mt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&xt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},M.event.addProp),M.each({focus:"focusin",blur:"focusout"},(function(t,e){M.event.special[t]={setup:function(){return Ot(this,t,Tt),!1},trigger:function(){return Ot(this,t),!0},delegateType:e}})),M.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){M.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,r=this,i=t.relatedTarget,o=t.handleObj;return i&&(i===r||M.contains(r,i))||(t.type=o.origType,n=o.handler.apply(this,arguments),t.type=e),n}}})),M.fn.extend({on:function(t,e,n,r){return Et(this,t,e,n,r)},one:function(t,e,n,r){return Et(this,t,e,n,r,1)},off:function(t,e,n){var r,i;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,M(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(i in t)this.off(i,e,t[i]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=At),this.each((function(){M.event.remove(this,t,n,e)}))}});var Pt=/<script|<style|<link/i,It=/checked\s*(?:[^=]|=\s*.checked.)/i,Rt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function jt(t,e){return E(t,"table")&&E(11!==e.nodeType?e:e.firstChild,"tr")&&M(t).children("tbody")[0]||t}function Dt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Nt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Lt(t,e){var n,r,i,o,a,s;if(1===e.nodeType){if(J.hasData(t)&&(s=J.get(t).events))for(i in J.remove(e,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)M.event.add(e,i,s[i][n]);X.hasData(t)&&(o=X.access(t),a=M.extend({},o),X.set(e,a))}}function Bt(t,e){var n=e.nodeName.toLowerCase();"input"===n&&mt.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function zt(t,e,n,r){e=u(e);var i,o,a,s,l,c,f=0,d=t.length,h=d-1,p=e[0],m=g(p);if(m||d>1&&"string"==typeof p&&!v.checkClone&&It.test(p))return t.each((function(i){var o=t.eq(i);m&&(e[0]=p.call(this,i,o.html())),zt(o,e,n,r)}));if(d&&(o=(i=kt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=M.map(yt(i,"script"),Dt)).length;f<d;f++)l=i,f!==h&&(l=M.clone(l,!0,!0),s&&M.merge(a,yt(l,"script"))),n.call(t[f],l,f);if(s)for(c=a[a.length-1].ownerDocument,M.map(a,Nt),f=0;f<s;f++)l=a[f],gt.test(l.type||"")&&!J.access(l,"globalEval")&&M.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?M._evalUrl&&!l.noModule&&M._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):_(l.textContent.replace(Rt,""),l,c))}return t}function Ft(t,e,n){for(var r,i=e?M.filter(e,t):t,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||M.cleanData(yt(r)),r.parentNode&&(n&&at(r)&&wt(yt(r,"script")),r.parentNode.removeChild(r));return t}M.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var r,i,o,a,s=t.cloneNode(!0),u=at(t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||M.isXMLDoc(t)))for(a=yt(s),r=0,i=(o=yt(t)).length;r<i;r++)Bt(o[r],a[r]);if(e)if(n)for(o=o||yt(t),a=a||yt(s),r=0,i=o.length;r<i;r++)Lt(o[r],a[r]);else Lt(t,s);return(a=yt(s,"script")).length>0&&wt(a,!u&&yt(t,"script")),s},cleanData:function(t){for(var e,n,r,i=M.event.special,o=0;void 0!==(n=t[o]);o++)if(G(n)){if(e=n[J.expando]){if(e.events)for(r in e.events)i[r]?M.event.remove(n,r):M.removeEvent(n,r,e.handle);n[J.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),M.fn.extend({detach:function(t){return Ft(this,t,!0)},remove:function(t){return Ft(this,t)},text:function(t){return H(this,(function(t){return void 0===t?M.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return zt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||jt(this,t).appendChild(t)}))},prepend:function(){return zt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=jt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return zt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(M.cleanData(yt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return M.clone(this,t,e)}))},html:function(t){return H(this,(function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Pt.test(t)&&!bt[(vt.exec(t)||["",""])[1].toLowerCase()]){t=M.htmlPrefilter(t);try{for(;n<r;n++)1===(e=this[n]||{}).nodeType&&(M.cleanData(yt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return zt(this,arguments,(function(e){var n=this.parentNode;M.inArray(this,t)<0&&(M.cleanData(yt(this)),n&&n.replaceChild(e,this))}),t)}}),M.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){M.fn[t]=function(t){for(var n,r=[],i=M(t),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),M(i[a])[e](n),l.apply(r,n.get());return this.pushStack(r)}}));var qt=new RegExp("^("+nt+")(?!px)[a-z%]+$","i"),Vt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},$t=function(t,e,n){var r,i,o={};for(i in e)o[i]=t.style[i],t.style[i]=e[i];for(i in r=n.call(t),e)t.style[i]=o[i];return r},Ht=new RegExp(it.join("|"),"i");function Ut(t,e,n){var r,i,o,a,s=t.style;return(n=n||Vt(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||at(t)||(a=M.style(t,e)),!v.pixelBoxStyles()&&qt.test(a)&&Ht.test(e)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Wt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ot.appendChild(l).appendChild(c);var t=n.getComputedStyle(c);r="1%"!==t.top,u=12===e(t.marginLeft),c.style.right="60%",a=36===e(t.right),i=36===e(t.width),c.style.position="absolute",o=12===e(c.offsetWidth/3),ot.removeChild(l),c=null}}function e(t){return Math.round(parseFloat(t))}var r,i,o,a,s,u,l=y.createElement("div"),c=y.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===c.style.backgroundClip,M.extend(v,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),a},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),u},scrollboxSize:function(){return t(),o},reliableTrDimensions:function(){var t,e,r,i;return null==s&&(t=y.createElement("table"),e=y.createElement("tr"),r=y.createElement("div"),t.style.cssText="position:absolute;left:-11111px",e.style.height="1px",r.style.height="9px",ot.appendChild(t).appendChild(e).appendChild(r),i=n.getComputedStyle(e),s=parseInt(i.height)>3,ot.removeChild(t)),s}}))}();var Kt=["Webkit","Moz","ms"],Yt=y.createElement("div").style,Gt={};function Zt(t){var e=M.cssProps[t]||Gt[t];return e||(t in Yt?t:Gt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Kt.length;n--;)if((t=Kt[n]+e)in Yt)return t}(t)||t)}var Jt=/^(none|table(?!-c[ea]).+)/,Xt=/^--/,Qt={position:"absolute",visibility:"hidden",display:"block"},te={letterSpacing:"0",fontWeight:"400"};function ee(t,e,n){var r=rt.exec(e);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):e}function ne(t,e,n,r,i,o){var a="width"===e?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=M.css(t,n+it[a],!0,i)),r?("content"===n&&(u-=M.css(t,"padding"+it[a],!0,i)),"margin"!==n&&(u-=M.css(t,"border"+it[a]+"Width",!0,i))):(u+=M.css(t,"padding"+it[a],!0,i),"padding"!==n?u+=M.css(t,"border"+it[a]+"Width",!0,i):s+=M.css(t,"border"+it[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-u-s-.5))||0),u}function re(t,e,n){var r=Vt(t),i=(!v.boxSizingReliable()||n)&&"border-box"===M.css(t,"boxSizing",!1,r),o=i,a=Ut(t,e,r),s="offset"+e[0].toUpperCase()+e.slice(1);if(qt.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&E(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===M.css(t,"display",!1,r))&&t.getClientRects().length&&(i="border-box"===M.css(t,"boxSizing",!1,r),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+ne(t,e,n||(i?"border":"content"),o,r,a)+"px"}function ie(t,e,n,r,i){return new ie.prototype.init(t,e,n,r,i)}M.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Ut(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=Y(e),u=Xt.test(e),l=t.style;if(u||(e=Zt(s)),a=M.cssHooks[e]||M.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:l[e];"string"===(o=typeof n)&&(i=rt.exec(n))&&i[1]&&(n=lt(t,e,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(M.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(u?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,r){var i,o,a,s=Y(e);return Xt.test(e)||(e=Zt(s)),(a=M.cssHooks[e]||M.cssHooks[s])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=Ut(t,e,r)),"normal"===i&&e in te&&(i=te[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),M.each(["height","width"],(function(t,e){M.cssHooks[e]={get:function(t,n,r){if(n)return!Jt.test(M.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?re(t,e,r):$t(t,Qt,(function(){return re(t,e,r)}))},set:function(t,n,r){var i,o=Vt(t),a=!v.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===M.css(t,"boxSizing",!1,o),u=r?ne(t,e,r,s,o):0;return s&&a&&(u-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-ne(t,e,"border",!1,o)-.5)),u&&(i=rt.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=M.css(t,e)),ee(0,n,u)}}})),M.cssHooks.marginLeft=Wt(v.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Ut(t,"marginLeft"))||t.getBoundingClientRect().left-$t(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),M.each({margin:"",padding:"",border:"Width"},(function(t,e){M.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+it[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(M.cssHooks[t+e].set=ee)})),M.fn.extend({css:function(t,e){return H(this,(function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=Vt(t),i=e.length;a<i;a++)o[e[a]]=M.css(t,e[a],!1,r);return o}return void 0!==n?M.style(t,e,n):M.css(t,e)}),t,e,arguments.length>1)}}),M.Tween=ie,ie.prototype={constructor:ie,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||M.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(M.cssNumber[n]?"":"px")},cur:function(){var t=ie.propHooks[this.prop];return t&&t.get?t.get(this):ie.propHooks._default.get(this)},run:function(t){var e,n=ie.propHooks[this.prop];return this.options.duration?this.pos=e=M.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ie.propHooks._default.set(this),this}},ie.prototype.init.prototype=ie.prototype,ie.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=M.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){M.fx.step[t.prop]?M.fx.step[t.prop](t):1!==t.elem.nodeType||!M.cssHooks[t.prop]&&null==t.elem.style[Zt(t.prop)]?t.elem[t.prop]=t.now:M.style(t.elem,t.prop,t.now+t.unit)}}},ie.propHooks.scrollTop=ie.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},M.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},M.fx=ie.prototype.init,M.fx.step={};var oe,ae,se=/^(?:toggle|show|hide)$/,ue=/queueHooks$/;function le(){ae&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(le):n.setTimeout(le,M.fx.interval),M.fx.tick())}function ce(){return n.setTimeout((function(){oe=void 0})),oe=Date.now()}function fe(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=it[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function de(t,e,n){for(var r,i=(he.tweeners[e]||[]).concat(he.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,e,t))return r}function he(t,e,n){var r,i,o=0,a=he.prefilters.length,s=M.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var e=oe||ce(),n=Math.max(0,l.startTime+l.duration-e),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].run(r);return s.notifyWith(t,[l,r,n]),r<1&&a?n:(a||s.notifyWith(t,[l,1,0]),s.resolveWith(t,[l]),!1)},l=s.promise({elem:t,props:M.extend({},e),opts:M.extend(!0,{specialEasing:{},easing:M.easing._default},n),originalProperties:e,originalOptions:n,startTime:oe||ce(),duration:n.duration,tweens:[],createTween:function(e,n){var r=M.Tween(t,l.opts,e,n,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(r),r},stop:function(e){var n=0,r=e?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return e?(s.notifyWith(t,[l,1,0]),s.resolveWith(t,[l,e])):s.rejectWith(t,[l,e]),this}}),c=l.props;for(!function(t,e){var n,r,i,o,a;for(n in t)if(i=e[r=Y(n)],o=t[n],Array.isArray(o)&&(i=o[1],o=t[n]=o[0]),n!==r&&(t[r]=o,delete t[n]),(a=M.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete t[r],o)n in t||(t[n]=o[n],e[n]=i);else e[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=he.prefilters[o].call(l,t,c,l.opts))return g(r.stop)&&(M._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return M.map(c,de,l),g(l.opts.start)&&l.opts.start.call(t,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),M.fx.timer(M.extend(u,{elem:t,anim:l,queue:l.opts.queue})),l}M.Animation=M.extend(he,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return lt(n.elem,t,rt.exec(e),n),n}]},tweener:function(t,e){g(t)?(e=t,t=["*"]):t=t.match(L);for(var n,r=0,i=t.length;r<i;r++)n=t[r],he.tweeners[n]=he.tweeners[n]||[],he.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var r,i,o,a,s,u,l,c,f="width"in e||"height"in e,d=this,h={},p=t.style,m=t.nodeType&&ut(t),v=J.get(t,"fxshow");for(r in n.queue||(null==(a=M._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always((function(){d.always((function(){a.unqueued--,M.queue(t,"fx").length||a.empty.fire()}))}))),e)if(i=e[r],se.test(i)){if(delete e[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;m=!0}h[r]=v&&v[r]||M.style(t,r)}if((u=!M.isEmptyObject(e))||!M.isEmptyObject(h))for(r in f&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(l=v&&v.display)&&(l=J.get(t,"display")),"none"===(c=M.css(t,"display"))&&(l?c=l:(dt([t],!0),l=t.style.display||l,c=M.css(t,"display"),dt([t]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===M.css(t,"float")&&(u||(d.done((function(){p.display=l})),null==l&&(c=p.display,l="none"===c?"":c)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),u=!1,h)u||(v?"hidden"in v&&(m=v.hidden):v=J.access(t,"fxshow",{display:l}),o&&(v.hidden=!m),m&&dt([t],!0),d.done((function(){for(r in m||dt([t]),J.remove(t,"fxshow"),h)M.style(t,r,h[r])}))),u=de(m?v[r]:0,r,d),r in v||(v[r]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(t,e){e?he.prefilters.unshift(t):he.prefilters.push(t)}}),M.speed=function(t,e,n){var r=t&&"object"==typeof t?M.extend({},t):{complete:n||!n&&e||g(t)&&t,duration:t,easing:n&&e||e&&!g(e)&&e};return M.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in M.fx.speeds?r.duration=M.fx.speeds[r.duration]:r.duration=M.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g(r.old)&&r.old.call(this),r.queue&&M.dequeue(this,r.queue)},r},M.fn.extend({fadeTo:function(t,e,n,r){return this.filter(ut).css("opacity",0).show().end().animate({opacity:e},t,n,r)},animate:function(t,e,n,r){var i=M.isEmptyObject(t),o=M.speed(e,n,r),a=function(){var e=he(this,M.extend({},t),o);(i||J.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var r=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,i=null!=t&&t+"queueHooks",o=M.timers,a=J.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&ue.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=t&&o[i].queue!==t||(o[i].anim.stop(n),e=!1,o.splice(i,1));!e&&n||M.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,n=J.get(this),r=n[t+"queue"],i=n[t+"queueHooks"],o=M.timers,a=r?r.length:0;for(n.finish=!0,M.queue(this,t,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete n.finish}))}}),M.each(["toggle","show","hide"],(function(t,e){var n=M.fn[e];M.fn[e]=function(t,r,i){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(fe(e,!0),t,r,i)}})),M.each({slideDown:fe("show"),slideUp:fe("hide"),slideToggle:fe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){M.fn[t]=function(t,n,r){return this.animate(e,t,n,r)}})),M.timers=[],M.fx.tick=function(){var t,e=0,n=M.timers;for(oe=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||M.fx.stop(),oe=void 0},M.fx.timer=function(t){M.timers.push(t),M.fx.start()},M.fx.interval=13,M.fx.start=function(){ae||(ae=!0,le())},M.fx.stop=function(){ae=null},M.fx.speeds={slow:600,fast:200,_default:400},M.fn.delay=function(t,e){return t=M.fx&&M.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,r){var i=n.setTimeout(e,t);r.stop=function(){n.clearTimeout(i)}}))},function(){var t=y.createElement("input"),e=y.createElement("select").appendChild(y.createElement("option"));t.type="checkbox",v.checkOn=""!==t.value,v.optSelected=e.selected,(t=y.createElement("input")).value="t",t.type="radio",v.radioValue="t"===t.value}();var pe,me=M.expr.attrHandle;M.fn.extend({attr:function(t,e){return H(this,M.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){M.removeAttr(this,t)}))}}),M.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?M.prop(t,e,n):(1===o&&M.isXMLDoc(t)||(i=M.attrHooks[e.toLowerCase()]||(M.expr.match.bool.test(e)?pe:void 0)),void 0!==n?null===n?void M.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=M.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&E(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(L);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),pe={set:function(t,e,n){return!1===e?M.removeAttr(t,n):t.setAttribute(n,n),n}},M.each(M.expr.match.bool.source.match(/\w+/g),(function(t,e){var n=me[e]||M.find.attr;me[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=me[a],me[a]=i,i=null!=n(t,e,r)?a:null,me[a]=o),i}}));var ve=/^(?:input|select|textarea|button)$/i,ge=/^(?:a|area)$/i;function be(t){return(t.match(L)||[]).join(" ")}function ye(t){return t.getAttribute&&t.getAttribute("class")||""}function we(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(L)||[]}M.fn.extend({prop:function(t,e){return H(this,M.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[M.propFix[t]||t]}))}}),M.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&M.isXMLDoc(t)||(e=M.propFix[e]||e,i=M.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=M.find.attr(t,"tabindex");return e?parseInt(e,10):ve.test(t.nodeName)||ge.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(M.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),M.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){M.propFix[this.toLowerCase()]=this})),M.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(g(t))return this.each((function(e){M(this).addClass(t.call(this,e,ye(this)))}));if((e=we(t)).length)for(;n=this[u++];)if(i=ye(n),r=1===n.nodeType&&" "+be(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=be(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(g(t))return this.each((function(e){M(this).removeClass(t.call(this,e,ye(this)))}));if(!arguments.length)return this.attr("class","");if((e=we(t)).length)for(;n=this[u++];)if(i=ye(n),r=1===n.nodeType&&" "+be(i)+" "){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=be(r))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):g(t)?this.each((function(n){M(this).toggleClass(t.call(this,n,ye(this),e),e)})):this.each((function(){var e,i,o,a;if(r)for(i=0,o=M(this),a=we(t);e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=ye(this))&&J.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":J.get(this,"__className__")||""))}))},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+be(ye(n))+" ").indexOf(e)>-1)return!0;return!1}});var _e=/\r/g;M.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=g(t),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,M(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=M.map(i,(function(t){return null==t?"":t+""}))),(e=M.valHooks[this.type]||M.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))}))):i?(e=M.valHooks[i.type]||M.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(_e,""):null==n?"":n:void 0}}),M.extend({valHooks:{option:{get:function(t){var e=M.find.attr(t,"value");return null!=e?e:be(M.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!E(n.parentNode,"optgroup"))){if(e=M(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,r,i=t.options,o=M.makeArray(e),a=i.length;a--;)((r=i[a]).selected=M.inArray(M.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),M.each(["radio","checkbox"],(function(){M.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=M.inArray(M(t).val(),e)>-1}},v.checkOn||(M.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),v.focusin="onfocusin"in n;var ke=/^(?:focusinfocus|focusoutblur)$/,Me=function(t){t.stopPropagation()};M.extend(M.event,{trigger:function(t,e,r,i){var o,a,s,u,l,c,f,d,p=[r||y],m=h.call(t,"type")?t.type:t,v=h.call(t,"namespace")?t.namespace.split("."):[];if(a=d=s=r=r||y,3!==r.nodeType&&8!==r.nodeType&&!ke.test(m+M.event.triggered)&&(m.indexOf(".")>-1&&(v=m.split("."),m=v.shift(),v.sort()),l=m.indexOf(":")<0&&"on"+m,(t=t[M.expando]?t:new M.Event(m,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:M.makeArray(e,[t]),f=M.event.special[m]||{},i||!f.trigger||!1!==f.trigger.apply(r,e))){if(!i&&!f.noBubble&&!b(r)){for(u=f.delegateType||m,ke.test(u+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),s=a;s===(r.ownerDocument||y)&&p.push(s.defaultView||s.parentWindow||n)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)d=a,t.type=o>1?u:f.bindType||m,(c=(J.get(a,"events")||Object.create(null))[t.type]&&J.get(a,"handle"))&&c.apply(a,e),(c=l&&a[l])&&c.apply&&G(a)&&(t.result=c.apply(a,e),!1===t.result&&t.preventDefault());return t.type=m,i||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),e)||!G(r)||l&&g(r[m])&&!b(r)&&((s=r[l])&&(r[l]=null),M.event.triggered=m,t.isPropagationStopped()&&d.addEventListener(m,Me),r[m](),t.isPropagationStopped()&&d.removeEventListener(m,Me),M.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(t,e,n){var r=M.extend(new M.Event,n,{type:t,isSimulated:!0});M.event.trigger(r,null,e)}}),M.fn.extend({trigger:function(t,e){return this.each((function(){M.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var n=this[0];if(n)return M.event.trigger(t,e,n,!0)}}),v.focusin||M.each({focus:"focusin",blur:"focusout"},(function(t,e){var n=function(t){M.event.simulate(e,t.target,M.event.fix(t))};M.event.special[e]={setup:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,e);i||r.addEventListener(t,n,!0),J.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=J.access(r,e)-1;i?J.access(r,e,i):(r.removeEventListener(t,n,!0),J.remove(r,e))}}}));var xe=n.location,Se={guid:Date.now()},Ce=/\?/;M.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||M.error("Invalid XML: "+t),e};var Ae=/\[\]$/,Te=/\r?\n/g,Ee=/^(?:submit|button|image|reset|file)$/i,Oe=/^(?:input|select|textarea|keygen)/i;function Pe(t,e,n,r){var i;if(Array.isArray(e))M.each(e,(function(e,i){n||Ae.test(t)?r(t,i):Pe(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)}));else if(n||"object"!==k(e))r(t,e);else for(i in e)Pe(t+"["+i+"]",e[i],n,r)}M.param=function(t,e){var n,r=[],i=function(t,e){var n=g(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!M.isPlainObject(t))M.each(t,(function(){i(this.name,this.value)}));else for(n in t)Pe(n,t[n],e,i);return r.join("&")},M.fn.extend({serialize:function(){return M.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=M.prop(this,"elements");return t?M.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!M(this).is(":disabled")&&Oe.test(this.nodeName)&&!Ee.test(t)&&(this.checked||!mt.test(t))})).map((function(t,e){var n=M(this).val();return null==n?null:Array.isArray(n)?M.map(n,(function(t){return{name:e.name,value:t.replace(Te,"\r\n")}})):{name:e.name,value:n.replace(Te,"\r\n")}})).get()}});var Ie=/%20/g,Re=/#.*$/,je=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ne=/^(?:GET|HEAD)$/,Le=/^\/\//,Be={},ze={},Fe="*/".concat("*"),qe=y.createElement("a");function Ve(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(L)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function $e(t,e,n,r){var i={},o=t===ze;function a(s){var u;return i[s]=!0,M.each(t[s]||[],(function(t,s){var l=s(e,n,r);return"string"!=typeof l||o||i[l]?o?!(u=l):void 0:(e.dataTypes.unshift(l),a(l),!1)})),u}return a(e.dataTypes[0])||!i["*"]&&a("*")}function He(t,e){var n,r,i=M.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&M.extend(!0,t,r),t}qe.href=xe.href,M.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:xe.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(xe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":M.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?He(He(t,M.ajaxSettings),e):He(M.ajaxSettings,t)},ajaxPrefilter:Ve(Be),ajaxTransport:Ve(ze),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,a,s,u,l,c,f,d,h=M.ajaxSetup({},e),p=h.context||h,m=h.context&&(p.nodeType||p.jquery)?M(p):M.event,v=M.Deferred(),g=M.Callbacks("once memory"),b=h.statusCode||{},w={},_={},k="canceled",x={readyState:0,getResponseHeader:function(t){var e;if(l){if(!a)for(a={};e=De.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return l?o:null},setRequestHeader:function(t,e){return null==l&&(t=_[t.toLowerCase()]=_[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==l&&(h.mimeType=t),this},statusCode:function(t){var e;if(t)if(l)x.always(t[x.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||k;return r&&r.abort(e),S(0,e),this}};if(v.promise(x),h.url=((t||h.url||xe.href)+"").replace(Le,xe.protocol+"//"),h.type=e.method||e.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(L)||[""],null==h.crossDomain){u=y.createElement("a");try{u.href=h.url,u.href=u.href,h.crossDomain=qe.protocol+"//"+qe.host!=u.protocol+"//"+u.host}catch(t){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=M.param(h.data,h.traditional)),$e(Be,h,e,x),l)return x;for(f in(c=M.event&&h.global)&&0==M.active++&&M.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!Ne.test(h.type),i=h.url.replace(Re,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(Ie,"+")):(d=h.url.slice(i.length),h.data&&(h.processData||"string"==typeof h.data)&&(i+=(Ce.test(i)?"&":"?")+h.data,delete h.data),!1===h.cache&&(i=i.replace(je,"$1"),d=(Ce.test(i)?"&":"?")+"_="+Se.guid+++d),h.url=i+d),h.ifModified&&(M.lastModified[i]&&x.setRequestHeader("If-Modified-Since",M.lastModified[i]),M.etag[i]&&x.setRequestHeader("If-None-Match",M.etag[i])),(h.data&&h.hasContent&&!1!==h.contentType||e.contentType)&&x.setRequestHeader("Content-Type",h.contentType),x.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Fe+"; q=0.01":""):h.accepts["*"]),h.headers)x.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(p,x,h)||l))return x.abort();if(k="abort",g.add(h.complete),x.done(h.success),x.fail(h.error),r=$e(ze,h,e,x)){if(x.readyState=1,c&&m.trigger("ajaxSend",[x,h]),l)return x;h.async&&h.timeout>0&&(s=n.setTimeout((function(){x.abort("timeout")}),h.timeout));try{l=!1,r.send(w,S)}catch(t){if(l)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,e,a,u){var f,d,y,w,_,k=e;l||(l=!0,s&&n.clearTimeout(s),r=void 0,o=u||"",x.readyState=t>0?4:0,f=t>=200&&t<300||304===t,a&&(w=function(t,e,n){for(var r,i,o,a,s=t.contents,u=t.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||t.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(h,x,a)),!f&&M.inArray("script",h.dataTypes)>-1&&(h.converters["text script"]=function(){}),w=function(t,e,n,r){var i,o,a,s,u,l={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!u&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+u+" to "+o}}}return{state:"success",data:e}}(h,w,x,f),f?(h.ifModified&&((_=x.getResponseHeader("Last-Modified"))&&(M.lastModified[i]=_),(_=x.getResponseHeader("etag"))&&(M.etag[i]=_)),204===t||"HEAD"===h.type?k="nocontent":304===t?k="notmodified":(k=w.state,d=w.data,f=!(y=w.error))):(y=k,!t&&k||(k="error",t<0&&(t=0))),x.status=t,x.statusText=(e||k)+"",f?v.resolveWith(p,[d,k,x]):v.rejectWith(p,[x,k,y]),x.statusCode(b),b=void 0,c&&m.trigger(f?"ajaxSuccess":"ajaxError",[x,h,f?d:y]),g.fireWith(p,[x,k]),c&&(m.trigger("ajaxComplete",[x,h]),--M.active||M.event.trigger("ajaxStop")))}return x},getJSON:function(t,e,n){return M.get(t,e,n,"json")},getScript:function(t,e){return M.get(t,void 0,e,"script")}}),M.each(["get","post"],(function(t,e){M[e]=function(t,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),M.ajax(M.extend({url:t,type:e,dataType:i,data:n,success:r},M.isPlainObject(t)&&t))}})),M.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),M._evalUrl=function(t,e,n){return M.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){M.globalEval(t,e,n)}})},M.fn.extend({wrapAll:function(t){var e;return this[0]&&(g(t)&&(t=t.call(this[0])),e=M(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return g(t)?this.each((function(e){M(this).wrapInner(t.call(this,e))})):this.each((function(){var e=M(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)}))},wrap:function(t){var e=g(t);return this.each((function(n){M(this).wrapAll(e?t.call(this,n):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){M(this).replaceWith(this.childNodes)})),this}}),M.expr.pseudos.hidden=function(t){return!M.expr.pseudos.visible(t)},M.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},M.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},We=M.ajaxSettings.xhr();v.cors=!!We&&"withCredentials"in We,v.ajax=We=!!We,M.ajaxTransport((function(t){var e,r;if(v.cors||We&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Ue[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout((function(){e&&r()}))},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),M.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),M.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return M.globalEval(t),t}}}),M.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),M.ajaxTransport("script",(function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(r,i){e=M("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&i("error"===t.type?404:200,t.type)}),y.head.appendChild(e[0])},abort:function(){n&&n()}}}));var Ke,Ye=[],Ge=/(=)\?(?=&|$)|\?\?/;M.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ye.pop()||M.expando+"_"+Se.guid++;return this[t]=!0,t}}),M.ajaxPrefilter("json jsonp",(function(t,e,r){var i,o,a,s=!1!==t.jsonp&&(Ge.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ge.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=g(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ge,"$1"+i):!1!==t.jsonp&&(t.url+=(Ce.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||M.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=n[i],n[i]=function(){a=arguments},r.always((function(){void 0===o?M(n).removeProp(i):n[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Ye.push(i)),a&&g(o)&&o(a[0]),a=o=void 0})),"script"})),v.createHTMLDocument=((Ke=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ke.childNodes.length),M.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(v.createHTMLDocument?((r=(e=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,e.head.appendChild(r)):e=y),o=!n&&[],(i=O.exec(t))?[e.createElement(i[1])]:(i=kt([t],e,o),o&&o.length&&M(o).remove(),M.merge([],i.childNodes)));var r,i,o},M.fn.load=function(t,e,n){var r,i,o,a=this,s=t.indexOf(" ");return s>-1&&(r=be(t.slice(s)),t=t.slice(0,s)),g(e)?(n=e,e=void 0):e&&"object"==typeof e&&(i="POST"),a.length>0&&M.ajax({url:t,type:i||"GET",dataType:"html",data:e}).done((function(t){o=arguments,a.html(r?M("<div>").append(M.parseHTML(t)).find(r):t)})).always(n&&function(t,e){a.each((function(){n.apply(this,o||[t.responseText,e,t])}))}),this},M.expr.pseudos.animated=function(t){return M.grep(M.timers,(function(e){return t===e.elem})).length},M.offset={setOffset:function(t,e,n){var r,i,o,a,s,u,l=M.css(t,"position"),c=M(t),f={};"static"===l&&(t.style.position="relative"),s=c.offset(),o=M.css(t,"top"),u=M.css(t,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),g(e)&&(e=e.call(t,n,M.extend({},s))),null!=e.top&&(f.top=e.top-s.top+a),null!=e.left&&(f.left=e.left-s.left+i),"using"in e?e.using.call(t,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},M.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){M.offset.setOffset(this,t,e)}));var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,r=this[0],i={top:0,left:0};if("fixed"===M.css(r,"position"))e=r.getBoundingClientRect();else{for(e=this.offset(),n=r.ownerDocument,t=r.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===M.css(t,"position");)t=t.parentNode;t&&t!==r&&1===t.nodeType&&((i=M(t).offset()).top+=M.css(t,"borderTopWidth",!0),i.left+=M.css(t,"borderLeftWidth",!0))}return{top:e.top-i.top-M.css(r,"marginTop",!0),left:e.left-i.left-M.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===M.css(t,"position");)t=t.offsetParent;return t||ot}))}}),M.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var n="pageYOffset"===e;M.fn[t]=function(r){return H(this,(function(t,r,i){var o;if(b(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===i)return o?o[e]:t[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):t[r]=i}),t,r,arguments.length)}})),M.each(["top","left"],(function(t,e){M.cssHooks[e]=Wt(v.pixelPosition,(function(t,n){if(n)return n=Ut(t,e),qt.test(n)?M(t).position()[e]+"px":n}))})),M.each({Height:"height",Width:"width"},(function(t,e){M.each({padding:"inner"+t,content:e,"":"outer"+t},(function(n,r){M.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return H(this,(function(e,n,i){var o;return b(e)?0===r.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?M.css(e,n,s):M.style(e,n,i,s)}),e,a?i:void 0,a)}}))})),M.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){M.fn[e]=function(t){return this.on(e,t)}})),M.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,r){return this.on(e,t,n,r)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),M.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){M.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}));var Ze=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;M.proxy=function(t,e){var n,r,i;if("string"==typeof e&&(n=t[e],e=t,t=n),g(t))return r=s.call(arguments,2),(i=function(){return t.apply(e||this,r.concat(s.call(arguments)))}).guid=t.guid=t.guid||M.guid++,i},M.holdReady=function(t){t?M.readyWait++:M.ready(!0)},M.isArray=Array.isArray,M.parseJSON=JSON.parse,M.nodeName=E,M.isFunction=g,M.isWindow=b,M.camelCase=Y,M.type=k,M.now=Date.now,M.isNumeric=function(t){var e=M.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},M.trim=function(t){return null==t?"":(t+"").replace(Ze,"")},void 0===(r=function(){return M}.apply(e,[]))||(t.exports=r);var Je=n.jQuery,Xe=n.$;return M.noConflict=function(t){return n.$===M&&(n.$=Xe),t&&n.jQuery===M&&(n.jQuery=Je),M},void 0===i&&(n.jQuery=n.$=M),M}))},,,function(t,e,n){"use strict";(function(e,r,i){var o=n(45);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=b;var s,u=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?r:o.nextTick;b.WritableState=g;var l=Object.create(n(34));l.inherits=n(2);var c={deprecate:n(73)},f=n(140),d=n(4).Buffer,h=i.Uint8Array||function(){};var p,m=n(141);function v(){}function g(t,e){s=s||n(21),t=t||{};var r=e instanceof s;this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,l=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?(o.nextTick(i,r),o.nextTick(x,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),x(t,e))}(t,n,r,e,i);else{var a=k(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||_(t,n),r?u(w,t,n,a,i):w(t,n,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(t){if(s=s||n(21),!(p.call(b,this)||this instanceof s))return new b(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function y(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function w(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),x(t,e)}function _(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,y(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(y(t,e,!1,e.objectMode?1:l.length,l,c,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function k(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function M(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),x(t,e)}))}function x(t,e){var n=k(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(M,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}l.inherits(b,f),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===b&&(t&&t._writableState instanceof g)}})):p=function(t){return t instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(t,e,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=t,d.isBuffer(r)||r instanceof h);return s&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=v),i.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),o.nextTick(e,n)}(this,n):(s||function(t,e,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,t,n))&&(i.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n));return e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else y(t,e,!1,s,r,i,o);return u}(this,i,s,t,e,n)),a},b.prototype.cork=function(){this._writableState.corked++},b.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||_(this,t))},b.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,x(t,e),n&&(e.finished?o.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(5),n(118).setImmediate,n(7))},function(t,e,n){(function(e){function n(t){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,n(7))},function(t,e,n){"use strict";var r=n(2),i=n(145),o=n(4).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<<e|t>>>32-e}function l(t,e,n,r,i,o,a){return u(t+(e&n|~e&r)+i+o|0,a)+e|0}function c(t,e,n,r,i,o,a){return u(t+(e&r|n&~r)+i+o|0,a)+e|0}function f(t,e,n,r,i,o,a){return u(t+(e^n^r)+i+o|0,a)+e|0}function d(t,e,n,r,i,o,a){return u(t+(n^(e|~r))+i+o|0,a)+e|0}r(s,i),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,r=this._b,i=this._c,o=this._d;n=l(n,r,i,o,t[0],3614090360,7),o=l(o,n,r,i,t[1],3905402710,12),i=l(i,o,n,r,t[2],606105819,17),r=l(r,i,o,n,t[3],3250441966,22),n=l(n,r,i,o,t[4],4118548399,7),o=l(o,n,r,i,t[5],1200080426,12),i=l(i,o,n,r,t[6],2821735955,17),r=l(r,i,o,n,t[7],4249261313,22),n=l(n,r,i,o,t[8],1770035416,7),o=l(o,n,r,i,t[9],2336552879,12),i=l(i,o,n,r,t[10],4294925233,17),r=l(r,i,o,n,t[11],2304563134,22),n=l(n,r,i,o,t[12],1804603682,7),o=l(o,n,r,i,t[13],4254626195,12),i=l(i,o,n,r,t[14],2792965006,17),n=c(n,r=l(r,i,o,n,t[15],1236535329,22),i,o,t[1],4129170786,5),o=c(o,n,r,i,t[6],3225465664,9),i=c(i,o,n,r,t[11],643717713,14),r=c(r,i,o,n,t[0],3921069994,20),n=c(n,r,i,o,t[5],3593408605,5),o=c(o,n,r,i,t[10],38016083,9),i=c(i,o,n,r,t[15],3634488961,14),r=c(r,i,o,n,t[4],3889429448,20),n=c(n,r,i,o,t[9],568446438,5),o=c(o,n,r,i,t[14],3275163606,9),i=c(i,o,n,r,t[3],4107603335,14),r=c(r,i,o,n,t[8],1163531501,20),n=c(n,r,i,o,t[13],2850285829,5),o=c(o,n,r,i,t[2],4243563512,9),i=c(i,o,n,r,t[7],1735328473,14),n=f(n,r=c(r,i,o,n,t[12],2368359562,20),i,o,t[5],4294588738,4),o=f(o,n,r,i,t[8],2272392833,11),i=f(i,o,n,r,t[11],1839030562,16),r=f(r,i,o,n,t[14],4259657740,23),n=f(n,r,i,o,t[1],2763975236,4),o=f(o,n,r,i,t[4],1272893353,11),i=f(i,o,n,r,t[7],4139469664,16),r=f(r,i,o,n,t[10],3200236656,23),n=f(n,r,i,o,t[13],681279174,4),o=f(o,n,r,i,t[0],3936430074,11),i=f(i,o,n,r,t[3],3572445317,16),r=f(r,i,o,n,t[6],76029189,23),n=f(n,r,i,o,t[9],3654602809,4),o=f(o,n,r,i,t[12],3873151461,11),i=f(i,o,n,r,t[15],530742520,16),n=d(n,r=f(r,i,o,n,t[2],3299628645,23),i,o,t[0],4096336452,6),o=d(o,n,r,i,t[7],1126891415,10),i=d(i,o,n,r,t[14],2878612391,15),r=d(r,i,o,n,t[5],4237533241,21),n=d(n,r,i,o,t[12],1700485571,6),o=d(o,n,r,i,t[3],2399980690,10),i=d(i,o,n,r,t[10],4293915773,15),r=d(r,i,o,n,t[1],2240044497,21),n=d(n,r,i,o,t[8],1873313359,6),o=d(o,n,r,i,t[15],4264355552,10),i=d(i,o,n,r,t[6],2734768916,15),r=d(r,i,o,n,t[13],1309151649,21),n=d(n,r,i,o,t[4],4149444226,6),o=d(o,n,r,i,t[11],3174756917,10),i=d(i,o,n,r,t[2],718787259,15),r=d(r,i,o,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=s},function(t,e,n){"use strict";var r=n(25).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,n,o){if("function"==typeof n)return t(e,null,n);n||(n={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}}(o||i);var a=n.readable||!1!==n.readable&&e.readable,s=n.writable||!1!==n.writable&&e.writable,u=function(){e.writable||c()},l=e._writableState&&e._writableState.finished,c=function(){s=!1,l=!0,a||o.call(e)},f=e._readableState&&e._readableState.endEmitted,d=function(){a=!1,f=!0,s||o.call(e)},h=function(t){o.call(e,t)},p=function(){var t;return a&&!f?(e._readableState&&e._readableState.ended||(t=new r),o.call(e,t)):s&&!l?(e._writableState&&e._writableState.ended||(t=new r),o.call(e,t)):void 0},m=function(){e.req.on("finish",c)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?s&&!e._writableState&&(e.on("end",u),e.on("close",u)):(e.on("complete",c),e.on("abort",p),e.req?m():e.on("request",m)),e.on("end",d),e.on("finish",c),!1!==n.error&&e.on("error",h),e.on("close",p),function(){e.removeListener("complete",c),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",c),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("end",d),e.removeListener("error",h),e.removeListener("close",p)}}},function(t,e,n){"use strict";var r=n(6).Buffer,i=n(2),o=n(145),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],f=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(t,e){return t<<e|t>>>32-e}function m(t,e,n,r,i,o,a,s){return p(t+(e^n^r)+o+a|0,s)+i|0}function v(t,e,n,r,i,o,a,s){return p(t+(e&n|~e&r)+o+a|0,s)+i|0}function g(t,e,n,r,i,o,a,s){return p(t+((e|~n)^r)+o+a|0,s)+i|0}function b(t,e,n,r,i,o,a,s){return p(t+(e&r|n&~r)+o+a|0,s)+i|0}function y(t,e,n,r,i,o,a,s){return p(t+(e^(n|~r))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,w=0|this._a,_=0|this._b,k=0|this._c,M=0|this._d,x=0|this._e,S=0;S<80;S+=1){var C,A;S<16?(C=m(n,r,i,o,h,t[s[S]],f[0],l[S]),A=y(w,_,k,M,x,t[u[S]],d[0],c[S])):S<32?(C=v(n,r,i,o,h,t[s[S]],f[1],l[S]),A=b(w,_,k,M,x,t[u[S]],d[1],c[S])):S<48?(C=g(n,r,i,o,h,t[s[S]],f[2],l[S]),A=g(w,_,k,M,x,t[u[S]],d[2],c[S])):S<64?(C=b(n,r,i,o,h,t[s[S]],f[3],l[S]),A=v(w,_,k,M,x,t[u[S]],d[3],c[S])):(C=y(n,r,i,o,h,t[s[S]],f[4],l[S]),A=m(w,_,k,M,x,t[u[S]],d[4],c[S])),n=h,h=o,o=p(i,10),i=r,r=C,w=x,x=M,M=p(k,10),k=_,_=A}var T=this._b+i+M|0;this._b=this._c+o+x|0,this._c=this._d+h+w|0,this._d=this._e+n+_|0,this._e=this._a+r+k|0,this._a=T},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=r.alloc?r.alloc(20):new r(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=h},function(t,e,n){(e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n}).sha=n(336),e.sha1=n(337),e.sha224=n(338),e.sha256=n(152),e.sha384=n(339),e.sha512=n(153)},function(t,e,n){"use strict";var r=n(12);function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),r=0;r<n;r++)this.buffer[this.bufferOff+r]=t[e+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(t){var e=0,n=0,r=(this.bufferOff+t.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var o=t.length-(t.length-e)%this.blockSize;e<o;e+=this.blockSize)this._update(t,e,i,n),n+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return i},i.prototype._updateDecrypt=function(t){for(var e=0,n=0,r=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)e+=this._buffer(t,e),n+=this._flushBuffer(i,n);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},i.prototype._unpad=function(t){return t},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},function(t,e,n){var r=n(353),i=n(361),o=n(166);e.createCipher=e.Cipher=r.createCipher,e.createCipheriv=e.Cipheriv=r.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(o)}},function(t,e,n){var r={ECB:n(354),CBC:n(355),CFB:n(356),CFB8:n(357),CFB1:n(358),OFB:n(359),CTR:n(164),GCM:n(164)},i=n(166);for(var o in i)i[o].module=r[i[o].mode];t.exports=i},function(t,e,n){var r;function i(t){this.rand=t}if(t.exports=function(t){return r||(r=new i(null)),r.generate(t)},t.exports.Rand=i,i.prototype.generate=function(t){return this._rand(t)},i.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=this.rand.getByte();return e},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=n(367);if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(t){return o.randomBytes(t)}}catch(t){}},function(t,e,n){var r=n(6),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){"use strict";var r=n(28).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,n,o){if("function"==typeof n)return t(e,null,n);n||(n={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.apply(this,r)}}}(o||i);var a=n.readable||!1!==n.readable&&e.readable,s=n.writable||!1!==n.writable&&e.writable,u=function(){e.writable||c()},l=e._writableState&&e._writableState.finished,c=function(){s=!1,l=!0,a||o.call(e)},f=e._readableState&&e._readableState.endEmitted,d=function(){a=!1,f=!0,s||o.call(e)},h=function(t){o.call(e,t)},p=function(){var t;return a&&!f?(e._readableState&&e._readableState.ended||(t=new r),o.call(e,t)):s&&!l?(e._writableState&&e._writableState.ended||(t=new r),o.call(e,t)):void 0},m=function(){e.req.on("finish",c)};return!function(t){return t.setHeader&&"function"==typeof t.abort}(e)?s&&!e._writableState&&(e.on("end",u),e.on("close",u)):(e.on("complete",c),e.on("abort",p),e.req?m():e.on("request",m)),e.on("end",d),e.on("finish",c),!1!==n.error&&e.on("error",h),e.on("close",p),function(){e.removeListener("complete",c),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",c),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",c),e.removeListener("end",d),e.removeListener("error",h),e.removeListener("close",p)}}},function(t,e,n){(function(e){var r=n(380),i=n(24);function o(t,n){var i=function(t){var e=a(t);return{blinder:e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(n),o=n.modulus.byteLength(),s=(r.mont(n.modulus),new r(t).mul(i.blinder).umod(n.modulus)),u=s.toRed(r.mont(n.prime1)),l=s.toRed(r.mont(n.prime2)),c=n.coefficient,f=n.prime1,d=n.prime2,h=u.redPow(n.exponent1),p=l.redPow(n.exponent2);h=h.fromRed(),p=p.fromRed();var m=h.isub(p).imul(c).umod(f);return m.imul(d),p.iadd(m),new e(p.imul(i.unblinder).umod(n.modulus).toArray(!1,o))}function a(t){for(var e=t.modulus.byteLength(),n=new r(i(e));n.cmp(t.modulus)>=0||!n.umod(t.prime1)||!n.umod(t.prime2);)n=new r(i(e));return n}t.exports=o,o.getr=a}).call(this,n(6).Buffer)},function(t,e,n){"use strict";var r=e;r.version=n(382).version,r.utils=n(13),r.rand=n(81),r.curve=n(179),r.curves=n(86),r.ec=n(394),r.eddsa=n(398)},function(t,e,n){"use strict";var r,i=e,o=n(87),a=n(179),s=n(13).assert;function u(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var n=new u(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=u,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(393)}catch(t){r=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(t,e,n){var r=e;r.utils=n(16),r.common=n(37),r.sha=n(387),r.ripemd=n(391),r.hmac=n(392),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(t,e,n){"use strict";(function(e){var r,i=n(6),o=i.Buffer,a={};for(r in i)i.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(a[r]=i[r]);var s=a.Buffer={};for(r in o)o.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(s[r]=o[r]);if(a.Buffer.prototype=o.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(t,e,n){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return o(t,e,n)}),s.alloc||(s.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var r=o(t);return e&&0!==e.length?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r}),!a.kStringMaxLength)try{a.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch(t){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),t.exports=a}).call(this,n(5))},function(t,e,n){"use strict";const r=n(90).Reporter,i=n(38).EncoderBuffer,o=n(38).DecoderBuffer,a=n(12),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function l(t,e,n){const r={};this._baseState=r,r.name=n,r.enc=t,r.parent=e||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=l;const c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){const t=this._baseState,e={};c.forEach((function(n){e[n]=t[n]}));const n=new this.constructor(e.parent);return n._baseState=e,n},l.prototype._wrap=function(){const t=this._baseState;u.forEach((function(e){this[e]=function(){const n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}}),this)},l.prototype._init=function(t){const e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(t){const e=this._baseState,n=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==n.length&&(a(null===e.children),e.children=n,n.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;const e={};return Object.keys(t).forEach((function(n){n==(0|n)&&(n|=0);const r=t[n];e[r]=n})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){l.prototype[t]=function(){const e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),s.forEach((function(t){l.prototype[t]=function(){const e=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(n),this}})),l.prototype.use=function(t){a(t);const e=this._baseState;return a(null===e.use),e.use=t,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(t){const e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},l.prototype.explicit=function(t){const e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},l.prototype.implicit=function(t){const e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},l.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},l.prototype.key=function(t){const e=this._baseState;return a(null===e.key),e.key=t,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(t){const e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},l.prototype.contains=function(t){const e=this._baseState;return a(null===e.use),e.contains=t,this},l.prototype._decode=function(t,e){const n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));let r,i=n.default,a=!0,s=null;if(null!==n.key&&(s=t.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(a=this._peekTag(t,r,n.any),t.isError(a))return a}else{const r=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),a=!0}catch(t){a=!1}t.restore(r)}}if(n.obj&&a&&(r=t.enterObject()),a){if(null!==n.explicit){const e=this._decodeTag(t,n.explicit);if(t.isError(e))return e;t=e}const r=t.offset;if(null===n.use&&null===n.choice){let e;n.any&&(e=t.save());const r=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(r))return r;n.any?i=t.raw(e):t=r}if(e&&e.track&&null!==n.tag&&e.track(t.path(),r,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e)),t.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(t,e)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const r=new o(i);i=this._getUse(n.contains,t._reporterState.obj)._decode(r,e)}}return n.obj&&a&&(i=t.leaveObject(r)),null===n.key||null===i&&!0!==a?null!==s&&t.exitKey(s):t.leaveKey(s,n.key,i),i},l.prototype._decodeGeneric=function(t,e,n){const r=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,r.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&r.args?this._decodeObjid(e,r.args[0],r.args[1],n):"objid"===t?this._decodeObjid(e,null,null,n):"gentime"===t||"utctime"===t?this._decodeTime(e,t,n):"null_"===t?this._decodeNull(e,n):"bool"===t?this._decodeBool(e,n):"objDesc"===t?this._decodeStr(e,t,n):"int"===t||"enum"===t?this._decodeInt(e,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},l.prototype._getUse=function(t,e){const n=this._baseState;return n.useDecoder=this._use(t,e),a(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(t,e){const n=this._baseState;let r=null,i=!1;return Object.keys(n.choice).some((function(o){const a=t.save(),s=n.choice[o];try{const n=s._decode(t,e);if(t.isError(n))return!1;r={type:o,value:n},i=!0}catch(e){return t.restore(a),!1}return!0}),this),i?r:t.error("Choice not matched")},l.prototype._createEncoderBuffer=function(t){return new i(t,this.reporter)},l.prototype._encode=function(t,e,n){const r=this._baseState;if(null!==r.default&&r.default===t)return;const i=this._encodeValue(t,e,n);return void 0===i||this._skipDefault(i,e,n)?void 0:i},l.prototype._encodeValue=function(t,e,n){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(t,e||new r);let o=null;if(this.reporter=e,i.optional&&void 0===t){if(null===i.default)return;t=i.default}let a=null,s=!1;if(i.any)o=this._createEncoderBuffer(t);else if(i.choice)o=this._encodeChoice(t,e);else if(i.contains)a=this._getUse(i.contains,n)._encode(t,e),s=!0;else if(i.children)a=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,e,t);if(null===n._baseState.key)return e.error("Child should have a key");const r=e.enterKey(n._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");const i=n._encode(t[n._baseState.key],e,t);return e.leaveKey(r),i}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return e.error("Too many args for : "+i.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(n){const r=this._baseState;return this._getUse(r.args[0],t)._encode(n,e)}),n))}else null!==i.use?o=this._getUse(i.use,n)._encode(t,e):(a=this._encodePrimitive(i.tag,t),s=!0);if(!i.any&&null===i.choice){const t=null!==i.implicit?i.implicit:i.tag,n=null===i.implicit?"universal":"context";null===t?null===i.use&&e.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(t,s,n,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},l.prototype._encodeChoice=function(t,e){const n=this._baseState,r=n.choice[t.type];return r||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(t.value,e)},l.prototype._encodePrimitive=function(t,e){const n=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&n.args)return this._encodeObjid(e,n.reverseArgs[0],n.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,n.args&&n.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},l.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},l.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,n){"use strict";const r=n(2);function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,n){const r=this._reporterState;this.exitKey(t),null!==r.obj&&(r.obj[e]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){const e=this._reporterState,n=e.obj;return e.obj=t,n},i.prototype.error=function(t){let e;const n=this._reporterState,r=t instanceof o;if(e=r?t:new o(n.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!n.options.partial)throw e;return r||n.errors.push(e),e},i.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},r(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,n){"use strict";function r(t){const e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);const r=t[n];e[r]=n})),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=r(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=r(e.tag)},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(418).Buffer}catch(t){}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c<s;c+=r)l=u(t,c,c+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=u(t,c,t.length,e),c=0;c<a;c++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var c=u>>>26,f=67108863&u,d=Math.min(l,e.length-1),h=Math.max(0,l-t.length+1);h<=d;h++){var p=l-h|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[h])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=c[t],h=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(t);n=(p=p.idivn(h)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var h=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,_=y>>>13,k=0|a[4],M=8191&k,x=k>>>13,S=0|a[5],C=8191&S,A=S>>>13,T=0|a[6],E=8191&T,O=T>>>13,P=0|a[7],I=8191&P,R=P>>>13,j=0|a[8],D=8191&j,N=j>>>13,L=0|a[9],B=8191&L,z=L>>>13,F=0|s[0],q=8191&F,V=F>>>13,$=0|s[1],H=8191&$,U=$>>>13,W=0|s[2],K=8191&W,Y=W>>>13,G=0|s[3],Z=8191&G,J=G>>>13,X=0|s[4],Q=8191&X,tt=X>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ft=8191&ct,dt=ct>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,V))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,V))+Math.imul(m,q)|0,o=Math.imul(m,V);var gt=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,U)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,U)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,q),i=(i=Math.imul(g,V))+Math.imul(b,q)|0,o=Math.imul(b,V),r=r+Math.imul(p,H)|0,i=(i=i+Math.imul(p,U)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,U)|0;var bt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,K)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,V))+Math.imul(_,q)|0,o=Math.imul(_,V),r=r+Math.imul(g,H)|0,i=(i=i+Math.imul(g,U)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,U)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Y)|0;var yt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,Z)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,V))+Math.imul(x,q)|0,o=Math.imul(x,V),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,U)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,U)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0;var wt=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,V))+Math.imul(A,q)|0,o=Math.imul(A,V),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,U)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,U)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(d,nt)|0))<<13)|0;l=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,V))+Math.imul(O,q)|0,o=Math.imul(O,V),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,U)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,U)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,r=r+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var kt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(d,ot)|0))<<13)|0;l=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(I,q),i=(i=Math.imul(I,V))+Math.imul(R,q)|0,o=Math.imul(R,V),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,U)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,U)|0,r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(l+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(d,ut)|0))<<13)|0;l=((o=o+Math.imul(d,lt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,V))+Math.imul(N,q)|0,o=Math.imul(N,V),r=r+Math.imul(I,H)|0,i=(i=i+Math.imul(I,U)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,U)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0;var xt=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,dt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,V))+Math.imul(z,q)|0,o=Math.imul(z,V),r=r+Math.imul(D,H)|0,i=(i=i+Math.imul(D,U)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,U)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,H),i=(i=Math.imul(B,U))+Math.imul(z,H)|0,o=Math.imul(z,U),r=r+Math.imul(D,K)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0;var Ct=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,K),i=(i=Math.imul(B,Y))+Math.imul(z,K)|0,o=Math.imul(z,Y),r=r+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,lt)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,dt)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0;var At=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(B,Z),i=(i=Math.imul(B,J))+Math.imul(z,Z)|0,o=Math.imul(z,J),r=r+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,lt)|0,r=r+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,dt)|0;var Tt=(l+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,tt))+Math.imul(z,Q)|0,o=Math.imul(z,tt),r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,lt)|0,r=r+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0;var Et=(l+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(z,nt)|0,o=Math.imul(z,rt),r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,lt)|0,r=r+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,dt)|0)+Math.imul(O,ft)|0,o=o+Math.imul(O,dt)|0;var Ot=(l+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,lt)|0,r=r+Math.imul(I,ft)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0;var Pt=(l+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(O,pt)|0))<<13)|0;l=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,lt))+Math.imul(z,ut)|0,o=Math.imul(z,lt),r=r+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(N,ft)|0,o=o+Math.imul(N,dt)|0;var It=(l+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(R,pt)|0))<<13)|0;l=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(B,ft),i=(i=Math.imul(B,dt))+Math.imul(z,ft)|0,o=Math.imul(z,dt);var Rt=(l+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,mt)|0)+Math.imul(N,pt)|0))<<13)|0;l=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(l+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(z,pt)|0))<<13)|0;return l=((o=Math.imul(z,mt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=xt,u[9]=St,u[10]=Ct,u[11]=At,u[12]=Tt,u[13]=Et,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=Rt,u[18]=jt,0!==l&&(u[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(h=d),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?h(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=u;l++){var c=o-l,f=(0|t.words[c])*(0|e.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},m.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=u,d=l,h=0;h<a;h++){var p=n[c+h],m=r[c+h],v=n[c+h+a],g=r[c+h+a],b=f*v-d*g;g=f*g+d*v,v=b,n[c+h]=p+v,r[c+h]=m+g,n[c+h+a]=p-v,r[c+h+a]=m-g,h!==s&&(b=u*f-l*d,d=u*d+l*f,f=b)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},m.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),l=new Array(r),c=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,l,r),this.transform(a,o,s,u,r,i),this.transform(l,o,c,f,r,i);for(var h=0;h<r;h++){var p=s[h]*c[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var l=0;l<a;l++)u.words[l]=this.words[l];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=r.clone()._ishlnsubmul(i,1,u);0===c.negative&&(r=c,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=e.clone();!e.isZero();){for(var d=0,h=1;0==(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0==(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function M(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(b,g),b.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(y,g),i(w,g),i(_,g),_.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return v[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;0!==h.cmp(s);){for(var m=h,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new o(1).iushln(p-v-1));d=d.redMul(g),f=g.redSqr(),h=h.redMul(f),p=v}return d},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),r=e.length-1;r>=0;r--){for(var l=e.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new M(t)},i(M,k),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(14)(t))},function(t,e,n){"use strict";var r=n(285),i=n(286),o=n(134);t.exports={formats:o,parse:i,stringify:r}},function(t,e,n){"use strict";n.r(e);var r=n(199),i=n.n(r),o=n(62),a=n.n(o),s={components:{FileUpload:i.a,ProgressBar:a.a},data:function(){return{files:[],collections:[],tags:[],file_collection:1,file_ref:null,progressMode:"determinate",csrf:document.querySelectorAll('meta[name="csrf-token"]')[0].content,status:"start",error:"",links:[],repeaterFields:[{name:"headline-repeater",value:""}]}},computed:{uploadedFile:function(){return this.files.length>0?this.files[0]:null},nextRef:function(){return this.getNextRef(this.file_collection)},fileValid:function(){if(!(this.files.length<1))return this.checkFileValid(this.files[0])},file_data:function(){return{collection_id:this.file_collection,ref:this.file_ref,tags:this.tags,headlines:JSON.stringify(this.lodash.map(this.repeaterFields,"value"))}}},watch:{file_ref:function(t){t.length>0?(this.status="ready",$("#file_ref").addClass("is-valid").removeClass("is-invalid")):(this.status="start",$("#file_ref").addClass("is-invalid").removeClass("is-valid"))},uploadedFile:function(t){t.success&&(this.progressMode="indeterminate")}},methods:{processStatusUpdate:function(t){var e=this;"done"===(t=t.data).status&&(this.progressMode="determinate",axios.get("/publish/file/"+t.data.file_id).then((function(t){e.$root.publishState.file=t.data.file,e.links=t.data.links,e.status="done",e.$emit("can-continue",{value:!0})}))),"failed"===t.status&&(this.progressMode="determinate",this.status="error",this.error=t.data.error,console.error(t.data.error))},getNextRef:function(t){var e=this.collections.find((function(e){return e.id===t}));return void 0===e?null:e.files[0].ref.replace(/(\d+)+/g,(function(t,e){return parseInt(e)+1}))},checkFileValid:function(t){return"application/pdf"===t.type},inputFile:function(t,e){!t||Boolean(t)===Boolean(e)&&e.error===t.error||this.$refs.upload.active||!this.checkFileValid(t)||(this.$refs.upload.active=!0,this.status="uploading"),t&&!0===t.success&&(this.status="processing")}},mounted:function(){var t=this;Echo.private("fileProcessingStatus").listen(".status.update",this.processStatusUpdate),axios.get("/publish/collections").then((function(e){t.collections=e.data.data,t.file_ref=t.getNextRef(1)})),axios.get("/publish/tags").then((function(e){var n=e.data.data;$("#file_tags").selectize({placeholder:"Mots-clés pour la recherche",persist:!1,createOnBlur:!0,create:!0,options:n,plugins:["remove_button"],onChange:function(e){return t.tags=e}})}))}},u=(n(296),n(3)),l=Object(u.a)(s,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"stepper-step file-upload p-3"},[n("div",{staticClass:"row mx-auto mb-3",staticStyle:{"max-width":"500px"}},[n("div",{staticClass:"col-8"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"file_collection"}},[t._v("Collection *")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.file_collection,expression:"file_collection"}],staticClass:"form-control",attrs:{id:"file_collection"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.file_collection=e.target.multiple?n:n[0]}}},t._l(t.collections,(function(e){return n("option",{domProps:{value:e.id,textContent:t._s(e.name)}})})),0)])]),t._v(" "),n("div",{staticClass:"col-4"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"file_ref"}},[t._v("Numéro *")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.file_ref,expression:"file_ref"}],staticClass:"form-control is-valid",attrs:{type:"text",id:"file_ref",placeholder:t.nextRef,required:""},domProps:{value:t.file_ref},on:{input:function(e){e.target.composing||(t.file_ref=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"file_tags"}},[t._v("Mots-clés")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.tags,expression:"tags"}],attrs:{type:"text",id:"file_tags"},domProps:{value:t.tags},on:{input:function(e){e.target.composing||(t.tags=e.target.value)}}})])]),t._v(" "),n("div",{staticClass:"col-12"},[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"headlines"}},[t._v("Gros titres")]),t._v(" "),n("vue-repeater-after",{model:{value:t.repeaterFields,callback:function(e){t.repeaterFields=e},expression:"repeaterFields"}})],1)])]),t._v(" "),n("div",{staticClass:"text-center"},[t._m(0),t._v(" "),n("file-upload",{ref:"upload",staticClass:"btn btn-default btn-primary",attrs:{"post-action":"/publish/upload-file",multiple:!1,drop:!0,"drop-directory":!1,headers:{"X-CSRF-TOKEN":t.csrf},data:t.file_data},on:{"input-file":t.inputFile},model:{value:t.files,callback:function(e){t.files=e},expression:"files"}},[n("i",{staticClass:"fa fa-plus"}),t._v("\n            Sélectionnez un fichier\n        ")])],1),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:t.$refs.upload&&t.$refs.upload.dropActive,expression:"$refs.upload && $refs.upload.dropActive"}],staticClass:"drop-active"},[n("h3",[t._v("Déposez votre fichier")])]),t._v(" "),t.files.length>0?n("div",{staticClass:"my-3 file-selected"},[t.fileValid?n("div",[n("p",{staticClass:"mb-3"},[n("strong",[t._v("Fichier sélectionné : ")]),t._v(" "+t._s(t.files[0].name)+" ")])]):n("div",{staticClass:"alert alert-warning",attrs:{role:"alert"}},[n("span",{staticClass:"font-bold"},[t._v("Fichier incorrect")]),t._v(" "),n("span",[t._v("Le fichier "+t._s(t.uploadedFile.name)+" n'est pas valide, veuillez choisir un fichier .pdf !")])]),t._v(" "),n("div",[n("md-progress-bar",{attrs:{"md-mode":t.progressMode,"md-value":parseFloat(t.uploadedFile.progress)}}),t._v(" "),n("small",{staticClass:"text-center d-block"},[t._v(t._s(t.uploadedFile.progress+"%"))])],1),t._v(" "),""!==t.uploadedFile.error?n("div",{staticClass:"alert alert-danger",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-exclamation-triangle"}),t._v(" "),n("span",[t._v("Une erreur est survenue ("+t._s(t.uploadedFile.error)+")."),n("br"),t._v("Vérifiez que le numéro est entré et qu'il n'existe pas déjà.")])]):t._e(),t._v(" "),"processing"===t.status?n("div",{staticClass:"alert-info alert",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-cogs"}),t._v(" "),t._m(1)]):"error"===t.status?n("div",{staticClass:"alert-danger alert",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-exclamation-triangle"}),t._v(" \n                "),n("span",[n("strong",[t._v("Une erreur est survenue lors du traitement du fichier. ")]),t._v(" ("+t._s(t.error)+")")])]):t._e(),t._v(" "),"done"===t.status?n("div",[n("div",{staticClass:"alert-success alert",attrs:{role:"alert"}},[n("i",{staticClass:"fas fa-check"}),t._v(" \n                "),n("span",[n("strong",[t._v(t._s(t.collections.find((function(e){return e.id===t.file_collection})).name))]),t._v(" "+t._s(t.file_ref)+" enregistré. Vous pouvez passer à l'étape suivante.")])]),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-6"},[n("img",{staticClass:"mx-auto my-3 d-block",staticStyle:{width:"200px"},attrs:{src:t.$root.publishState.file.coverUrl,alt:""}})]),t._v(" "),n("div",{staticClass:"col-6"},[n("h3",[t._v(t._s(t.links.length)+" liens trouvés")]),t._v(" "),n("ul",t._l(t.links,(function(e){return n("li",[t._v(t._s(e))])})),0)])])]):t._e()]):t._e()])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("h3",[this._v("Glissez votre fichier PDF ici"),e("br"),this._v("ou")])},function(){var t=this.$createElement,e=this._self._c||t;return e("span",[this._v("Fichier enregistré, "),e("strong",[this._v("traitement en cours...")])])}],!1,null,"4a9146e1",null);e.default=l.exports},function(t,e,n){"use strict";n.r(e);var r={mixins:[n(63).a],data:function(){return{file:this.$root.publishState.file,csrf:document.querySelectorAll('meta[name="csrf-token"]')[0].content}},computed:{email:function(){var t=this.$root.publishState.file.headlines.reduce((function(t,e){return t+"\n                <h3>".concat(e.headline,"</h3>\n                <p>").concat(e.content,"</p>\n\n                ")}),"");return{content:"\n                    <p>Bonjour %recipient.name%,</p>\n                    <p>Voici la nouvelle édition du jour !</p>\n                    <br>\n                    <h2>À LA UNE AUJOURD'HUI</h2>\n                    ".concat(t,"\n\n                "),subject:"L'édition du jour [".concat(this.$root.publishState.file.title,"] "),type:1}}},watch:{email:{deep:!0,handler:function(t,e){""!==t.editorData&&""!==t.subject?(this.$root.publishState.email=t,this.$emit("can-continue",{value:!0})):this.$emit("can-continue",{value:!1})},immediate:!0}},methods:{},mounted:function(){this.$emit("can-continue",{value:!0})}},i=(n(302),n(3)),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"stepper-step"},[n("div",{staticClass:"mb-3"},[n("h3",{staticClass:"text-center"},[n("strong",[t._v(t._s(t.file.title))])]),t._v(" "),n("a",{staticClass:"btn btn-primary",attrs:{href:"/preview/"+t.file.slug,target:"_blank"}},[t._v("Prévisualiser le document")])]),t._v(" "),n("div",[n("h4",{staticClass:"text-center"},[t._v("\n            Contenu de l'email\n        ")]),t._v(" "),n("div",[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"subject"}},[t._v("Sujet")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.email.subject,expression:"email.subject"}],staticClass:"form-control",attrs:{type:"text",id:"subject",placeholder:"[PSQ 302] Les dernières nouvelles de Pfizer"},domProps:{value:t.email.subject},on:{input:function(e){e.target.composing||t.$set(t.email,"subject",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group ck-email"},[n("label",{attrs:{for:"content"}},[t._v("Contenu")]),t._v(" "),n("ckeditor",{attrs:{editor:t.editor,config:t.editorConfig,id:"content"},model:{value:t.email.content,callback:function(e){t.$set(t.email,"content",e)},expression:"email.content"}})],1)])]),t._v(" "),n("form",{attrs:{method:"post",action:"/publish/preview",target:"_blank"}},[n("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:t.csrf}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"subject"},domProps:{value:t.email.subject}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"type"},domProps:{value:t.email.type}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"content"},domProps:{value:t.email.content}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"link"},domProps:{value:"/preview/"+t.file.slug}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"image"},domProps:{value:t.file.coverUrl}}),t._v(" "),n("input",{staticClass:"btn btn-primary",attrs:{type:"submit",value:"Prévisualiser l'email"}})])])}),[],!1,null,null,null);e.default=o.exports},function(t,e,n){"use strict";n.r(e);var r={mixins:[n(63).a],data:function(){return{file:this.$root.publishState.file,recipient_group:null,recipient_groups:[],email:{content:"\n                    <p>Bonjour %recipient.name%,</p>\n                ",subject:"",type:2,link:""},csrf:document.querySelectorAll('meta[name="csrf-token"]')[0].content}},watch:{email:{deep:!0,handler:function(t,e){""!==t.editorData&&""!==t.subject?(this.$root.publishState.email=t,this.$emit("can-continue",{value:!0})):this.$emit("can-continue",{value:!1})},immediate:!0},recipient_group:function(t,e){this.$root.publishState.recipient_group=t}},methods:{},mounted:function(){var t=this;this.$emit("can-continue",{value:!0}),axios.get("/publish/recipient-groups").then((function(e){return t.recipient_groups=e.data}))}},i=(n(306),n(3)),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"stepper-step"},[n("div",[n("div",[n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"recipients"}},[t._v("Destinataires")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.recipient_group,expression:"recipient_group"}],staticClass:"form-control",attrs:{name:"recipients",id:"recipients"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.recipient_group=e.target.multiple?n:n[0]}}},[0===t.recipient_groups.count?n("option",{attrs:{value:"-1",selected:"seleted"}},[t._v("Chargement en cours...")]):t._e(),t._v(" "),t._l(t.recipient_groups,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e.text))])}))],2)]),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"subject"}},[t._v("Sujet")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.email.subject,expression:"email.subject"}],staticClass:"form-control",attrs:{type:"text",id:"subject",placeholder:"Découvrez notre nouveau podcast !"},domProps:{value:t.email.subject},on:{input:function(e){e.target.composing||t.$set(t.email,"subject",e.target.value)}}})]),t._v(" "),n("div",{staticClass:"form-group ck-email"},[n("label",{attrs:{for:"content"}},[t._v("Contenu")]),t._v(" "),n("ckeditor",{attrs:{editor:t.editor,config:t.editorConfig,id:"content"},model:{value:t.email.content,callback:function(e){t.$set(t.email,"content",e)},expression:"email.content"}})],1),t._v(" "),n("div",{staticClass:"form-group"},[n("label",{attrs:{for:"subject"}},[t._v("Lien principal")]),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.email.link,expression:"email.link"}],staticClass:"form-control",attrs:{type:"text",id:"link",placeholder:"https://exemple.fr"},domProps:{value:t.email.link},on:{input:function(e){e.target.composing||t.$set(t.email,"link",e.target.value)}}})])])]),t._v(" "),n("form",{attrs:{method:"post",action:"/publish/preview",target:"_blank"}},[n("input",{attrs:{type:"hidden",name:"_token"},domProps:{value:t.csrf}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"subject"},domProps:{value:t.email.subject}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"type"},domProps:{value:t.email.type}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"content"},domProps:{value:t.email.content}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"link"},domProps:{value:t.email.link}}),t._v(" "),n("input",{staticClass:"btn btn-primary",attrs:{type:"submit",value:"Prévisualiser l'email"}})])])}),[],!1,null,null,null);e.default=o.exports},,,,,,,,,,,function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),a=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:a,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var o=e[r],a=o.obj[o.prop],s=Object.keys(a),u=0;u<s.length;++u){var l=s[u],c=a[l];"object"==typeof c&&null!==c&&-1===n.indexOf(c)&&(e.push({obj:a,prop:l}),n.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),n=e.obj[e.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,n){if(0===t.length)return t;var r="string"==typeof t?t:String(t);if("iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var i="",a=0;a<r.length;++a){var s=r.charCodeAt(a);45===s||46===s||95===s||126===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+=r.charAt(a):s<128?i+=o[s]:s<2048?i+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?i+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),i+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return i},isBuffer:function(t){return!(!t||"object"!=typeof t)&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,n,o){if(!n)return e;if("object"!=typeof n){if(i(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var s=e;return i(e)&&!i(n)&&(s=a(e,o)),i(e)&&i(n)?(n.forEach((function(n,i){if(r.call(e,i)){var a=e[i];a&&"object"==typeof a&&n&&"object"==typeof n?e[i]=t(a,n,o):e.push(n)}else e[i]=n})),e):Object.keys(n).reduce((function(e,i){var a=n[i];return r.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),s)}}},function(t,e,n){"use strict";n.r(e),function(t){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,r=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var i=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),r))}};function o(t){return t&&"[object Function]"==={}.toString.call(t)}function a(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function s(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function u(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=a(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?t:u(s(t))}function l(t){return t&&t.referenceNode?t.referenceNode:t}var c=n&&!(!window.MSInputMethodContext||!document.documentMode),f=n&&/MSIE 10/.test(navigator.userAgent);function d(t){return 11===t?c:10===t?f:c||f}function h(t){if(!t)return document.documentElement;for(var e=d(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===a(n,"position")?h(n):n:t?t.ownerDocument.documentElement:document.documentElement}function p(t){return null!==t.parentNode?p(t.parentNode):t}function m(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,i=n?e:t,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a,s,u=o.commonAncestorContainer;if(t!==u&&e!==u||r.contains(i))return"BODY"===(s=(a=u).nodeName)||"HTML"!==s&&h(a.firstElementChild)!==a?h(u):u;var l=p(t);return l.host?m(l.host,e):m(t,p(e).host)}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",r=t.nodeName;if("BODY"===r||"HTML"===r){var i=t.ownerDocument.documentElement,o=t.ownerDocument.scrollingElement||i;return o[n]}return t[n]}function g(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=v(e,"top"),i=v(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}function b(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+r+"Width"])}function y(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],d(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function w(t){var e=t.body,n=t.documentElement,r=d(10)&&getComputedStyle(n);return{height:y("Height",e,n,r),width:y("Width",e,n,r)}}var _=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},k=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),M=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};function S(t){return x({},t,{right:t.left+t.width,bottom:t.top+t.height})}function C(t){var e={};try{if(d(10)){e=t.getBoundingClientRect();var n=v(t,"top"),r=v(t,"left");e.top+=n,e.left+=r,e.bottom+=n,e.right+=r}else e=t.getBoundingClientRect()}catch(t){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},o="HTML"===t.nodeName?w(t.ownerDocument):{},s=o.width||t.clientWidth||i.width,u=o.height||t.clientHeight||i.height,l=t.offsetWidth-s,c=t.offsetHeight-u;if(l||c){var f=a(t);l-=b(f,"x"),c-=b(f,"y"),i.width-=l,i.height-=c}return S(i)}function A(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(10),i="HTML"===e.nodeName,o=C(t),s=C(e),l=u(t),c=a(e),f=parseFloat(c.borderTopWidth),h=parseFloat(c.borderLeftWidth);n&&i&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var p=S({top:o.top-s.top-f,left:o.left-s.left-h,width:o.width,height:o.height});if(p.marginTop=0,p.marginLeft=0,!r&&i){var m=parseFloat(c.marginTop),v=parseFloat(c.marginLeft);p.top-=f-m,p.bottom-=f-m,p.left-=h-v,p.right-=h-v,p.marginTop=m,p.marginLeft=v}return(r&&!n?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(p=g(p,e)),p}function T(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=A(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:v(n),s=e?0:v(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return S(u)}function E(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===a(t,"position"))return!0;var n=s(t);return!!n&&E(n)}function O(t){if(!t||!t.parentElement||d())return document.documentElement;for(var e=t.parentElement;e&&"none"===a(e,"transform");)e=e.parentElement;return e||document.documentElement}function P(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?O(t):m(t,l(e));if("viewport"===r)o=T(a,i);else{var c=void 0;"scrollParent"===r?"BODY"===(c=u(s(e))).nodeName&&(c=t.ownerDocument.documentElement):c="window"===r?t.ownerDocument.documentElement:r;var f=A(c,a,i);if("HTML"!==c.nodeName||E(a))o=f;else{var d=w(t.ownerDocument),h=d.height,p=d.width;o.top+=f.top-f.marginTop,o.bottom=h+f.top,o.left+=f.left-f.marginLeft,o.right=p+f.left}}var v="number"==typeof(n=n||0);return o.left+=v?n:n.left||0,o.top+=v?n:n.top||0,o.right-=v?n:n.right||0,o.bottom-=v?n:n.bottom||0,o}function I(t){return t.width*t.height}function R(t,e,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=P(n,r,o,i),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},u=Object.keys(s).map((function(t){return x({key:t},s[t],{area:I(s[t])})})).sort((function(t,e){return e.area-t.area})),l=u.filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight})),c=l.length>0?l[0].key:u[0].key,f=t.split("-")[1];return c+(f?"-"+f:"")}function j(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?O(e):m(e,l(n));return A(n,i,r)}function D(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function N(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function L(t,e,n){n=n.split("-")[0];var r=D(t),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",l=o?"width":"height";return i[a]=e[a]+e[u]/2-r[u]/2,i[s]=n===s?e[s]-r[l]:e[N(s)],i}function B(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function z(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=B(t,(function(t){return t[e]===n}));return t.indexOf(r)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&o(n)&&(e.offsets.popper=S(e.offsets.popper),e.offsets.reference=S(e.offsets.reference),e=n(e,t))})),e}function F(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=j(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=R(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=L(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=z(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function q(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function V(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),r=0;r<e.length;r++){var i=e[r],o=i?""+i+n:t;if(void 0!==document.body.style[o])return o}return null}function $(){return this.state.isDestroyed=!0,q(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[V("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function H(t){var e=t.ownerDocument;return e?e.defaultView:window}function U(t,e,n,r){n.updateBound=r,H(t).addEventListener("resize",n.updateBound,{passive:!0});var i=u(t);return function t(e,n,r,i){var o="BODY"===e.nodeName,a=o?e.ownerDocument.defaultView:e;a.addEventListener(n,r,{passive:!0}),o||t(u(a.parentNode),n,r,i),i.push(a)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function W(){this.state.eventsEnabled||(this.state=U(this.reference,this.options,this.state,this.scheduleUpdate))}function K(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,H(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function Y(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function G(t,e){Object.keys(e).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Y(e[n])&&(r="px"),t.style[n]=e[n]+r}))}var Z=n&&/Firefox/i.test(navigator.userAgent);function J(t,e,n){var r=B(t,(function(t){return t.name===e})),i=!!r&&t.some((function(t){return t.name===n&&t.enabled&&t.order<r.order}));if(!i){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var X=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Q=X.slice(3);function tt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Q.indexOf(t),r=Q.slice(n+1).concat(Q.slice(0,n));return e?r.reverse():r}var et="flip",nt="clockwise",rt="counterclockwise";function it(t,e,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=t.split(/(\+|\-)/).map((function(t){return t.trim()})),s=a.indexOf(B(a,(function(t){return-1!==t.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return(l=l.map((function(t,r){var i=(1===r?!o:o)?"height":"width",a=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,r){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return S(s)[e]/100*o}if("vh"===a||"vw"===a){return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}(t,i,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,r){Y(n)&&(i[e]+=n*("-"===t[r-1]?-1:1))}))})),i}var ot={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],r=e.split("-")[1];if(r){var i=t.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",l=s?"width":"height",c={start:M({},u,o[u]),end:M({},u,o[u]+o[l]-a[l])};t.offsets.popper=x({},a,c[r])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,r=t.placement,i=t.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=Y(+n)?[+n,0]:it(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||h(t.instance.popper);t.instance.reference===n&&(n=h(n));var r=V("transform"),i=t.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=P(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=o,i.left=a,i[r]=s,e.boundaries=u;var l=e.priority,c=t.offsets.popper,f={primary:function(t){var n=c[t];return c[t]<u[t]&&!e.escapeWithReference&&(n=Math.max(c[t],u[t])),M({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=c[n];return c[t]>u[t]&&!e.escapeWithReference&&(r=Math.min(c[n],u[t]-("right"===t?c.width:c.height))),M({},n,r)}};return l.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=x({},c,f[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]<o(r[u])&&(t.offsets.popper[u]=o(r[u])-n[l]),n[u]>o(r[s])&&(t.offsets.popper[u]=o(r[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!J(t.instance.modifiers,"arrow","keepTogether"))return t;var r=e.element;if("string"==typeof r){if(!(r=t.instance.popper.querySelector(r)))return t}else if(!t.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,s=o.popper,u=o.reference,l=-1!==["left","right"].indexOf(i),c=l?"height":"width",f=l?"Top":"Left",d=f.toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",m=D(r)[c];u[p]-m<s[d]&&(t.offsets.popper[d]-=s[d]-(u[p]-m)),u[d]+m>s[p]&&(t.offsets.popper[d]+=u[d]+m-s[p]),t.offsets.popper=S(t.offsets.popper);var v=u[d]+u[c]/2-m/2,g=a(t.instance.popper),b=parseFloat(g["margin"+f]),y=parseFloat(g["border"+f+"Width"]),w=v-t.offsets.popper[d]-b-y;return w=Math.max(Math.min(s[c]-m,w),0),t.arrowElement=r,t.offsets.arrow=(M(n={},d,Math.round(w)),M(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(q(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=P(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=N(r),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case et:a=[r,i];break;case nt:a=tt(r);break;case rt:a=tt(r,!0);break;default:a=e.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return t;r=t.placement.split("-")[0],i=N(r);var l=t.offsets.popper,c=t.offsets.reference,f=Math.floor,d="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)<f(c.right)||"top"===r&&f(l.bottom)>f(c.top)||"bottom"===r&&f(l.top)<f(c.bottom),h=f(l.left)<f(n.left),p=f(l.right)>f(n.right),m=f(l.top)<f(n.top),v=f(l.bottom)>f(n.bottom),g="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),y=!!e.flipVariations&&(b&&"start"===o&&h||b&&"end"===o&&p||!b&&"start"===o&&m||!b&&"end"===o&&v),w=!!e.flipVariationsByContent&&(b&&"start"===o&&p||b&&"end"===o&&h||!b&&"start"===o&&v||!b&&"end"===o&&m),_=y||w;(d||g||_)&&(t.flipped=!0,(d||g)&&(r=a[u+1]),_&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=x({},t.offsets.popper,L(t.instance.popper,t.offsets.reference,t.placement)),t=z(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),t.placement=N(e),t.offsets.popper=S(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!J(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=B(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,r=e.y,i=t.offsets.popper,o=B(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:e.gpuAcceleration,s=h(t.instance.popper),u=C(s),l={position:i.position},c=function(t,e){var n=t.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},u=o(i.width),l=o(r.width),c=-1!==["left","right"].indexOf(t.placement),f=-1!==t.placement.indexOf("-"),d=e?c||f||u%2==l%2?o:a:s,h=e?o:s;return{left:d(u%2==1&&l%2==1&&!f&&e?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:d(r.right)}}(t,window.devicePixelRatio<2||!Z),f="bottom"===n?"top":"bottom",d="right"===r?"left":"right",p=V("transform"),m=void 0,v=void 0;if(v="bottom"===f?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-u.height+c.bottom:c.top,m="right"===d?"HTML"===s.nodeName?-s.clientWidth+c.right:-u.width+c.right:c.left,a&&p)l[p]="translate3d("+m+"px, "+v+"px, 0)",l[f]=0,l[d]=0,l.willChange="transform";else{var g="bottom"===f?-1:1,b="right"===d?-1:1;l[f]=v*g,l[d]=m*b,l.willChange=f+", "+d}var y={"x-placement":t.placement};return t.attributes=x({},y,t.attributes),t.styles=x({},l,t.styles),t.arrowStyles=x({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return G(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&G(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,r,i){var o=j(i,e,t,n.positionFixed),a=R(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),G(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},at=function(){function t(e,n){var r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=i(this.update.bind(this)),this.options=x({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(x({},t.Defaults.modifiers,a.modifiers)).forEach((function(e){r.options.modifiers[e]=x({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return x({name:t},r.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&o(t.onLoad)&&t.onLoad(r.reference,r.popper,r.options,t,r.state)})),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return k(t,[{key:"update",value:function(){return F.call(this)}},{key:"destroy",value:function(){return $.call(this)}},{key:"enableEventListeners",value:function(){return W.call(this)}},{key:"disableEventListeners",value:function(){return K.call(this)}}]),t}();at.Utils=("undefined"!=typeof window?window:t).PopperUtils,at.placements=X,at.Defaults=ot,e.default=at}.call(this,n(7))},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";var r=n(11);function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var r=n(11),i=n(223),o={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s,u={adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(s=n(113)),s),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(o)})),t.exports=u}).call(this,n(5))},function(t,e,n){"use strict";var r=n(11),i=n(224),o=n(110),a=n(226),s=n(229),u=n(230),l=n(114);t.exports=function(t){return new Promise((function(e,c){var f=t.data,d=t.headers;r.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",m=t.auth.password||"";d.Authorization="Basic "+btoa(p+":"+m)}var v=a(t.baseURL,t.url);if(h.open(t.method.toUpperCase(),o(v,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h.onreadystatechange=function(){if(h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,r={data:t.responseType&&"text"!==t.responseType?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:n,config:t,request:h};i(e,c,r),h=null}},h.onabort=function(){h&&(c(l("Request aborted",t,"ECONNABORTED",h)),h=null)},h.onerror=function(){c(l("Network Error",t,null,h)),h=null},h.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),c(l(e,t,"ECONNABORTED",h)),h=null},r.isStandardBrowserEnv()){var g=n(231),b=(t.withCredentials||u(v))&&t.xsrfCookieName?g.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}if("setRequestHeader"in h&&r.forEach(d,(function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){h&&(h.abort(),c(t),h=null)})),void 0===f&&(f=null),h.send(f)}))}},function(t,e,n){"use strict";var r=n(225);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e){e=e||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(t){void 0!==e[t]&&(n[t]=e[t])})),r.forEach(o,(function(i){r.isObject(e[i])?n[i]=r.deepMerge(t[i],e[i]):void 0!==e[i]?n[i]=e[i]:r.isObject(t[i])?n[i]=r.deepMerge(t[i]):void 0!==t[i]&&(n[i]=t[i])})),r.forEach(a,(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])}));var s=i.concat(o).concat(a),u=Object.keys(e).filter((function(t){return-1===s.indexOf(t)}));return r.forEach(u,(function(r){void 0!==e[r]?n[r]=e[r]:void 0!==t[r]&&(n[r]=t[r])})),n}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(238),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(7))},,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=String.prototype.replace,i=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return r.call(t,i,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"",reject:i({method:"POST",path:"accounts/{account}/reject"}),create:i({method:"POST",path:"accounts"}),del:i({method:"DELETE",path:"accounts/{account}"}),list:i({method:"GET",path:"accounts",methodType:"list"}),retrieve(t){return"string"==typeof t?i({method:"GET",path:"accounts/{id}"}).apply(this,arguments):(null==t&&[].shift.apply(arguments),i({method:"GET",path:"account"}).apply(this,arguments))},update:i({method:"POST",path:"accounts/{account}"}),listCapabilities:i({method:"GET",path:"accounts/{account}/capabilities",methodType:"list"}),retrieveCapability:i({method:"GET",path:"accounts/{account}/capabilities/{capability}"}),updateCapability:i({method:"POST",path:"accounts/{account}/capabilities/{capability}"}),createExternalAccount:i({method:"POST",path:"accounts/{account}/external_accounts"}),deleteExternalAccount:i({method:"DELETE",path:"accounts/{account}/external_accounts/{id}"}),listExternalAccounts:i({method:"GET",path:"accounts/{account}/external_accounts",methodType:"list"}),retrieveExternalAccount:i({method:"GET",path:"accounts/{account}/external_accounts/{id}"}),updateExternalAccount:i({method:"POST",path:"accounts/{account}/external_accounts/{id}"}),createLoginLink:i({method:"POST",path:"accounts/{account}/login_links"}),createPerson:i({method:"POST",path:"accounts/{account}/persons"}),deletePerson:i({method:"DELETE",path:"accounts/{account}/persons/{person}"}),listPersons:i({method:"GET",path:"accounts/{account}/persons",methodType:"list"}),retrievePerson:i({method:"GET",path:"accounts/{account}/persons/{person}"}),updatePerson:i({method:"POST",path:"accounts/{account}/persons/{person}"})})},function(t,e,n){(function(t){var r=n(312),i=n(138),o=n(318),a=n(319),s=n(143),u=e;u.request=function(e,n){e="string"==typeof e?s.parse(e):o(e);var i=-1===t.location.protocol.search(/^https?:$/)?"http:":"",a=e.protocol||i,u=e.hostname||e.host,l=e.port,c=e.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),e.url=(u?a+"//"+u:"")+(l?":"+l:"")+c,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new r(e);return n&&f.on("response",n),f},u.get=function(t,e){var n=u.request(t,e);return n.end(),n},u.ClientRequest=r,u.IncomingMessage=i.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=a,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(7))},function(t,e,n){(function(t){e.fetch=s(t.fetch)&&s(t.ReadableStream),e.writableStream=s(t.WritableStream),e.abortController=s(t.AbortController),e.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),e.blobConstructor=!0}catch(t){}var n;function r(){if(void 0!==n)return n;if(t.XMLHttpRequest){n=new t.XMLHttpRequest;try{n.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(t){n=null}}else n=null;return n}function i(t){var e=r();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(t){}return!1}var o=void 0!==t.ArrayBuffer,a=o&&s(t.ArrayBuffer.prototype.slice);function s(t){return"function"==typeof t}e.arraybuffer=e.fetch||o&&i("arraybuffer"),e.msstream=!e.fetch&&a&&i("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&o&&i("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||!!r()&&s(r().overrideMimeType),e.vbArray=s(t.VBArray),n=null}).call(this,n(7))},function(t,e,n){(function(t,r,i){var o=n(137),a=n(2),s=n(33),u=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=e.IncomingMessage=function(e,n,a,u){var l=this;if(s.Readable.call(l),l._mode=a,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",(function(){t.nextTick((function(){l.emit("close")}))})),"fetch"===a){if(l._fetchResponse=n,l.url=n.url,l.statusCode=n.status,l.statusMessage=n.statusText,n.headers.forEach((function(t,e){l.headers[e.toLowerCase()]=t,l.rawHeaders.push(e,t)})),o.writableStream){var c=new WritableStream({write:function(t){return new Promise((function(e,n){l._destroyed?n():l.push(new r(t))?e():l._resumeFetch=e}))},close:function(){i.clearTimeout(u),l._destroyed||l.push(null)},abort:function(t){l._destroyed||l.emit("error",t)}});try{return void n.body.pipeTo(c).catch((function(t){i.clearTimeout(u),l._destroyed||l.emit("error",t)}))}catch(t){}}var f=n.body.getReader();!function t(){f.read().then((function(e){if(!l._destroyed){if(e.done)return i.clearTimeout(u),void l.push(null);l.push(new r(e.value)),t()}})).catch((function(t){i.clearTimeout(u),l._destroyed||l.emit("error",t)}))}()}else{if(l._xhr=e,l._pos=0,l.url=e.responseURL,l.statusCode=e.status,l.statusMessage=e.statusText,e.getAllResponseHeaders().split(/\r?\n/).forEach((function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var n=e[1].toLowerCase();"set-cookie"===n?(void 0===l.headers[n]&&(l.headers[n]=[]),l.headers[n].push(e[2])):void 0!==l.headers[n]?l.headers[n]+=", "+e[2]:l.headers[n]=e[2],l.rawHeaders.push(e[1],e[2])}})),l._charset="x-user-defined",!o.overrideMimeType){var d=l.rawHeaders["mime-type"];if(d){var h=d.match(/;\s*charset=([^;])(;|$)/);h&&(l._charset=h[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};a(l,s.Readable),l.prototype._read=function(){var t=this._resumeFetch;t&&(this._resumeFetch=null,t())},l.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text:vbarray":if(e.readyState!==u.DONE)break;try{n=new i.VBArray(e.responseBody).toArray()}catch(t){}if(null!==n){t.push(new r(n));break}case"text":try{n=e.responseText}catch(e){t._mode="text:vbarray";break}if(n.length>t._pos){var o=n.substr(t._pos);if("x-user-defined"===t._charset){for(var a=new r(o.length),s=0;s<o.length;s++)a[s]=255&o.charCodeAt(s);t.push(a)}else t.push(o,t._charset);t._pos=n.length}break;case"arraybuffer":if(e.readyState!==u.DONE||!e.response)break;n=e.response,t.push(new r(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=e.response,e.readyState!==u.LOADING||!n)break;t.push(new r(new Uint8Array(n)));break;case"ms-stream":if(n=e.response,e.readyState!==u.LOADING)break;var l=new i.MSStreamReader;l.onprogress=function(){l.result.byteLength>t._pos&&(t.push(new r(new Uint8Array(l.result.slice(t._pos)))),t._pos=l.result.byteLength)},l.onload=function(){t.push(null)},l.readAsArrayBuffer(n)}t._xhr.readyState===u.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(this,n(5),n(6).Buffer,n(7))},function(t,e,n){"use strict";(function(e,r){var i=n(45);t.exports=y;var o,a=n(117);y.ReadableState=b;n(15).EventEmitter;var s=function(t,e){return t.listeners(e).length},u=n(140),l=n(4).Buffer,c=e.Uint8Array||function(){};var f=Object.create(n(34));f.inherits=n(2);var d=n(313),h=void 0;h=d&&d.debuglog?d.debuglog("stream"):function(){};var p,m=n(314),v=n(141);f.inherits(y,u);var g=["error","close","destroy","pause","resume"];function b(t,e){t=t||{};var r=e instanceof(o=o||n(21));this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var i=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=n(22).StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function y(t){if(o=o||n(21),!(this instanceof y))return new y(t);this._readableState=new b(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),u.call(this)}function w(t,e,n,r,i){var o,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,M(t)}(t,a)):(i||(o=function(t,e){var n;r=e,l.isBuffer(r)||r instanceof c||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,e)),o?t.emit("error",o):a.objectMode||e&&e.length>0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),r?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):_(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?_(t,a,e,!1):S(t,a)):_(t,a,e,!1))):r||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function _(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&M(t)),S(t,e)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),y.prototype.destroy=v.destroy,y.prototype._undestroy=v.undestroy,y.prototype._destroy=function(t,e){this.push(null),e(t)},y.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=l.from(t,e),e=""),n=!0),w(this,t,e,!1,n)},y.prototype.unshift=function(t){return w(this,t,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(t){return p||(p=n(22).StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};function k(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function M(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(x,t):x(t))}function x(t){h("emit readable"),t.emit("readable"),E(t)}function S(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(C,t,e))}function C(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(h("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function A(t){h("readable nexttick read 0"),t.read(0)}function T(t,e){e.reading||(h("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),E(t),e.flowing&&!e.reading&&t.read(0)}function E(t){var e=t._readableState;for(h("flow",e.flowing);e.flowing&&null!==t.read(););}function O(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,r=1,i=n.data;t-=i.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=l.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,a=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,a),0===(t-=a)){a===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(I,e,t))}function I(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function R(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}y.prototype.read=function(t){h("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):M(this),null;if(0===(t=k(t,e))&&e.ended)return 0===e.length&&P(this),null;var r,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&h("length less than watermark",i=!0),e.ended||e.reading?h("reading or ended",i=!1):i&&(h("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=k(n,e))),null===(r=t>0?O(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&P(this)),null!==r&&this.emit("data",r),r},y.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?c:y;function l(e,r){h("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),t.removeListener("close",g),t.removeListener("finish",b),t.removeListener("drain",f),t.removeListener("error",v),t.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",y),n.removeListener("data",m),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function c(){h("onend"),t.end()}o.endEmitted?i.nextTick(u):n.once("end",u),t.on("unpipe",l);var f=function(t){return function(){var e=t._readableState;h("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,E(t))}}(n);t.on("drain",f);var d=!1;var p=!1;function m(e){h("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==R(o.pipes,t))&&!d&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function v(e){h("onerror",e),y(),t.removeListener("error",v),0===s(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",b),y()}function b(){h("onfinish"),t.removeListener("close",g),y()}function y(){h("unpipe"),n.unpipe(t)}return n.on("data",m),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",v),t.once("close",g),t.once("finish",b),t.emit("pipe",n),o.flowing||(h("pipe resume"),n.resume()),t},y.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var a=R(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},y.prototype.on=function(t,e){var n=u.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&M(this):i.nextTick(A,this))}return n},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(T,t,e))}(this,t)),this},y.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<g.length;o++)t.on(g[o],this.emit.bind(this,g[o]));return this._read=function(e){h("wrapped _read",e),r&&(r=!1,t.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=O}).call(this,n(7),n(5))},function(t,e,n){t.exports=n(15).EventEmitter},function(t,e,n){"use strict";var r=n(45);function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(r.nextTick(i,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,n){"use strict";t.exports=a;var r=n(21),i=Object.create(n(34));function o(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);r.call(this,t),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",s)}function s(){var t=this;"function"==typeof this._flush?this._flush((function(e,n){u(t,e,n)})):u(this,null,null)}function u(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}i.inherits=n(2),i.inherits(a,r),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,r.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},a.prototype._destroy=function(t,e){var n=this;r.prototype._destroy.call(this,t,(function(t){e(t),n.emit("close")}))}},function(t,e,n){"use strict";var r=n(320),i=n(321);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.parse=y,e.resolve=function(t,e){return y(t,!1,!0).resolve(e)},e.resolveObject=function(t,e){return t?y(t,!1,!0).resolveObject(e):e},e.format=function(t){i.isString(t)&&(t=y(t));return t instanceof o?t.format():o.prototype.format.call(t)},e.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),f=["%","/","?",";","#"].concat(c),d=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(322);function y(t,e,n){if(t&&i.isObject(t)&&t instanceof o)return t;var r=new o;return r.parse(t,e,n),r}o.prototype.parse=function(t,e,n){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),s=-1!==o&&o<t.indexOf("#")?"?":"#",l=t.split(s);l[0]=l[0].replace(/\\/g,"/");var y=t=l.join(s);if(y=y.trim(),!n&&1===t.split("#").length){var w=u.exec(y);if(w)return this.path=y,this.href=y,this.pathname=w[1],w[2]?(this.search=w[2],this.query=e?b.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var _=a.exec(y);if(_){var k=(_=_[0]).toLowerCase();this.protocol=k,y=y.substr(_.length)}if(n||_||y.match(/^\/\/[^@\/]+@[^@\/]+/)){var M="//"===y.substr(0,2);!M||_&&v[_]||(y=y.substr(2),this.slashes=!0)}if(!v[_]&&(M||_&&!g[_])){for(var x,S,C=-1,A=0;A<d.length;A++){-1!==(T=y.indexOf(d[A]))&&(-1===C||T<C)&&(C=T)}-1!==(S=-1===C?y.lastIndexOf("@"):y.lastIndexOf("@",C))&&(x=y.slice(0,S),y=y.slice(S+1),this.auth=decodeURIComponent(x)),C=-1;for(A=0;A<f.length;A++){var T;-1!==(T=y.indexOf(f[A]))&&(-1===C||T<C)&&(C=T)}-1===C&&(C=y.length),this.host=y.slice(0,C),y=y.slice(C),this.parseHost(),this.hostname=this.hostname||"";var E="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!E)for(var O=this.hostname.split(/\./),P=(A=0,O.length);A<P;A++){var I=O[A];if(I&&!I.match(h)){for(var R="",j=0,D=I.length;j<D;j++)I.charCodeAt(j)>127?R+="x":R+=I[j];if(!R.match(h)){var N=O.slice(0,A),L=O.slice(A+1),B=I.match(p);B&&(N.push(B[1]),L.unshift(B[2])),L.length&&(y="/"+L.join(".")+y),this.hostname=N.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=r.toASCII(this.hostname));var z=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+z,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!m[k])for(A=0,P=c.length;A<P;A++){var q=c[A];if(-1!==y.indexOf(q)){var V=encodeURIComponent(q);V===q&&(V=escape(q)),y=y.split(q).join(V)}}var $=y.indexOf("#");-1!==$&&(this.hash=y.substr($),y=y.slice(0,$));var H=y.indexOf("?");if(-1!==H?(this.search=y.substr(H),this.query=y.substr(H+1),e&&(this.query=b.parse(this.query)),y=y.slice(0,H)):e&&(this.search="",this.query={}),y&&(this.pathname=y),g[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){z=this.pathname||"";var U=this.search||"";this.path=z+U}return this.href=this.format(),this},o.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,a="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&i.isObject(this.query)&&Object.keys(this.query).length&&(a=b.stringify(this.query));var s=this.search||a&&"?"+a||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==o?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),e+o+(n=n.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(s=s.replace("#","%23"))+r},o.prototype.resolve=function(t){return this.resolveObject(y(t,!1,!0)).format()},o.prototype.resolveObject=function(t){if(i.isString(t)){var e=new o;e.parse(t,!1,!0),t=e}for(var n=new o,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var u=Object.keys(t),l=0;l<u.length;l++){var c=u[l];"protocol"!==c&&(n[c]=t[c])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!g[t.protocol]){for(var f=Object.keys(t),d=0;d<f.length;d++){var h=f[d];n[h]=t[h]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||v[t.protocol])n.pathname=t.pathname;else{for(var p=(t.pathname||"").split("/");p.length&&!(t.host=p.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),n.pathname=p.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var m=n.pathname||"",b=n.search||"";n.path=m+b}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var y=n.pathname&&"/"===n.pathname.charAt(0),w=t.host||t.pathname&&"/"===t.pathname.charAt(0),_=w||y||n.host&&t.pathname,k=_,M=n.pathname&&n.pathname.split("/")||[],x=(p=t.pathname&&t.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(x&&(n.hostname="",n.port=null,n.host&&(""===M[0]?M[0]=n.host:M.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),_=_&&(""===p[0]||""===M[0])),w)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,M=p;else if(p.length)M||(M=[]),M.pop(),M=M.concat(p),n.search=t.search,n.query=t.query;else if(!i.isNullOrUndefined(t.search)){if(x)n.hostname=n.host=M.shift(),(E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=E.shift(),n.host=n.hostname=E.shift());return n.search=t.search,n.query=t.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!M.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=M.slice(-1)[0],C=(n.host||t.host||M.length>1)&&("."===S||".."===S)||""===S,A=0,T=M.length;T>=0;T--)"."===(S=M[T])?M.splice(T,1):".."===S?(M.splice(T,1),A++):A&&(M.splice(T,1),A--);if(!_&&!k)for(;A--;A)M.unshift("..");!_||""===M[0]||M[0]&&"/"===M[0].charAt(0)||M.unshift(""),C&&"/"!==M.join("/").substr(-1)&&M.push("");var E,O=""===M[0]||M[0]&&"/"===M[0].charAt(0);x&&(n.hostname=n.host=O?"":M.length?M.shift():"",(E=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=E.shift(),n.host=n.hostname=E.shift()));return(_=_||n.host&&M.length)&&!O&&M.unshift(""),M.length?n.pathname=M.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=n(24),e.createHash=e.Hash=n(35),e.createHmac=e.Hmac=n(154);var r=n(346),i=Object.keys(r),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var a=n(157);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var s=n(348);e.Cipher=s.Cipher,e.createCipher=s.createCipher,e.Cipheriv=s.Cipheriv,e.createCipheriv=s.createCipheriv,e.Decipher=s.Decipher,e.createDecipher=s.createDecipher,e.Decipheriv=s.Decipheriv,e.createDecipheriv=s.createDecipheriv,e.getCiphers=s.getCiphers,e.listCiphers=s.listCiphers;var u=n(363);e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var l=n(370);e.createSign=l.createSign,e.Sign=l.Sign,e.createVerify=l.createVerify,e.Verify=l.Verify,e.createECDH=n(413);var c=n(416);e.publicEncrypt=c.publicEncrypt,e.privateEncrypt=c.privateEncrypt,e.publicDecrypt=c.publicDecrypt,e.privateDecrypt=c.privateDecrypt;var f=n(420);e.randomFill=f.randomFill,e.randomFillSync=f.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,n){"use strict";var r=n(327).Buffer,i=n(328).Transform;function o(t){i.call(this),this._block=r.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(2)(o,i),o.prototype._transform=function(t,e,n){var r=null;try{this.update(t,e)}catch(t){r=t}n(r)},o.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},o.prototype.update=function(t,e){if(function(t,e){if(!r.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(t)||(t=r.from(t,e));for(var n=this._block,i=0;this._blockOffset+t.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)n[o++]=t[i++];this._update(),this._blockOffset=0}for(;i<t.length;)n[this._blockOffset++]=t[i++];for(var a=0,s=8*t.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},function(t,e,n){"use strict";(function(e,r){var i;t.exports=S,S.ReadableState=x;n(15).EventEmitter;var o=function(t,e){return t.listeners(e).length},a=n(147),s=n(6).Buffer,u=e.Uint8Array||function(){};var l,c=n(329);l=c&&c.debuglog?c.debuglog("stream"):function(){};var f,d,h,p=n(330),m=n(148),v=n(149).getHighWaterMark,g=n(25).codes,b=g.ERR_INVALID_ARG_TYPE,y=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(2)(S,a);var k=m.errorOrDestroy,M=["error","close","destroy","pause","resume"];function x(t,e,r){i=i||n(26),t=t||{},"boolean"!=typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=v(this,t,"readableHighWaterMark",r),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=n(22).StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function S(t){if(i=i||n(26),!(this instanceof S))return new S(t);var e=this instanceof i;this._readableState=new x(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function C(t,e,n,r,i){l("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(l("onEofChunk"),e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?E(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,O(t)))}(t,a);else if(i||(o=function(t,e){var n;r=e,s.isBuffer(r)||r instanceof u||"string"==typeof e||void 0===e||t.objectMode||(n=new b("chunk",["string","Buffer","Uint8Array"],e));var r;return n}(a,e)),o)k(t,o);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),r)a.endEmitted?k(t,new _):A(t,a,e,!0);else if(a.ended)k(t,new y);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?A(t,a,e,!1):P(t,a)):A(t,a,e,!1)}else r||(a.reading=!1,P(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function A(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&E(t)),P(t,e)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),S.prototype.destroy=m.destroy,S.prototype._undestroy=m.undestroy,S.prototype._destroy=function(t,e){e(t)},S.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=s.from(t,e),e=""),n=!0),C(this,t,e,!1,n)},S.prototype.unshift=function(t){return C(this,t,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){f||(f=n(22).StringDecoder);var e=new f(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};function T(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function E(t){var e=t._readableState;l("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(l("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(O,t))}function O(t){var e=t._readableState;l("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,N(t)}function P(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(I,t,e))}function I(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var n=e.length;if(l("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function R(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function j(t){l("readable nexttick read 0"),t.read(0)}function D(t,e){l("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(l("flow",e.flowing);e.flowing&&null!==t.read(););}function L(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function B(t){var e=t._readableState;l("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(z,e,t))}function z(t,e){if(l("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function F(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}S.prototype.read=function(t){l("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return l("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?B(this):E(this),null;if(0===(t=T(t,e))&&e.ended)return 0===e.length&&B(this),null;var r,i=e.needReadable;return l("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&l("length less than watermark",i=!0),e.ended||e.reading?l("reading or ended",i=!1):i&&(l("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=T(n,e))),null===(r=t>0?L(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&B(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(t){k(this,new w("_read()"))},S.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,l("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?u:v;function s(e,r){l("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,l("cleanup"),t.removeListener("close",p),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",h),t.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",v),n.removeListener("data",d),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}function u(){l("onend"),t.end()}i.endEmitted?r.nextTick(a):n.once("end",a),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;l("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,N(t))}}(n);t.on("drain",c);var f=!1;function d(e){l("ondata");var r=t.write(e);l("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==F(i.pipes,t))&&!f&&(l("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function h(e){l("onerror",e),v(),t.removeListener("error",h),0===o(t,"error")&&k(t,e)}function p(){t.removeListener("finish",m),v()}function m(){l("onfinish"),t.removeListener("close",p),v()}function v(){l("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",h),t.once("close",p),t.once("finish",m),t.emit("pipe",n),i.flowing||(l("pipe resume"),n.resume()),t},S.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},S.prototype.on=function(t,e){var n=a.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,l("on readable",i.length,i.reading),i.length?E(this):i.reading||r.nextTick(j,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(R,this),n},S.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(R,this),e},S.prototype.resume=function(){var t=this._readableState;return t.flowing||(l("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(D,t,e))}(this,t)),t.paused=!1,this},S.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(l("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(l("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<M.length;o++)t.on(M[o],this.emit.bind(this,M[o]));return this._read=function(e){l("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(332)),d(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),S._fromList=L,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,e){return void 0===h&&(h=n(333)),h(S,t,e)})}).call(this,n(7),n(5))},function(t,e,n){t.exports=n(15).EventEmitter},function(t,e,n){"use strict";(function(e){function n(t,e){i(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(r,a):(a._writableState.errorEmitted=!0,e.nextTick(n,a,t)):e.nextTick(n,a,t):o?(e.nextTick(r,a),o(t)):e.nextTick(r,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,n(5))},function(t,e,n){"use strict";var r=n(25).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,i){var o=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}var o;t.exports=S,S.WritableState=x;var a={deprecate:n(73)},s=n(147),u=n(6).Buffer,l=e.Uint8Array||function(){};var c,f=n(148),d=n(149).getHighWaterMark,h=n(25).codes,p=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,v=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,y=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function M(){}function x(t,e,a){o=o||n(26),t=t||{},"boolean"!=typeof a&&(a=e instanceof o),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new v;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(P,t,e),t._writableState.errorEmitted=!0,k(t,i)):(o(i),t._writableState.errorEmitted=!0,k(t,i),P(t,e))}(t,n,i,e,o);else{var a=E(n)||t.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||T(t,n),i?r.nextTick(A,t,n,a,o):A(t,n,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function S(t){var e=this instanceof(o=o||n(26));if(!e&&!c.call(S,this))return new S(t);this._writableState=new x(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function C(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new b("write")):n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function A(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),P(t,e)}function T(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),a=e.corkedRequestsFree;a.entry=n;for(var s=0,u=!0;n;)o[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;o.allBuffers=u,C(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(C(t,e,!1,e.objectMode?1:l.length,l,c,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function E(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function O(t,e){t._final((function(n){e.pendingcb--,n&&k(t,n),e.prefinished=!0,t.emit("prefinish"),P(t,e)}))}function P(t,e){var n=E(e);if(n&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(O,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return n}n(2)(S,s),x.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(x.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===S&&(t&&t._writableState instanceof x)}})):c=function(t){return t instanceof this},S.prototype.pipe=function(){k(this,new g)},S.prototype.write=function(t,e,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,u.isBuffer(i)||i instanceof l);return s&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof n&&(n=M),o.ending?function(t,e){var n=new w;k(t,n),r.nextTick(e,n)}(this,n):(s||function(t,e,n,i){var o;return null===n?o=new y:"string"==typeof n||e.objectMode||(o=new p("chunk",["string","Buffer"],n)),!o||(k(t,o),r.nextTick(i,o),!1)}(this,o,t,n))&&(o.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,n));return e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var l=e.length<e.highWaterMark;l||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else C(t,e,!1,s,r,i,o);return l}(this,o,s,t,e,n)),a},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||T(this,t))},S.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,n){n(new m("_write()"))},S.prototype._writev=null,S.prototype.end=function(t,e,n){var i=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,n){e.ending=!0,P(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(t,e){e(t)}}).call(this,n(7),n(5))},function(t,e,n){"use strict";t.exports=c;var r=n(25).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(26);function l(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);u.call(this,t),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",f)}function f(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(e,n){d(t,e,n)}))}function d(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}n(2)(c,u),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,n){n(new i("_transform()"))},c.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,n){var r=n(2),i=n(27),o=n(4).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function l(t,e,n){return n^t&(e^n)}function c(t,e,n){return t&e|n&(t|e)}function f(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function h(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}r(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,m=0|this._g,v=0|this._h,g=0;g<16;++g)n[g]=t.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((e=n[g-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[g-7]+h(n[g-15])+n[g-16];for(var b=0;b<64;++b){var y=v+d(u)+l(u,p,m)+a[b]+n[b]|0,w=f(r)+c(r,i,o)|0;v=m,m=p,p=u,u=s+y|0,s=o,o=i,i=r,r=y+w|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=v+this._h|0},u.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},function(t,e,n){var r=n(2),i=n(27),o=n(4).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function l(t,e,n){return n^t&(e^n)}function c(t,e,n){return t&e|n&(t|e)}function f(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function h(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function v(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function g(t,e){return t>>>0<e>>>0?1:0}r(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,b=0|this._gh,y=0|this._hh,w=0|this._al,_=0|this._bl,k=0|this._cl,M=0|this._dl,x=0|this._el,S=0|this._fl,C=0|this._gl,A=0|this._hl,T=0;T<32;T+=2)e[T]=t.readInt32BE(4*T),e[T+1]=t.readInt32BE(4*T+4);for(;T<160;T+=2){var E=e[T-30],O=e[T-30+1],P=h(E,O),I=p(O,E),R=m(E=e[T-4],O=e[T-4+1]),j=v(O,E),D=e[T-14],N=e[T-14+1],L=e[T-32],B=e[T-32+1],z=I+N|0,F=P+D+g(z,I)|0;F=(F=F+R+g(z=z+j|0,j)|0)+L+g(z=z+B|0,B)|0,e[T]=F,e[T+1]=z}for(var q=0;q<160;q+=2){F=e[q],z=e[q+1];var V=c(n,r,i),$=c(w,_,k),H=f(n,w),U=f(w,n),W=d(s,x),K=d(x,s),Y=a[q],G=a[q+1],Z=l(s,u,b),J=l(x,S,C),X=A+K|0,Q=y+W+g(X,A)|0;Q=(Q=(Q=Q+Z+g(X=X+J|0,J)|0)+Y+g(X=X+G|0,G)|0)+F+g(X=X+z|0,z)|0;var tt=U+$|0,et=H+V+g(tt,U)|0;y=b,A=C,b=u,C=S,u=s,S=x,s=o+Q+g(x=M+X|0,M)|0,o=i,M=k,i=r,k=_,r=n,_=w,n=Q+et+g(w=X+tt|0,X)|0}this._al=this._al+w|0,this._bl=this._bl+_|0,this._cl=this._cl+k|0,this._dl=this._dl+M|0,this._el=this._el+x|0,this._fl=this._fl+S|0,this._gl=this._gl+C|0,this._hl=this._hl+A|0,this._ah=this._ah+n+g(this._al,w)|0,this._bh=this._bh+r+g(this._bl,_)|0,this._ch=this._ch+i+g(this._cl,k)|0,this._dh=this._dh+o+g(this._dl,M)|0,this._eh=this._eh+s+g(this._el,x)|0,this._fh=this._fh+u+g(this._fl,S)|0,this._gh=this._gh+b+g(this._gl,C)|0,this._hh=this._hh+y+g(this._hl,A)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},function(t,e,n){"use strict";var r=n(2),i=n(345),o=n(20),a=n(4).Buffer,s=n(155),u=n(76),l=n(77),c=a.alloc(128);function f(t,e){o.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var n="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>n)?e=("rmd160"===t?new u:l(t)).update(e).digest():e.length<n&&(e=a.concat([e,c],n));for(var r=this._ipad=a.allocUnsafe(n),i=this._opad=a.allocUnsafe(n),s=0;s<n;s++)r[s]=54^e[s],i[s]=92^e[s];this._hash="rmd160"===t?new u:l(t),this._hash.update(r)}r(f,o),f.prototype._update=function(t){this._hash.update(t)},f.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new u:l(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new f("rmd160",e):"md5"===t?new i(s,e):new f(t,e)}},function(t,e,n){var r=n(74);t.exports=function(t){return(new r).update(t).digest()}},function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(t,e,n){e.pbkdf2=n(347),e.pbkdf2Sync=n(160)},function(t,e){var n=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>n||e!=e)throw new TypeError("Bad key length")}},function(t,e,n){(function(e){var n;if(e.browser)n="utf-8";else if(e.version){n=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";t.exports=n}).call(this,n(5))},function(t,e,n){var r=n(155),i=n(76),o=n(77),a=n(4).Buffer,s=n(158),u=n(159),l=n(161),c=a.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(t,e,n){var s=function(t){function e(e){return o(t).update(e).digest()}return"rmd160"===t||"ripemd160"===t?function(t){return(new i).update(t).digest()}:"md5"===t?r:e}(t),u="sha512"===t||"sha384"===t?128:64;e.length>u?e=s(e):e.length<u&&(e=a.concat([e,c],u));for(var l=a.allocUnsafe(u+f[t]),d=a.allocUnsafe(u+f[t]),h=0;h<u;h++)l[h]=54^e[h],d[h]=92^e[h];var p=a.allocUnsafe(u+n+4);l.copy(p,0,0,u),this.ipad1=p,this.ipad2=l,this.opad=d,this.alg=t,this.blocksize=u,this.hash=s,this.size=f[t]}d.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,n,r,i){s(n,r);var o=new d(i=i||"sha1",t=l(t,u,"Password"),(e=l(e,u,"Salt")).length),c=a.allocUnsafe(r),h=a.allocUnsafe(e.length+4);e.copy(h,0,0,e.length);for(var p=0,m=f[i],v=Math.ceil(r/m),g=1;g<=v;g++){h.writeUInt32BE(g,e.length);for(var b=o.run(h,o.ipad1),y=b,w=1;w<n;w++){y=o.run(y,o.ipad2);for(var _=0;_<m;_++)b[_]^=y[_]}b.copy(c,p),p+=m}return c}},function(t,e,n){var r=n(4).Buffer;t.exports=function(t,e,n){if(r.isBuffer(t))return t;if("string"==typeof t)return r.from(t,e);if(ArrayBuffer.isView(t))return r.from(t.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},function(t,e,n){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,r){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}n[r+0]=i>>>0,n[r+1]=o>>>0},e.rip=function(t,e,n,r){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.pc1=function(t,e,n,r){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;n[r+0]=i>>>0,n[r+1]=o>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var r=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,n,i){for(var o=0,a=0,s=r.length>>>1,u=0;u<s;u++)o<<=1,o|=t>>>r[u]&1;for(u=s;u<r.length;u++)a<<=1,a|=e>>>r[u]&1;n[i+0]=o>>>0,n[i+1]=a>>>0},e.expand=function(t,e,n){var r=0,i=0;r=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)r<<=6,r|=t>>>o&63;for(o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[n+0]=r>>>0,e[n+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var n=0,r=0;r<4;r++){n<<=4,n|=i[64*r+(t>>>18-6*r&63)]}for(r=0;r<4;r++){n<<=4,n|=i[256+64*r+(e>>>18-6*r&63)]}return n>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,n=0;n<o.length;n++)e<<=1,e|=t>>>o[n]&1;return e>>>0},e.padSplit=function(t,e,n){for(var r=t.toString(2);r.length<e;)r="0"+r;for(var i=[],o=0;o<e;o+=n)i.push(r.slice(o,o+n));return i.join(" ")}},function(t,e,n){"use strict";var r=n(12),i=n(2),o=n(162),a=n(78);function s(){this.tmp=new Array(2),this.keys=null}function u(t){a.call(this,t);var e=new s;this._desState=e,this.deriveKeys(e,t.key)}i(u,a),t.exports=u,u.create=function(t){return new u(t)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(t,e){t.keys=new Array(32),r.equal(e.length,this.blockSize,"Invalid key length");var n=o.readUInt32BE(e,0),i=o.readUInt32BE(e,4);o.pc1(n,i,t.tmp,0),n=t.tmp[0],i=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var s=l[a>>>1];n=o.r28shl(n,s),i=o.r28shl(i,s),o.pc2(n,i,t.keys,a)}},u.prototype._update=function(t,e,n,r){var i=this._desState,a=o.readUInt32BE(t,e),s=o.readUInt32BE(t,e+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(n,a,r),o.writeUInt32BE(n,s,r+4)},u.prototype._pad=function(t,e){for(var n=t.length-e,r=e;r<t.length;r++)t[r]=n;return!0},u.prototype._unpad=function(t){for(var e=t[t.length-1],n=t.length-e;n<t.length;n++)r.equal(t[n],e);return t.slice(0,t.length-e)},u.prototype._encrypt=function(t,e,n,r,i){for(var a=e,s=n,u=0;u<t.keys.length;u+=2){var l=t.keys[u],c=t.keys[u+1];o.expand(s,t.tmp,0),l^=t.tmp[0],c^=t.tmp[1];var f=o.substitute(l,c),d=s;s=(a^o.permute(f))>>>0,a=d}o.rip(s,a,r,i)},u.prototype._decrypt=function(t,e,n,r,i){for(var a=n,s=e,u=t.keys.length-2;u>=0;u-=2){var l=t.keys[u],c=t.keys[u+1];o.expand(a,t.tmp,0),l^=t.tmp[0],c^=t.tmp[1];var f=o.substitute(l,c),d=a;a=(s^o.permute(f))>>>0,s=d}o.rip(a,s,r,i)}},function(t,e,n){var r=n(36),i=n(4).Buffer,o=n(165);function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}e.encrypt=function(t,e){var n=Math.ceil(e.length/16),o=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var u=a(t),l=o+16*s;t._cache.writeUInt32BE(u[0],l+0),t._cache.writeUInt32BE(u[1],l+4),t._cache.writeUInt32BE(u[2],l+8),t._cache.writeUInt32BE(u[3],l+12)}var c=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),r(e,c)}},function(t,e){t.exports=function(t){for(var e,n=t.length;n--;){if(255!==(e=t.readUInt8(n))){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}}},function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(t,e,n){var r=n(46),i=n(4).Buffer,o=n(20),a=n(2),s=n(360),u=n(36),l=n(165);function c(t,e,n,a){o.call(this);var u=i.alloc(4,0);this._cipher=new r.AES(e);var c=this._cipher.encryptBlock(u);this._ghash=new s(c),n=function(t,e,n){if(12===e.length)return t._finID=i.concat([e,i.from([0,0,0,1])]),i.concat([e,i.from([0,0,0,2])]);var r=new s(n),o=e.length,a=o%16;r.update(e),a&&(a=16-a,r.update(i.alloc(a,0))),r.update(i.alloc(8,0));var u=8*o,c=i.alloc(8);c.writeUIntBE(u,0,8),r.update(c),t._finID=r.state;var f=i.from(t._finID);return l(f),f}(this,n,c),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(c,o),c.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=i.alloc(e,0),this._ghash.update(e))}this._called=!0;var n=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(n),this._len+=t.length,n},c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var n=0;t.length!==e.length&&n++;for(var r=Math.min(t.length,e.length),i=0;i<r;++i)n+=t[i]^e[i];return n}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},c.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},c.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},c.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=c},function(t,e,n){var r=n(46),i=n(4).Buffer,o=n(20);function a(t,e,n,a){o.call(this),this._cipher=new r.AES(e),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=t}n(2)(a,o),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},function(t,e,n){var r=n(24);t.exports=b,b.simpleSieve=v,b.fermatTest=g;var i=n(170),o=new i(24),a=new(n(171)),s=new i(1),u=new i(2),l=new i(5),c=(new i(16),new i(8),new i(10)),f=new i(3),d=(new i(7),new i(11)),h=new i(4),p=(new i(12),null);function m(){if(null!==p)return p;var t=[];t[0]=2;for(var e=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<e&&t[i]<=r&&n%t[i]!=0;i++);e!==i&&t[i]<=r||(t[e++]=n)}return p=t,t}function v(t){for(var e=m(),n=0;n<e.length;n++)if(0===t.modn(e[n]))return 0===t.cmpn(e[n]);return!0}function g(t){var e=i.mont(t);return 0===u.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function b(t,e){if(t<16)return new i(2===e||5===e?[140,123]:[140,39]);var n,p;for(e=new i(e);;){for(n=new i(r(Math.ceil(t/8)));n.bitLength()>t;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(u),e.cmp(u)){if(!e.cmp(l))for(;n.mod(c).cmp(f);)n.iadd(h)}else for(;n.mod(o).cmp(d);)n.iadd(h);if(v(p=n.shrn(1))&&v(n)&&g(p)&&g(n)&&a.test(p)&&a.test(n))return n}}},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(364).Buffer}catch(t){}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c<s;c+=r)l=u(t,c,c+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=u(t,c,t.length,e),c=0;c<a;c++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var c=u>>>26,f=67108863&u,d=Math.min(l,e.length-1),h=Math.max(0,l-t.length+1);h<=d;h++){var p=l-h|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[h])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=c[t],h=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(t);n=(p=p.idivn(h)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var h=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,_=y>>>13,k=0|a[4],M=8191&k,x=k>>>13,S=0|a[5],C=8191&S,A=S>>>13,T=0|a[6],E=8191&T,O=T>>>13,P=0|a[7],I=8191&P,R=P>>>13,j=0|a[8],D=8191&j,N=j>>>13,L=0|a[9],B=8191&L,z=L>>>13,F=0|s[0],q=8191&F,V=F>>>13,$=0|s[1],H=8191&$,U=$>>>13,W=0|s[2],K=8191&W,Y=W>>>13,G=0|s[3],Z=8191&G,J=G>>>13,X=0|s[4],Q=8191&X,tt=X>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ft=8191&ct,dt=ct>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,V))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,V))+Math.imul(m,q)|0,o=Math.imul(m,V);var gt=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,U)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,U)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,q),i=(i=Math.imul(g,V))+Math.imul(b,q)|0,o=Math.imul(b,V),r=r+Math.imul(p,H)|0,i=(i=i+Math.imul(p,U)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,U)|0;var bt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,K)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,V))+Math.imul(_,q)|0,o=Math.imul(_,V),r=r+Math.imul(g,H)|0,i=(i=i+Math.imul(g,U)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,U)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Y)|0;var yt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,Z)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,V))+Math.imul(x,q)|0,o=Math.imul(x,V),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,U)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,U)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0;var wt=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,V))+Math.imul(A,q)|0,o=Math.imul(A,V),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,U)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,U)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(d,nt)|0))<<13)|0;l=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,V))+Math.imul(O,q)|0,o=Math.imul(O,V),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,U)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,U)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,r=r+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var kt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(d,ot)|0))<<13)|0;l=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(I,q),i=(i=Math.imul(I,V))+Math.imul(R,q)|0,o=Math.imul(R,V),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,U)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,U)|0,r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(l+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(d,ut)|0))<<13)|0;l=((o=o+Math.imul(d,lt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,V))+Math.imul(N,q)|0,o=Math.imul(N,V),r=r+Math.imul(I,H)|0,i=(i=i+Math.imul(I,U)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,U)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0;var xt=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,dt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,V))+Math.imul(z,q)|0,o=Math.imul(z,V),r=r+Math.imul(D,H)|0,i=(i=i+Math.imul(D,U)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,U)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,H),i=(i=Math.imul(B,U))+Math.imul(z,H)|0,o=Math.imul(z,U),r=r+Math.imul(D,K)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0;var Ct=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,K),i=(i=Math.imul(B,Y))+Math.imul(z,K)|0,o=Math.imul(z,Y),r=r+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,lt)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,dt)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0;var At=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(B,Z),i=(i=Math.imul(B,J))+Math.imul(z,Z)|0,o=Math.imul(z,J),r=r+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,lt)|0,r=r+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,dt)|0;var Tt=(l+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,tt))+Math.imul(z,Q)|0,o=Math.imul(z,tt),r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,lt)|0,r=r+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0;var Et=(l+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(z,nt)|0,o=Math.imul(z,rt),r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,lt)|0,r=r+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,dt)|0)+Math.imul(O,ft)|0,o=o+Math.imul(O,dt)|0;var Ot=(l+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,lt)|0,r=r+Math.imul(I,ft)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0;var Pt=(l+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(O,pt)|0))<<13)|0;l=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,lt))+Math.imul(z,ut)|0,o=Math.imul(z,lt),r=r+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(N,ft)|0,o=o+Math.imul(N,dt)|0;var It=(l+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(R,pt)|0))<<13)|0;l=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(B,ft),i=(i=Math.imul(B,dt))+Math.imul(z,ft)|0,o=Math.imul(z,dt);var Rt=(l+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,mt)|0)+Math.imul(N,pt)|0))<<13)|0;l=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(l+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(z,pt)|0))<<13)|0;return l=((o=Math.imul(z,mt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=xt,u[9]=St,u[10]=Ct,u[11]=At,u[12]=Tt,u[13]=Et,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=Rt,u[18]=jt,0!==l&&(u[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(h=d),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?h(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=u;l++){var c=o-l,f=(0|t.words[c])*(0|e.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},m.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=u,d=l,h=0;h<a;h++){var p=n[c+h],m=r[c+h],v=n[c+h+a],g=r[c+h+a],b=f*v-d*g;g=f*g+d*v,v=b,n[c+h]=p+v,r[c+h]=m+g,n[c+h+a]=p-v,r[c+h+a]=m-g,h!==s&&(b=u*f-l*d,d=u*d+l*f,f=b)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},m.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),l=new Array(r),c=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,l,r),this.transform(a,o,s,u,r,i),this.transform(l,o,c,f,r,i);for(var h=0;h<r;h++){var p=s[h]*c[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var l=0;l<a;l++)u.words[l]=this.words[l];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=r.clone()._ishlnsubmul(i,1,u);0===c.negative&&(r=c,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=e.clone();!e.isZero();){for(var d=0,h=1;0==(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0==(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function M(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(b,g),b.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(y,g),i(w,g),i(_,g),_.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return v[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;0!==h.cmp(s);){for(var m=h,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new o(1).iushln(p-v-1));d=d.redMul(g),f=g.redSqr(),h=h.redMul(f),p=v}return d},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),r=e.length-1;r>=0;r--){for(var l=e.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new M(t)},i(M,k),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(14)(t))},function(t,e,n){var r=n(365),i=n(81);function o(t){this.rand=t||new i.Rand}t.exports=o,o.create=function(t){return new o(t)},o.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(t)>=0);return i},o.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},o.prototype.test=function(t,e,n){var i=t.bitLength(),o=r.mont(t),a=new r(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var l=t.shrn(u),c=s.toRed(o);e>0;e--){var f=this._randrange(new r(2),s);n&&n(f);var d=f.toRed(o).redPow(l);if(0!==d.cmp(a)&&0!==d.cmp(c)){for(var h=1;h<u;h++){if(0===(d=d.redSqr()).cmp(a))return!1;if(0===d.cmp(c))break}if(h===u)return!1}}return!0},o.prototype.getDivisor=function(t,e){var n=t.bitLength(),i=r.mont(t),o=new r(1).toRed(i);e||(e=Math.max(1,n/48|0));for(var a=t.subn(1),s=0;!a.testn(s);s++);for(var u=t.shrn(s),l=a.toRed(i);e>0;e--){var c=this._randrange(new r(2),a),f=t.gcd(c);if(0!==f.cmpn(1))return f;var d=c.toRed(i).redPow(u);if(0!==d.cmp(o)&&0!==d.cmp(l)){for(var h=1;h<s;h++){if(0===(d=d.redSqr()).cmp(o))return d.fromRed().subn(1).gcd(t);if(0===d.cmp(l))break}if(h===s)return(d=d.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},function(t,e,n){"use strict";(function(e,r){var i;t.exports=S,S.ReadableState=x;n(15).EventEmitter;var o=function(t,e){return t.listeners(e).length},a=n(173),s=n(6).Buffer,u=e.Uint8Array||function(){};var l,c=n(372);l=c&&c.debuglog?c.debuglog("stream"):function(){};var f,d,h,p=n(373),m=n(174),v=n(175).getHighWaterMark,g=n(28).codes,b=g.ERR_INVALID_ARG_TYPE,y=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,_=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(2)(S,a);var k=m.errorOrDestroy,M=["error","close","destroy","pause","resume"];function x(t,e,r){i=i||n(29),t=t||{},"boolean"!=typeof r&&(r=e instanceof i),this.objectMode=!!t.objectMode,r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=v(this,t,"readableHighWaterMark",r),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(f||(f=n(22).StringDecoder),this.decoder=new f(t.encoding),this.encoding=t.encoding)}function S(t){if(i=i||n(29),!(this instanceof S))return new S(t);var e=this instanceof i;this._readableState=new x(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function C(t,e,n,r,i){l("readableAddChunk",e);var o,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(l("onEofChunk"),e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?E(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,O(t)))}(t,a);else if(i||(o=function(t,e){var n;r=e,s.isBuffer(r)||r instanceof u||"string"==typeof e||void 0===e||t.objectMode||(n=new b("chunk",["string","Buffer","Uint8Array"],e));var r;return n}(a,e)),o)k(t,o);else if(a.objectMode||e&&e.length>0)if("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),r)a.endEmitted?k(t,new _):A(t,a,e,!0);else if(a.ended)k(t,new y);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?A(t,a,e,!1):P(t,a)):A(t,a,e,!1)}else r||(a.reading=!1,P(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function A(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&E(t)),P(t,e)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),S.prototype.destroy=m.destroy,S.prototype._undestroy=m.undestroy,S.prototype._destroy=function(t,e){e(t)},S.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&((e=e||r.defaultEncoding)!==r.encoding&&(t=s.from(t,e),e=""),n=!0),C(this,t,e,!1,n)},S.prototype.unshift=function(t){return C(this,t,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(t){f||(f=n(22).StringDecoder);var e=new f(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=e.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};function T(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function E(t){var e=t._readableState;l("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(l("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(O,t))}function O(t){var e=t._readableState;l("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,N(t)}function P(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(I,t,e))}function I(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var n=e.length;if(l("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function R(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function j(t){l("readable nexttick read 0"),t.read(0)}function D(t,e){l("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(l("flow",e.flowing);e.flowing&&null!==t.read(););}function L(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function B(t){var e=t._readableState;l("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(z,e,t))}function z(t,e){if(l("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function F(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}S.prototype.read=function(t){l("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return l("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?B(this):E(this),null;if(0===(t=T(t,e))&&e.ended)return 0===e.length&&B(this),null;var r,i=e.needReadable;return l("need readable",i),(0===e.length||e.length-t<e.highWaterMark)&&l("length less than watermark",i=!0),e.ended||e.reading?l("reading or ended",i=!1):i&&(l("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=T(n,e))),null===(r=t>0?L(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&B(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(t){k(this,new w("_read()"))},S.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,l("pipe count=%d opts=%j",i.pipesCount,e);var a=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr?u:v;function s(e,r){l("onunpipe"),e===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,l("cleanup"),t.removeListener("close",p),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",h),t.removeListener("unpipe",s),n.removeListener("end",u),n.removeListener("end",v),n.removeListener("data",d),f=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}function u(){l("onend"),t.end()}i.endEmitted?r.nextTick(a):n.once("end",a),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;l("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,N(t))}}(n);t.on("drain",c);var f=!1;function d(e){l("ondata");var r=t.write(e);l("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==F(i.pipes,t))&&!f&&(l("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function h(e){l("onerror",e),v(),t.removeListener("error",h),0===o(t,"error")&&k(t,e)}function p(){t.removeListener("finish",m),v()}function m(){l("onfinish"),t.removeListener("close",p),v()}function v(){l("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",h),t.once("close",p),t.once("finish",m),t.emit("pipe",n),i.flowing||(l("pipe resume"),n.resume()),t},S.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},S.prototype.on=function(t,e){var n=a.prototype.on.call(this,t,e),i=this._readableState;return"data"===t?(i.readableListening=this.listenerCount("readable")>0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,l("on readable",i.length,i.reading),i.length?E(this):i.reading||r.nextTick(j,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(R,this),n},S.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(R,this),e},S.prototype.resume=function(){var t=this._readableState;return t.flowing||(l("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(D,t,e))}(this,t)),t.paused=!1,this},S.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(l("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){(l("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<M.length;o++)t.on(M[o],this.emit.bind(this,M[o]));return this._read=function(e){l("wrapped _read",e),r&&(r=!1,t.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(375)),d(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),S._fromList=L,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(t,e){return void 0===h&&(h=n(376)),h(S,t,e)})}).call(this,n(7),n(5))},function(t,e,n){t.exports=n(15).EventEmitter},function(t,e,n){"use strict";(function(e){function n(t,e){i(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,o){var a=this,s=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return s||u?(o?o(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(i,this,t)):e.nextTick(i,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!o&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(r,a):(a._writableState.errorEmitted=!0,e.nextTick(n,a,t)):e.nextTick(n,a,t):o?(e.nextTick(r,a),o(t)):e.nextTick(r,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,n(5))},function(t,e,n){"use strict";var r=n(28).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,i){var o=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,i,n);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new r(i?n:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var r=t.entry;t.entry=null;for(;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}var o;t.exports=S,S.WritableState=x;var a={deprecate:n(73)},s=n(173),u=n(6).Buffer,l=e.Uint8Array||function(){};var c,f=n(174),d=n(175).getHighWaterMark,h=n(28).codes,p=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,v=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,y=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,_=h.ERR_UNKNOWN_ENCODING,k=f.errorOrDestroy;function M(){}function x(t,e,a){o=o||n(29),t=t||{},"boolean"!=typeof a&&(a=e instanceof o),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=d(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if("function"!=typeof o)throw new v;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(P,t,e),t._writableState.errorEmitted=!0,k(t,i)):(o(i),t._writableState.errorEmitted=!0,k(t,i),P(t,e))}(t,n,i,e,o);else{var a=E(n)||t.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||T(t,n),i?r.nextTick(A,t,n,a,o):A(t,n,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function S(t){var e=this instanceof(o=o||n(29));if(!e&&!c.call(S,this))return new S(t);this._writableState=new x(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),s.call(this)}function C(t,e,n,r,i,o,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new b("write")):n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function A(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),P(t,e)}function T(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),a=e.corkedRequestsFree;a.entry=n;for(var s=0,u=!0;n;)o[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;o.allBuffers=u,C(t,e,!0,e.length,o,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,f=n.callback;if(C(t,e,!1,e.objectMode?1:l.length,l,c,f),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function E(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function O(t,e){t._final((function(n){e.pendingcb--,n&&k(t,n),e.prefinished=!0,t.emit("prefinish"),P(t,e)}))}function P(t,e){var n=E(e);if(n&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,r.nextTick(O,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&&i.endEmitted)&&t.destroy()}return n}n(2)(S,s),x.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(x.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===S&&(t&&t._writableState instanceof x)}})):c=function(t){return t instanceof this},S.prototype.pipe=function(){k(this,new g)},S.prototype.write=function(t,e,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,u.isBuffer(i)||i instanceof l);return s&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(n=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof n&&(n=M),o.ending?function(t,e){var n=new w;k(t,n),r.nextTick(e,n)}(this,n):(s||function(t,e,n,i){var o;return null===n?o=new y:"string"==typeof n||e.objectMode||(o=new p("chunk",["string","Buffer"],n)),!o||(k(t,o),r.nextTick(i,o),!1)}(this,o,t,n))&&(o.pendingcb++,a=function(t,e,n,r,i,o){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,n));return e}(e,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=e.objectMode?1:r.length;e.length+=s;var l=e.length<e.highWaterMark;l||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else C(t,e,!1,s,r,i,o);return l}(this,o,s,t,e,n)),a},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||T(this,t))},S.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(t,e,n){n(new m("_write()"))},S.prototype._writev=null,S.prototype.end=function(t,e,n){var i=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,n){e.ending=!0,P(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),S.prototype.destroy=f.destroy,S.prototype._undestroy=f.undestroy,S.prototype._destroy=function(t,e){e(t)}}).call(this,n(7),n(5))},function(t,e,n){"use strict";t.exports=c;var r=n(28).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(29);function l(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);u.call(this,t),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",f)}function f(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(e,n){d(t,e,n)}))}function d(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}n(2)(c,u),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,n){n(new i("_transform()"))},c.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,n){"use strict";var r=e;function i(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",n=0;n<t.length;n++)e+=i(t[n].toString(16));return e}r.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"!=typeof t){for(var r=0;r<t.length;r++)n[r]=0|t[r];return n}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t);for(r=0;r<t.length;r+=2)n.push(parseInt(t[r]+t[r+1],16))}else for(r=0;r<t.length;r++){var i=t.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n},r.zero2=i,r.toHex=o,r.encode=function(t,e){return"hex"===e?o(t):t}},function(t,e,n){"use strict";var r=e;r.base=n(48),r.short=n(384),r.mont=n(385),r.edwards=n(386)},function(t,e,n){"use strict";var r=n(16).rotr32;function i(t,e,n){return t&e^~t&n}function o(t,e,n){return t&e^t&n^e&n}function a(t,e,n){return t^e^n}e.ft_1=function(t,e,n,r){return 0===t?i(e,n,r):1===t||3===t?a(e,n,r):2===t?o(e,n,r):void 0},e.ch32=i,e.maj32=o,e.p32=a,e.s0_256=function(t){return r(t,2)^r(t,13)^r(t,22)},e.s1_256=function(t){return r(t,6)^r(t,11)^r(t,25)},e.g0_256=function(t){return r(t,7)^r(t,18)^t>>>3},e.g1_256=function(t){return r(t,17)^r(t,19)^t>>>10}},function(t,e,n){"use strict";var r=n(16),i=n(37),o=n(180),a=n(12),s=r.sum32,u=r.sum32_4,l=r.sum32_5,c=o.ch32,f=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,m=o.g1_256,v=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;v.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}r.inherits(b,v),t.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=u(m(n[r-2]),n[r-7],p(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],v=this.h[2],g=this.h[3],b=this.h[4],y=this.h[5],w=this.h[6],_=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var k=l(_,h(b),c(b,y,w),this.k[r],n[r]),M=s(d(i),f(i,o,v));_=w,w=y,y=b,b=s(g,k),g=v,v=o,o=i,i=s(k,M)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],v),this.h[3]=s(this.h[3],g),this.h[4]=s(this.h[4],b),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],_)},b.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(t,e,n){"use strict";var r=n(16),i=n(37),o=n(12),a=r.rotr64_hi,s=r.rotr64_lo,u=r.shr64_hi,l=r.shr64_lo,c=r.sum64,f=r.sum64_hi,d=r.sum64_lo,h=r.sum64_4_hi,p=r.sum64_4_lo,m=r.sum64_5_hi,v=r.sum64_5_lo,g=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function w(t,e,n,r,i){var o=t&n^~t&i;return o<0&&(o+=4294967296),o}function _(t,e,n,r,i,o){var a=e&r^~e&o;return a<0&&(a+=4294967296),a}function k(t,e,n,r,i){var o=t&n^t&i^n&i;return o<0&&(o+=4294967296),o}function M(t,e,n,r,i,o){var a=e&r^e&o^r&o;return a<0&&(a+=4294967296),a}function x(t,e){var n=a(t,e,28)^a(e,t,2)^a(e,t,7);return n<0&&(n+=4294967296),n}function S(t,e){var n=s(t,e,28)^s(e,t,2)^s(e,t,7);return n<0&&(n+=4294967296),n}function C(t,e){var n=a(t,e,14)^a(t,e,18)^a(e,t,9);return n<0&&(n+=4294967296),n}function A(t,e){var n=s(t,e,14)^s(t,e,18)^s(e,t,9);return n<0&&(n+=4294967296),n}function T(t,e){var n=a(t,e,1)^a(t,e,8)^u(t,e,7);return n<0&&(n+=4294967296),n}function E(t,e){var n=s(t,e,1)^s(t,e,8)^l(t,e,7);return n<0&&(n+=4294967296),n}function O(t,e){var n=a(t,e,19)^a(e,t,29)^u(t,e,6);return n<0&&(n+=4294967296),n}function P(t,e){var n=s(t,e,19)^s(e,t,29)^l(t,e,6);return n<0&&(n+=4294967296),n}r.inherits(y,g),t.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(t,e){for(var n=this.W,r=0;r<32;r++)n[r]=t[e+r];for(;r<n.length;r+=2){var i=O(n[r-4],n[r-3]),o=P(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],u=T(n[r-30],n[r-29]),l=E(n[r-30],n[r-29]),c=n[r-32],f=n[r-31];n[r]=h(i,o,a,s,u,l,c,f),n[r+1]=p(i,o,a,s,u,l,c,f)}},y.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,r=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],l=this.h[5],h=this.h[6],p=this.h[7],g=this.h[8],b=this.h[9],y=this.h[10],T=this.h[11],E=this.h[12],O=this.h[13],P=this.h[14],I=this.h[15];o(this.k.length===n.length);for(var R=0;R<n.length;R+=2){var j=P,D=I,N=C(g,b),L=A(g,b),B=w(g,b,y,T,E),z=_(g,b,y,T,E,O),F=this.k[R],q=this.k[R+1],V=n[R],$=n[R+1],H=m(j,D,N,L,B,z,F,q,V,$),U=v(j,D,N,L,B,z,F,q,V,$);j=x(r,i),D=S(r,i),N=k(r,i,a,s,u),L=M(r,i,a,s,u,l);var W=f(j,D,N,L),K=d(j,D,N,L);P=E,I=O,E=y,O=T,y=g,T=b,g=f(h,p,H,U),b=d(p,p,H,U),h=u,p=l,u=a,l=s,a=r,s=i,r=f(H,U,W,K),i=d(H,U,W,K)}c(this.h,0,r,i),c(this.h,2,a,s),c(this.h,4,u,l),c(this.h,6,h,p),c(this.h,8,g,b),c(this.h,10,y,T),c(this.h,12,E,O),c(this.h,14,P,I)},y.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(401).Buffer}catch(t){}function s(t,e,n){for(var i=0,o=Math.min(t.length,n),a=0,s=e;s<o;s++){var u,l=t.charCodeAt(s)-48;i<<=4,i|=u=l>=49&&l<=54?l-49+10:l>=17&&l<=22?l-17+10:l,a|=u}return r(!(240&a),"Invalid character in "+t),i}function u(t,e,n,i){for(var o=0,a=0,s=Math.min(t.length,n),u=e;u<s;u++){var l=t.charCodeAt(u)-48;o*=i,a=l>=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&a<i,"Invalid character"),o+=a}return o}function l(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this._strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c<s;c+=r)l=u(t,c,c+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=u(t,c,t.length,e),c=0;c<a;c++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype._move=function(t){l(t,this)},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(t){o.prototype.inspect=c}else o.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=d[t],c=h[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(t);n=(p=p.idivn(c)).isZero()?m+n:f[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var c=u>>>26,f=67108863&u,d=Math.min(l,e.length-1),h=Math.max(0,l-t.length+1);h<=d;h++){var p=l-h|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[h])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n._strip()}o.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;t[n++]=255&a,n<t.length&&(t[n++]=a>>8&255),n<t.length&&(t[n++]=a>>16&255),6===o?(n<t.length&&(t[n++]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n<t.length)for(t[n++]=r;n<t.length;)t[n++]=0},o.prototype._toArrayLikeBE=function(t,e){for(var n=t.length-1,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;t[n--]=255&a,n>=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this._strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this._strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,_=y>>>13,k=0|a[4],M=8191&k,x=k>>>13,S=0|a[5],C=8191&S,A=S>>>13,T=0|a[6],E=8191&T,O=T>>>13,P=0|a[7],I=8191&P,R=P>>>13,j=0|a[8],D=8191&j,N=j>>>13,L=0|a[9],B=8191&L,z=L>>>13,F=0|s[0],q=8191&F,V=F>>>13,$=0|s[1],H=8191&$,U=$>>>13,W=0|s[2],K=8191&W,Y=W>>>13,G=0|s[3],Z=8191&G,J=G>>>13,X=0|s[4],Q=8191&X,tt=X>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ft=8191&ct,dt=ct>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,V))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,V))+Math.imul(m,q)|0,o=Math.imul(m,V);var gt=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,U)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,U)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,q),i=(i=Math.imul(g,V))+Math.imul(b,q)|0,o=Math.imul(b,V),r=r+Math.imul(p,H)|0,i=(i=i+Math.imul(p,U)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,U)|0;var bt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,K)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,V))+Math.imul(_,q)|0,o=Math.imul(_,V),r=r+Math.imul(g,H)|0,i=(i=i+Math.imul(g,U)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,U)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Y)|0;var yt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,Z)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,V))+Math.imul(x,q)|0,o=Math.imul(x,V),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,U)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,U)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0;var wt=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,V))+Math.imul(A,q)|0,o=Math.imul(A,V),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,U)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,U)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(d,nt)|0))<<13)|0;l=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,V))+Math.imul(O,q)|0,o=Math.imul(O,V),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,U)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,U)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,r=r+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var kt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(d,ot)|0))<<13)|0;l=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(I,q),i=(i=Math.imul(I,V))+Math.imul(R,q)|0,o=Math.imul(R,V),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,U)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,U)|0,r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(l+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(d,ut)|0))<<13)|0;l=((o=o+Math.imul(d,lt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,V))+Math.imul(N,q)|0,o=Math.imul(N,V),r=r+Math.imul(I,H)|0,i=(i=i+Math.imul(I,U)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,U)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0;var xt=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,dt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,V))+Math.imul(z,q)|0,o=Math.imul(z,V),r=r+Math.imul(D,H)|0,i=(i=i+Math.imul(D,U)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,U)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,H),i=(i=Math.imul(B,U))+Math.imul(z,H)|0,o=Math.imul(z,U),r=r+Math.imul(D,K)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0;var Ct=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,K),i=(i=Math.imul(B,Y))+Math.imul(z,K)|0,o=Math.imul(z,Y),r=r+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,lt)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,dt)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0;var At=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(B,Z),i=(i=Math.imul(B,J))+Math.imul(z,Z)|0,o=Math.imul(z,J),r=r+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,lt)|0,r=r+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,dt)|0;var Tt=(l+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,tt))+Math.imul(z,Q)|0,o=Math.imul(z,tt),r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,lt)|0,r=r+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0;var Et=(l+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(z,nt)|0,o=Math.imul(z,rt),r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,lt)|0,r=r+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,dt)|0)+Math.imul(O,ft)|0,o=o+Math.imul(O,dt)|0;var Ot=(l+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,lt)|0,r=r+Math.imul(I,ft)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0;var Pt=(l+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(O,pt)|0))<<13)|0;l=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,lt))+Math.imul(z,ut)|0,o=Math.imul(z,lt),r=r+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(N,ft)|0,o=o+Math.imul(N,dt)|0;var It=(l+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(R,pt)|0))<<13)|0;l=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(B,ft),i=(i=Math.imul(B,dt))+Math.imul(z,ft)|0,o=Math.imul(z,dt);var Rt=(l+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,mt)|0)+Math.imul(N,pt)|0))<<13)|0;l=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(l+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(z,pt)|0))<<13)|0;return l=((o=Math.imul(z,mt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=xt,u[9]=St,u[10]=Ct,u[11]=At,u[12]=Tt,u[13]=Et,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=Rt,u[18]=jt,0!==l&&(u[19]=l,n.length++),n};function v(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=u;l++){var c=o-l,f=(0|t.words[c])*(0|e.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return v(t,e,n)}function b(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?v(this,t,e):g(this,t,e)},b.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},b.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},b.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},b.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=u,d=l,h=0;h<a;h++){var p=n[c+h],m=r[c+h],v=n[c+h+a],g=r[c+h+a],b=f*v-d*g;g=f*g+d*v,v=b,n[c+h]=p+v,r[c+h]=m+g,n[c+h+a]=p-v,r[c+h+a]=m-g,h!==s&&(b=u*f-l*d,d=u*d+l*f,f=b)}},b.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},b.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},b.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},b.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},b.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},b.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),l=new Array(r),c=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,l,r),this.transform(a,o,s,u,r,i),this.transform(l,o,c,f,r,i);for(var h=0;h<r;h++){var p=s[h]*c[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n._strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),g(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*t,a=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=t.words[r]>>>i&1}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var l=0;l<a;l++)u.words[l]=this.words[l];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=r.clone()._ishlnsubmul(i,1,u);0===c.negative&&(r=c,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=e.clone();!e.isZero();){for(var d=0,h=1;0==(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0==(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(_,w),_.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},_.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(k,w),i(M,w),i(x,w),x.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new _;else if("p224"===t)e=new k;else if("p192"===t)e=new M;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},S.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;0!==h.cmp(s);){for(var m=h,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new o(1).iushln(p-v-1));d=d.redMul(g),f=g.redSqr(),h=h.redMul(f),p=v}return d},S.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},S.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),r=e.length-1;r>=0;r--){for(var l=e.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new C(t)},i(C,S),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(14)(t))},function(t,e,n){"use strict";const r=e;r.bignum=n(185),r.define=n(404).define,r.base=n(407),r.constants=n(408),r.decoders=n(188),r.encoders=n(186)},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(403).Buffer}catch(t){}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c<s;c+=r)l=u(t,c,c+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=u(t,c,t.length,e),c=0;c<a;c++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var c=u>>>26,f=67108863&u,d=Math.min(l,e.length-1),h=Math.max(0,l-t.length+1);h<=d;h++){var p=l-h|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[h])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=c[t],h=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(t);n=(p=p.idivn(h)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var h=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,_=y>>>13,k=0|a[4],M=8191&k,x=k>>>13,S=0|a[5],C=8191&S,A=S>>>13,T=0|a[6],E=8191&T,O=T>>>13,P=0|a[7],I=8191&P,R=P>>>13,j=0|a[8],D=8191&j,N=j>>>13,L=0|a[9],B=8191&L,z=L>>>13,F=0|s[0],q=8191&F,V=F>>>13,$=0|s[1],H=8191&$,U=$>>>13,W=0|s[2],K=8191&W,Y=W>>>13,G=0|s[3],Z=8191&G,J=G>>>13,X=0|s[4],Q=8191&X,tt=X>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ft=8191&ct,dt=ct>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,V))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,V))+Math.imul(m,q)|0,o=Math.imul(m,V);var gt=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,U)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,U)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,q),i=(i=Math.imul(g,V))+Math.imul(b,q)|0,o=Math.imul(b,V),r=r+Math.imul(p,H)|0,i=(i=i+Math.imul(p,U)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,U)|0;var bt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,K)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,V))+Math.imul(_,q)|0,o=Math.imul(_,V),r=r+Math.imul(g,H)|0,i=(i=i+Math.imul(g,U)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,U)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Y)|0;var yt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,Z)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,V))+Math.imul(x,q)|0,o=Math.imul(x,V),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,U)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,U)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0;var wt=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,V))+Math.imul(A,q)|0,o=Math.imul(A,V),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,U)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,U)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(d,nt)|0))<<13)|0;l=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,V))+Math.imul(O,q)|0,o=Math.imul(O,V),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,U)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,U)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,r=r+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var kt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(d,ot)|0))<<13)|0;l=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(I,q),i=(i=Math.imul(I,V))+Math.imul(R,q)|0,o=Math.imul(R,V),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,U)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,U)|0,r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(l+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(d,ut)|0))<<13)|0;l=((o=o+Math.imul(d,lt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,V))+Math.imul(N,q)|0,o=Math.imul(N,V),r=r+Math.imul(I,H)|0,i=(i=i+Math.imul(I,U)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,U)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0;var xt=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,dt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,V))+Math.imul(z,q)|0,o=Math.imul(z,V),r=r+Math.imul(D,H)|0,i=(i=i+Math.imul(D,U)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,U)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,H),i=(i=Math.imul(B,U))+Math.imul(z,H)|0,o=Math.imul(z,U),r=r+Math.imul(D,K)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0;var Ct=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,K),i=(i=Math.imul(B,Y))+Math.imul(z,K)|0,o=Math.imul(z,Y),r=r+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,lt)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,dt)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0;var At=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(B,Z),i=(i=Math.imul(B,J))+Math.imul(z,Z)|0,o=Math.imul(z,J),r=r+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,lt)|0,r=r+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,dt)|0;var Tt=(l+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,tt))+Math.imul(z,Q)|0,o=Math.imul(z,tt),r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,lt)|0,r=r+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0;var Et=(l+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(z,nt)|0,o=Math.imul(z,rt),r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,lt)|0,r=r+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,dt)|0)+Math.imul(O,ft)|0,o=o+Math.imul(O,dt)|0;var Ot=(l+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,lt)|0,r=r+Math.imul(I,ft)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0;var Pt=(l+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(O,pt)|0))<<13)|0;l=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,lt))+Math.imul(z,ut)|0,o=Math.imul(z,lt),r=r+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(N,ft)|0,o=o+Math.imul(N,dt)|0;var It=(l+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(R,pt)|0))<<13)|0;l=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(B,ft),i=(i=Math.imul(B,dt))+Math.imul(z,ft)|0,o=Math.imul(z,dt);var Rt=(l+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,mt)|0)+Math.imul(N,pt)|0))<<13)|0;l=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(l+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(z,pt)|0))<<13)|0;return l=((o=Math.imul(z,mt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=xt,u[9]=St,u[10]=Ct,u[11]=At,u[12]=Tt,u[13]=Et,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=Rt,u[18]=jt,0!==l&&(u[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(h=d),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?h(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=u;l++){var c=o-l,f=(0|t.words[c])*(0|e.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},m.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=u,d=l,h=0;h<a;h++){var p=n[c+h],m=r[c+h],v=n[c+h+a],g=r[c+h+a],b=f*v-d*g;g=f*g+d*v,v=b,n[c+h]=p+v,r[c+h]=m+g,n[c+h+a]=p-v,r[c+h+a]=m-g,h!==s&&(b=u*f-l*d,d=u*d+l*f,f=b)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},m.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),l=new Array(r),c=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,l,r),this.transform(a,o,s,u,r,i),this.transform(l,o,c,f,r,i);for(var h=0;h<r;h++){var p=s[h]*c[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var l=0;l<a;l++)u.words[l]=this.words[l];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=r.clone()._ishlnsubmul(i,1,u);0===c.negative&&(r=c,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=e.clone();!e.isZero();){for(var d=0,h=1;0==(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0==(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function M(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(b,g),b.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(y,g),i(w,g),i(_,g),_.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return v[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;0!==h.cmp(s);){for(var m=h,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new o(1).iushln(p-v-1));d=d.redMul(g),f=g.redSqr(),h=h.redMul(f),p=v}return d},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),r=e.length-1;r>=0;r--){for(var l=e.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new M(t)},i(M,k),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(14)(t))},function(t,e,n){"use strict";const r=e;r.der=n(187),r.pem=n(405)},function(t,e,n){"use strict";const r=n(2),i=n(88).Buffer,o=n(89),a=n(91);function s(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new u,this.tree._init(t.body)}function u(t){o.call(this,"der",t)}function l(t){return t<10?"0"+t:t}t.exports=s,s.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},r(u,o),u.prototype._encodeComposite=function(t,e,n,r){const o=function(t,e,n,r){let i;"seqof"===t?t="seq":"setof"===t&&(t="set");if(a.tagByName.hasOwnProperty(t))i=a.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return r.error("Unknown tag: "+t);i=t}if(i>=31)return r.error("Multi-octet tag encoding unsupported");e||(i|=32);return i|=a.tagClassByName[n||"universal"]<<6,i}(t,e,n,this.reporter);if(r.length<128){const t=i.alloc(2);return t[0]=o,t[1]=r.length,this._createEncoderBuffer([t,r])}let s=1;for(let t=r.length;t>=256;t>>=8)s++;const u=i.alloc(2+s);u[0]=o,u[1]=128|s;for(let t=1+s,e=r.length;e>0;t--,e>>=8)u[t]=255&e;return this._createEncoderBuffer([u,r])},u.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=i.alloc(2*t.length);for(let n=0;n<t.length;n++)e.writeUInt16BE(t.charCodeAt(n),2*n);return this._createEncoderBuffer(e)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},u.prototype._encodeObjid=function(t,e,n){if("string"==typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s.]+/g);for(let e=0;e<t.length;e++)t[e]|=0}else if(Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)t[e]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!n){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let r=0;for(let e=0;e<t.length;e++){let n=t[e];for(r++;n>=128;n>>=7)r++}const o=i.alloc(r);let a=o.length-1;for(let e=t.length-1;e>=0;e--){let n=t[e];for(o[a--]=127&n;(n>>=7)>0;)o[a--]=128|127&n}return this._createEncoderBuffer(o)},u.prototype._encodeTime=function(t,e){let n;const r=new Date(t);return"gentime"===e?n=[l(r.getUTCFullYear()),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[l(r.getUTCFullYear()%100),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!i.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=i.from(e)}if(i.isBuffer(t)){let e=t.length;0===t.length&&e++;const n=i.alloc(e);return t.copy(n),0===t.length&&(n[0]=0),this._createEncoderBuffer(n)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let n=1;for(let e=t;e>=256;e>>=8)n++;const r=new Array(n);for(let e=r.length-1;e>=0;e--)r[e]=255&t,t>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(i.from(r))},u.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},u.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},u.prototype._skipDefault=function(t,e,n){const r=this._baseState;let i;if(null===r.default)return!1;const o=t.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,e,n).join()),o.length!==r.defaultBuffer.length)return!1;for(i=0;i<o.length;i++)if(o[i]!==r.defaultBuffer[i])return!1;return!0}},function(t,e,n){"use strict";const r=e;r.der=n(189),r.pem=n(406)},function(t,e,n){"use strict";const r=n(2),i=n(185),o=n(38).DecoderBuffer,a=n(89),s=n(91);function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new l,this.tree._init(t.body)}function l(t){a.call(this,"der",t)}function c(t,e){let n=t.readUInt8(e);if(t.isError(n))return n;const r=s.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){let r=n;for(n=0;128==(128&r);){if(r=t.readUInt8(e),t.isError(r))return r;n<<=7,n|=127&r}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:s.tag[n]}}function f(t,e,n){let r=t.readUInt8(n);if(t.isError(r))return r;if(!e&&128===r)return null;if(0==(128&r))return r;const i=127&r;if(i>4)return t.error("length octect is too long");r=0;for(let e=0;e<i;e++){r<<=8;const e=t.readUInt8(n);if(t.isError(e))return e;r|=e}return r}t.exports=u,u.prototype.decode=function(t,e){return o.isDecoderBuffer(t)||(t=new o(t,e)),this.tree._decode(t,e)},r(l,a),l.prototype._peekTag=function(t,e,n){if(t.isEmpty())return!1;const r=t.save(),i=c(t,'Failed to peek tag: "'+e+'"');return t.isError(i)?i:(t.restore(r),i.tag===e||i.tagStr===e||i.tagStr+"of"===e||n)},l.prototype._decodeTag=function(t,e,n){const r=c(t,'Failed to decode tag of "'+e+'"');if(t.isError(r))return r;let i=f(t,r.primitive,'Failed to get length of "'+e+'"');if(t.isError(i))return i;if(!n&&r.tag!==e&&r.tagStr!==e&&r.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(r.primitive||null!==i)return t.skip(i,'Failed to match body of: "'+e+'"');const o=t.save(),a=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(a)?a:(i=t.offset-o.offset,t.restore(o),t.skip(i,'Failed to match body of: "'+e+'"'))},l.prototype._skipUntilEnd=function(t,e){for(;;){const n=c(t,e);if(t.isError(n))return n;const r=f(t,n.primitive,e);if(t.isError(r))return r;let i;if(i=n.primitive||null!==r?t.skip(r):this._skipUntilEnd(t,e),t.isError(i))return i;if("end"===n.tagStr)break}},l.prototype._decodeList=function(t,e,n,r){const i=[];for(;!t.isEmpty();){const e=this._peekTag(t,"end");if(t.isError(e))return e;const o=n.decode(t,"der",r);if(t.isError(o)&&e)break;i.push(o)}return i},l.prototype._decodeStr=function(t,e){if("bitstr"===e){const e=t.readUInt8();return t.isError(e)?e:{unused:e,data:t.raw()}}if("bmpstr"===e){const e=t.raw();if(e.length%2==1)return t.error("Decoding of string type: bmpstr length mismatch");let n="";for(let t=0;t<e.length/2;t++)n+=String.fromCharCode(e.readUInt16BE(2*t));return n}if("numstr"===e){const e=t.raw().toString("ascii");return this._isNumstr(e)?e:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){const e=t.raw().toString("ascii");return this._isPrintstr(e)?e:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},l.prototype._decodeObjid=function(t,e,n){let r;const i=[];let o=0,a=0;for(;!t.isEmpty();)a=t.readUInt8(),o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0);128&a&&i.push(o);const s=i[0]/40|0,u=i[0]%40;if(r=n?i:[s,u].concat(i.slice(1)),e){let t=e[r.join(" ")];void 0===t&&(t=e[r.join(".")]),void 0!==t&&(r=t)}return r},l.prototype._decodeTime=function(t,e){const n=t.raw().toString();let r,i,o,a,s,u;if("gentime"===e)r=0|n.slice(0,4),i=0|n.slice(4,6),o=0|n.slice(6,8),a=0|n.slice(8,10),s=0|n.slice(10,12),u=0|n.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),o=0|n.slice(4,6),a=0|n.slice(6,8),s=0|n.slice(8,10),u=0|n.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,o,a,s,u,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(t){const e=t.readUInt8();return t.isError(e)?e:0!==e},l.prototype._decodeInt=function(t,e){const n=t.raw();let r=new i(n);return e&&(r=e[r.toString(10)]||r),r},l.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getDecoder("der").tree}},function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(t,e,n){var r=n(35),i=n(4).Buffer;function o(t){var e=i.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var n,a=i.alloc(0),s=0;a.length<e;)n=o(s++),a=i.concat([a,r("sha1").update(t).update(n).digest()]);return a.slice(0,e)}},function(t,e){t.exports=function(t,e){for(var n=t.length,r=-1;++r<n;)t[r]^=e[r];return t}},function(t,e,n){var r=n(92),i=n(4).Buffer;t.exports=function(t,e){return i.from(t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed().toArray())}},function(t,e,n){"use strict";const r=n(19),i=n(195),o=n(421).makeAutoPaginationMethods;t.exports=function(t){return function(...e){const n="function"==typeof e[e.length-1]&&e.pop();t.urlParams=r.extractUrlParams(this.createResourcePathWithSymbols(t.path||""));const a=r.callbackifyPromiseWithTimeout(i(this,e,t,{}),n);if("list"===t.methodType){const n=o(this,e,t,a);Object.assign(a,n)}return a}}},function(t,e,n){"use strict";const r=n(19);t.exports=function(t,e,n,i){return new Promise((o,a)=>{let s;try{s=function(t,e,n,i){const o=r.makeURLInterpolator(n.path||""),a=(n.method||"GET").toUpperCase(),s=n.urlParams||[],u=n.encode||(t=>t),l=n.host,c=t.createResourcePathWithSymbols(n.path),f=[].slice.call(e),d=s.reduce((t,e)=>{const n=f.shift();if("string"!=typeof n)throw new Error(`Stripe: Argument "${e}" must be a string, but got: ${n} (on API request to \`${a} ${c}\`)`);return t[e]=n,t},{}),h=r.getDataFromArgs(f),p=u(Object.assign({},h,i)),m=r.getOptionsFromArgs(f);if(f.filter(t=>null!=t).length)throw new Error(`Stripe: Unknown arguments (${f}). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options. (on API request to ${a} \`${c}\`)`);const v=t.createFullPath(o,d),g=Object.assign(m.headers,n.headers);n.validator&&n.validator(p,{headers:g});const b="GET"===n.method||"DELETE"===n.method;return{requestMethod:a,requestPath:v,bodyData:b?{}:p,queryData:b?p:{},auth:m.auth,headers:g,host:l,settings:m.settings}}(t,e,n,i)}catch(t){return void a(t)}const u=0===Object.keys(s.queryData).length,l=[s.requestPath,u?"":"?",r.stringifyRequestData(s.queryData)].join(""),{headers:c,settings:f}=s;t._request(s.requestMethod,s.host,l,s.bodyData,s.auth,{headers:c,settings:f},(function(t,e){t?a(t):o(n.transformResponseData?n.transformResponseData(e):e)}))})}},function(t,e,n){"use strict";(function(e){const r=n(144),i=n(19),{StripeError:o,StripeSignatureVerificationError:a}=n(39),s={DEFAULT_TOLERANCE:300,constructEvent(t,e,n,r){this.signature.verifyHeader(t,e,n,r||s.DEFAULT_TOLERANCE);return JSON.parse(t)},generateTestHeaderString:function(t){if(!t)throw new o({message:"Options are required"});t.timestamp=Math.floor(t.timestamp)||Math.floor(Date.now()/1e3),t.scheme=t.scheme||u.EXPECTED_SCHEME,t.signature=t.signature||u._computeSignature(t.timestamp+"."+t.payload,t.secret);return["t="+t.timestamp,t.scheme+"="+t.signature].join(",")}},u={EXPECTED_SCHEME:"v1",_computeSignature:(t,e)=>r.createHmac("sha256",e).update(t,"utf8").digest("hex"),verifyHeader(t,n,r,o){if(t=e.isBuffer(t)?t.toString("utf8"):t,Array.isArray(n))throw new Error("Unexpected: An array was passed as a header, which should not be possible for the stripe-signature header.");const s=function(t,e){if("string"!=typeof t)return null;return t.split(",").reduce((t,n)=>{const r=n.split("=");return"t"===r[0]&&(t.timestamp=r[1]),r[0]===e&&t.signatures.push(r[1]),t},{timestamp:-1,signatures:[]})}(n=e.isBuffer(n)?n.toString("utf8"):n,this.EXPECTED_SCHEME);if(!s||-1===s.timestamp)throw new a({message:"Unable to extract timestamp and signatures from header",detail:{header:n,payload:t}});if(!s.signatures.length)throw new a({message:"No signatures found with expected scheme",detail:{header:n,payload:t}});const u=this._computeSignature(`${s.timestamp}.${t}`,r);if(!!!s.signatures.filter(i.secureCompare.bind(i,u)).length)throw new a({message:"No signatures found matching the expected signature for payload. Are you passing the raw request body you received from Stripe? https://github.com/stripe/stripe-node#webhook-signing",detail:{header:n,payload:t}});const l=Math.floor(Date.now()/1e3)-s.timestamp;if(o>0&&l>o)throw new a({message:"Timestamp outside the tolerance zone",detail:{header:n,payload:t}});return!0}};s.signature=u,t.exports=s}).call(this,n(6).Buffer)},function(t,e,n){var r;"undefined"!=typeof self&&self,t.exports=(r=n(67),function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=504)}([function(t,e){t.exports=function(t,e,n,r,i,o){var a,s,u,l,c,f=t=t||{},d=typeof t.default;return"object"!==d&&"function"!==d||(a=t,f=t.default),s="function"==typeof f?f.options:f,e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns,s._compiled=!0),n&&(s.functional=!0),i&&(s._scopeId=i),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},s._ssrRegister=u):r&&(u=r),u&&(l=s.functional,c=l?s.render:s.beforeCreate,l?(s._injectStyles=u,s.render=function(t,e){return u.call(e),c(t,e)}):s.beforeCreate=c?[].concat(c,u):[u]),{esModule:a,exports:f,options:s}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e={props:{mdTheme:null},computed:{$mdActiveTheme:function(){var t=o.default.enabled,e=o.default.getThemeName,n=o.default.getAncestorTheme;return t&&!1!==this.mdTheme?e(this.mdTheme||n(this)):null}}};return(0,s.default)(e,t)},i=n(4),o=r(i),a=n(6),s=r(a)},function(t,e){t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u;Object.defineProperty(e,"__esModule",{value:!0}),n(7),i=n(5),o=r(i),a=n(4),s=r(a),u=function(){var t=new o.default({ripple:!0,theming:{},locale:{startYear:1900,endYear:2099,dateFormat:"yyyy-MM-dd",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],shorterDays:["S","M","T","W","T","F","S"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],shorterMonths:["J","F","M","A","M","Ju","Ju","A","Se","O","N","D"],firstDayOfAWeek:0},router:{linkActiveClass:"router-link-active"}});return Object.defineProperties(t.theming,{metaColors:{get:function(){return s.default.metaColors},set:function(t){s.default.metaColors=t}},theme:{get:function(){return s.default.theme},set:function(t){s.default.theme=t}},enabled:{get:function(){return s.default.enabled},set:function(t){s.default.enabled=t}}}),t},e.default=function(t){t.material||(t.material=u(),t.prototype.$material=t.material)}},function(t,e,n){"use strict";var r,i,o,a;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(2)),i=null,o=null,a=null,e.default=new r.default({data:function(){return{prefix:"md-theme-",theme:"default",enabled:!0,metaColors:!1}},computed:{themeTarget:function(){return!this.$isServer&&document.documentElement},fullThemeName:function(){return this.getThemeName()}},watch:{enabled:{immediate:!0,handler:function(){var t=this.fullThemeName,e=this.themeTarget,n=this.enabled;e&&(n?(e.classList.add(t),this.metaColors&&this.setHtmlMetaColors(t)):(e.classList.remove(t),this.metaColors&&this.setHtmlMetaColors()))}},theme:function(t,e){var n=this.getThemeName,r=this.themeTarget;t=n(t),r.classList.remove(n(e)),r.classList.add(t),this.metaColors&&this.setHtmlMetaColors(t)},metaColors:function(t){t?this.setHtmlMetaColors(this.fullThemeName):this.setHtmlMetaColors()}},methods:{getAncestorTheme:function(t){var e,n=this;return t?(e=t.mdTheme,function t(r){if(r){var i=r.mdTheme,o=r.$parent;return i&&i!==e?i:t(o)}return n.theme}(t.$parent)):null},getThemeName:function(t){var e=t||this.theme;return this.prefix+e},setMicrosoftColors:function(t){i&&i.setAttribute("content",t)},setThemeColors:function(t){o&&o.setAttribute("content",t)},setMaskColors:function(t){a&&a.setAttribute("color",t)},setHtmlMetaColors:function(t){var e="#fff";t&&(e=window.getComputedStyle(document.documentElement).getPropertyValue("--"+t+"-primary")),e&&(this.setMicrosoftColors(e),this.setThemeColors(e),this.setMaskColors(e))}},mounted:function(){var t=this;i=document.querySelector('[name="msapplication-TileColor"]'),o=document.querySelector('[name="theme-color"]'),a=document.querySelector('[rel="mask-icon"]'),this.enabled&&this.metaColors&&window.addEventListener("load",(function(){t.setHtmlMetaColors(t.fullThemeName)}))}})},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e={};return i.default.util.defineReactive(e,"reactive",t),e.reactive},r=n(2),i=function(t){return t&&t.__esModule?t:{default:t}}(r)},function(t,e,n){t.exports=function(){"use strict";function t(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===a}(t)}function e(t,e){return!1!==e.clone&&e.isMergeableObject(t)?i(function(t){return Array.isArray(t)?[]:{}}(t),t,e):t}function n(t,n,r){return t.concat(n).map((function(t){return e(t,r)}))}function r(t,n,r){var o={};return r.isMergeableObject(t)&&Object.keys(t).forEach((function(n){o[n]=e(t[n],r)})),Object.keys(n).forEach((function(a){r.isMergeableObject(n[a])&&t[a]?o[a]=function(t,e){if(!e.customMerge)return i;var n=e.customMerge(t);return"function"==typeof n?n:i}(a,r)(t[a],n[a],r):o[a]=e(n[a],r)})),o}function i(t,i,a){var s;return(a=a||{}).arrayMerge=a.arrayMerge||n,a.isMergeableObject=a.isMergeableObject||o,(s=Array.isArray(i))===Array.isArray(t)?s?a.arrayMerge(t,i,a):r(t,i,a):e(i,a)}var o=function(e){return function(t){return!!t&&"object"==typeof t}(e)&&!t(e)},a="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;return i.all=function(t,e){if(!Array.isArray(t))throw Error("first argument should be an array");return t.reduce((function(t,n){return i(t,n,e)}),{})},i}()},function(t,e){},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),r=n(2),i=function(t){return t&&t.__esModule?t:{default:t}}(r),e.default=function(t,e){return{validator:function(n){return!!e.includes(n)||(i.default.util.warn("The "+t+" prop is invalid. Given value: "+n+". Available options: "+e.join(", ")+".",void 0),!1)}}}},function(t,e,n){"use strict";e.a=function(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object.prototype.toString.call(t);return t instanceof Date||"object"==typeof t&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as arguments. Please use `parseISO` to parse strings. See: https://git.io/fpAk2"),console.warn(Error().stack)),new Date(NaN))}},function(t,e,n){(function(e){var r,i,o,a,s=n(14),u="undefined"==typeof window?e:window,l=["moz","webkit"],c="AnimationFrame",f=u["request"+c],d=u["cancel"+c]||u["cancelRequest"+c];for(r=0;!f&&r<l.length;r++)f=u[l[r]+"Request"+c],d=u[l[r]+"Cancel"+c]||u[l[r]+"CancelRequest"+c];f&&d||(i=0,o=0,a=[],f=function(t){if(0===a.length){var e=s(),n=Math.max(0,1e3/60-(e-i));i=n+e,setTimeout((function(){var t,e=a.slice(0);for(a.length=0,t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(i)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(n))}return a.push({handle:++o,callback:t,cancelled:!1}),o},d=function(t){for(var e=0;e<a.length;e++)a[e].handle===t&&(a[e].cancelled=!0)}),t.exports=function(t){return f.call(u,t)},t.exports.cancel=function(){d.apply(u,arguments)},t.exports.polyfill=function(t){t||(t=u),t.requestAnimationFrame=f,t.cancelAnimationFrame=d}}).call(e,n(12))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return Math.random().toString(36).slice(4)}},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(20),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(37),s=function(t){n(33)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e,n){(function(e){(function(){var n,r,i,o,a,s;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:null!=e&&e.hrtime?(t.exports=function(){return(n()-a)/1e6},r=e.hrtime,o=(n=function(){var t;return 1e9*(t=r())[0]+t[1]})(),s=1e9*e.uptime(),a=o-s):Date.now?(t.exports=function(){return Date.now()-i},i=Date.now()):(t.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(e,n(15))},function(t,e){function n(){throw Error("setTimeout has not been defined")}function r(){throw Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(){d&&h&&(d=!1,h.length?f=h.concat(f):p=-1,f.length&&a())}function a(){var t,e;if(!d){for(t=i(o),d=!0,e=f.length;e;){for(h=f,f=[];++p<e;)h&&h[p].run();p=-1,e=f.length}h=null,d=!1,function(t){if(c===clearTimeout)return clearTimeout(t);if((c===r||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(t);try{c(t)}catch(e){try{return c.call(null,t)}catch(e){return c.call(this,t)}}}(t)}}function s(t,e){this.fun=t,this.array=e}function u(){}var l,c,f,d,h,p,m=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{c="function"==typeof clearTimeout?clearTimeout:r}catch(t){c=r}}(),f=[],d=!1,p=-1,m.nextTick=function(t){var e,n=Array(arguments.length-1);if(arguments.length>1)for(e=1;e<arguments.length;e++)n[e-1]=arguments[e];f.push(new s(t,n)),1!==f.length||d||i(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},m.title="browser",m.browser=!0,m.env={},m.argv=[],m.version="",m.versions={},m.on=u,m.addListener=u,m.once=u,m.off=u,m.removeListener=u,m.removeAllListeners=u,m.emit=u,m.prependListener=u,m.prependOnceListener=u,m.listeners=function(t){return[]},m.binding=function(t){throw Error("process.binding is not supported")},m.cwd=function(){return"/"},m.chdir=function(t){throw Error("process.chdir is not supported")},m.umask=function(){return 0}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(18),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(26),s=function(t){n(23)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e,n){"use strict";e.a=function(t){if(null===t||!0===t||!1===t)return NaN;var e=+t;return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=n(10),a=r(o),s=r(n(1)),u=n(11),l=r(u),c=r(n(22)),e.default=new s.default({name:"MdRipple",components:{MdWave:c.default},props:{mdActive:null,mdDisabled:Boolean,mdCentered:Boolean,mdEventTrigger:{type:Boolean,default:!0}},data:function(){return{ripples:[],touchTimeout:null,eventType:null}},computed:{isDisabled:function(){return!this.$material.ripple||this.mdDisabled},rippleClasses:function(){return{"md-disabled":this.isDisabled}},waveClasses:function(){return{"md-centered":this.mdCentered}}},watch:{mdActive:function(t){var e="boolean"==typeof t,n="mouseevent"===(""+t.constructor).match(/function (\w*)/)[1].toLowerCase();e&&this.mdCentered&&t?this.startRipple({type:"mousedown"}):n&&this.startRipple(t),this.$emit("update:mdActive",!1)}},methods:{touchMoveCheck:function(){window.clearTimeout(this.touchTimeout)},touchStartCheck:function(t){var e=this;this.touchTimeout=window.setTimeout((function(){e.startRipple(t)}),100)},startRipple:function(t){var e=this;(0,a.default)((function(){var n,r,i=e.eventType,o=e.isDisabled,a=e.mdCentered;o||i&&i!==t.type||(n=e.getSize(),r=a?e.getCenteredPosition(n):e.getHitPosition(t,n),e.eventType=t.type,e.ripples.push({waveStyles:e.applyStyles(r,n),uuid:(0,l.default)()}))}))},applyStyles:function(t,e){return i({},t,{width:e+="px",height:e})},clearWave:function(t){this.ripples=t?this.ripples.filter((function(e){return e.uuid!==t})):[]},getSize:function(){var t=this.$el,e=t.offsetWidth,n=t.offsetHeight;return Math.round(Math.max(e,n))},getCenteredPosition:function(t){var e=-t/2+"px";return{"margin-top":e,"margin-left":e}},getHitPosition:function(t,e){var n=this.$el.getBoundingClientRect(),r=t.pageY,i=t.pageX;return"touchstart"===t.type&&(r=t.changedTouches[0].pageY,i=t.changedTouches[0].pageX),{top:r-n.top-e/2-document.documentElement.scrollTop+"px",left:i-n.left-e/2-document.documentElement.scrollLeft+"px"}}}})},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),e.default=new r.default({name:"MdWave",data:function(){return{animating:!1}},props:{waveClasses:null,waveStyles:null},mounted:function(){this.animating=!0},methods:{end:function(){this.animating=!1,this.$emit("md-end")}}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(1)),o=r(n(34)),e.default=new i.default({name:"MdIcon",components:{MdSvgLoader:o.default},props:{mdSrc:String}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default={name:"MdSVGLoader",props:{mdSrc:{type:String,required:!0}},data:function(){return{html:null,error:null}},watch:{mdSrc:function(){this.html=null,this.loadSVG()}},methods:{isSVG:function(t){return"string"==typeof t&&t.indexOf("svg")>=0},setHtml:function(t){var e=this;r[this.mdSrc].then((function(t){return e.html=t,e.$nextTick()})).then((function(){return e.$emit("md-loaded")}))},unexpectedError:function(t){this.error="Something bad happened trying to fetch "+this.mdSrc+".",t(this.error)},loadSVG:function(){var t=this;r.hasOwnProperty(this.mdSrc)?this.setHtml():r[this.mdSrc]=new Promise((function(e,n){var r=new window.XMLHttpRequest;r.open("GET",t.mdSrc,!0),r.onload=function(){var i=r.getResponseHeader("content-type");200===r.status?t.isSVG(i)?(e(r.response),t.setHtml()):(t.error="The file "+t.mdSrc+" is not a valid SVG.",n(t.error)):r.status>=400&&r.status<500?(t.error="The file "+t.mdSrc+" do not exists.",n(t.error)):t.unexpectedError(n)},r.onerror=function(){return t.unexpectedError(n)},r.onabort=function(){return t.unexpectedError(n)},r.send()}))}},mounted:function(){this.loadSVG()}}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(19),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(25),s=function(t){n(24)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"md-ripple",appear:""},on:{"after-enter":t.end}},[t.animating?n("span"):t._e()])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:["md-ripple",t.rippleClasses],on:{"&touchstart":function(e){return function(e){return t.mdEventTrigger&&t.touchStartCheck(e)}(e)},"&touchmove":function(e){return function(e){return t.mdEventTrigger&&t.touchMoveCheck(e)}(e)},"&mousedown":function(e){return function(e){return t.mdEventTrigger&&t.startRipple(e)}(e)}}},[t._t("default"),t._v(" "),t._l(t.ripples,(function(e){return t.isDisabled?t._e():n("md-wave",{key:e.uuid,class:["md-ripple-wave",t.waveClasses],style:e.waveStyles,on:{"md-end":function(n){return t.clearWave(e.uuid)}}})}))],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(2),o=r(i),a=n(10),s=r(a),e.default={name:"MdPortal",abstract:!0,props:{mdAttachToParent:Boolean,mdTarget:{type:null,validator:function(t){return!!(HTMLElement&&t&&t instanceof HTMLElement)||(o.default.util.warn("The md-target-el prop is invalid. You should pass a valid HTMLElement.",this),!1)}}},data:function(){return{leaveTimeout:null,originalParentEl:null}},computed:{transitionName:function(){var t,e,n=this._vnode.componentOptions.children[0];if(n){if(t=n.data.transition)return t.name;if(e=n.componentOptions.propsData.name)return e}return"v"},leaveClass:function(){return this.transitionName+"-leave"},leaveActiveClass:function(){return this.transitionName+"-leave-active"},leaveToClass:function(){return this.transitionName+"-leave-to"}},watch:{mdTarget:function(t,e){this.changeParentEl(t),e&&this.$forceUpdate()}},methods:{getTransitionDuration:function(t){var e=window.getComputedStyle(t).transitionDuration,n=parseFloat(e,10),r=e.match(/m?s/);return r&&(r=r[0]),"s"===r?1e3*n:"ms"===r?n:0},killGhostElement:function(t){t.parentNode&&(this.changeParentEl(this.originalParentEl),this.$options._parentElm=this.originalParentEl,t.parentNode.removeChild(t))},initDestroy:function(t){var e=this,n=this.$el;t&&this.$el.nodeType===Node.COMMENT_NODE&&(n=this.$vnode.elm),n.classList.add(this.leaveClass),n.classList.add(this.leaveActiveClass),this.$nextTick().then((function(){n.classList.add(e.leaveToClass),clearTimeout(e.leaveTimeout),e.leaveTimeout=setTimeout((function(){e.destroyElement(n)}),e.getTransitionDuration(n))}))},destroyElement:function(t){var e=this;(0,s.default)((function(){t.classList.remove(e.leaveClass),t.classList.remove(e.leaveActiveClass),t.classList.remove(e.leaveToClass),e.$emit("md-destroy"),e.killGhostElement(t)}))},changeParentEl:function(t){t&&t.appendChild(this.$el)}},mounted:function(){this.originalParentEl||(this.originalParentEl=this.$el.parentNode,this.$emit("md-initial-parent",this.$el.parentNode)),this.mdAttachToParent&&this.$el.parentNode.parentNode?this.changeParentEl(this.$el.parentNode.parentNode):document&&this.changeParentEl(this.mdTarget||document.body)},beforeDestroy:function(){this.$el.classList?this.initDestroy():this.killGhostElement(this.$el)},render:function(t){var e=this.$slots.default;if(e&&e[0])return e[0]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{to:[String,Object],replace:Boolean,append:Boolean,activeClass:String,exact:Boolean,event:[String,Array],exactActiveClass:String}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t};e.default=function(t,e){var n=t.$options.components.RouterLink||t.$options.components["router-link"];return r({},e,n.options.props)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(38)),o=r(n(179)),e.default={mixins:[i.default],components:{MdListItemContent:o.default},props:{disabled:Boolean},computed:{isDisabled:function(){return!this.mdRipple||this.disabled}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=r(n(1)),a=r(n(41)),s=r(n(38)),u=r(n(28)),l=n(29),c=r(l),f=r(n(45)),e.default=new o.default({name:"MdButton",data:function(){return{rippleActive:!1}},components:{MdButtonContent:f.default},mixins:[s.default,a.default,u.default],props:{href:String,type:{type:String,default:"button"},disabled:Boolean},computed:{rippleWorks:function(){return this.mdRipple&&!this.disabled},isRouterLink:function(){return this.$router&&this.to}},render:function(t){var e,n,r=this,o=t("md-button-content",{attrs:{mdRipple:this.mdRipple,disabled:this.disabled},props:{mdRippleActive:this.rippleActive},on:{"update:mdRippleActive":function(t){return r.rippleActive=t}}},this.$slots.default),a={staticClass:"md-button",class:[this.$mdActiveTheme,{"md-ripple-off":!this.mdRipple,"md-focused":this.mdHasFocus}],attrs:i({},this.attrs,{href:this.href,disabled:this.disabled,type:!this.href&&(this.type||"button")}),on:i({},this.$listeners,{touchstart:function(t){r.rippleWorks&&(r.rippleActive=t),r.$listeners.touchstart&&r.$listeners.touchstart(t)},touchmove:function(t){r.rippleWorks&&(r.rippleActive=t),r.$listeners.touchmove&&r.$listeners.touchmove(t)},mousedown:function(t){r.rippleWorks&&(r.rippleActive=t),r.$listeners.mousedown&&r.$listeners.mousedown(t)}})},s="button";return this.href?s="a":this.isRouterLink&&(this.$options.props=(0,c.default)(this,this.$options.props),s="router-link",e=this.$props.exactActiveClass,n=(this.$props.activeClass||this.$material.router.linkActiveClass)+" md-active",a.props=i({},this.$props,{exactActiveClass:e,activeClass:n}),delete a.props.type,delete a.attrs.type,delete a.props.href,delete a.attrs.href),t(s,a,[o])}})},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(16)),e.default={name:"MdButtonContent",components:{MdRipple:r.default},props:{mdRipple:Boolean,mdRippleActive:null,disabled:Boolean}}},function(t,e){},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(21),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(36),s=function(t){n(35)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{staticClass:"md-svg-loader",domProps:{innerHTML:t._s(t.html)}})},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.mdSrc?n("md-svg-loader",{staticClass:"md-icon md-icon-image",class:[t.$mdActiveTheme],attrs:{"md-src":t.mdSrc},on:{"md-loaded":function(e){return t.$emit("md-loaded")}}}):n("i",{staticClass:"md-icon md-icon-font",class:[t.$mdActiveTheme]},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(16)),e.default={components:{MdRipple:r.default},props:{mdRipple:{type:Boolean,default:!0}}}},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(31),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=function(t){n(44)},s=n(0)(i.a,null,!1,a,null,null),e.default=s.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=n(67),a=r(o),s=n(6),u=r(s),l=n(27),c=r(l),e.default={name:"MdPopover",abstract:!0,components:{MdPortal:c.default},props:{mdActive:Boolean,mdSettings:{type:Object,default:function(){return{}}}},data:function(){return{popperInstance:null,originalParentEl:null,shouldRender:!1,shouldActivate:!1}},computed:{popoverClasses:function(){return this.shouldActivate?"md-active":this.shouldRender?"md-rendering":void 0}},watch:{mdActive:{immediate:!0,handler:function(t){this.shouldRender=t,t?this.bindPopper():this.shouldActivate=!1}},mdSettings:function(){this.popperInstance&&this.createPopper()}},methods:{getPopperOptions:function(){var t=this;return{placement:"bottom",modifiers:{preventOverflow:{boundariesElement:"viewport",padding:16},computeStyle:{gpuAcceleration:!1}},onCreate:function(){t.shouldActivate=!0,t.$emit("md-active")}}},setOriginalParent:function(t){this.originalParentEl||(this.originalParentEl=t)},killPopper:function(){this.popperInstance&&(this.popperInstance.destroy(),this.popperInstance=null)},bindPopper:function(){var t=this;this.$nextTick().then((function(){t.originalParentEl&&t.createPopper()}))},createPopper:function(){if(this.mdSettings){var t=(0,u.default)(this.getPopperOptions(),this.mdSettings);this.$el.nodeType!==Node.COMMENT_NODE&&(this.popperInstance=new a.default(this.originalParentEl,this.$el,t))}},resetPopper:function(){this.popperInstance&&(this.killPopper(),this.createPopper())}},beforeDestroy:function(){this.killPopper()},mounted:function(){this.resetPopper()},render:function(t){return t(c.default,{props:i({},this.$attrs),on:i({},this.$listeners,{"md-initial-parent":this.setOriginalParent,"md-destroy":this.killPopper})},this.$slots.default)}}},function(t,e,n){"use strict";function r(t){var e=(t.keyCode,t.target);f.currentElement=e}function i(t){f.currentElement=null}function o(){window.PointerEvent?l.addEventListener("pointerup",i):window.MSPointerEvent?l.addEventListener("MSPointerUp",i):(l.addEventListener("mouseup",i),"ontouchend"in window&&l.addEventListener("touchend",i,c)),l.addEventListener("keyup",r)}function a(){u||(l=document.body,function(){try{var t=Object.defineProperty({},"passive",{get:function(){c={passive:!0}}});window.addEventListener("ghost",null,t)}catch(t){}}(),o(),u=!0)}var s,u,l,c,f;Object.defineProperty(e,"__esModule",{value:!0}),s=function(t){return t&&t.__esModule?t:{default:t}}(n(5)),u=!1,l=null,c=!1,f=new s.default({currentElement:null}),e.default={data:function(){return{mdHasFocus:!1}},computed:{focusedElement:function(){return f.currentElement}},watch:{focusedElement:function(t){this.mdHasFocus=t===this.$el}},mounted:function(){a()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t};e.default={props:{value:{},placeholder:String,name:String,maxlength:[String,Number],readonly:Boolean,required:Boolean,disabled:Boolean,mdCounter:[String,Number]},data:function(){return{localValue:this.value,textareaHeight:!1}},computed:{model:{get:function(){return this.localValue},set:function(t){var e=this;"inputevent"!==(""+t.constructor).match(/function (\w*)/)[1].toLowerCase()&&this.$nextTick((function(){e.localValue=t}))}},clear:function(){return this.MdField.clear},attributes:function(){return r({},this.$attrs,{type:this.type,id:this.id,name:this.name,disabled:this.disabled,required:this.required,placeholder:this.placeholder,readonly:this.readonly,maxlength:this.maxlength})}},watch:{model:function(){this.setFieldValue()},clear:function(t){t&&this.clearField()},placeholder:function(){this.setPlaceholder()},disabled:function(){this.setDisabled()},required:function(){this.setRequired()},maxlength:function(){this.setMaxlength()},mdCounter:function(){this.setMaxlength()},localValue:function(t){this.$emit("input",t)},value:function(t){this.localValue=t}},methods:{clearField:function(){this.$el.value="",this.model="",this.setFieldValue()},setLabelFor:function(){var t,e;this.$el.parentNode&&(t=this.$el.parentNode.querySelector("label"))&&(!(e=t.getAttribute("for"))||e.indexOf("md-")>=0)&&t.setAttribute("for",this.id)},setFieldValue:function(){this.MdField.value=this.model},setPlaceholder:function(){this.MdField.placeholder=!!this.placeholder},setDisabled:function(){this.MdField.disabled=!!this.disabled},setRequired:function(){this.MdField.required=!!this.required},setMaxlength:function(){this.mdCounter?this.MdField.counter=parseInt(this.mdCounter,10):this.MdField.maxlength=parseInt(this.maxlength,10)},onFocus:function(){this.MdField.focused=!0},onBlur:function(){this.MdField.focused=!1}},created:function(){this.setFieldValue(),this.setPlaceholder(),this.setDisabled(),this.setRequired(),this.setMaxlength()},mounted:function(){this.setLabelFor()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={methods:{isAssetIcon:function(t){return/\w+[\/\\.]\w+/.test(t)}}}},function(t,e){},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(32),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(47),s=function(t){n(46)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-ripple",{attrs:{"md-disabled":!t.mdRipple||t.disabled,"md-event-trigger":!1,"md-active":t.mdRippleActive},on:{"update:mdActive":function(e){return t.$emit("update:mdRippleActive",e)}}},[n("div",{staticClass:"md-button-content"},[t._t("default")],2)])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if("MutationObserver"in window){var r=new window.MutationObserver(n);return r.observe(t,e),{disconnect:function(){r.disconnect()}}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(1)),o=r(n(63)),a=r(n(87)),s=r(n(89)),e.default=new i.default({name:"MdField",components:{MdClearIcon:o.default,MdPasswordOffIcon:a.default,MdPasswordOnIcon:s.default},props:{mdInline:Boolean,mdClearable:Boolean,mdCounter:{type:Boolean,default:!0},mdTogglePassword:{type:Boolean,default:!0}},data:function(){return{showPassword:!1,MdField:{value:null,focused:!1,highlighted:!1,disabled:!1,required:!1,placeholder:!1,textarea:!1,autogrow:!1,maxlength:null,counter:null,password:null,togglePassword:!1,clear:!1,file:!1}}},provide:function(){return{MdField:this.MdField}},computed:{stringValue:function(){return(this.MdField.value||0===this.MdField.value)&&""+this.MdField.value},hasCounter:function(){return this.mdCounter&&(this.MdField.maxlength||this.MdField.counter)},hasPasswordToggle:function(){return this.mdTogglePassword&&this.MdField.password},hasValue:function(){return this.stringValue&&this.stringValue.length>0},valueLength:function(){return this.stringValue?this.stringValue.length:0},fieldClasses:function(){return{"md-inline":this.mdInline,"md-clearable":this.mdClearable,"md-focused":this.MdField.focused,"md-highlight":this.MdField.highlighted,"md-disabled":this.MdField.disabled,"md-required":this.MdField.required,"md-has-value":this.hasValue,"md-has-placeholder":this.MdField.placeholder,"md-has-textarea":this.MdField.textarea,"md-has-password":this.MdField.password,"md-has-file":this.MdField.file,"md-has-select":this.MdField.select,"md-autogrow":this.MdField.autogrow}}},methods:{clearInput:function(){var t=this;this.MdField.clear=!0,this.$emit("md-clear"),this.$nextTick().then((function(){t.MdField.clear=!1}))},togglePassword:function(){this.MdField.togglePassword=!this.MdField.togglePassword},onBlur:function(){this.MdField.highlighted=!1}}})},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),e.default={name:"MdClearIcon",components:{MdIcon:r.default}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),e.default={name:"MdPasswordOffIcon",components:{MdIcon:r.default}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),e.default={name:"MdPasswordOnIcon",components:{MdIcon:r.default}}},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(54),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(92),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=r(n(1)),a=n(11),s=r(a),u=r(n(42)),e.default=new o.default({name:"MdInput",mixins:[u.default],inject:["MdField"],props:{id:{type:String,default:function(){return"md-input-"+(0,s.default)()}},type:{type:String,default:"text"}},computed:{toggleType:function(){return this.MdField.togglePassword},isPassword:function(){return"password"===this.type},listeners:function(){var t=i({},this.$listeners);return delete t.input,t}},watch:{type:function(t){this.setPassword(this.isPassword)},toggleType:function(t){t?this.setTypeText():this.setTypePassword()}},methods:{setPassword:function(t){this.MdField.password=t,this.MdField.togglePassword=!1},setTypePassword:function(){this.$el.type="password"},setTypeText:function(){this.$el.type="text"}},created:function(){this.setPassword(this.isPassword)},beforeDestroy:function(){this.setPassword(!1)}})},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(27)),e.default={name:"MdOverlay",components:{MdPortal:r.default},props:{mdActive:Boolean,mdAttachToParent:Boolean,mdFixed:Boolean},computed:{overlayClasses:function(){return{"md-fixed":this.mdFixed}}}}},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(40),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=function(t){n(66)},s=n(0)(i.a,null,!1,a,null,null),e.default=s.exports},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),e.default=new r.default({name:"MdList",data:function(){return{MdList:{expandable:[],expandATab:this.expandATab,pushExpandable:this.pushExpandable,removeExpandable:this.removeExpandable}}},provide:function(){return{MdList:this.MdList}},props:{mdExpandSingle:{default:!1}},methods:{expandATab:function(t){this.mdExpandSingle&&t&&this.MdList.expandable.filter((function(e){return e!==t})).forEach((function(t){return t.close()}))},pushExpandable:function(t){var e=this.MdList.expandable;e.find((function(e){return e===t}))||(this.MdList.expandable=e.concat([t]))},removeExpandable:function(t){var e=this.MdList.expandable;e.find((function(e){return e===t}))&&(this.MdList.expandable=e.filter((function(e){return e!==t})))}}})},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(55),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(95),s=function(t){n(94)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),r=n(2),i=function(t){return t&&t.__esModule?t:{default:t}}(r),e.default={name:"MdFocusTrap",abstract:!0,methods:{setFocus:function(){var t=this;window.setTimeout((function(){t.$el.tagName&&(t.$el.setAttribute("tabindex","-1"),t.$el.focus())}),20)}},mounted:function(){this.setFocus()},render:function(){try{var t=this.$slots.default;if(!t)return null;if(t.length>1)throw Error();return t[0]}catch(t){i.default.util.warn("MdFocusTrap can only render one, and exactly one child component.",this)}return null}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){return e&&e.indexOf("click")>=0&&/iP/i.test(navigator.userAgent)&&(t.style.cursor="pointer"),t.addEventListener(e,n,r||!1),{destroy:function(){t.removeEventListener(e,n)}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(10),o=r(i),a=n(60),s=r(a),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,e=arguments[1];return{destroy:(0,s.default)(t,"resize",(function(){(0,o.default)(e)}),{passive:!0}).destroy}}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(49),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(91),s=function(t){n(85)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(50),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(86),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";e.a=function(t){var e,n,i,o;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return e=1,o=((i=(n=Object(r.a)(t)).getUTCDay())<e?7:0)+i-e,n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n};var r=n(9)},function(t,e,n){"use strict";var r,i;e.a=function(t,e){var n,o,a,s,u,l,c,f;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(s=null==(a=(o=(n=e||{}).locale)&&o.options&&o.options.weekStartsOn)?0:Object(r.a)(a),!((u=null==n.weekStartsOn?s:Object(r.a)(n.weekStartsOn))>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");return f=((c=(l=Object(i.a)(t)).getUTCDay())<u?7:0)+c-u,l.setUTCDate(l.getUTCDate()-f),l.setUTCHours(0,0,0,0),l},r=n(17),i=n(9)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){function n(t){return t&&"[object Function]"==={}.toString.call(t)}function r(t,e){var n;return 1!==t.nodeType?[]:(n=t.ownerDocument.defaultView.getComputedStyle(t,null),e?n[e]:n)}function i(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function o(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=r(t),n=e.overflow,a=e.overflowX;return/(auto|scroll|overlay)/.test(n+e.overflowY+a)?t:o(i(t))}function a(t){return 11===t?W:10===t?K:W||K}function s(t){var e,n,i;if(!t)return document.documentElement;for(e=a(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;return(i=n&&n.nodeName)&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===r(n,"position")?s(n):n:t?t.ownerDocument.documentElement:document.documentElement}function u(t){return null!==t.parentNode?u(t.parentNode):t}function l(t,e){var n,r,i,o,a,c;return t&&t.nodeType&&e&&e.nodeType?(r=(n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING)?t:e,i=n?e:t,(o=document.createRange()).setStart(r,0),o.setEnd(i,0),t!==(a=o.commonAncestorContainer)&&e!==a||r.contains(i)?function(t){var e=t.nodeName;return"BODY"!==e&&("HTML"===e||s(t.firstElementChild)===t)}(a)?a:s(a):(c=u(t)).host?l(c.host,e):l(t,u(e).host)):document.documentElement}function c(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",r="top"===n?"scrollTop":"scrollLeft",i=t.nodeName;return"BODY"===i||"HTML"===i?(e=t.ownerDocument.documentElement,(t.ownerDocument.scrollingElement||e)[r]):t[r]}function f(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=c(e,"top"),i=c(e,"left"),o=n?-1:1;return t.top+=r*o,t.bottom+=r*o,t.left+=i*o,t.right+=i*o,t}function d(t,e){var n="x"===e?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+r+"Width"],10)}function h(t,e,n,r){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],a(10)?parseInt(n["offset"+t])+parseInt(r["margin"+("Height"===t?"Top":"Left")])+parseInt(r["margin"+("Height"===t?"Bottom":"Right")]):0)}function p(t){var e=t.body,n=t.documentElement,r=a(10)&&getComputedStyle(n);return{height:h("Height",e,n,r),width:h("Width",e,n,r)}}function m(t){return J({},t,{right:t.left+t.width,bottom:t.top+t.height})}function v(t){var e,n,i,o,s,u,l,f,h,v={};try{a(10)?(v=t.getBoundingClientRect(),e=c(t,"top"),n=c(t,"left"),v.top+=e,v.left+=n,v.bottom+=e,v.right+=n):v=t.getBoundingClientRect()}catch(t){}return i={left:v.left,top:v.top,width:v.right-v.left,height:v.bottom-v.top},s=(o="HTML"===t.nodeName?p(t.ownerDocument):{}).width||t.clientWidth||i.right-i.left,u=o.height||t.clientHeight||i.bottom-i.top,l=t.offsetWidth-s,f=t.offsetHeight-u,(l||f)&&(l-=d(h=r(t),"x"),f-=d(h,"y"),i.width-=l,i.height-=f),m(i)}function g(t,e){var n,i,s,u=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=a(10),c="HTML"===e.nodeName,d=v(t),h=v(e),p=o(t),g=r(e),b=parseFloat(g.borderTopWidth,10),y=parseFloat(g.borderLeftWidth,10);return u&&c&&(h.top=Math.max(h.top,0),h.left=Math.max(h.left,0)),(n=m({top:d.top-h.top-b,left:d.left-h.left-y,width:d.width,height:d.height})).marginTop=0,n.marginLeft=0,!l&&c&&(i=parseFloat(g.marginTop,10),s=parseFloat(g.marginLeft,10),n.top-=b-i,n.bottom-=b-i,n.left-=y-s,n.right-=y-s,n.marginTop=i,n.marginLeft=s),(l&&!u?e.contains(p):e===p&&"BODY"!==p.nodeName)&&(n=f(n,e)),n}function b(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,r=g(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:c(n),s=e?0:c(n,"left");return m({top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o})}function y(t){var e,n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===r(t,"position")||!!(e=i(t))&&y(e))}function w(t){if(!t||!t.parentElement||a())return document.documentElement;for(var e=t.parentElement;e&&"none"===r(e,"transform");)e=e.parentElement;return e||document.documentElement}function _(t,e,n,r){var a,s,u,c,f,d,h=arguments.length>4&&void 0!==arguments[4]&&arguments[4],m={top:0,left:0},v=h?w(t):l(t,e);return"viewport"===r?m=b(v,h):(a=void 0,"scrollParent"===r?"BODY"===(a=o(i(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===r?t.ownerDocument.documentElement:r,s=g(a,v,h),"HTML"!==a.nodeName||y(v)?m=s:(c=(u=p(t.ownerDocument)).height,f=u.width,m.top+=s.top-s.marginTop,m.bottom=c+s.top,m.left+=s.left-s.marginLeft,m.right=f+s.left)),d="number"==typeof(n=n||0),m.left+=d?n:n.left||0,m.top+=d?n:n.top||0,m.right-=d?n:n.right||0,m.bottom-=d?n:n.bottom||0,m}function k(t){return t.width*t.height}function M(t,e,n,r,i){var o,a,s,u,l,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;return-1===t.indexOf("auto")?t:(o=_(n,r,c,i),a={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},((u=(s=Object.keys(a).map((function(t){return J({key:t},a[t],{area:k(a[t])})})).sort((function(t,e){return e.area-t.area}))).filter((function(t){var e=t.width,r=t.height;return e>=n.clientWidth&&r>=n.clientHeight}))).length>0?u[0].key:s[0].key)+((l=t.split("-")[1])?"-"+l:""))}function x(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return g(n,r?w(e):l(e,n),r)}function S(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),r=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+r,height:t.offsetHeight+n}}function C(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function A(t,e,n){var r,i,o,a,s,u,l;return n=n.split("-")[0],i={width:(r=S(t)).width,height:r.height},s=(o=-1!==["right","left"].indexOf(n))?"left":"top",u=o?"height":"width",l=o?"width":"height",i[a=o?"top":"left"]=e[a]+e[u]/2-r[u]/2,i[s]=n===s?e[s]-r[l]:e[C(s)],i}function T(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function E(t,e,r){return(void 0===r?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var r=T(t,(function(t){return t[e]===n}));return t.indexOf(r)}(t,"name",r))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=t.function||t.fn;t.enabled&&n(r)&&(e.offsets.popper=m(e.offsets.popper),e.offsets.reference=m(e.offsets.reference),e=r(e,t))})),e}function O(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=x(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=M(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=A(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=E(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function P(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function I(t){var e,n,r,i=[!1,"ms","Webkit","Moz","O"],o=t.charAt(0).toUpperCase()+t.slice(1);for(e=0;e<i.length;e++)if(r=(n=i[e])?""+n+o:t,void 0!==document.body.style[r])return r;return null}function R(){return this.state.isDestroyed=!0,P(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[I("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function j(t){var e=t.ownerDocument;return e?e.defaultView:window}function D(t,e,n,r){n.updateBound=r,j(t).addEventListener("resize",n.updateBound,{passive:!0});var i=o(t);return function t(e,n,r,i){var a="BODY"===e.nodeName,s=a?e.ownerDocument.defaultView:e;s.addEventListener(n,r,{passive:!0}),a||t(o(s.parentNode),n,r,i),i.push(s)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function N(){this.state.eventsEnabled||(this.state=D(this.reference,this.options,this.state,this.scheduleUpdate))}function L(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(t,e){return j(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}(this.reference,this.state))}function B(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function z(t,e){Object.keys(e).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&B(e[n])&&(r="px"),t.style[n]=e[n]+r}))}function F(t,e,n){var r,i,o=T(t,(function(t){return t.name===e})),a=!!o&&t.some((function(t){return t.name===n&&t.enabled&&t.order<o.order}));return a||(r="`"+e+"`",i="`"+n+"`",console.warn(i+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),a}function q(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=tt.indexOf(t),r=tt.slice(n+1).concat(tt.slice(0,n));return e?r.reverse():r}function V(t,e,n,r){var i,o=[0,0],a=-1!==["right","left"].indexOf(r),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),u=s.indexOf(T(s,(function(t){return-1!==t.search(/,|\s/)})));return s[u]&&-1===s[u].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),i=/\s*,\s*|\s+/,(-1!==u?[s.slice(0,u).concat([s[u].split(i)[0]]),[s[u].split(i)[1]].concat(s.slice(u+1))]:[s]).map((function(t,r){var i=(1===r?!a:a)?"height":"width",o=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,o=!0,t):o?(t[t.length-1]+=e,o=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,r){var i,o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+o[1],s=o[2];if(!a)return t;if(0===s.indexOf("%")){switch(i=void 0,s){case"%p":i=n;break;case"%":case"%r":default:i=r}return m(i)[e]/100*a}return"vh"===s||"vw"===s?("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a:a}(t,i,e,n)}))})).forEach((function(t,e){t.forEach((function(n,r){B(n)&&(o[e]+=n*("-"===t[r-1]?-1:1))}))})),o}var $,H,U,W,K,Y,G,Z,J,X,Q,tt,et,nt,rt,it="undefined"!=typeof window&&"undefined"!=typeof document,ot=["Edge","Trident","Firefox"],at=0;for($=0;$<ot.length;$+=1)if(it&&navigator.userAgent.indexOf(ot[$])>=0){at=1;break}H=it&&window.Promise,U=H?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),at))}},W=it&&!(!window.MSInputMethodContext||!document.documentMode),K=it&&/MSIE 10/.test(navigator.userAgent),Y=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},G=function(){function t(t,e){var n,r;for(n=0;n<e.length;n++)(r=e[n]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),Z=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},J=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},X=it&&/Firefox/i.test(navigator.userAgent),tt=(Q=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"]).slice(3),et={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},nt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e,n,r,i,o,a,s,u=t.placement,l=u.split("-")[0],c=u.split("-")[1];return c&&(n=(e=t.offsets).reference,r=e.popper,a=(i=-1!==["bottom","top"].indexOf(l))?"width":"height",s={start:Z({},o=i?"left":"top",n[o]),end:Z({},o,n[o]+n[a]-r[a])},t.offsets.popper=J({},r,s[c])),t}},offset:{order:200,enabled:!0,fn:function(t,e){var n,r=e.offset,i=t.placement,o=t.offsets,a=o.popper,s=o.reference,u=i.split("-")[0];return n=B(+r)?[+r,0]:V(r,a,s,u),"left"===u?(a.top+=n[0],a.left-=n[1]):"right"===u?(a.top+=n[0],a.left+=n[1]):"top"===u?(a.left+=n[0],a.top-=n[1]):"bottom"===u&&(a.left+=n[0],a.top+=n[1]),t.popper=a,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n,r,i,o,a,u,l,c,f,d=e.boundariesElement||s(t.instance.popper);return t.instance.reference===d&&(d=s(d)),n=I("transform"),i=(r=t.instance.popper.style).top,o=r.left,a=r[n],r.top="",r.left="",r[n]="",u=_(t.instance.popper,t.instance.reference,e.padding,d,t.positionFixed),r.top=i,r.left=o,r[n]=a,e.boundaries=u,l=e.priority,c=t.offsets.popper,f={primary:function(t){var n=c[t];return c[t]<u[t]&&!e.escapeWithReference&&(n=Math.max(c[t],u[t])),Z({},t,n)},secondary:function(t){var n="right"===t?"left":"top",r=c[n];return c[t]>u[t]&&!e.escapeWithReference&&(r=Math.min(c[n],u[t]-("right"===t?c.width:c.height))),Z({},n,r)}},l.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=J({},c,f[e](t))})),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,r=e.reference,i=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",l=a?"width":"height";return n[s]<o(r[u])&&(t.offsets.popper[u]=o(r[u])-n[l]),n[u]>o(r[s])&&(t.offsets.popper[u]=o(r[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n,i,o,a,s,u,l,c,f,d,h,p,v,g,b,y,w,_;if(!F(t.instance.modifiers,"arrow","keepTogether"))return t;if("string"==typeof(i=e.element)){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;return o=t.placement.split("-")[0],s=(a=t.offsets).popper,u=a.reference,c=(l=-1!==["left","right"].indexOf(o))?"height":"width",d=(f=l?"Top":"Left").toLowerCase(),h=l?"left":"top",p=l?"bottom":"right",v=S(i)[c],u[p]-v<s[d]&&(t.offsets.popper[d]-=s[d]-(u[p]-v)),u[d]+v>s[p]&&(t.offsets.popper[d]+=u[d]+v-s[p]),t.offsets.popper=m(t.offsets.popper),g=u[d]+u[c]/2-v/2,b=r(t.instance.popper),y=parseFloat(b["margin"+f],10),w=parseFloat(b["border"+f+"Width"],10),_=g-t.offsets.popper[d]-y-w,_=Math.max(Math.min(s[c]-v,_),0),t.arrowElement=i,t.offsets.arrow=(Z(n={},d,Math.round(_)),Z(n,h,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){var n,r,i,o,a;if(P(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;switch(n=_(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],i=C(r),o=t.placement.split("-")[1]||"",a=[],e.behavior){case et.FLIP:a=[r,i];break;case et.CLOCKWISE:a=q(r);break;case et.COUNTERCLOCKWISE:a=q(r,!0);break;default:a=e.behavior}return a.forEach((function(s,u){var l,c,f,d,h,p,m,v,g,b,y,w,_;if(r!==s||a.length===u+1)return t;r=t.placement.split("-")[0],i=C(r),l=t.offsets.popper,c=t.offsets.reference,f=Math.floor,d="left"===r&&f(l.right)>f(c.left)||"right"===r&&f(l.left)<f(c.right)||"top"===r&&f(l.bottom)>f(c.top)||"bottom"===r&&f(l.top)<f(c.bottom),h=f(l.left)<f(n.left),p=f(l.right)>f(n.right),m=f(l.top)<f(n.top),v=f(l.bottom)>f(n.bottom),g="left"===r&&h||"right"===r&&p||"top"===r&&m||"bottom"===r&&v,b=-1!==["top","bottom"].indexOf(r),y=!!e.flipVariations&&(b&&"start"===o&&h||b&&"end"===o&&p||!b&&"start"===o&&m||!b&&"end"===o&&v),w=!!e.flipVariationsByContent&&(b&&"start"===o&&p||b&&"end"===o&&h||!b&&"start"===o&&v||!b&&"end"===o&&m),_=y||w,(d||g||_)&&(t.flipped=!0,(d||g)&&(r=a[u+1]),_&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=r+(o?"-"+o:""),t.offsets.popper=J({},t.offsets.popper,A(t.instance.popper,t.offsets.reference,t.placement)),t=E(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],r=t.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),t.placement=C(e),t.offsets.popper=m(i),t}},hide:{order:800,enabled:!0,fn:function(t){var e,n;if(!F(t.instance.modifiers,"hide","preventOverflow"))return t;if(e=t.offsets.reference,n=T(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries,e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n,r,i,o,a,u,l,c,f,d,h,p,m,g=e.x,b=e.y,y=t.offsets.popper,w=T(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;return void 0!==w&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!"),n=void 0!==w?w:e.gpuAcceleration,i=v(r=s(t.instance.popper)),o={position:y.position},a=function(t,e){var n=t.offsets,r=n.popper,i=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},u=o(i.width),l=o(r.width),c=-1!==["left","right"].indexOf(t.placement),f=-1!==t.placement.indexOf("-"),d=e?c||f||u%2==l%2?o:a:s,h=e?o:s;return{left:d(u%2==1&&l%2==1&&!f&&e?r.left-1:r.left),top:h(r.top),bottom:h(r.bottom),right:d(r.right)}}(t,window.devicePixelRatio<2||!X),u="bottom"===g?"top":"bottom",l="right"===b?"left":"right",c=I("transform"),d="bottom"===u?"HTML"===r.nodeName?-r.clientHeight+a.bottom:-i.height+a.bottom:a.top,f="right"===l?"HTML"===r.nodeName?-r.clientWidth+a.right:-i.width+a.right:a.left,n&&c?(o[c]="translate3d("+f+"px, "+d+"px, 0)",o[u]=0,o[l]=0,o.willChange="transform"):(h="bottom"===u?-1:1,p="right"===l?-1:1,o[u]=d*h,o[l]=f*p,o.willChange=u+", "+l),m={"x-placement":t.placement},t.attributes=J({},m,t.attributes),t.styles=J({},o,t.styles),t.arrowStyles=J({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return z(t.instance.popper,t.styles),function(t,e){Object.keys(e).forEach((function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)}))}(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&z(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,r,i){var o=x(i,e,t,n.positionFixed),a=M(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),z(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},(rt=function(){function t(e,r){var i,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Y(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=U(this.update.bind(this)),this.options=J({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(J({},t.Defaults.modifiers,a.modifiers)).forEach((function(e){o.options.modifiers[e]=J({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return J({name:t},o.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&n(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)})),this.update(),(i=this.options.eventsEnabled)&&this.enableEventListeners(),this.state.eventsEnabled=i}return G(t,[{key:"update",value:function(){return O.call(this)}},{key:"destroy",value:function(){return R.call(this)}},{key:"enableEventListeners",value:function(){return N.call(this)}},{key:"disableEventListeners",value:function(){return L.call(this)}}]),t}()).Utils=("undefined"!=typeof window?window:t).PopperUtils,rt.placements=Q,rt.Defaults=nt,e.default=rt}.call(e,n(12))},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(70),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(155),s=function(t){n(154)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),e.default=new r.default({name:"MdContent",props:{mdTag:{type:String,default:"div"}},render:function(t){return t(this.mdTag,{staticClass:"md-content",class:[this.$mdActiveTheme],attrs:this.$attrs,on:this.$listeners},this.$slots.default)}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(1)),o=r(n(27)),a=r(n(58)),s=r(n(59)),e.default=new i.default({name:"MdDialog",components:{MdPortal:o.default,MdOverlay:a.default,MdFocusTrap:s.default},props:{mdActive:Boolean,mdBackdrop:{type:Boolean,default:!0},mdBackdropClass:{type:String,default:"md-dialog-overlay"},mdCloseOnEsc:{type:Boolean,default:!0},mdClickOutsideToClose:{type:Boolean,default:!0},mdFullscreen:{type:Boolean,default:!0},mdAnimateFromSource:Boolean},computed:{dialogClasses:function(){return{"md-dialog-fullscreen":this.mdFullscreen}}},watch:{mdActive:function(t){var e=this;this.$nextTick().then((function(){t?e.$emit("md-opened"):e.$emit("md-closed")}))}},methods:{closeDialog:function(){this.$emit("update:mdActive",!1)},onClick:function(){this.mdClickOutsideToClose&&this.closeDialog(),this.$emit("md-clicked-outside")},onEsc:function(){this.mdCloseOnEsc&&this.closeDialog()}}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(1)),o=r(n(97)),a=r(n(43)),e.default=new i.default({name:"MdEmptyState",mixins:[a.default],props:o.default,computed:{emptyStateClasses:function(){return{"md-rounded":this.mdRounded}},emptyStateStyles:function(){if(this.mdRounded){var t=this.mdSize+"px";return{width:t,height:t}}}}})},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),r=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},i=function(t){return t&&t.__esModule?t:{default:t}}(n(8)),e.default={name:"MdMenu",props:{mdActive:Boolean,mdAlignTrigger:Boolean,mdOffsetX:Number,mdOffsetY:Number,mdFullWidth:Boolean,mdDense:Boolean,mdDirection:r({type:String,default:"bottom-start"},(0,i.default)("md-direction",["top-end","top-start","bottom-end","bottom-start"])),mdCloseOnSelect:{type:Boolean,default:!0},mdCloseOnClick:{type:Boolean,default:!1},mdSize:r({type:String,default:"small"},(0,i.default)("md-size",["auto","small","medium","big","huge"]))},data:function(){return{triggerEl:null,MdMenu:{instance:this,active:this.mdActive,direction:this.mdDirection,size:this.mdSize,alignTrigger:this.mdAlignTrigger,offsetX:this.mdOffsetX,offsetY:this.mdOffsetY,fullWidth:this.mdFullWidth,dense:this.mdDense,closeOnSelect:this.mdCloseOnSelect,closeOnClick:this.mdCloseOnClick,bodyClickObserver:null,windowResizeObserver:null,$el:this.$el}}},provide:function(){return{MdMenu:this.MdMenu}},computed:{isActive:function(){return this.MdMenu.active}},watch:{mdActive:{immediate:!0,handler:function(t){this.MdMenu.active=t}},mdDirection:function(t){this.MdMenu.direction=t},mdSize:function(t){this.MdMenu.size=t},mdAlignTrigger:function(t){this.MdMenu.alignTrigger=t},mdOffsetX:function(t){this.MdMenu.offsetX=t},mdOffsetY:function(t){this.MdMenu.offsetY=t},isActive:function(t){this.$emit("update:mdActive",t),t?this.$emit("md-opened"):this.$emit("md-closed")},mdCloseOnSelect:function(){this.MdMenu.closeOnSelect=this.mdCloseOnSelect},mdCloseOnClick:function(){this.MdMenu.closeOnClick=this.mdCloseOnClick}},methods:{toggleContent:function(t){this.MdMenu.active=!this.MdMenu.active}},mounted:function(){var t=this;this.MdMenu.$el=this.$el,this.$nextTick().then((function(){t.triggerEl=t.$el.querySelector("[md-menu-trigger]"),t.triggerEl&&t.triggerEl.addEventListener("click",t.toggleContent)}))},beforeDestroy:function(){this.triggerEl&&this.triggerEl.removeEventListener("click",this.toggleContent)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o,a,s,u,l,c,f,d,h;Object.defineProperty(e,"__esModule",{value:!0}),o=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},a=r(n(1)),r(n(8)),s=n(60),u=r(s),l=n(61),c=r(l),f=r(n(56)),d=r(n(59)),h=r(n(74)),e.default=new a.default({name:"MdMenuContent",components:{MdPopover:f.default,MdFocusTrap:d.default,MdList:h.default},props:{mdListClass:[String,Boolean],mdContentClass:[String,Boolean]},inject:["MdMenu"],data:function(){return{highlightIndex:-1,didMount:!1,highlightItems:[],popperSettings:null,menuStyles:""}},computed:{filteredAttrs:function(){var t=this.$attrs;return delete t.id,t},highlightedItem:function(){return this.highlightItems[this.highlightIndex]},shouldRender:function(){return this.MdMenu.active},menuClasses:function(){var t,e="md-menu-content-";return i(t={},e+this.MdMenu.direction,!0),i(t,e+this.MdMenu.size,!0),i(t,"md-menu-content",this.didMount),i(t,"md-shallow",!this.didMount),t},listClasses:function(){return o({"md-dense":this.MdMenu.dense},this.mdListClass)}},watch:{shouldRender:function(t){var e=this;t&&(this.setPopperSettings(),this.$nextTick().then((function(){e.setInitialHighlightIndex(),e.createClickEventObserver(),e.createResizeObserver(),e.createKeydownListener()})))}},methods:{setPopperSettings:function(){var t=this.MdMenu,e=t.direction,n=(t.alignTrigger,this.getOffsets()),r=n.offsetX,i=n.offsetY;this.hasCustomOffsets()||(this.MdMenu.instance.$el&&this.MdMenu.instance.$el.offsetHeight&&(i=-this.MdMenu.instance.$el.offsetHeight-11),e.includes("start")?r=-8:e.includes("end")&&(r=8)),this.popperSettings={placement:e,modifiers:{keepTogether:{enabled:!0},flip:{enabled:!1},offset:{offset:r+", "+i}}}},setInitialHighlightIndex:function(){var t=this;this.setHighlightItems(),this.highlightItems.forEach((function(e,n){e.classList.contains("md-selected")&&(t.highlightIndex=n-1)}))},setHighlightItems:function(){if(this.$el.querySelectorAll){var t=this.$el.querySelectorAll(".md-list-item-container:not(.md-list-item-default):not([disabled])");this.highlightItems=Array.from(t)}},setHighlight:function(t){this.setHighlightItems(),this.highlightItems.length&&("down"===t?this.highlightIndex===this.highlightItems.length-1?this.highlightIndex=0:this.highlightIndex++:0===this.highlightIndex?this.highlightIndex=this.highlightItems.length-1:this.highlightIndex--,this.clearAllHighlights(),this.setItemHighlight())},clearAllHighlights:function(){this.highlightItems.forEach((function(t){t.parentNode.__vue__.highlighted=!1}))},setItemHighlight:function(){this.highlightedItem&&(this.highlightedItem.parentNode.__vue__.highlighted=!0,this.$parent.$parent.setOffsets&&this.$parent.$parent.setOffsets(this.highlightedItem.parentNode))},setSelection:function(){this.highlightedItem&&this.highlightedItem.parentNode.click()},onEsc:function(){this.MdMenu.active=!1,this.destroyKeyDownListener()},getOffsets:function(){var t=this.getBodyPosition(),e=this.MdMenu.offsetX||0,n=this.MdMenu.offsetY||0;return{offsetX:e-t.x,offsetY:n-t.y}},hasCustomOffsets:function(){var t=this.MdMenu,e=t.offsetX,n=t.offsetY;return!!(t.alignTrigger||n||e)},isMenu:function(t){var e=t.target;return!!this.MdMenu.$el&&this.MdMenu.$el.contains(e)},isMenuContentEl:function(t){var e=t.target;return!!this.$refs.menu&&this.$refs.menu.contains(e)},isBackdropExpectMenu:function(t){return!this.$el.contains(t.target)&&!this.isMenu(t)},createClickEventObserver:function(){var t=this;document&&(this.MdMenu.bodyClickObserver=new u.default(document.body,"click",(function(e){e.stopPropagation(),t.isMenu(e)||!t.MdMenu.closeOnClick&&!t.isBackdropExpectMenu(e)||(t.MdMenu.active=!1,t.MdMenu.bodyClickObserver.destroy(),t.MdMenu.windowResizeObserver.destroy(),t.destroyKeyDownListener())})))},createKeydownListener:function(){window.addEventListener("keydown",this.keyNavigation)},destroyKeyDownListener:function(){window.removeEventListener("keydown",this.keyNavigation)},keyNavigation:function(t){switch(t.key){case"ArrowUp":t.preventDefault(),this.setHighlight("up");break;case"ArrowDown":t.preventDefault(),this.setHighlight("down");break;case"Enter":case"Space":this.setSelection();break;case"Escape":this.onEsc()}},createResizeObserver:function(){this.MdMenu.windowResizeObserver=new c.default(window,this.setStyles)},setupWatchers:function(){this.$watch("MdMenu.direction",this.setPopperSettings),this.$watch("MdMenu.alignTrigger",this.setPopperSettings),this.$watch("MdMenu.offsetX",this.setPopperSettings),this.$watch("MdMenu.offsetY",this.setPopperSettings)},setStyles:function(){this.MdMenu.fullWidth&&(this.menuStyles="\n          width: "+this.MdMenu.instance.$el.offsetWidth+"px;\n          max-width: "+this.MdMenu.instance.$el.offsetWidth+"px\n        ")},getBodyPosition:function(){var t=document.body,e=t.getBoundingClientRect(),n=e.top;return{x:e.left+(void 0!==window.pageXOffset?window.pageXOffset:t.scrollLeft),y:n+(void 0!==window.pageYOffset?window.pageYOffset:t.scrollTop)}}},mounted:function(){var t=this;this.$nextTick().then((function(){t.setHighlightItems(),t.setupWatchers(),t.setStyles(),t.didMount=!0}))},beforeDestroy:function(){this.MdMenu.bodyClickObserver&&this.MdMenu.bodyClickObserver.destroy(),this.MdMenu.windowResizeObserver&&this.MdMenu.windowResizeObserver.destroy(),this.destroyKeyDownListener()}})},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(57),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(99),s=function(t){n(98)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return t.hasOwnProperty("mdExpand")&&!1!==t.mdExpand}function o(t,e){if(i(t))return{"md-expand":function(){return e["md-expand"][0]}}}function a(t,e,n,r){return i(t)?M.default:t.disabled?g.default:function(t,e){return t&&t.$router&&e.to}(e,t)?(_.default.props=(0,f.default)(e,{target:String}),delete _.default.props.href,_.default):t.href?y.default:function(t){var e=Object.keys(t),n=!1;return e.forEach((function(t){l.default.includes(t)&&(n=!0)})),n}(n)?function(t){return function(t){return t.default.some((function(t){return t.componentOptions&&"md-button"===t.componentOptions.tag}))}(t)?m.default:g.default}(r):h.default}var s,u,l,c,f,d,h,p,m,v,g,b,y,w,_,k,M,x;Object.defineProperty(e,"__esModule",{value:!0}),s=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},u=n(100),l=r(u),c=n(29),f=r(c),d=n(178),h=r(d),p=n(182),m=r(p),v=n(184),g=r(v),b=n(186),y=r(b),w=n(188),_=r(w),k=n(190),M=r(k),x=r(n(39)),e.default={name:"MdListItem",functional:!0,components:{MdButton:x.default},render:function(t,e){var n=e.parent,r=e.props,i=e.listeners,u=e.data,l=(0,e.slots)(),c=a(r,n,i,l),f="md-list-item";return u.staticClass&&(f+=" "+u.staticClass),t("li",s({},u,{staticClass:f,on:i}),[t(c,{props:r,scopedSlots:o(r,l),staticClass:"md-list-item-container md-button-clean",on:i},l.default)])}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(30)),e.default={name:"MdListItemDefault",mixins:[r.default],methods:{toggleControl:function(){var t=this.$el.querySelector(".md-checkbox-container, .md-switch-container, .md-radio-container");t&&t.click()}}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(16)),e.default={name:"MdListItemContent",components:{MdRipple:r.default},props:{mdDisabled:Boolean}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(30)),e.default={name:"MdListItemFakeButton",mixins:[r.default]}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(30)),e.default={name:"MdListItemButton",mixins:[r.default]}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(30)),e.default={name:"MdListItemLink",mixins:[r.default],props:{download:String,href:String,hreflang:String,ping:String,rel:String,target:String,type:String}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(30)),e.default={name:"MdListItemRouter",mixins:[r.default],computed:{routerProps:function(){return this.$props}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(10),o=r(i),a=r(n(192)),s=r(n(30)),e.default={name:"MdListItemExpand",components:{MdArrowDownIcon:a.default},mixins:[s.default],inject:["MdList"],data:function(){return{expandStyles:{},showContent:!1}},props:{mdExpanded:Boolean},computed:{expandClasses:function(){return{"md-active":this.showContent}}},methods:{getChildrenSize:function(){var t=this.$refs.listExpand,e=0;return Array.from(t.children).forEach((function(t){e+=t.offsetHeight})),e},fetchStyle:function(){var t=this;return new Promise((function(e){(0,o.default)((function(){var n=0;t.showContent||(n="auto"),t.expandStyles={height:n},e()}))}))},toggleExpand:function(){var t=this;this.fetchStyle().then((function(){t.showContent=!t.showContent}))},open:function(){var t=this;if(this.showContent)return!1;this.fetchStyle().then((function(){return[t.showContent=!0]}))},close:function(){var t=this;if(!this.showContent)return!1;this.fetchStyle().then((function(){t.showContent=!1}))}},watch:{mdExpanded:function(){this.mdExpanded?this.open():this.close()},showContent:function(){var t=this,e=this.showContent;this.$emit("update:mdExpanded",e),this.$nextTick((function(){return t.$emit(e?"md-expanded":"md-collapsed")})),e&&this.MdList.expandATab(this)}},created:function(){this.MdList.pushExpandable(this)},mounted:function(){this.mdExpanded&&this.open()},beforeDestroy:function(){this.MdList.removeExpandable(this)}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),e.default={name:"MdArrowDownIcon",components:{MdIcon:r.default}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),e.default=new r.default({name:"MdToolbar",props:{mdElevation:{type:[String,Number],default:4}}})},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this;return t.$createElement,t._self._c,t._m(1)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}}),t._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])},function(){var t=this,e=t.$createElement;return(t._self._c||e)("md-icon",{staticClass:"md-icon-image"},[t._m(0)])}]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(51),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(88),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this;return t.$createElement,t._self._c,t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z",fill:"none"}}),t._v(" "),n("path",{attrs:{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}})])])}]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(52),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(90),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this;return t.$createElement,t._self._c,t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),t._v(" "),n("path",{attrs:{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}})])])}]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-field",class:[t.$mdActiveTheme,t.fieldClasses],on:{blur:t.onBlur}},[t._t("default"),t._v(" "),t.hasCounter?n("span",{staticClass:"md-count"},[t._v(t._s(t.valueLength)+" / "+t._s(t.MdField.maxlength||t.MdField.counter))]):t._e(),t._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[t.hasValue&&t.mdClearable?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-clear",attrs:{tabindex:"-1",disabled:t.MdField.disabled},on:{click:t.clearInput}},[n("md-clear-icon")],1):t._e()],1),t._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[t.hasPasswordToggle?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-toggle-password",attrs:{tabindex:"-1"},on:{click:t.togglePassword}},[n(t.MdField.togglePassword?"md-password-on-icon":"md-password-off-icon")],1):t._e()],1)],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return"checkbox"===t.attributes.type?n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"md-input",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t.model},on:{focus:t.onFocus,blur:t.onBlur,change:function(e){var n,r=t.model,i=e.target,o=!!i.checked;Array.isArray(r)?(n=t._i(r,null),i.checked?n<0&&(t.model=r.concat([null])):n>-1&&(t.model=r.slice(0,n).concat(r.slice(n+1)))):t.model=o}}},"input",t.attributes,!1),t.listeners)):"radio"===t.attributes.type?n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"md-input",attrs:{type:"radio"},domProps:{checked:t._q(t.model,null)},on:{focus:t.onFocus,blur:t.onBlur,change:function(e){t.model=null}}},"input",t.attributes,!1),t.listeners)):n("input",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"md-input",attrs:{type:t.attributes.type},domProps:{value:t.model},on:{focus:t.onFocus,blur:t.onBlur,input:function(e){e.target.composing||(t.model=e.target.value)}}},"input",t.attributes,!1),t.listeners))},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o;e.a=function(t,e){var n,a,s,u,l,c,f,d,h,p,m;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(a=(n=Object(i.a)(t,e)).getUTCFullYear(),c=null==(l=(u=(s=e||{}).locale)&&u.options&&u.options.firstWeekContainsDate)?1:Object(r.a)(l),!((f=null==s.firstWeekContainsDate?c:Object(r.a)(s.firstWeekContainsDate))>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");return(d=new Date(0)).setUTCFullYear(a+1,0,f),d.setUTCHours(0,0,0,0),h=Object(o.a)(d,e),(p=new Date(0)).setUTCFullYear(a,0,f),p.setUTCHours(0,0,0,0),m=Object(o.a)(p,e),n.getTime()>=h.getTime()?a+1:n.getTime()>=m.getTime()?a:a-1},r=n(17),i=n(9),o=n(65)},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-portal",{attrs:{"md-attach-to-parent":t.mdAttachToParent}},[n("transition",{attrs:{name:"md-overlay"}},[t.mdActive?n("div",t._g({staticClass:"md-overlay",class:t.overlayClasses},t.$listeners)):t._e()])],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n,i,o;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=(e=Object(r.a)(t)).getFullYear(),i=e.getMonth(),(o=new Date(0)).setFullYear(n,i+1,0),o.setHours(0,0,0,0),o.getDate()};var r=n(9)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={mdRounded:Boolean,mdSize:{type:Number,default:420},mdIcon:String,mdLabel:String,mdDescription:String}},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("ul",t._g(t._b({staticClass:"md-list",class:[t.$mdActiveTheme]},"ul",t.$attrs,!1),t.$listeners),[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=["click","dblclick","mousedown","mouseup"]},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(216),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(466),s=function(t){n(463)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t){return t&&t.__esModule?t:{default:t}}(n(16)),e.default={components:{MdRipple:i.default},props:{model:[String,Boolean,Object,Number,Array],value:{type:[String,Boolean,Object,Number]},name:[String,Number],required:Boolean,disabled:Boolean,indeterminate:Boolean,trueValue:{default:!0},falseValue:{default:!1}},model:{prop:"model",event:"change"},data:function(){return{rippleActive:!1}},computed:{attrs:function(){var t={id:this.id,name:this.name,disabled:this.disabled,required:this.required,"true-value":this.trueValue,"false-value":this.falseValue};return this.$options.propsData.hasOwnProperty("value")&&(null!==this.value&&"object"===r(this.value)||(t.value=null===this.value||void 0===this.value?"":this.value+"")),t},isSelected:function(){return this.isModelArray?this.model.includes(this.value):this.hasValue?this.model===this.value:this.model===this.trueValue},isModelArray:function(){return Array.isArray(this.model)},checkClasses:function(){return{"md-checked":this.isSelected,"md-disabled":this.disabled,"md-required":this.required,"md-indeterminate":this.indeterminate}},hasValue:function(){return this.$options.propsData.hasOwnProperty("value")}},methods:{removeItemFromModel:function(t){var e=t.indexOf(this.value);-1!==e&&t.splice(e,1)},handleArrayCheckbox:function(){var t=this.model;this.isSelected?this.removeItemFromModel(t):t.push(this.value),this.$emit("change",t)},handleSingleSelectCheckbox:function(){this.$emit("change",this.isSelected?null:this.value)},handleSimpleCheckbox:function(){this.$emit("change",this.isSelected?this.falseValue:this.trueValue)},toggleCheck:function(){this.disabled||(this.rippleActive=!0,this.isModelArray?this.handleArrayCheckbox():this.hasValue?this.handleSingleSelectCheckbox():this.handleSimpleCheckbox())}}}},function(t,e,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(69),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(0)(i.a,null,!1,null,null,null),e.default=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={props:{mdSwipeable:Boolean,mdSwipeThreshold:{type:Number,default:150},mdSwipeRestraint:{type:Number,default:100},mdSwipeTime:{type:Number,default:300}},data:function(){return{swipeStart:!1,swipeStartTime:null,swiped:null,touchPosition:{startX:0,startY:0}}},computed:{getSwipeElement:function(){return this.mdSwipeElement||window}},methods:{handleTouchStart:function(t){this.touchPosition.startX=t.touches[0].screenX,this.touchPosition.startY=t.touches[0].screenY,this.swipeStartTime=new Date,this.swipeStart=!0},handleTouchMove:function(t){var e,n,r,i;this.swipeStart&&(e=t.touches[0].screenX,n=t.touches[0].screenY,r=e-this.touchPosition.startX,i=n-this.touchPosition.startY,new Date-this.swipeStartTime<=this.mdSwipeTime&&(Math.abs(r)>=this.mdSwipeThreshold&&Math.abs(i)<=this.mdSwipeRestraint?this.swiped=r<0?"left":"right":Math.abs(i)>=this.mdSwipeThreshold&&Math.abs(r)<=this.mdSwipeRestraint&&(this.swiped=i<0?"up":"down")))},handleTouchEnd:function(){this.touchPosition={startX:0,startY:0},this.swiped=null,this.swipeStart=!1}},mounted:function(){this.mdSwipeable&&(this.getSwipeElement.addEventListener("touchstart",this.handleTouchStart,!1),this.getSwipeElement.addEventListener("touchend",this.handleTouchEnd,!1),this.getSwipeElement.addEventListener("touchmove",this.handleTouchMove,!1))},beforeDestroy:function(){this.mdSwipeable&&(this.getSwipeElement.removeEventListener("touchstart",this.handleTouchStart,!1),this.getSwipeElement.removeEventListener("touchend",this.handleTouchEnd,!1),this.getSwipeElement.removeEventListener("touchmove",this.handleTouchMove,!1))}}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(71),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(163),s=function(t){n(162)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(13),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(72),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(167),s=function(t){n(166)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(73),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(169),s=function(t){n(168)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(75),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=function(t){n(177)},s=n(0)(i.a,null,!1,a,null,null),e.default=s.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e){return!t||!1!==t[e]};e.default=function(t,e,n){var i=r(n,"leading"),o=(r(n,"trailing"),null);return function(){var e=this,n=arguments,r=function(){return t.apply(e,n)};if(o)return!1;i&&r()}}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(84),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(227),s=function(t){n(226)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function o(t,e){return t&&g.includes(t.slot)||function(t){return t&&g.includes(i(t.tag))}(e)}function a(t,e,n,r,a){var s=[],l=!1;return t&&t.forEach((function(t){var f,d,h,p=t.data,m=t.componentOptions;if(o(p,m)){if(f=p.slot||i(m.tag),t.data.slot=f,"md-app-drawer"===f){if(d=function(t){return!(!t||""!==t.mdRight&&!t.mdRight)}(m.propsData),l)return void c.default.util.warn("There shouldn't be more than one drawer in a MdApp at one time.");l=!0,t.data.slot+="-"+(d?"right":"left"),t.key=function(t){return JSON.stringify({persistent:t&&t["md-persistent"],permanent:t&&t["md-permanent"]})}(p.attrs),d&&((h=a(v.default,{props:u({},t.data.attrs)})).data.slot="md-app-drawer-right-previous",s.push(h))}t.data.provide=r.Ctor.options.provide,t.context=e,t.functionalContext=n,s.push(t)}})),s}function s(t){var e=t.filter((function(t){return"md-app-drawer"===(t.data.slot||i(t.componentOptions.tag))}));return e.length?e:[]}var u,l,c,f,d,h,p,m,v,g;Object.defineProperty(e,"__esModule",{value:!0}),u=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},l=n(2),c=r(l),f=n(237),d=r(f),h=n(240),p=r(h),m=n(243),v=r(m),g=["md-app-toolbar","md-app-drawer","md-app-content"],e.default={name:"MdApp",functional:!0,render:function(t,e){var n,r=e.children,i=e.props,o=e.data,l=d.default,c=t(l),f=a(r,c.context,c.functionalContext,c.componentOptions,t);return s(f).forEach((function(t){t&&function(t){var e=t&&t["md-permanent"];return e&&("clipped"===e||"card"===e)}(t.data.attrs)&&(l=p.default)})),n={},o.staticClass&&o.staticClass.split(/\s+/).forEach((function(t){0!==t.length&&(n[t]=!0)})),t(l,{attrs:i,class:u({},n,o.class),style:u({},o.staticStyle,o.style)},f)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(1)),o=r(n(114)),e.default=new i.default({name:"MdAppSideDrawer",mixins:[o.default]})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=n(10),a=r(o),s=r(n(8)),u=["fixed","fixed-last","reveal","overlap","flexible"],e.default={props:{mdMode:i({type:String},(0,s.default)("md-mode",u)),mdWaterfall:Boolean,mdScrollbar:{type:Boolean,default:!0}},data:function(){return{revealTimer:null,revealLastPos:0,manualTick:!1,MdApp:{options:{mode:null,waterfall:!1,flexible:!1},toolbar:{element:null,titleElement:null,height:"0px",initialHeight:0,top:0,titleSize:20,hasElevation:!0,revealActive:!1,fixedLastActive:!1,fixedLastHeight:!1,overlapOff:!1},drawer:{initialWidth:0,active:!1,mode:"temporary",submode:null,width:0,right:!1}}}},provide:function(){return{MdApp:this.MdApp}},computed:{isFixed:function(){return this.mdMode&&"fixed"!==this.mdMode},isDrawerMini:function(){return"persistent"===this.MdApp.drawer.mode&&"mini"===this.MdApp.drawer.submode},contentPadding:function(){return this.MdApp.drawer,this.MdApp.drawer.active&&"persistent"===this.MdApp.drawer.mode&&"full"===this.MdApp.drawer.submode?this.MdApp.drawer.width:0},contentStyles:function(){return function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},"padding-"+(this.MdApp.drawer.right?"right":"left"),this.contentPadding)},containerStyles:function(){var t={};return this.isFixed&&(t["margin-top"]=this.MdApp.toolbar.initialHeight+"px"),this.isDrawerMini&&(t["padding-"+(this.MdApp.drawer.right?"right":"left")]=this.MdApp.drawer.active?0:this.MdApp.drawer.initialWidth+"px"),t},scrollerClasses:function(){if(this.mdScrollbar)return"md-scrollbar"},appClasses:function(){return{"md-waterfall":this.mdWaterfall,"md-flexible":"flexible"===this.mdMode,"md-fixed":"fixed"===this.mdMode,"md-fixed-last":"fixed-last"===this.mdMode,"md-reveal":"reveal"===this.mdMode,"md-overlap":"overlap"===this.mdMode,"md-drawer-active":this.MdApp.drawer.active}}},watch:{mdMode:function(t){this.MdApp.options.mode=t},mdWaterfall:function(t){this.MdApp.options.waterfall=t,this.setToolbarElevation()}},methods:{setToolbarElevation:function(){this.MdApp.toolbar.hasElevation=!this.mdWaterfall},setToolbarTimer:function(t){var e=this;window.clearTimeout(this.revealTimer),this.revealTimer=window.setTimeout((function(){e.revealLastPos=t}),100)},setToolbarMarginAndHeight:function(t,e){this.MdApp.toolbar.top=t,this.MdApp.toolbar.height=e},getToolbarConstrants:function(t){var e=this.MdApp.toolbar.element.offsetHeight,n=e+10,r=t.target.scrollTop;return this.MdApp.toolbar.initialHeight||(this.MdApp.toolbar.initialHeight=e),{toolbarHeight:e,safeAmount:10,threshold:n,scrollTop:r,initialHeight:this.MdApp.toolbar.initialHeight}},handleWaterfallScroll:function(t){var e=this.getToolbarConstrants(t),n=e.threshold,r=e.scrollTop,i=4;"reveal"===this.mdMode&&(i=n),this.MdApp.toolbar.hasElevation=r>=i},handleFlexibleMode:function(t){var e,n,r,i,o,a,s=this.getToolbarConstrants(t),u=s.scrollTop,l=s.initialHeight,c=this.MdApp.toolbar.element,f=c.querySelector(".md-toolbar-row:first-child").offsetHeight,d=l-u,h=u<l-f;f&&(c.style.height=h?d+"px":f+"px"),(e=this.MdApp.toolbar.titleElement)&&(n=this.MdApp.toolbar.titleSize,h?(r=Math.max(0,1-(u-n)/(d+n+1e-6))*(n-20)+20,e.style.fontSize=r+"px"):e.style.fontSize="20px"),o=(i=this.getToolbarConstrants(t)).threshold,a=i.toolbarHeight,this.setToolbarMarginAndHeight(u-o,a)},handleRevealMode:function(t){var e=this.getToolbarConstrants(t),n=e.toolbarHeight,r=e.safeAmount,i=e.threshold,o=e.scrollTop;this.setToolbarTimer(o),this.setToolbarMarginAndHeight(o-i,n),this.MdApp.toolbar.revealActive=!(o>=i)||this.revealLastPos>o+r},handleFixedLastMode:function(t){var e=this.getToolbarConstrants(t),n=e.scrollTop,r=e.toolbarHeight,i=e.safeAmount,o=this.MdApp.toolbar.element.querySelector(".md-toolbar-row:first-child").offsetHeight;this.setToolbarTimer(n),this.setToolbarMarginAndHeight(n-o,r),this.MdApp.toolbar.fixedLastHeight=o,this.MdApp.toolbar.fixedLastActive=!(n>=o)||this.revealLastPos>n+i},handleOverlapMode:function(t){var e=this.getToolbarConstrants(t),n=e.toolbarHeight,r=e.scrollTop,i=e.initialHeight,o=this.MdApp.toolbar.element,a=o.querySelector(".md-toolbar-row:first-child").offsetHeight,s=i-r-100*r/(i-a-a/1.5);a&&(r<i-a&&s>=a?(this.MdApp.toolbar.overlapOff=!1,o.style.height=s+"px"):(this.MdApp.toolbar.overlapOff=!0,o.style.height=a+"px")),this.setToolbarMarginAndHeight(r,n)},handleModeScroll:function(t){"reveal"===this.mdMode?this.handleRevealMode(t):"fixed-last"===this.mdMode?this.handleFixedLastMode(t):"overlap"===this.mdMode?this.handleOverlapMode(t):"flexible"===this.mdMode&&this.handleFlexibleMode(t)},handleScroll:function(t){var e=this;this.MdApp.toolbar.element&&(0,a.default)((function(){e.mdWaterfall&&e.handleWaterfallScroll(t),e.mdMode&&e.handleModeScroll(t)}))}},created:function(){this.MdApp.options.mode=this.mdMode,this.MdApp.options.waterfall=this.mdWaterfall,this.setToolbarElevation()},mounted:function(){var t={target:{scrollTop:0}};"reveal"===this.mdMode&&(this.MdApp.toolbar.revealActive=!0,this.handleRevealMode(t)),"flexible"===this.mdMode&&(this.MdApp.toolbar.revealActive=!0,this.handleFlexibleMode(t)),"fixed-last"===this.mdMode&&(this.MdApp.toolbar.fixedLastActive=!0,this.handleFixedLastMode(t)),"overlap"===this.mdMode&&this.handleOverlapMode(t)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(1)),o=r(n(114)),e.default=new i.default({name:"MdAppInternalDrawer",mixins:[o.default]})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=r(n(1)),a=r(n(8)),e.default=new o.default({name:"MdDrawer",props:{mdPermanent:i({type:String},(0,a.default)("md-permanent",["full","clipped","card"])),mdPersistent:i({type:String},(0,a.default)("md-persistent",["mini","full"])),mdActive:Boolean,mdFixed:Boolean},computed:{drawerClasses:function(){var t={"md-temporary":this.isTemporary,"md-persistent":this.mdPersistent,"md-permanent":this.mdPermanent,"md-active":this.mdActive,"md-fixed":this.mdFixed};return this.mdPermanent&&(t["md-permanent-"+this.mdPermanent]=!0),this.mdPersistent&&(t["md-persistent-"+this.mdPersistent]=!0),t},isTemporary:function(){return!this.mdPermanent&&!this.mdPersistent}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdAppToolbar",inject:["MdApp"],computed:{toolbarClasses:function(){return{"md-no-elevation":!this.MdApp.toolbar.hasElevation,"md-reveal-active":this.MdApp.toolbar.revealActive,"md-fixed-last-active":this.MdApp.toolbar.fixedLastActive,"md-overlap-off":this.MdApp.toolbar.overlapOff}},toolbarStyles:function(){var t={top:this.MdApp.toolbar.top+"px"};return this.MdApp.toolbar.fixedLastActive&&(t.transform="translate3D(0, "+this.MdApp.toolbar.fixedLastHeight+"px, 0)"),t}},mounted:function(){var t=this.$el.querySelector(".md-title, .md-display-1, .md-display-2");this.MdApp.toolbar.element=this.$el,this.MdApp.toolbar.titleElement=t,t&&(this.MdApp.toolbar.titleSize=parseInt(window.getComputedStyle(t).fontSize,10))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdAppContent",inject:["MdApp"],computed:{showCard:function(){return this.MdApp.options&&"overlap"===this.MdApp.options.mode}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdAppDrawer",inject:["MdApp"],data:function(){return{drawerElement:{mdActive:null,mode:null,submode:null},initialized:!1}},props:{mdRight:{type:Boolean,default:!1},mdActive:{type:Boolean,default:!1}},computed:{visible:function(){return this.drawerElement.mdActive},mode:function(){return this.drawerElement.mode},submode:function(){return this.drawerElement.submode}},watch:{visible:function(t){this.MdApp.drawer.width=this.getDrawerWidth(),this.MdApp.drawer.active=t},mode:function(t){this.MdApp.drawer.mode=t},submode:function(t){this.MdApp.drawer.submode=t},mdRight:function(t){this.MdApp.drawer.right=t}},methods:{getDrawerWidth:function(){return this.$el?window.getComputedStyle(this.$el).width:0},updateDrawerData:function(){this.MdApp.drawer.width=this.getDrawerWidth(),this.MdApp.drawer.active=this.visible,this.MdApp.drawer.mode=this.mode,this.MdApp.drawer.submode=this.submode,this.MdApp.drawer.right=this.mdRight},clearDrawerData:function(){this.MdApp.drawer.width=0,this.MdApp.drawer.active=!1,this.MdApp.drawer.mode="temporary",this.MdApp.drawer.submode=null,this.MdApp.drawer.initialWidth=0}},mounted:function(){var t=this;this.$nextTick().then((function(){t.MdApp.drawer.initialWidth=t.$el.offsetWidth,t.drawerElement=t.$refs.drawer,t.updateDrawerData(),t.initialized=!0}))},updated:function(){this.drawerElement=this.$refs.drawer},beforeDestroy:function(){this.clearDrawerData()}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o,a,s,u;Object.defineProperty(e,"__esModule",{value:!0}),o=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},a=r(n(1)),s=r(n(8)),u=r(n(256)),e.default=new a.default({name:"MdBadge",components:{MdBadgeStandalone:u.default},props:{mdContent:[String,Number],mdPosition:o({type:String,default:"top"},(0,s.default)("md-position",["top","bottom"])),mdDense:Boolean},computed:{hasDefaultSlot:function(){return!!this.$slots.default},badgeClasses:function(){var t,e=this.getStaticClass(),n=this.$vnode.data.class;return o((i(t={},"md-position-"+this.mdPosition,!0),i(t,"md-dense",this.mdDense),t),e,n)},styles:function(){var t=this.$vnode.data.staticStyle,e=this.$vnode.data.style;return o({},t,e)}},methods:{getStaticClass:function(){var t=this.$vnode.data.staticClass;return t?t.split(" ").filter((function(t){return t})).reduce((function(t,e){return t[e]=!0,t}),{}):{}}}})},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),e.default=new r.default({name:"MdBadgeStandalone"})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c;Object.defineProperty(e,"__esModule",{value:!0}),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},a=n(263),s=r(a),u=n(264),l=r(u),c=r(n(8)),e.default={name:"MdAutocomplete",props:{value:{type:null,required:!0},mdDense:Boolean,mdLayout:o({type:String,default:"floating"},(0,c.default)("md-layout",["floating","box"])),mdOpenOnFocus:{type:Boolean,default:!0},mdFuzzySearch:{type:Boolean,default:!0},mdOptions:{type:[Array,Promise],required:!0},mdInputName:String,mdInputId:String,mdInputMaxlength:[String,Number],mdInputPlaceholder:[String,Number]},data:function(){return{searchTerm:this.value,showMenu:!1,triggerPopover:!1,isPromisePending:!1,filteredAsyncOptions:[]}},computed:{isBoxLayout:function(){return"box"===this.mdLayout},fieldClasses:function(){if(this.isBoxLayout)return"md-autocomplete-box"},contentClasses:function(){if(this.isBoxLayout)return"md-autocomplete-box-content"},shouldFilter:function(){return this.mdOptions[0]&&this.searchTerm},filteredStaticOptions:function(){if(this.isPromise(this.mdOptions))return!1;var t=this.mdOptions[0];if(this.shouldFilter){if("string"==typeof t)return this.filterByString();if("object"===(void 0===t?"undefined":i(t)))return this.filterByObject()}return this.mdOptions},hasFilteredItems:function(){return this.filteredStaticOptions.length>0||this.filteredAsyncOptions.length>0},hasScopedEmptySlot:function(){return this.$scopedSlots["md-autocomplete-empty"]}},watch:{mdOptions:{deep:!0,immediate:!0,handler:function(){var t=this;this.isPromise(this.mdOptions)&&(this.isPromisePending=!0,this.mdOptions.then((function(e){t.filteredAsyncOptions=e,t.isPromisePending=!1})))}},value:function(t){this.searchTerm=t}},methods:{getOptions:function(){return this.isPromise(this.mdOptions)?this.filteredAsyncOptions:this.filteredStaticOptions},isPromise:function(t){return(0,l.default)(t)},matchText:function(t){var e=t.toLowerCase(),n=this.searchTerm.toLowerCase();return this.mdFuzzySearch?(0,s.default)(n,e):e.includes(n)},filterByString:function(){var t=this;return this.mdOptions.filter((function(e){return t.matchText(e)}))},filterByObject:function(){var t=this;return this.mdOptions.filter((function(e){var n,r=Object.values(e),i=r.length;for(n=0;n<=i;n++)if("string"==typeof r[n]&&t.matchText(r[n]))return!0}))},openOnFocus:function(){this.mdOpenOnFocus&&this.showOptions()},onInput:function(t){this.$emit("input",t),this.mdOpenOnFocus||this.showOptions(),"inputevent"!==(""+this.searchTerm.constructor).match(/function (\w*)/)[1].toLowerCase()&&this.$emit("md-changed",this.searchTerm)},showOptions:function(){var t=this;if(this.showMenu)return!1;this.showMenu=!0,this.$nextTick((function(){t.triggerPopover=!0,t.$emit("md-opened")}))},hideOptions:function(){var t=this;this.$nextTick((function(){t.triggerPopover=!1,t.$emit("md-closed")}))},selectItem:function(t,e){var n=e.target.textContent.trim();this.searchTerm=n,this.$emit("input",t),this.$emit("md-selected",t),this.hideOptions()}}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),e.default=new r.default({name:"MdAvatar"})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=r(n(1)),a=r(n(8)),s=r(n(16)),e.default=new o.default({name:"MdBottomBar",components:{MdRipple:s.default},props:{mdSyncRoute:Boolean,mdActiveItem:[String,Number],mdType:i({type:String,default:"fixed"},(0,a.default)("md-type",["fixed","shift"]))},data:function(){return{MdBottomBar:{mouseEvent:null,activeItem:null,items:{},syncRoute:this.mdSyncRoute}}},provide:function(){return{MdBottomBar:this.MdBottomBar}},computed:{activeItem:function(){return this.MdBottomBar.activeItem},barClasses:function(){return function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},"md-type-"+this.mdType,!0)}},watch:{activeItem:function(){this.$emit("md-changed",this.activeItem)},mdSyncRoute:function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return""+t},e}((function(){this.MdBottomBar.syncRoute=mdSyncRoute}))},methods:{hasActiveItem:function(){return this.MdBottomBar.activeItem||this.mdActiveItem},getItemsAndKeys:function(){var t=this.MdBottomBar.items;return{items:t,keys:Object.keys(t)}},setActiveItemByIndex:function(t){var e=this.getItemsAndKeys().keys;this.mdActiveItem?this.MdBottomBar.activeItem=this.mdActiveItem:this.MdBottomBar.activeItem=e[t]}},created:function(){this.MdBottomBar.type=this.mdType},mounted:function(){var t=this;this.$nextTick().then((function(){t.mdSyncRoute||t.setActiveItemByIndex(0)}))}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=r(n(43)),a=r(n(28)),s=n(11),u=r(s),l=n(29),c=r(l),f=["id","mdLabel","mdIcon","mdDisabled"],e.default={name:"MdBottomBarItem",mixins:[o.default,a.default],props:{id:{type:String,default:function(){return"md-bottom-bar-item-"+(0,u.default)()}},mdLabel:String,mdIcon:String,mdDisabled:Boolean},inject:["MdBottomBar"],watch:{$props:{deep:!0,handler:function(){this.setItemData()}},$attrs:{deep:!0,handler:function(){this.setItemData()}}},computed:{itemClasses:function(){return{"md-active":this.id===this.MdBottomBar.activeItem}},attrs:function(){var t=this,e=i({},this.$attrs);return Object.keys(this.$options.propsData).forEach((function(n){f.includes(n)||(e[n]=t[n])})),e}},methods:{getPropValues:function(){var t=this,e=Object.keys(this.$options.props),n={};return e.forEach((function(e){f.includes(e)||(t[e]?n[e]=t[e]:t.$attrs&&t.$attrs.hasOwnProperty(e)&&(n[e]=!e||t.$attrs[e]))})),n},setItemData:function(){this.$set(this.MdBottomBar.items,this.id,{disabled:this.mdDisabled,options:this.mdTemplateOptions,props:this.getPropValues()})},setActiveItem:function(t){this.MdBottomBar.syncRoute||(this.MdBottomBar.activeItem=this.id),"shift"===this.MdBottomBar.type&&(this.MdBottomBar.mouseEvent=t)}},beforeCreate:function(){if(this.$router&&this.$options.propsData.to){var t=(0,c.default)(this,this.$options.props);this.$options.props=t}},created:function(){this.setItemData()},beforeDestroy:function(){this.$delete(this.MdBottomBar.items,this.id)}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),e.default=new r.default({name:"MdCard",props:{mdWithHover:Boolean},data:function(){return{MdCard:{expand:!1}}},provide:function(){return{MdCard:this.MdCard}},computed:{cardClasses:function(){return{"md-with-hover":this.mdWithHover,"md-expand-active":this.MdCard.expand}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdCardArea",props:{mdInset:Boolean},computed:{areaClasses:function(){return{"md-inset":this.mdInset}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdCardHeader"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdCardHeaderText",data:function(){return{parentClasses:null}},mounted:function(){this.parentClasses=this.$parent.$el.classList,this.parentClasses.contains("md-card-header")&&this.parentClasses.add("md-card-header-flex")},beforeDestroy:function(){this.parentClasses.remove("md-card-header-flex")}}},function(t,e,n){"use strict";var r,i,o;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n,r,i=[],o=!0,a=!1,s=void 0;try{for(n=t[Symbol.iterator]();!(o=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){a=!0,s=t}finally{try{!o&&n.return&&n.return()}finally{if(a)throw s}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=function(t){return t&&t.__esModule?t:{default:t}}(n(8)),e.default={name:"MdCardMedia",props:{mdRatio:i({type:String},(0,o.default)("md-ratio",["16-9","16/9","16:9","4-3","4/3","4:3","1-1","1/1","1:1"])),mdMedium:Boolean,mdBig:Boolean},computed:{mediaClasses:function(){var t,e,n={};return this.mdRatio&&(t=this.getAspectRatio())&&(n["md-ratio-"+(e=r(t,2))[0]+"-"+e[1]]=!0),(this.mdMedium||this.mdBig)&&(n={"md-medium":this.mdMedium,"md-big":this.mdBig}),n}},methods:{getAspectRatio:function(){var t=[];return-1!==this.mdRatio.indexOf(":")?t=this.mdRatio.split(":"):-1!==this.mdRatio.indexOf("/")?t=this.mdRatio.split("/"):-1!==this.mdRatio.indexOf("-")&&(t=this.mdRatio.split("-")),2===t.length?t:null}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdCardMediaActions"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdCardMediaCover",props:{mdTextScrim:Boolean,mdSolid:Boolean},data:function(){return{backdropBackground:{}}},computed:{coverClasses:function(){return{"md-text-scrim":this.mdTextScrim,"md-solid":this.mdSolid}},coverStyles:function(){return{background:this.backdropBackground}}},methods:{applyScrimColor:function(t){this.$refs.backdrop&&(this.backdropBackground="linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, "+t/2+") 66%, rgba(0, 0, 0, "+t+") 100%)")},applySolidColor:function(t){var e=this.$el.querySelector(".md-card-area");e&&(e.style.background="rgba(0, 0, 0, "+t+")")},getImageLightness:function(t,e,n){var r=document.createElement("canvas");t.crossOrigin="Anonymous",t.onload=function(){var t,n,i,o=0,a=void 0,s=void 0,u=void 0,l=void 0;for(r.width=this.width,r.height=this.height,(a=r.getContext("2d")).drawImage(this,0,0),t=0,n=(i=a.getImageData(0,0,r.width,r.height).data).length;t<n;t+=4)s=i[t],u=i[t+1],l=i[t+2],o+=Math.floor((s+u+l)/3);e(Math.floor(o/(this.width*this.height)))},t.onerror=n}},mounted:function(){var t=this,e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.6;t.mdTextScrim?t.applyScrimColor(e):t.mdSolid&&t.applySolidColor(e)},n=this.$el.querySelector("img");n&&(this.mdTextScrim||this.mdSolid)&&this.getImageLightness(n,(function(t){var n=(100*Math.abs(256-t)/256+15)/100;n>=.7&&(n=.7),e(n)}),e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdCardContent"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdCardExpand",inject:["MdCard"]}},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),r=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n,r,i=[],o=!0,a=!1,s=void 0;try{for(n=t[Symbol.iterator]();!(o=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){a=!0,s=t}finally{try{!o&&n.return&&n.return()}finally{if(a)throw s}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},e.default={name:"MdCardExpandTrigger",inject:["MdCard"],render:function(t){var e=this,n=i(this.$slots.default,1)[0],o=" md-card-expand-trigger",a={click:function(){e.MdCard.expand=!e.MdCard.expand}};return n?(n.componentOptions.listeners=r({},n.componentOptions.listeners,a),n.data.staticClass+=o,n):t("div",{staticClass:o,on:a})}}},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),r=n(48),i=function(t){return t&&t.__esModule?t:{default:t}}(r),e.default={name:"MdCardExpandContent",inject:["MdCard"],data:function(){return{marginTop:0,resizeObserver:null,transitionEnabled:!0}},computed:{expand:function(){return this.MdCard.expand},contentStyles:function(){return{"margin-top":"-"+this.marginTop+"px",opacity:0===this.marginTop?1:0,"transition-property":this.transitionEnabled?null:"none"}}},methods:{calculateMarginTop:function(){this.expand?this.marginTop=0:this.marginTop=this.$el.children[0].offsetHeight},calculateMarginTopImmediately:function(){var t=this;this.expand||(this.transitionEnabled=!1,this.$nextTick((function(){t.calculateMarginTop(),t.$nextTick((function(){t.$el.offsetHeight,t.transitionEnabled=!0}))})))}},watch:{expand:function(){this.calculateMarginTop()}},mounted:function(){this.calculateMarginTopImmediately(),this.resizeObserver=(0,i.default)(this.$el,{childList:!0,characterData:!0,subtree:!0},this.calculateMarginTopImmediately)},beforeDestroy:function(){this.resizeObserver.disconnect()}}},function(t,e,n){"use strict";var r,i,o;Object.defineProperty(e,"__esModule",{value:!0}),r=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},i=function(t){return t&&t.__esModule?t:{default:t}}(n(8)),o=["left","right","space-between"],e.default={name:"MdCardActions",props:{mdAlignment:r({type:String,default:"right"},(0,i.default)("md-alignment",o))}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(1)),o=r(n(102)),a=n(11),s=r(a),e.default=new i.default({name:"MdCheckbox",mixins:[o.default],props:{id:{type:String,default:function(){return"md-checkbox-"+(0,s.default)()}}}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=r(n(1)),a=r(n(62)),s=r(n(53)),u=n(11),l=r(u),c=r(n(8)),e.default=new o.default({name:"MdChips",components:{MdField:a.default,MdInput:s.default},props:{value:Array,id:{type:[String,Number],default:function(){return"md-chips-"+(0,l.default)()}},mdInputType:i({type:[String,Number]},(0,c.default)("md-input-type",["email","number","password","search","tel","text","url"])),mdPlaceholder:[String,Number],mdStatic:Boolean,mdLimit:Number,mdCheckDuplicated:{type:Boolean,default:!1},mdFormat:{type:Function}},data:function(){return{inputValue:"",duplicatedChip:null}},computed:{chipsClasses:function(){return{"md-has-value":this.value&&this.value.length}},modelRespectLimit:function(){return!this.mdLimit||this.value.length<this.mdLimit},formattedInputValue:function(){return this.mdFormat?this.mdFormat(this.inputValue):this.inputValue}},methods:{insertChip:function(t){var e=this,n=(t.target,this.formattedInputValue);if(n&&this.modelRespectLimit){if(this.value.includes(n))return this.duplicatedChip=null,void this.$nextTick((function(){e.duplicatedChip=n}));this.value.push(n),this.$emit("input",this.value),this.$emit("md-insert",n),this.inputValue=""}},removeChip:function(t){var e=this,n=this.value.indexOf(t);this.value.splice(n,1),this.$emit("input",this.value),this.$emit("md-delete",t,n),this.$nextTick((function(){return e.$refs.input.$el.focus()}))},handleBackRemove:function(){this.inputValue||this.removeChip(this.value[this.value.length-1])},handleInput:function(){this.mdCheckDuplicated?this.checkDuplicated():this.duplicatedChip=null},checkDuplicated:function(){return this.value.includes(this.formattedInputValue)?!!this.mdCheckDuplicated&&void(this.duplicatedChip=this.formattedInputValue):(this.duplicatedChip=null,!1)}},watch:{value:function(){this.checkDuplicated()}}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(1)),o=r(n(41)),a=r(n(38)),s=r(n(63)),u=r(n(39)),e.default=new i.default({name:"MdChip",components:{MdButton:u.default,MdClearIcon:s.default},mixins:[o.default,a.default],props:{mdDisabled:Boolean,mdDeletable:Boolean,mdClickable:Boolean,mdDuplicated:{type:Boolean,default:!1}},computed:{chipClasses:function(){return{"md-disabled":this.mdDisabled,"md-deletable":this.mdDeletable,"md-clickable":this.mdClickable,"md-focused":this.mdHasFocus,"md-duplicated":this.mdDuplicated}}}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f,d,h,p,m,v,g,b,y,w,_,k,M;Object.defineProperty(e,"__esModule",{value:!0}),i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},a=n(2),s=r(a),u=n(327),l=r(u),c=n(328),f=r(c),d=n(329),h=r(d),p=n(143),m=r(p),v=r(n(8)),g=r(n(58)),b=r(n(330)),y=r(n(348)),w=n(350),_=r(w),k=r(n(62)),M=r(n(53)),e.default={name:"MdDatepicker",components:{MdOverlay:g.default,MdDateIcon:y.default,MdField:k.default,MdInput:M.default,MdDatepickerDialog:b.default},props:{value:[String,Number,Date],mdDisabledDates:[Array,Function],mdOpenOnFocus:{type:Boolean,default:!0},mdOverrideNative:{type:Boolean,default:!0},mdImmediately:{type:Boolean,default:!1},mdModelType:o({type:Function,default:Date},(0,v.default)("md-model-type",[Date,String,Number])),MdDebounce:{type:Number,default:1e3}},data:function(){return{showDialog:!1,inputDate:"",localDate:null}},computed:{locale:function(){return this.$material.locale},type:function(){return this.mdOverrideNative?"text":"date"},dateFormat:function(){return this.locale.dateFormat||"yyyy-MM-dd"},modelType:function(){return this.isModelTypeString?String:this.isModelTypeNumber?Number:this.isModelTypeDate?Date:this.mdModelType},isModelNull:function(){return null===this.value||void 0===this.value},isModelTypeString:function(){return"string"==typeof this.value},isModelTypeNumber:function(){return Number.isInteger(this.value)&&this.value>=0},isModelTypeDate:function(){return"object"===i(this.value)&&this.value instanceof Date&&(0,m.default)(this.value)},localString:function(){return this.localDate&&(0,f.default)(this.localDate,this.dateFormat)},localNumber:function(){return this.localDate&&+this.localDate},parsedInputDate:function(){var t=(0,h.default)(this.inputDate,this.dateFormat,new Date);return t&&(0,m.default)(t)?t:null},pattern:function(){return this.dateFormat.replace(/yyyy|MM|dd/g,(function(t){switch(t){case"yyyy":return"[0-9]{4}";case"MM":case"dd":return"[0-9]{2}"}}))}},watch:{inputDate:function(t){this.inputDateToLocalDate()},localDate:function(){this.inputDate=this.localString,this.modelType===Date&&this.$emit("input",this.localDate)},localString:function(){this.modelType===String&&this.$emit("input",this.localString)},localNumber:function(){this.modelType===Number&&this.$emit("input",this.localNumber)},value:{immediate:!0,handler:function(){this.valueDateToLocalDate()}},mdModelType:function(t){switch(t){case Date:this.$emit("input",this.localDate);break;case String:this.$emit("input",this.localString);break;case Number:this.$emit("input",this.localNumber)}},dateFormat:function(){this.localDate&&(this.inputDate=(0,f.default)(this.localDate,this.dateFormat))}},methods:{toggleDialog:function(){!l.default||this.mdOverrideNative?(this.showDialog=!this.showDialog,this.showDialog?this.$emit("md-opened"):this.$emit("md-closed")):this.$refs.input.$el.click()},onFocus:function(){this.mdOpenOnFocus&&this.toggleDialog()},inputDateToLocalDate:function(){this.inputDate?this.parsedInputDate&&(this.localDate=this.parsedInputDate):this.localDate=null},valueDateToLocalDate:function(){if(this.isModelNull)this.localDate=null;else if(this.isModelTypeNumber)this.localDate=new Date(this.value);else if(this.isModelTypeDate)this.localDate=this.value;else if(this.isModelTypeString){var t=(0,h.default)(this.value,this.dateFormat,new Date);(0,m.default)(t)?this.localDate=(0,h.default)(this.value,this.dateFormat,new Date):s.default.util.warn("The datepicker value is not a valid date. Given value: "+this.value+", format: "+this.dateFormat)}else s.default.util.warn("The datepicker value is not a valid date. Given value: "+this.value)}},created:function(){this.inputDateToLocalDate=(0,_.default)(this.inputDateToLocalDate,this.MdDebounce)}}},function(t,e,n){"use strict";e.a=function(t){var e,n=new Date(t.getTime()),i=n.getTimezoneOffset();return n.setSeconds(0,0),e=n.getTime()%r,i*r+e};var r=6e4},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object(r.a)(t);return!isNaN(e)};var r=n(9)},function(t,e,n){"use strict";function r(t){return function(e){var n=e||{},r=n.width?n.width+"":t.defaultWidth;return t.formats[r]||t.formats[t.defaultWidth]}}function i(t){return function(e,n){var r=n||{},i=r.width?r.width+"":t.defaultWidth;return("formatting"==(r.context?r.context+"":"standalone")&&t.formattingValues?t.formattingValues[i]||t.formattingValues[t.defaultFormattingWidth]:t.values[i]||t.values[t.defaultWidth])[t.argumentCallback?t.argumentCallback(e):e]}}function o(t){return function(e,n){var r,i,o,a=e+"",s=n||{},u=s.width,l=u&&t.matchPatterns[u]||t.matchPatterns[t.defaultMatchWidth],c=a.match(l);return c?(r=c[0],i=u&&t.parsePatterns[u]||t.parsePatterns[t.defaultParseWidth],o="[object Array]"===Object.prototype.toString.call(i)?i.findIndex((function(t){return t.test(a)})):function(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}(i,(function(t){return t.test(a)})),o=t.valueCallback?t.valueCallback(o):o,{value:o=s.valueCallback?s.valueCallback(o):o,rest:a.slice(r.length)}):null}}var a={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},s={date:r({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:r({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:r({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},u={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},l={formatDistance:function(t,e,n){var r;return n=n||{},r="string"==typeof a[t]?a[t]:1===e?a[t].one:a[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r},formatLong:s,formatRelative:function(t,e,n,r){return u[t]},localize:{ordinalNumber:function(t,e){var n=+t,r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:i({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:i({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return+t-1}}),month:i({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:i({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:i({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function(t){return function(e,n){var r,i,o,a=e+"",s=n||{},u=a.match(t.matchPattern);return u?(r=u[0],(i=a.match(t.parsePattern))?(o=t.valueCallback?t.valueCallback(i[0]):i[0],{value:o=s.valueCallback?s.valueCallback(o):o,rest:a.slice(r.length)}):null):null}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}}),era:o({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:o({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:o({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:o({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:o({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};e.a=l},function(t,e,n){"use strict";function r(t){var e,n;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return e=Object(s.a)(t),(n=new Date(0)).setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),Object(a.a)(n)}var i,o=n(9),a=n(64),s=n(146);e.a=function(t){var e,n;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return e=Object(o.a)(t),n=Object(a.a)(e).getTime()-r(e).getTime(),Math.round(n/i)+1},i=6048e5},function(t,e,n){"use strict";var r,i;e.a=function(t){var e,n,o,a,s,u;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=(e=Object(r.a)(t)).getUTCFullYear(),(o=new Date(0)).setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0),a=Object(i.a)(o),(s=new Date(0)).setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),u=Object(i.a)(s),e.getTime()>=a.getTime()?n+1:e.getTime()>=u.getTime()?n:n-1},r=n(9),i=n(64)},function(t,e,n){"use strict";function r(t,e){var n,r,i,o,l,c,f;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return o=null==(i=(r=(n=e||{}).locale)&&r.options&&r.options.firstWeekContainsDate)?1:Object(s.a)(i),l=null==n.firstWeekContainsDate?o:Object(s.a)(n.firstWeekContainsDate),c=Object(u.a)(t,e),(f=new Date(0)).setUTCFullYear(c,0,l),f.setUTCHours(0,0,0,0),Object(a.a)(f,e)}var i,o=n(9),a=n(65),s=n(17),u=n(93);e.a=function(t,e){var n,s;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=Object(o.a)(t),s=Object(a.a)(n,e).getTime()-r(n,e).getTime(),Math.round(s/i)+1},i=6048e5},function(t,e,n){"use strict";function r(t,e){var n,r;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(o.a)(t).getTime(),r=Object(i.a)(e),new Date(n+r)}var i=n(17),o=n(9);e.a=function(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return r(t,-Object(i.a)(e))}},function(t,e,n){"use strict";e.a=function(t){return-1!==r.indexOf(t)},e.b=function(t){throw new RangeError("`options.awareOfUnicodeTokens` must be set to `true` to use `"+t+"` token; see: https://git.io/fxCyr")};var r=["D","DD","YY","YYYY"]},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f,d,h,p,m,v,g,b,y,w,_,k,M,x,S,C,A,T,E,O,P,I,R,j,D;Object.defineProperty(e,"__esModule",{value:!0}),i=n(151),o=r(i),a=n(332),s=r(a),u=n(333),l=r(u),c=n(334),f=r(c),d=n(335),h=r(d),p=n(96),m=r(p),v=n(336),g=r(v),b=n(337),y=r(b),w=n(338),_=r(w),k=n(339),M=r(k),x=n(340),S=r(x),C=n(341),A=r(C),T=n(342),E=r(T),O=r(n(1)),P=r(n(56)),I=r(n(343)),R=r(n(345)),j=r(n(68)),D=function(t,e){return!(!t||!t.querySelector)&&t.querySelectorAll(e)},e.default=new O.default({name:"MdDatepickerDialog",components:{MdPopover:P.default,MdArrowRightIcon:I.default,MdArrowLeftIcon:R.default,MdDialog:j.default},props:{mdDate:Date,mdDisabledDates:[Array,Function],mdImmediately:{type:Boolean,default:!1}},data:function(){return{currentDate:null,selectedDate:null,showDialog:!1,monthAction:null,currentView:"day",contentStyles:{},availableYears:null}},computed:{firstDayOfAWeek:function(){var t=+this.locale.firstDayOfAWeek;return Number.isNaN(t)||!Number.isFinite(t)?0:(t=Math.floor(t)%7,t+=t<0?7:0)},locale:function(){return this.$material.locale},popperSettings:function(){return{placement:"bottom-start",modifiers:{keepTogether:{enabled:!0},flip:{enabled:!1}}}},calendarClasses:function(){return"next"===this.monthAction?"md-next":"md-previous"},firstDayOfMonth:function(){return(0,s.default)(this.currentDate).getDay()},prefixEmptyDays:function(){var t=this.firstDayOfMonth-this.firstDayOfAWeek;return t+=t<0?7:0},daysInMonth:function(){return(0,m.default)(this.currentDate)},currentDay:function(){return this.selectedDate?(0,f.default)(this.selectedDate):(0,f.default)(this.currentDate)},currentMonth:function(){return(0,g.default)(this.currentDate)},currentMonthName:function(){return this.locale.months[this.currentMonth]},currentYear:function(){return(0,y.default)(this.currentDate)},selectedYear:function(){return this.selectedDate?(0,y.default)(this.selectedDate):(0,y.default)(this.currentDate)},shortDayName:function(){return this.selectedDate?this.locale.shortDays[(0,h.default)(this.selectedDate)]:this.locale.shortDays[(0,h.default)(this.currentDate)]},shortMonthName:function(){return this.selectedDate?this.locale.shortMonths[(0,g.default)(this.selectedDate)]:this.locale.shortMonths[(0,g.default)(this.currentDate)]}},watch:{mdDate:function(){this.currentDate=this.mdDate||new Date,this.selectedDate=this.mdDate},currentDate:function(t,e){var n=this;this.$nextTick().then((function(){e&&n.setContentStyles()}))},currentView:function(){var t=this;this.$nextTick().then((function(){if("year"===t.currentView){var e=D(t.$el,".md-datepicker-year-button.md-datepicker-selected");e.length&&e[0].scrollIntoView({behavior:"instant",block:"center",inline:"center"})}}))}},methods:{setContentStyles:function(){var t,e=D(this.$el,".md-datepicker-month");e.length&&(t=e[e.length-1],this.contentStyles={height:t.offsetHeight+10+"px"})},setAvailableYears:function(){for(var t=this.locale,e=t.startYear,n=t.endYear,r=e,i=[];r<=n;)i.push(r++);this.availableYears=i},handleDisabledDateByArray:function(t){return this.mdDisabledDates.some((function(e){return(0,M.default)(e,t)}))},isDisabled:function(t){if(this.mdDisabledDates){var e=(0,S.default)(this.currentDate,t);if(Array.isArray(this.mdDisabledDates))return this.handleDisabledDateByArray(e);if("function"==typeof this.mdDisabledDates)return this.mdDisabledDates(e)}},isSelectedDay:function(t){return(0,_.default)(this.selectedDate,(0,S.default)(this.currentDate,t))},isToday:function(t){return(0,M.default)(new Date,(0,S.default)(this.currentDate,t))},previousMonth:function(){this.monthAction="previous",this.currentDate=(0,l.default)(this.currentDate,1)},nextMonth:function(){this.monthAction="next",this.currentDate=(0,o.default)(this.currentDate,1)},switchMonth:function(t){this.currentDate=(0,A.default)(this.currentDate,t),this.currentView="day"},switchYear:function(t){this.currentDate=(0,E.default)(this.currentDate,t),this.currentView="month"},selectDate:function(t){this.currentDate=(0,S.default)(this.currentDate,t),this.selectedDate=this.currentDate,this.mdImmediately&&(this.$emit("update:mdDate",this.selectedDate),this.closeDialog())},closeDialog:function(){this.$emit("md-closed")},onClose:function(){this.closeDialog()},onCancel:function(){this.closeDialog()},onConfirm:function(){this.$emit("update:mdDate",this.selectedDate),this.closeDialog()},resetDate:function(){this.currentDate=this.mdDate||new Date,this.selectedDate=this.mdDate,this.currentView="day"}},created:function(){this.setAvailableYears(),this.resetDate()}})},function(t,e,n){"use strict";var r,i,o;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,a,s,u,l;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(t),a=Object(r.a)(e),s=n.getMonth()+a,(u=new Date(0)).setFullYear(n.getFullYear(),s,1),u.setHours(0,0,0,0),l=Object(o.default)(u),n.setMonth(s,Math.min(l,n.getDate())),n},r=n(17),i=n(9),o=n(96)},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),e.default={name:"MdArrowRightIcon",components:{MdIcon:r.default}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),e.default={name:"MdArrowLeftIcon",components:{MdIcon:r.default}}},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-portal",[n("transition",{attrs:{name:"md-dialog"}},[t.mdActive?n("div",t._g({staticClass:"md-dialog",class:[t.dialogClasses,t.$mdActiveTheme],on:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.onEsc(e)}}},t.$listeners),[n("md-focus-trap",[n("div",{staticClass:"md-dialog-container"},[t._t("default"),t._v(" "),n("keep-alive",[t.mdBackdrop?n("md-overlay",{class:t.mdBackdropClass,attrs:{"md-fixed":"","md-active":t.mdActive},on:{click:t.onClick}}):t._e()],1)],2)])],1):t._e()])],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),e.default={name:"MdDateIcon",components:{MdIcon:r.default}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdDialogTitle"}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),e.default=new r.default({name:"MdDialogContent"})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdDialogActions"}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),e.default=new r.default({name:"MdDivider",computed:{insideList:function(){return"md-list"===this.$parent.$options._componentTag}}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=r(n(1)),a=r(n(58)),s=r(n(8)),u=r(n(104)),e.default=new o.default({name:"MdDrawer",mixins:[u.default],components:{MdOverlay:a.default},props:{mdRight:Boolean,mdPermanent:i({type:String},(0,s.default)("md-permanent",["full","clipped","card"])),mdPersistent:i({type:String},(0,s.default)("md-persistent",["mini","full"])),mdActive:Boolean,mdFixed:Boolean},watch:{mdActive:function(t){t?this.$emit("md-opened"):this.$emit("md-closed")},swiped:function(t){"right"!==t&&"left"!==t||this.$emit("update:mdActive","right"===t)}},computed:{drawerClasses:function(){var t={"md-left":!this.mdRight,"md-right":this.mdRight,"md-temporary":this.isTemporary,"md-persistent":this.mdPersistent,"md-permanent":this.mdPermanent,"md-active":this.mdActive,"md-fixed":this.mdFixed};return this.mdPermanent&&(t["md-permanent-"+this.mdPermanent]=!0),this.mdPersistent&&(t["md-persistent-"+this.mdPersistent]=!0),t},isTemporary:function(){return!this.mdPermanent&&!this.mdPersistent},mode:function(){return this.mdPersistent?"persistent":this.mdPermanent?"permanent":"temporary"},submode:function(){return this.mdPersistent?this.mdPersistent:this.mdPermanent?this.mdPermanent:void 0},mdSwipeElement:function(){return this.$el.parentNode}},methods:{closeDrawer:function(){this.$emit("update:mdActive",!1)}}})},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"md-empty-state",appear:""}},[n("div",{staticClass:"md-empty-state",class:[t.emptyStateClasses,t.$mdActiveTheme],style:t.emptyStateStyles},[n("div",{staticClass:"md-empty-state-container"},[t.mdIcon?[t.isAssetIcon(t.mdIcon)?n("md-icon",{staticClass:"md-empty-state-icon",attrs:{"md-src":t.mdIcon}}):n("md-icon",{staticClass:"md-empty-state-icon"},[t._v(t._s(t.mdIcon))])]:t._e(),t._v(" "),t.mdLabel?n("strong",{staticClass:"md-empty-state-label"},[t._v(t._s(t.mdLabel))]):t._e(),t._v(" "),t.mdDescription?n("p",{staticClass:"md-empty-state-description"},[t._v(t._s(t.mdDescription))]):t._e(),t._v(" "),t._t("default")],2)])])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},r(n(10)),r(n(1)),o=r(n(377)),a=r(n(107)),s=r(n(108)),u=r(n(53)),l=r(n(42)),c={x:-15,y:-48},e.default={name:"MdSelect",components:{MdInput:u.default,MdMenu:a.default,MdMenuContent:s.default,MdDropDownIcon:o.default},mixins:[l.default],props:{mdDense:Boolean,mdClass:String,multiple:Boolean,id:String,name:String},inject:["MdField"],data:function(){return{menuStyles:{},offset:{x:c.x,y:0},showSelect:!0,didMount:!1,MdSelect:{items:{},label:null,multiple:!1,modelValue:this.localValue,setValue:this.setValue,setContent:this.setContent,setMultipleValue:this.setMultipleValue,setMultipleContent:this.setMultipleContent}}},provide:function(){return{MdSelect:this.MdSelect}},computed:{attrs:function(){return i({},this.$attrs,{name:this.name,id:void 0})},inputListeners:function(){return i({},this.$listeners,{input:void 0})}},watch:{localValue:{immediate:!0,handler:function(t){this.setFieldContent(),this.MdSelect.modelValue=this.localValue,this.didMount&&this.emitSelected(t)}},multiple:{immediate:!0,handler:function(t){this.MdSelect.multiple=t,this.$nextTick(this.initialLocalValueByDefault)}}},methods:{elHasScroll:function(t){return t.scrollHeight>t.offsetHeight},scrollToSelectedOption:function(t,e){var n=t.offsetTop,r=t.offsetHeight,i=e.offsetHeight;e.scrollTop=n-(i-r)/2},setOffsets:function(t){var e,n;this.$isServer||(e=this.$refs.menu.$refs.container)&&((n=t||e.querySelector(".md-selected"))?(this.scrollToSelectedOption(n,e),this.offset.y=c.y-n.offsetTop+e.scrollTop+8,this.menuStyles={"transform-origin":"0 "+Math.abs(this.offset.y)+"px"}):(this.offset.y=c.y+1,this.menuStyles={}))},onMenuEnter:function(){this.didMount&&(this.setOffsets(),this.MdField.focused=!0,this.$emit("md-opened"))},applyHighlight:function(){this.MdField.focused=!1,this.MdField.highlighted=!0,this.$refs.input.$el.focus()},onClose:function(){this.$emit("md-closed"),this.didMount&&this.applyHighlight()},onFocus:function(){this.didMount&&this.applyHighlight()},removeHighlight:function(){this.MdField.highlighted=!1},openSelect:function(){this.disabled||(this.showSelect=!0)},arrayAccessorRemove:function(t,e){var n=t.slice(0,e),r=t.slice(e+1,t.length);return n.concat(r)},toggleArrayValue:function(t){var e=this.localValue.indexOf(t),n=e>-1;this.localValue=n?this.arrayAccessorRemove(this.localValue,e):this.localValue.concat([t])},setValue:function(t){this.model=t,this.setFieldValue(),this.showSelect=!1},setContent:function(t){this.MdSelect.label=t},setContentByValue:function(){var t=this.MdSelect.items[this.localValue];t?this.setContent(t):this.setContent("")},setMultipleValue:function(t){var e=t;this.toggleArrayValue(e),this.setFieldValue()},setMultipleContentByValue:function(){var t,e=this;this.localValue||this.initialLocalValueByDefault(),t=[],this.localValue.forEach((function(n){var r=e.MdSelect.items[n];r&&t.push(r)})),this.setContent(t.join(", "))},setFieldContent:function(){this.multiple?this.setMultipleContentByValue():this.setContentByValue()},isLocalValueSet:function(){return void 0!==this.localValue&&null!==this.localValue},setLocalValueIfMultiple:function(){this.isLocalValueSet()?this.localValue=[this.localValue]:this.localValue=[]},setLocalValueIfNotMultiple:function(){this.localValue.length>0?this.localValue=this.localValue[0]:this.localValue=null},initialLocalValueByDefault:function(){var t=Array.isArray(this.localValue);this.multiple&&!t?this.setLocalValueIfMultiple():!this.multiple&&t&&this.setLocalValueIfNotMultiple()},emitSelected:function(t){this.$emit("md-selected",t)}},mounted:function(){var t=this;this.showSelect=!1,this.setFieldContent(),this.$nextTick().then((function(){t.didMount=!0}))},updated:function(){this.setFieldContent()}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),e.default={name:"MdDropDownIcon",components:{MdIcon:r.default}}},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",t._g({staticClass:"md-menu"},t.$listeners),[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-popover",{attrs:{"md-settings":t.popperSettings,"md-active":t.shouldRender}},[t.shouldRender?n("transition",t._g({attrs:{name:"md-menu-content",css:t.didMount}},t.$listeners),[n("div",{ref:"menu",class:[t.menuClasses,t.mdContentClass,t.$mdActiveTheme],style:t.menuStyles},[n("div",{ref:"container",staticClass:"md-menu-content-container md-scrollbar",class:t.$mdActiveTheme},[n("md-list",t._b({class:t.listClasses},"md-list",t.filteredAttrs,!1),[t._t("default")],2)],1)])]):t._e()],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),r=n(11),i=function(t){return t&&t.__esModule?t:{default:t}}(r),e.default={name:"MdOption",props:{value:[String,Number,Boolean],disabled:Boolean},inject:{MdSelect:{},MdOptgroup:{default:{}}},data:function(){return{uniqueId:"md-option-"+(0,i.default)(),isSelected:!1,isChecked:!1}},computed:{selectValue:function(){return this.MdSelect.modelValue},isMultiple:function(){return this.MdSelect.multiple},isDisabled:function(){return this.MdOptgroup.disabled||this.disabled},key:function(){return this.value||0===this.value?this.value:this.uniqueId},inputLabel:function(){return this.MdSelect.label},optionClasses:function(){return{"md-selected":this.isSelected||this.isChecked}}},watch:{selectValue:function(){this.setIsSelected()},isChecked:function(t){t!==this.isSelected&&this.setSelection()},isSelected:function(t){this.isChecked=t}},methods:{getTextContent:function(){if(this.$el)return this.$el.textContent.trim();var t=this.$slots.default;return t?t[0].text.trim():""},setIsSelected:function(){return this.isMultiple?void 0===this.selectValue?void(this.isSelected=!1):void(this.isSelected=this.selectValue.includes(this.value)):void(this.isSelected=this.selectValue===this.value)},setSingleSelection:function(){this.MdSelect.setValue(this.value)},setMultipleSelection:function(){this.MdSelect.setMultipleValue(this.value)},setSelection:function(){this.isDisabled||(this.isMultiple?this.setMultipleSelection():this.setSingleSelection())},setItem:function(){this.$set(this.MdSelect.items,this.key,this.getTextContent())}},updated:function(){this.setItem()},created:function(){this.setItem(),this.setIsSelected()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdOptgroup",props:{label:String,disabled:Boolean},provide:function(){return{MdOptgroup:{disabled:this.disabled}}}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(11),o=r(i),a=r(n(388)),s=r(n(42)),e.default={name:"MdFile",components:{MdFileIcon:a.default},props:{id:{type:String,default:function(){return"md-file-"+(0,o.default)()}},name:String},computed:{iconClass:function(){return{"md-disabled":this.disabled}}},mixins:[s.default],inject:["MdField"],methods:{getMultipleName:function(t){var e=[];return[].concat(function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}(t)).forEach((function(t){var n=t.name;return e.push(n)})),e.join(", ")},getFileName:function(t,e){return t&&0!==t.length?t.length>1?this.getMultipleName(t):1===t.length?t[0].name:null:e.value.split("\\").pop()},openPicker:function(){this.onFocus(),this.$refs.inputFile.click()},onChange:function(t){this.onFileSelected(t)},onFileSelected:function(t){var e=t.target,n=t.dataTransfer,r=e.files||n.files;this.model=this.getFileName(r,e),this.$emit("md-change",r||e.value)}},created:function(){this.MdField.file=!0},beforeDestroy:function(){this.MdField.file=!1}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),e.default={name:"MdFileIcon",components:{MdIcon:r.default}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=r(n(1)),a=n(11),s=r(a),u=r(n(42)),e.default=new o.default({name:"MdTextarea",mixins:[u.default],inject:["MdField"],props:{id:{type:String,default:function(){return"md-textarea-"+(0,s.default)()}},mdAutogrow:Boolean},computed:{listeners:function(){return i({},this.$listeners,{input:this.onInput})},textareaStyles:function(){return{height:this.textareaHeight}}},methods:{getTextAreaLineSize:function(){var t=window.getComputedStyle(this.$el);return parseInt(t.lineHeight,10)},setTextAreaSize:function(t){var e,n=t;t||(e=this.getTextAreaLineSize(),n=function(t,e){var n=t.style.height,r=t.offsetHeight,i=t.scrollHeight;return t.style.overflow="hidden",r>=i&&(t.style.height=r+e+"px",i<t.scrollHeight)?(t.style.height=n,r):i}(this.$el,e)),this.textareaHeight=n+"px"},applyStyles:function(){var t=this;this.mdAutogrow&&(this.setTextAreaSize(32),this.$nextTick().then((function(){t.setTextAreaSize(),window.setTimeout((function(){t.$el.style.overflow="auto"}),10)})))},setTextarea:function(){this.MdField.textarea=!0},setAutogrow:function(){this.MdField.autogrow=this.mdAutogrow},onInput:function(){this.setFieldValue()}},watch:{localValue:function(){this.applyStyles()}},created:function(){this.setTextarea(),this.setAutogrow()},mounted:function(){this.$nextTick().then(this.applyStyles)},beforeDestroy:function(){this.setTextarea(!1)}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t){var e=t;return e||(e="$&"),'<span class="md-highlight-text-match">'+e+"</span>"}function o(t,e,n){var r=t.text;return r&&e&&e[0]?n?function t(e,n){var r,o,a;if(0===n.length)return e;if(-1===(r=e.toLowerCase().indexOf(n[0].toLowerCase())))return"";for(o=0,a=1;a<n.length&&e[r+a]===n[a];a++)o=a;return e.slice(0,r)+i(e.slice(r,r+o+1))+t(e.slice(r+o+1),n.slice(o+1))}(r,e)||r:function(t,e){var n=RegExp(e+"(?!([^<]+)?<)","gi");return t.replace(n,i())}(r,e):r}var a,s,u;Object.defineProperty(e,"__esModule",{value:!0}),a=n(2),s=r(a),u=r(n(1)),e.default=new u.default({name:"MdHighlightText",abstract:!0,props:{mdTerm:String,mdFuzzySearch:{type:Boolean,default:!0}},render:function(t){var e,n;try{if(!(e=this.$slots.default))return null;if(e.length>1||e[0].tag)throw Error();return n=o(e[0],this.mdTerm,this.mdFuzzySearch),t("div",{staticClass:"md-highlight-text",class:this.$mdActiveTheme,domProps:{innerHTML:n}})}catch(t){s.default.util.warn("MdHighlightText can only render text nodes.",this)}return null}})},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),e.default=new r.default({name:"MdImage",props:{mdSrc:String}})},function(t,e){},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(76),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(181),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(77),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(180),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("md-ripple",{staticClass:"md-list-item-content",attrs:{"md-disabled":t.mdDisabled}},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-list-item-default",on:{click:t.toggleControl}},[n("md-list-item-content",{attrs:{"md-disabled":""}},[t._t("default")],2)],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(78),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(183),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-list-item-fake-button",attrs:{disabled:t.disabled}},[n("md-list-item-content",{attrs:{"md-disabled":t.isDisabled}},[t._t("default")],2)],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(79),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(185),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("button",{staticClass:"md-list-item-button",attrs:{type:"button",disabled:t.disabled}},[n("md-list-item-content",{attrs:{"md-disabled":t.isDisabled}},[t._t("default")],2)],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(80),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(187),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",t._b({staticClass:"md-list-item-link"},"a",t.$props,!1),[n("md-list-item-content",{attrs:{"md-disabled":t.isDisabled}},[t._t("default")],2)],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(81),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(189),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("router-link",t._b({staticClass:"md-list-item-router"},"router-link",t.routerProps,!1),[n("md-list-item-content",{attrs:{"md-disabled":t.isDisabled}},[t._t("default")],2)],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(82),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(194),s=function(t){n(191)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(83),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(193),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this;return t.$createElement,t._self._c,t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"}}),t._v(" "),n("path",{attrs:{d:"M0-.75h24v24H0z",fill:"none"}})])])}]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-list-item-expand",class:t.expandClasses},[n("md-list-item-content",{attrs:{"md-disabled":t.isDisabled},nativeOn:{click:function(e){return t.toggleExpand(e)}}},[t._t("default"),t._v(" "),n("md-arrow-down-icon",{staticClass:"md-list-expand-icon"})],2),t._v(" "),n("div",{ref:"listExpand",staticClass:"md-list-expand",style:t.expandStyles},[t._t("md-expand")],2)],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(1)),o=n(100),a=r(o),r(n(109)),e.default=new i.default({name:"MdMenuItem",props:{disabled:Boolean},inject:["MdMenu"],data:function(){return{highlighted:!1}},computed:{itemClasses:function(){return{"md-highlight":this.highlighted}},listeners:function(){var t,e=this;return this.disabled?{}:this.MdMenu.closeOnSelect?(t={},Object.keys(this.$listeners).forEach((function(n){a.default.includes(n)?t[n]=function(t){e.$listeners[n](t),e.closeMenu()}:t[n]=e.$listeners[n]})),t):this.$listeners}},methods:{closeMenu:function(){this.MdMenu.active=!1,this.MdMenu.eventObserver&&this.MdMenu.eventObserver.destroy()},triggerCloseMenu:function(){this.disabled||this.closeMenu()}},mounted:function(){this.$el.children&&this.$el.children[0]&&"A"===this.$el.children[0].tagName.toUpperCase()&&this.$el.addEventListener("click",this.triggerCloseMenu)},beforeDestroy:function(){this.$el.removeEventListener("click",this.triggerCloseMenu)}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=r(n(1)),a=r(n(8)),e.default=new o.default({name:"MdProgressBar",props:{mdValue:{type:Number,default:0},mdBuffer:{type:Number,default:0},mdMode:i({type:String,default:"determinate"},(0,a.default)("md-mode",["determinate","indeterminate","query","buffer"]))},computed:{isDeterminate:function(){return"determinate"===this.mdMode},isBuffer:function(){return"buffer"===this.mdMode},hasAmountFill:function(){return this.isBuffer||this.isDeterminate},progressClasses:function(){return"md-"+this.mdMode},progressValueStyle:function(){if(this.hasAmountFill)return"width: "+this.mdValue+"%"},progressTrackStyle:function(){if(this.hasAmountFill)return"width: "+this.mdBuffer+"%"},progressBufferStyle:function(){if(this.hasAmountFill)return"left: calc("+this.mdBuffer+"% + 8px)"}}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),o=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},a=r(n(1)),s=r(n(8)),new Set,e.default=new a.default({name:"MdProgressSpinner",props:{mdValue:{type:Number,default:0},mdDiameter:{type:Number,default:60},mdStroke:{type:Number,default:6},mdMode:o({type:String,default:"determinate"},(0,s.default)("md-mode",["determinate","indeterminate"]))},computed:{isDeterminate:function(){return"determinate"===this.mdMode},isIndeterminate:function(){return"indeterminate"===this.mdMode},isIE:function(){return!this.$isServer&&navigator.userAgent.toLowerCase().includes("trident")},progressClasses:function(){var t,e="md-progress-spinner-indeterminate";return this.isIE&&(e+="-fallback"),i(t={},e,!0),i(t,"md-"+this.mdMode,!0),t},circleRadius:function(){return(this.mdDiameter-this.mdStroke)/2},circleStrokeWidth:function(){return this.mdStroke+"px"},circleCircumference:function(){return 2*Math.PI*this.circleRadius},circleStrokeDashArray:function(){return this.circleCircumference+"px"},circleStrokeDashOffset:function(){return this.isDeterminate?this.circleCircumference*(100-this.mdValue)/100+"px":this.isIndeterminate&&this.isIE?.2*this.circleCircumference+"px":null}},watch:{mdValue:function(){this.attachCircleStyle()},mdDiameter:function(){this.attachSvgStyle(),this.attachCircleStyle()},mdStroke:function(){this.attachCircleStyle()}},methods:{attachSvgStyle:function(){var t=this.$refs["md-progress-spinner-draw"],e=this.mdDiameter+"px";t.style.width=e,t.style.height=e},attachCircleStyle:function(){var t=this.$refs["md-progress-spinner-circle"];t.style.strokeDashoffset=this.circleStrokeDashOffset,t.style.strokeDasharray=this.circleStrokeDashArray,t.style.strokeWidth=this.circleStrokeWidth,t.style.setProperty("--md-progress-spinner-start-value",.95*this.circleCircumference),t.style.setProperty("--md-progress-spinner-end-value",.2*this.circleCircumference)}},mounted:function(){this.attachSvgStyle(),this.attachCircleStyle()}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(1)),o=n(11),a=r(o),s=r(n(16)),e.default=new i.default({name:"MdRadio",components:{MdRipple:s.default},props:{model:[String,Number,Boolean,Object],value:{type:[String,Number,Boolean,Object],default:"on"},id:{type:String,default:function(){return"md-radio-"+(0,a.default)()}},name:[String,Number],required:Boolean,disabled:Boolean},model:{prop:"model",event:"change"},data:function(){return{rippleActive:!1}},computed:{isSelected:function(){return this.model===this.value},radioClasses:function(){return{"md-checked":this.isSelected,"md-disabled":this.disabled,"md-required":this.required}}},methods:{toggleCheck:function(){this.disabled||(this.rippleActive=!0,this.$emit("change",this.value))}}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=r(n(1)),a=r(n(8)),s=r(n(27)),u=r(n(421)),l=n(423),e.default=new o.default({name:"MdSnackbar",components:{MdPortal:s.default,MdSnackbarContent:u.default},props:{mdActive:Boolean,mdPersistent:Boolean,mdDuration:{type:Number,default:4e3},mdPosition:i({type:String,default:"center"},(0,a.default)("md-position",["center","left"]))},computed:{snackbarClasses:function(){return function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},"md-position-"+this.mdPosition,!0)}},watch:{mdActive:function(t){var e=this;t?(0,l.createSnackbar)(this.mdDuration,this.mdPersistent,this).then((function(){e.$emit("update:mdActive",!1),e.$emit("md-opened")})):((0,l.destroySnackbar)(),this.$emit("md-closed"))}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdSnackbarContent",props:{mdClasses:Array}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),o=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},a=r(n(1)),s=r(n(8)),e.default=new a.default({name:"MdSpeedDial",props:{mdEvent:o({type:String,default:"hover"},(0,s.default)("md-event",["click","hover"])),mdDirection:o({type:String,default:"top"},(0,s.default)("md-direction",["top","bottom"])),mdEffect:o({type:String,default:"fling"},(0,s.default)("md-effect",["fling","scale","opacity"]))},data:function(){return{MdSpeedDial:{active:!1,event:this.mdEvent,direction:this.mdDirection}}},provide:function(){return{MdSpeedDial:this.MdSpeedDial}},computed:{speedDialClasses:function(){var t;return i(t={"md-active":this.MdSpeedDial.active,"md-with-hover":"hover"===this.mdEvent},"md-direction-"+this.mdDirection,!0),i(t,"md-effect-"+this.mdEffect,!0),t}}})},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(39)),e.default={name:"MdSpeedDialTarget",components:{MdButton:r.default},inject:["MdSpeedDial"],methods:{handleClick:function(){"click"===this.MdSpeedDial.event&&(this.MdSpeedDial.active=!this.MdSpeedDial.active)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdSpeedDialContent",inject:["MdSpeedDial"],methods:{setChildrenIndexes:function(){var t=this;this.$nextTick().then((function(){var e=t.$children.length;t.$children.forEach((function(n,r){if("button"===n._vnode.tag){var i=function(t,e,n){return"top"===t?n-e-1:e}(t.MdSpeedDial.direction,r,e);n.$el.setAttribute("md-button-index",i),n.$el.classList.add("md-raised")}}))}))}},mounted:function(){this.setChildrenIndexes()},updated:function(){this.setChildrenIndexes()}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(1)),o=n(48),a=r(o),s=n(110),u=r(s),l=r(n(205)),e.default=new i.default({name:"MdSteppers",components:{MdStepHeader:l.default},props:{mdSyncRoute:Boolean,mdDynamicHeight:Boolean,mdVertical:Boolean,mdLinear:Boolean,mdAlternative:Boolean,mdActiveStep:[String,Number]},data:function(){return{activeStepIndex:0,noTransition:!0,contentStyles:{},activeButtonEl:null,MdSteppers:{activeStep:0,isLinear:!1,isVertical:!1,items:{},syncRoute:this.mdSyncRoute,getStepperNumber:this.getStepperNumber,setActiveStep:this.setActiveStep,isPreviousStepperDone:this.isPreviousStepperDone}}},provide:function(){return{MdSteppers:this.MdSteppers}},computed:{steppersClasses:function(){return{"md-no-transition":this.noTransition,"md-alternative":this.mdAlternative,"md-horizontal":!this.mdVertical,"md-vertical":this.mdVertical,"md-dynamic-height":this.mdDynamicHeight}},activeIndex:function(){return this.MdSteppers.activeStep},containerStyles:function(){return{transform:!this.mdVertical&&"translate3D("+100*-this.activeStepIndex+"%, 0, 0)"}}},watch:{mdActiveStep:function(t){this.MdSteppers.activeStep=t,this.$emit("md-changed",t)},mdLinear:function(t){this.MdSteppers.isLinear=t},mdVertical:function(t){this.MdSteppers.isVertical=t},activeIndex:function(){this.$nextTick(this.setActiveButtonEl)},activeStepIndex:function(){this.onActiveStepIndex(),this.$nextTick(this.calculateStepperPos)},activeButtonEl:function(t){this.activeStepIndex=t?[].indexOf.call(t.parentNode.childNodes,t):0},$route:function(){this.$nextTick(this.setActiveButtonEl)}},methods:{hasActiveStep:function(){return this.MdSteppers.activeStep||this.mdActiveStep},getItemsAndKeys:function(){var t=this.MdSteppers.items;return{items:t,keys:Object.keys(t)}},getStepperNumber:function(t){return Object.keys(this.MdSteppers.items).indexOf(t)+1},isStepperDone:function(t){return this.MdSteppers.items[t].done},isPreviousStepperDone:function(t){var e=this.MdSteppers.items,n=Object.keys(e)[this.getStepperNumber(t)-2];return!n||e[n].done},isStepperEditable:function(t){return this.MdSteppers.items[t].editable},setStepperAsDone:function(t){this.MdSteppers.items[t].done=!0},setPreviousStepperAsDone:function(t){var e=this.getStepperNumber(this.MdSteppers.activeStep);this.getStepperNumber(t)>e&&this.setStepperAsDone(this.MdSteppers.activeStep)},setActiveStep:function(t){if(this.mdLinear&&!this.isPreviousStepperDone(t))return!1;t===this.MdSteppers.activeStep||!this.isStepperEditable(t)&&this.isStepperDone(t)||(this.setPreviousStepperAsDone(t),this.MdSteppers.activeStep=t,this.$emit("md-changed",t),this.$emit("update:mdActiveStep",t),this.MdSteppers.items[t].error=null)},setActiveButtonEl:function(){this.activeButtonEl=this.$el.querySelector(".md-stepper-header.md-button.md-active")},setActiveStepByIndex:function(t){var e=this.getItemsAndKeys().keys;this.hasActiveStep()||(this.MdSteppers.activeStep=e[t])},setupObservers:function(){var t=this.$el.querySelector(".md-steppers-wrapper");"ResizeObserver"in window?(this.resizeObserver=new window.ResizeObserver(this.calculateStepperPos),this.resizeObserver.observe(this.$el)):window.addEventListener("resize",this.calculateStepperPos),t&&(this.resizeObserver=(0,a.default)(this.$el.querySelector(".md-steppers-wrapper"),{childList:!0,characterData:!0,subtree:!0},this.calculateStepperPos))},calculateStepperPos:function(){if(!this.mdVertical){var t=this.$el.querySelector(".md-stepper:nth-child("+(this.activeStepIndex+1)+")");this.contentStyles={height:t.offsetHeight+"px"}}},onActiveStepIndex:function(){var t,e=this.getItemsAndKeys(),n=(e.items,e.keys);if(this.hasActiveStep()||this.activeStepIndex)for(this.MdSteppers.activeStep=n[this.activeStepIndex],t=0;t<this.activeStepIndex;t++)this.setStepperAsDone(n[t]);else this.MdSteppers.activeStep=n[0]}},created:function(){this.calculateStepperPos=(0,u.default)(this.calculateStepperPos,300),this.MdSteppers.activeStep=this.mdActiveStep,this.MdSteppers.isLinear=this.mdLinear,this.MdSteppers.isVertical=this.mdVertical},mounted:function(){var t=this;this.$nextTick().then((function(){return t.mdSyncRoute?t.onActiveStepIndex():t.setActiveStepByIndex(0),t.$nextTick()})).then((function(){t.setActiveButtonEl(),t.calculateStepperPos(),window.setTimeout((function(){t.noTransition=!1,t.setupObservers()}),100)}))},beforeDestroy:function(){"ResizeObserver"in window||window.removeEventListener("resize",this.calculateStepperPos)}})},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(206),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(444),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(438)),o=r(n(440)),a=r(n(442)),e.default={name:"MdStepperHeader",components:{MdWarningIcon:i.default,MdCheckIcon:o.default,MdEditIcon:a.default},props:{index:{type:String,required:!0}},inject:["MdSteppers"],computed:{data:function(){return this.MdSteppers.items[this.index]},shouldDisable:function(){var t=this.data,e=this.index,n=this.MdSteppers;return!(!t.done||t.editable)||n.isLinear&&!n.isPreviousStepperDone(e)},classes:function(){return{"md-active":!this.MdSteppers.syncRoute&&this.index===this.MdSteppers.activeStep,"md-error":this.data.error,"md-done":this.data.done}}}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),e.default={name:"MdWarningIcon",components:{MdIcon:r.default}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),e.default={name:"MdCheckIcon",components:{MdIcon:r.default}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),e.default={name:"MdEditIcon",components:{MdIcon:r.default}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=n(11),a=r(o),s=r(n(28)),u=r(n(205)),e.default={name:"MdStep",components:{MdStepHeader:u.default},mixins:[s.default],props:{id:{type:String,default:function(){return"md-stepper-"+(0,a.default)()}},href:[String,Number],mdLabel:String,mdDescription:String,mdError:String,mdDone:Boolean,mdEditable:{type:Boolean,default:!0}},inject:["MdSteppers"],watch:{$props:{deep:!0,handler:function(){this.setStepperData()}}},methods:{getPropValues:function(){var t=this,e=Object.keys(this.$options.props),n=["id","mdLabel","mdDescription","mdError","mdEditable"],r={};return e.forEach((function(e){n.includes(e)||(t[e]?r[e]=t[e]:t.$attrs.hasOwnProperty(e)&&(r[e]=!e||t.$attrs[e]))})),r},setStepperData:function(){this.$set(this.MdSteppers.items,this.id,{label:this.mdLabel,description:this.mdDescription,error:this.mdError,done:this.mdDone,editable:this.mdEditable,props:this.getPropValues(),events:this.$listeners})},setupWatchers:function(){var t=this,e=function(e){if(t.MdSteppers.items[t.id])return t.MdSteppers.items[t.id][e]};this.$watch((function(){return e("error")}),(function(){return t.$emit("update:mdError",e("error"))})),this.$watch((function(){return e("done")}),(function(){return t.$emit("update:mdDone",e("done"))}))}},created:function(){this.setStepperData(),this.setupWatchers()},beforeDestroy:function(){this.$delete(this.MdSteppers.items,this.id)},render:function(t){var e={staticClass:"md-stepper",attrs:i({},this.$attrs,{id:this.id}),on:this.$listeners};return this.href?this.buttonProps=this.$options.props:this.$router&&this.to&&(this.$options.props=MdRouterLinkProps(this,this.$options.props),e.props=this.$props),t("div",e,this.$slots.default)}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(1)),e.default=new r.default({name:"MdSubheader",computed:{insideList:function(){return"md-list"===this.$parent.$options._componentTag}}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(1)),o=r(n(102)),a=n(11),s=r(a),e.default=new i.default({name:"MdSwitch",mixins:[o.default],props:{id:{type:String,default:function(){return"md-switch-"+(0,s.default)()}}}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f,d,h,p,m,v,g,b;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=n(10),a=r(o),s=r(n(461)),u=n(11),l=r(u),c=r(n(8)),f=r(n(462)),d=r(n(470)),h=r(n(220)),p=r(n(477)),m=r(n(222)),v=n(61),g=r(v),b=function(t,e){var n,r,i=t,o=!0,a=!1,s=void 0;try{for(n=e.split(".")[Symbol.iterator]();!(o=(r=n.next()).done);o=!0)i=i[r.value]}catch(t){a=!0,s=t}finally{try{!o&&n.return&&n.return()}finally{if(a)throw s}}return i},e.default={name:"MdTable",components:{MdTagSwitcher:s.default,MdTableAlternateHeader:d.default,MdTableThead:f.default,MdTableRow:h.default,MdTableRowGhost:p.default,MdTableCellSelection:m.default},props:{value:[Array,Object],mdModelId:{type:String,default:"id"},mdCard:Boolean,mdFixedHeader:Boolean,mdHeight:{type:[Number,String],default:400},mdSort:String,mdSortOrder:i({type:String,default:"asc"},(0,c.default)("md-sort-order",["asc","desc"])),mdSortFn:{type:Function,default:function(t){var e=this;return t.sort((function(t,n){var r=e.MdTable.sort,i=b(t,r),o=b(n,r),a="asc"===e.MdTable.sortOrder;return i?o?"number"==typeof i?a?i-o:o-i:a?i.localeCompare(o):o.localeCompare(i):-1:1}))}},mdSelectedValue:{type:[Array,Object]}},data:function(){return{windowResizeObserver:null,fixedHeaderTableWidth:0,fixedHeaderPadding:0,hasContentScroll:!1,MdTable:{items:{},sort:null,sortOrder:null,singleSelection:null,selectedItems:[],selectable:[],fixedHeader:null,contentPadding:null,contentEl:null,hasValue:this.hasValue,emitEvent:this.emitEvent,sortTable:this.sortTable,manageItemSelection:this.manageItemSelection,getModel:this.getModel,getModelItem:this.getModelItem,selectingMode:null},itemsUuidMap:new WeakMap}},computed:{contentTag:function(){return this.mdCard?"md-card":"md-content"},headerCount:function(){return Object.keys(this.MdTable.items).length},selectedCount:function(){return this.MdTable.selectedItems.length},headerStyles:function(){if(this.mdFixedHeader)return"padding-right: "+this.fixedHeaderPadding+"px"},hasValue:function(){return this.value&&0!==this.value.length},headerClasses:function(){if(this.mdFixedHeader&&this.hasContentScroll||!this.hasValue)return"md-table-fixed-header-active"},contentStyles:function(){if(this.mdFixedHeader){var t="number"==typeof this.mdHeight?this.mdHeight+"px":this.mdHeight;return"height: "+t+";max-height: "+t}},contentClasses:function(){if(this.mdFixedHeader&&0===this.value.length)return"md-table-empty"},fixedHeaderTableStyles:function(){return{width:this.fixedHeaderTableWidth+"px"}}},provide:function(){return{MdTable:this.MdTable}},watch:{mdSort:{immediate:!0,handler:function(){this.MdTable.sort=this.mdSort}},mdSortOrder:{immediate:!0,handler:function(){this.MdTable.sortOrder=this.mdSortOrder}},mdFixedHeader:{immediate:!0,handler:function(){this.MdTable.fixedHeader=this.mdFixedHeader}},hasValue:{immediate:!0,handler:function(){this.MdTable.hasValue=this.hasValue}},"MdTable.selectedItems":function(t,e){var n=this;(function(){var r=n.isEmpty(t),i=n.isEmpty(e),o=r&&i;return!(o||!o&&t.length===e.length&&t.every((function(t,n){return t==e[n]})))})()&&this.select(t)},"MdTable.singleSelection":function(t,e){t!=e&&this.select(t)},mdSelectedValue:function(){this.syncSelectedValue()},value:function(){this.syncSelectedValue(),this.setWidth()}},methods:{isEmpty:function(t){return!t||0===t.length},emitEvent:function(t,e){this.$emit(t,e)},getRowId:function(t,e){var n=t[e];return n||((n=this.itemsUuidMap.get(t))||(n="md-row-"+(0,l.default)(),this.itemsUuidMap.set(t,n)),n)},setScroll:function(t){var e=this;(0,a.default)((function(){e.mdFixedHeader&&(e.$refs.fixedHeaderContainer.scrollLeft=t.target.scrollLeft),e.hasContentScroll=t.target.scrollTop>0}))},setHeaderScroll:function(t){var e=this;(0,a.default)((function(){e.MdTable.contentEl.scrollLeft=t.target.scrollLeft}))},getContentEl:function(){return this.$el.querySelector(".md-table-content")},setContentEl:function(){this.MdTable.contentEl=this.getContentEl()},setHeaderPadding:function(){var t,e;this.setContentEl(),e=(t=this.MdTable.contentEl).childNodes[0],this.fixedHeaderPadding=t.offsetWidth-e.offsetWidth},getModel:function(){return this.value},getModelItem:function(t){return this.value[t]},manageItemSelection:function(t){this.MdTable.selectedItems.includes(t)?this.MdTable.selectedItems=this.MdTable.selectedItems.filter((function(e){return e!==t})):this.MdTable.selectedItems=this.MdTable.selectedItems.concat([t])},sortTable:function(){Array.isArray(this.value)&&this.$emit("input",this.mdSortFn(this.value))},select:function(t){this.$emit("update:mdSelectedValue",t),this.$emit("md-selected",t)},syncSelectedValue:function(){var t=this;this.$nextTick().then((function(){"single"===t.MdTable.selectingMode?t.MdTable.singleSelection=t.mdSelectedValue:"multiple"===t.MdTable.selectingMode&&(t.MdTable.selectedItems=t.mdSelectedValue||[])}))},setWidth:function(){this.mdFixedHeader&&(this.fixedHeaderTableWidth=this.$refs.contentTable.offsetWidth)}},created:function(){this.mdSort&&this.sortTable(),this.syncSelectedValue()},mounted:function(){this.setContentEl(),this.$nextTick().then(this.setWidth),this.mdFixedHeader&&(this.setHeaderPadding(),this.windowResizeObserver=new g.default(window,this.setWidth))},beforeDestroy:function(){this.windowResizeObserver&&this.windowResizeObserver.destroy()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t};e.default={functional:!0,props:{mdTag:{type:String,default:"div"}},render:function(t,e){var n=e.props,i=e.children,o=e.data,a=e.listeners;return t(n.mdTag,r({},o,{on:a}),i)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(101)),o=r(n(467)),e.default={name:"MdTableThead",inject:["MdTable"],components:{MdTableHead:i.default,MdTableHeadSelection:o.default}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a;Object.defineProperty(e,"__esModule",{value:!0}),i=r(n(464)),o=n(61),a=r(o),e.default={name:"MdTableHead",components:{MdUpwardIcon:i.default},props:{mdNumeric:Boolean,numeric:Boolean,id:[String,Number],label:String,tooltip:String,sortBy:String},inject:["MdTable"],data:function(){return{width:null,windowResizeObserver:null}},computed:{hasSort:function(){return this.MdTable.sort&&this.sortBy},isSorted:function(){if(this.MdTable.sort)return this.MdTable.sort===this.sortBy},isDescSorted:function(){return this.isSorted&&"desc"===this.MdTable.sortOrder},isAscSorted:function(){return this.isSorted&&"asc"===this.MdTable.sortOrder},headStyles:function(){return{width:this.width+"px"}},headClasses:function(){return{"md-numeric":this.numeric||this.mdNumeric,"md-sortable":this.hasSort,"md-sorted":this.isSorted,"md-sorted-desc":this.isDescSorted}}},methods:{changeSort:function(){this.hasSort&&(this.isAscSorted?this.MdTable.sortOrder="desc":this.MdTable.sortOrder="asc",this.MdTable.sort=this.sortBy,this.MdTable.emitEvent("md-sorted",this.MdTable.sort),this.MdTable.emitEvent("update:mdSort",this.MdTable.sort),this.MdTable.emitEvent("update:mdSortOrder",this.MdTable.sortOrder),this.MdTable.sortTable())},getChildNodesBySelector:function(t,e){return Array.from(t.childNodes).filter((function(t){var n=t.classList;return n&&n.contains(e)}))},getNodeIndex:function(t,e){return[].indexOf.call(t,e)},setWidth:function(){var t,e,n;this.MdTable.fixedHeader&&(t=this.getChildNodesBySelector(this.$el.parentNode,"md-table-head"),e=this.MdTable.contentEl.querySelectorAll("tr:first-child .md-table-cell"),n=this.getNodeIndex(t,this.$el),this.width=e[n].offsetWidth)}},updated:function(){this.$nextTick().then(this.setWidth)},mounted:function(){this.$nextTick().then(this.setWidth),this.MdTable.fixedHeader&&(this.windowResizeObserver=new a.default(window,this.setWidth))},beforeDestroy:function(){this.windowResizeObserver&&this.windowResizeObserver.destroy()}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(13)),e.default={name:"MdUpwardIcon",components:{MdIcon:r.default}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(101)),e.default={name:"MdTableHeadSelection",components:{MdTableHead:r.default},inject:["MdTable"],computed:{selectableCount:function(){return Object.keys(this.selectable).length},isDisabled:function(){return!this.selectableCount},selectable:function(){return this.MdTable.selectable},selectedItems:function(){return this.MdTable.selectedItems},allSelected:function(){var t=this;return 0!==this.selectableCount&&this.selectable.every((function(e){return t.selectedItems.includes(e)}))}},methods:{onChange:function(t){var e=this;this.MdTable.selectedItems=t?this.selectedItems.concat(this.selectable.filter((function(t){return!e.selectedItems.includes(t)}))):this.selectedItems.filter((function(t){return!e.selectable.includes(t)}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdTableAlternateHeader"}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(221),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(476),s=function(t){n(473)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=r(n(8)),a=r(n(222)),e.default={name:"MdTableRow",components:{MdTableCellSelection:a.default},props:{mdIndex:[Number,String],mdId:[Number,String],mdSelectable:i({type:[String]},(0,o.default)("md-selectable",["multiple","single"])),mdDisabled:Boolean,mdAutoSelect:Boolean,mdItem:[Array,Object]},inject:["MdTable"],data:function(){return{index:null}},computed:{selectableCount:function(){return this.MdTable.selectable.length},isMultipleSelected:function(){return this.MdTable.selectedItems.includes(this.mdItem)},isSingleSelected:function(){return this.MdTable.singleSelection===this.mdItem},hasMultipleSelection:function(){return this.MdTable.hasValue&&"multiple"===this.mdSelectable},hasSingleSelection:function(){return this.MdTable.hasValue&&"single"===this.mdSelectable},rowClasses:function(){if(this.MdTable.hasValue)return{"md-has-selection":!this.mdDisabled&&(this.mdAutoSelect||this.hasSingleSelection),"md-selected":this.isMultipleSelected,"md-selected-single":this.isSingleSelected}},isInSelectedItems:function(){return this.MdTable.selectedItems.includes(this.mdItem)}},watch:{mdDisabled:function(){this.mdDisabled?this.removeSelectableItem():this.addSelectableItem()},mdSelectable:function(){this.MdTable.selectingMode=this.mdSelectable},mdItem:function(t,e){this.removeSelectableItem(e),this.$nextTick(this.addSelectableItem)}},methods:{onClick:function(){this.MdTable.hasValue&&!this.mdDisabled&&(this.hasMultipleSelection?this.selectRowIfMultiple():this.hasSingleSelection&&this.selectRowIfSingle())},toggleSelection:function(){this.MdTable.manageItemSelection(this.mdItem)},addSelection:function(){this.isMultipleSelected||(this.MdTable.selectedItems=this.MdTable.selectedItems.concat([this.mdItem]))},removeSelection:function(){var t=this;this.isMultipleSelected&&(this.MdTable.selectedItems=this.MdTable.selectedItems.filter((function(e){return e!==t.mdItem})))},selectRowIfSingle:function(){this.MdTable.singleSelection===this.mdItem?this.MdTable.singleSelection=null:this.MdTable.singleSelection=this.mdItem},selectRowIfMultiple:function(){this.mdAutoSelect&&this.toggleSelection()},addSelectableItem:function(){return!(!this.hasMultipleSelection||this.mdDisabled)&&!this.MdTable.selectable.includes(this.mdItem)&&void(this.MdTable.selectable=this.MdTable.selectable.concat([this.mdItem]))},removeSelectableItem:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.mdItem;"multiple"===this.mdSelectable&&(this.MdTable.selectable=this.MdTable.selectable.filter((function(e){return e!==t})))}},created:function(){var t=this;this.$nextTick((function(){t.addSelectableItem(),t.MdTable.selectingMode=t.mdSelectable}))},beforeDestroy:function(){this.removeSelectableItem()}}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(223),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(475),s=function(t){n(474)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdTableCellSelection",props:{value:Boolean,mdRowId:[Number,String],mdSelectable:Boolean,mdDisabled:Boolean},inject:["MdTable"],data:function(){return{isSelected:!1}},watch:{value:{immediate:!0,handler:function(t){this.isSelected=t}}},methods:{onChange:function(){this.$emit("input",this.isSelected)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdTableRowGhost",props:{mdIndex:[String,Number],mdId:[String,Number],mdItem:[Array,Object]},render:function(){return this.$slots.default[0].componentOptions.propsData.mdIndex=this.mdIndex,this.$slots.default[0].componentOptions.propsData.mdId=this.mdId,this.$slots.default[0].componentOptions.propsData.mdItem=this.mdItem,this.$slots.default[0]}}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),r=function(t){return t&&t.__esModule?t:{default:t}}(n(111)),e.default={name:"MdTableToolbar",components:{MdToolbar:r.default},inject:["MdTable"]}},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-toolbar",class:[t.$mdActiveTheme,"md-elevation-"+t.mdElevation]},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i;Object.defineProperty(e,"__esModule",{value:!0}),r(n(105)),i=r(n(97)),e.default={name:"MdTableEmptyState",props:i.default,inject:["MdTable"]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdTableCell",props:{mdId:[String,Number],mdLabel:String,mdNumeric:Boolean,mdTooltip:String,mdSortBy:String},inject:["MdTable"],data:function(){return{index:null,parentNode:null}},computed:{cellClasses:function(){return{"md-numeric":this.mdNumeric}}},watch:{mdSortBy:function(){this.setCellData()},mdNumeric:function(){this.setCellData()},mdLabel:function(){this.setCellData()},mdTooltip:function(){this.setCellData()}},methods:{setCellData:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;this.$set(this.MdTable.items,t.index,{id:t.mdId,label:t.mdLabel,numeric:t.mdNumeric,tooltip:t.mdTooltip,sortBy:t.mdSortBy})},updateAllCellData:function(){var t=this;this.MdTable.items={},Array.from(this.parentNode.childNodes).filter((function(t){var e=t.tagName,n=t.classList,r=n&&n.contains("md-table-cell-selection");return e&&"td"===e.toLowerCase()&&!r})).forEach((function(e,n){var r=e.__vue__;r.index=n,t.setCellData(r)}))}},mounted:function(){this.parentNode=this.$el.parentNode,this.updateAllCellData()},destroyed:function(){if(null!==this.$el.parentNode)return!1;this.updateAllCellData()}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdTablePagination",inject:["MdTable"],props:{mdPageSize:{type:[String,Number],default:10},mdPageOptions:{type:Array,default:function(){return[10,25,50,100]}},mdPage:{type:Number,default:1},mdTotal:{type:[String,Number],default:"Many"},mdLabel:{type:String,default:"Rows per page:"},mdSeparator:{type:String,default:"of"}},data:function(){return{currentPageSize:0}},computed:{currentItemCount:function(){return(this.mdPage-1)*this.mdPageSize+1},currentPageCount:function(){return this.mdPage*this.mdPageSize}},watch:{mdPageSize:{immediate:!0,handler:function(t){this.currentPageSize=this.pageSize}}},methods:{setPageSize:function(){this.$emit("update:mdPageSize",this.currentPageSize)},goToPrevious:function(){},goToNext:function(){}},created:function(){this.currentPageSize=this.mdPageSize}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o,a,s,u,l,c,f,d,h,p,m,v;Object.defineProperty(e,"__esModule",{value:!0}),o=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},a=n(10),s=r(a),u=r(n(1)),l=r(n(43)),c=r(n(8)),f=n(48),d=r(f),h=n(110),p=r(h),m=r(n(103)),v=r(n(104)),e.default=new u.default({name:"MdTabs",mixins:[l.default,v.default],components:{MdContent:m.default},props:{mdAlignment:o({type:String,default:"left"},(0,c.default)("md-alignment",["left","right","centered","fixed"])),mdElevation:{type:[Number,String],default:0},mdSyncRoute:Boolean,mdDynamicHeight:Boolean,mdActiveTab:[String,Number]},data:function(){return{resizeObserver:null,activeTab:0,activeTabIndex:0,indicatorStyles:{},indicatorClass:null,noTransition:!0,containerStyles:{},contentStyles:{height:"0px"},hasContent:!1,MdTabs:{items:{}},activeButtonEl:null}},provide:function(){return{MdTabs:this.MdTabs}},computed:{tabsClasses:function(){var t;return i(t={},"md-alignment-"+this.mdAlignment,!0),i(t,"md-no-transition",this.noTransition),i(t,"md-dynamic-height",this.mdDynamicHeight),t},navigationClasses:function(){return"md-elevation-"+this.mdElevation},mdSwipeElement:function(){return this.$refs.tabsContent.$el}},watch:{MdTabs:{deep:!0,handler:function(){this.setHasContent()}},activeTab:function(t){var e=this;this.$emit("md-changed",t),this.$nextTick().then((function(){e.setIndicatorStyles(),e.setActiveButtonEl()}))},mdActiveTab:function(t){this.activeTab=t,this.$emit("md-changed",t)},activeButtonEl:function(t){this.activeTabIndex=t?[].indexOf.call(t.parentNode.childNodes,t):-1},activeTabIndex:function(t){this.setIndicatorStyles(),this.calculateTabPos()},$route:function(){this.$nextTick(this.setActiveButtonEl)},swiped:function(t){var e=this.getItemsAndKeys().keys.length||0;this.activeTabIndex<e&&"right"===t?this.setSwipeActiveTabByIndex(this.activeTabIndex+1):this.activeTabIndex>0&&"left"===t&&this.setSwipeActiveTabByIndex(this.activeTabIndex-1)}},methods:{hasActiveTab:function(){return this.activeTab||this.mdActiveTab},getItemsAndKeys:function(){var t=this.MdTabs.items;return{items:t,keys:Object.keys(t)}},setActiveTab:function(t){this.mdSyncRoute||(this.activeTab=t)},setActiveButtonEl:function(){this.activeButtonEl=this.$refs.navigation.querySelector(".md-tab-nav-button.md-active")},setSwipeActiveTabByIndex:function(t){var e=this.getItemsAndKeys().keys;e&&(this.activeTab=e[t])},setActiveTabByIndex:function(t){var e=this.getItemsAndKeys().keys;this.hasActiveTab()||(this.activeTab=e[t])},setHasContent:function(){var t=this.getItemsAndKeys(),e=t.items,n=t.keys;this.hasContent=n.some((function(t){return e[t].hasContent}))},setIndicatorStyles:function(){var t=this;(0,s.default)((function(){t.$nextTick().then((function(){var e,n,r;t.activeButtonEl&&t.$refs.indicator?(e=t.activeButtonEl.offsetWidth,n=t.activeButtonEl.offsetLeft,r=t.$refs.indicator.offsetLeft,t.indicatorClass=r<n?"md-tabs-indicator-right":"md-tabs-indicator-left",t.indicatorStyles={left:n+"px",right:"calc(100% - "+(e+n)+"px)"}):t.indicatorStyles={left:"100%",right:"100%"}}))}))},calculateTabPos:function(){if(this.hasContent){var t=this.$el.querySelector(".md-tab:nth-child("+(this.activeTabIndex+1)+")");this.contentStyles={height:t?t.offsetHeight+"px":0},this.containerStyles={transform:"translate3D("+100*-this.activeTabIndex+"%, 0, 0)"}}},callResizeFunctions:function(){this.setIndicatorStyles(),this.calculateTabPos()},setupObservers:function(){var t=this;this.resizeObserver=(0,d.default)(this.$el.querySelector(".md-tabs-content"),{childList:!0,characterData:!0,subtree:!0},(function(){t.callResizeFunctions()})),window.addEventListener("resize",this.callResizeFunctions)}},created:function(){this.setIndicatorStyles=(0,p.default)(this.setIndicatorStyles,300),this.setHasContent(),this.activeTab=this.mdActiveTab},mounted:function(){var t=this;this.setupObservers(),this.$nextTick().then((function(){return t.mdSyncRoute||t.setActiveTabByIndex(0),t.$nextTick()})).then((function(){t.setActiveButtonEl(),t.calculateTabPos(),window.setTimeout((function(){t.noTransition=!1,t.setupObservers()}),100)})),this.$refs.navigation.addEventListener("transitionend",this.setIndicatorStyles)},beforeDestroy:function(){this.resizeObserver&&this.resizeObserver.disconnect(),window.removeEventListener("resize",this.callResizeFunctions),this.$refs.navigation.removeEventListener("transitionend",this.setIndicatorStyles)}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=n(11),a=r(o),s=r(n(28)),u=n(48),l=r(u),c=n(29),f=r(c),e.default={name:"MdTab",mixins:[s.default],props:{id:{type:String,default:function(){return"md-tab-"+(0,a.default)()}},href:[String,Number],mdDisabled:Boolean,mdLabel:[String,Number],mdIcon:String,mdTemplateData:{type:Object,default:function(){return{}}}},inject:["MdTabs"],data:function(){return{observer:null}},watch:{$props:{deep:!0,handler:function(){this.setTabData()}},$attrs:{deep:!0,handler:function(){this.setTabData()}}},methods:{setTabContent:function(){this.$set(this.MdTabs.items[this.id],"hasContent",!!this.$slots.default)},setupObserver:function(){this.observer=(0,l.default)(this.$el,{childList:!0},this.setTabContent)},setTabData:function(){this.$set(this.MdTabs.items,this.id,{hasContent:!!this.$slots.default,label:this.mdLabel,icon:this.mdIcon,disabled:this.mdDisabled,data:this.mdTemplateData,props:this.getPropValues(),events:this.$listeners})},getPropValues:function(){var t=this,e=Object.keys(this.$options.props),n=["id","mdLabel","mdDisabled","mdTemplateData"],r={};return e.forEach((function(e){n.includes(e)||(t[e]?r[e]=t[e]:t.$attrs.hasOwnProperty(e)&&(r[e]=!e||t.$attrs[e]))})),r}},mounted:function(){this.setupObserver(),this.setTabData()},beforeDestroy:function(){this.observer&&this.observer.disconnect(),this.$delete(this.MdTabs.items,this.id)},render:function(t){var e={staticClass:"md-tab",attrs:i({},this.$attrs,{id:this.id}),on:this.$listeners};return this.href?this.buttonProps=this.$options.props:this.$router&&this.to&&(this.$options.props=(0,f.default)(this,this.$options.props),e.props=this.$props),t("div",e,this.$slots.default)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o=r(n(1)),a=r(n(8)),s=r(n(56)),e.default=new o.default({name:"MdTooltip",components:{MdPopover:s.default},props:{mdActive:Boolean,mdDelay:{type:[String,Number],default:0},mdDirection:i({type:String,default:"bottom"},(0,a.default)("md-direction",["top","right","bottom","left"]))},data:function(){return{shouldRender:!1,targetEl:null}},computed:{tooltipClasses:function(){return"md-tooltip-"+this.mdDirection},tooltipStyles:function(){return"transition-delay: "+this.mdDelay+"ms"},popperSettings:function(){return{placement:this.mdDirection,modifiers:{offset:{offset:"0, 16"}}}}},watch:{mdActive:function(){this.shouldRender=this.mdActive},shouldRender:function(t){this.$emit("update:mdActive",t)}},methods:{show:function(){this.shouldRender=!0},hide:function(){this.shouldRender=!1}},mounted:function(){var t=this;this.$nextTick().then((function(){t.shouldRender=t.mdActive,t.targetEl=t._vnode.componentInstance.originalParentEl,t.targetEl&&(t.targetEl.addEventListener("mouseenter",t.show,!1),t.targetEl.addEventListener("mouseleave",t.hide,!1))}))},beforeDestroy:function(){this.targetEl&&(this.targetEl.removeEventListener("mouseenter",this.show),this.targetEl.removeEventListener("mouseleave",this.hide))}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f,d,h;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(235),s=r(a),u=n(245),l=r(u),c=n(248),f=r(c),d=n(251),h=r(d),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default),t.component(f.default.name,f.default),t.component(h.default.name,h.default)}},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(112),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=function(t){n(236)},s=n(0)(i.a,null,!1,a,null,null),e.default=s.exports},function(t,e){},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(113),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(239),s=function(t){n(238)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-app md-app-side-drawer md-layout-row",class:[t.appClasses,t.$mdActiveTheme]},[t._t("md-app-drawer-left"),t._v(" "),t._t("md-app-drawer-right-previous"),t._v(" "),n("main",{staticClass:"md-app-container md-flex md-layout-column",class:[t.$mdActiveTheme,t.scrollerClasses],style:t.contentStyles,on:{"&scroll":function(e){return t.handleScroll(e)}}},[t._t("md-app-toolbar"),t._v(" "),n("div",{staticClass:"md-app-scroller md-layout-column md-flex",class:[t.$mdActiveTheme,t.scrollerClasses],style:t.containerStyles,on:{"&scroll":function(e){return t.handleScroll(e)}}},[t._t("md-app-content")],2)],2),t._v(" "),t._t("md-app-drawer-right")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(115),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(242),s=function(t){n(241)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-app md-app-internal-drawer md-layout-column",class:[t.appClasses,t.$mdActiveTheme]},[t._t("md-app-toolbar"),t._v(" "),n("main",{staticClass:"md-app-container md-flex md-layout-row",class:[t.$mdActiveTheme,t.scrollerClasses],style:[t.containerStyles,t.contentStyles]},[t._t("md-app-drawer-left"),t._v(" "),t._t("md-app-drawer-right-previous"),t._v(" "),n("div",{staticClass:"md-app-scroller md-layout-column md-flex",class:[t.$mdActiveTheme,t.scrollerClasses]},[t._t("md-app-content")],2),t._v(" "),t._t("md-app-drawer-right")],2)],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(116),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(244),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"md-drawer md-right-previous",class:t.drawerClasses})},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(117),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(247),s=function(t){n(246)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("md-toolbar",t._g(t._b({staticClass:"md-app-toolbar",class:t.toolbarClasses,style:t.toolbarStyles},"md-toolbar",t.$attrs,!1),t.$listeners),[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(118),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(250),s=function(t){n(249)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.showCard?n("md-card",t._g(t._b({staticClass:"md-app-content md-flex"},"md-card",t.$attrs,!1),t.$listeners),[t._t("default")],2):n("md-content",t._g(t._b({staticClass:"md-app-content md-flex"},"md-content",t.$attrs,!1),t.$listeners),[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(119),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(252),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("md-drawer",t._g(t._b({ref:"drawer",staticClass:"md-app-drawer",attrs:{"md-active":t.mdActive&&t.initialized,"md-right":t.mdRight}},"md-drawer",t.$attrs,!1),t.$listeners),[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(254),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(120),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(259),s=function(t){n(255)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(121),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(258),s=function(t){n(257)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-badge",class:[t.$mdActiveTheme]},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.hasDefaultSlot?n("div",{staticClass:"md-badge-content"},[t._t("default"),t._v(" "),n("md-badge-standalone",{class:t.badgeClasses,style:t.styles},[n("div",[t._v("\n      "+t._s(t.mdContent)+"\n    ")])])],2):n("md-badge-standalone",{class:t.badgeClasses,style:t.styles},[t._v("\n  "+t._s(t.mdContent)+"\n")])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(261),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(122),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(265),s=function(t){n(262)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";t.exports=function(t,e){var n,r,i,o=e.length,a=t.length;if(a>o)return!1;if(a===o)return t===e;t:for(n=0,r=0;n<a;n++){for(i=t.charCodeAt(n);r<o;)if(e.charCodeAt(r++)===i)continue t;return!1}return!0}},function(t,e){t.exports=function(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-field",{staticClass:"md-autocomplete",class:t.fieldClasses,attrs:{"md-clearable":"","md-inline":t.isBoxLayout}},[n("md-menu",{attrs:{"md-direction":"bottom-start","md-dense":t.mdDense,"md-align-trigger":"","md-full-width":"","md-active":t.showMenu},on:{"update:mdActive":function(e){t.showMenu=e},"update:md-active":function(e){t.showMenu=e}}},[n("md-input",t._b({attrs:{id:t.mdInputId,name:t.mdInputName,maxlength:t.mdInputMaxlength,placeholder:t.mdInputPlaceholder},on:{focus:function(e){return e.stopPropagation(),t.openOnFocus(e)},blur:t.hideOptions,input:t.onInput,click:function(e){return e.stopPropagation(),e.preventDefault(),t.openOnFocus(e)}},model:{value:t.searchTerm,callback:function(e){t.searchTerm=e},expression:"searchTerm"}},"md-input",t.$attrs,!1)),t._v(" "),n("md-menu-content",{directives:[{name:"show",rawName:"v-show",value:t.hasScopedEmptySlot||t.hasFilteredItems,expression:"hasScopedEmptySlot || hasFilteredItems"}],class:t.contentClasses},[t.isPromisePending?n("div",{staticClass:"md-autocomplete-loading"},[n("md-progress-spinner",{attrs:{"md-diameter":40,"md-stroke":4,"md-mode":"indeterminate"}})],1):t._e(),t._v(" "),t.hasFilteredItems?n("div",{staticClass:"md-autocomplete-items"},t._l(t.getOptions(),(function(e,r){return n("md-menu-item",{key:r,on:{click:function(n){return t.selectItem(e,n)}}},[t.$scopedSlots["md-autocomplete-item"]?t._t("md-autocomplete-item",null,{item:e,term:t.searchTerm}):[t._v(t._s(e))]],2)})),1):t.hasScopedEmptySlot?n("md-menu-item",[n("div",{staticClass:"md-autocomplete-empty"},[t._t("md-autocomplete-empty",null,{term:t.searchTerm})],2)]):t._e()],1)],1),t._v(" "),t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(267),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(123),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(269),s=function(t){n(268)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-avatar",class:[t.$mdActiveTheme]},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(271),s=r(a),u=n(274),l=r(u),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(124),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(273),s=function(t){n(272)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-bottom-bar",class:[t.$mdActiveTheme,t.barClasses]},[n("md-ripple",{attrs:{"md-disabled":"fixed"===t.mdType,"md-active":t.MdBottomBar.mouseEvent}},[t._t("default")],2)],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(125),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(275),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-button",t._g(t._b({staticClass:"md-bottom-bar-item",class:t.itemClasses,attrs:{id:t.id,disabled:t.mdDisabled,"md-ripple":"fixed"===t.MdBottomBar.type},on:{click:t.setActiveItem}},"md-button",t.attrs,!1),t.$listeners),[t.$slots.default?t._t("default"):[t.isAssetIcon(t.mdIcon)?n("md-icon",{staticClass:"md-bottom-bar-icon",attrs:{"md-src":t.mdIcon}}):n("md-icon",{staticClass:"md-bottom-bar-icon"},[t._v(t._s(t.mdIcon))]),t._v(" "),n("span",{staticClass:"md-bottom-bar-label"},[t._v(t._s(t.mdLabel))])]],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(39),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f,d,h,p,m,v,g,b,y,w,_,k,M,x,S,C,A,T,E;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(278),s=r(a),u=n(281),l=r(u),c=n(284),f=r(c),d=n(287),h=r(d),p=n(289),m=r(p),v=n(292),g=r(v),b=n(295),y=r(b),w=n(298),_=r(w),k=n(301),M=r(k),x=n(304),S=r(x),C=n(306),A=r(C),T=n(309),E=r(T),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default),t.component(f.default.name,f.default),t.component(h.default.name,h.default),t.component(m.default.name,m.default),t.component(g.default.name,g.default),t.component(y.default.name,y.default),t.component(_.default.name,_.default),t.component(M.default.name,M.default),t.component(S.default.name,S.default),t.component(A.default.name,A.default),t.component(E.default.name,E.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(126),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(280),s=function(t){n(279)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-card",class:[t.$mdActiveTheme,t.cardClasses]},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(127),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(283),s=function(t){n(282)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-card-area",class:t.areaClasses},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(128),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(286),s=function(t){n(285)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-card-header"},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(129),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(288),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-card-header-text"},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(130),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(291),s=function(t){n(290)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-card-media",class:t.mediaClasses},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(131),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(294),s=function(t){n(293)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-card-media-actions"},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(132),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(297),s=function(t){n(296)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-card-media-cover",class:t.coverClasses},[t._t("default"),t._v(" "),t.mdTextScrim?n("div",{ref:"backdrop",staticClass:"md-card-backdrop",style:t.coverStyles}):t._e()],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(133),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(300),s=function(t){n(299)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-card-content"},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(134),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(303),s=function(t){n(302)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-card-expand"},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(135),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=function(t){n(305)},s=n(0)(i.a,null,!1,a,null,null),e.default=s.exports},function(t,e){},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(136),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(308),s=function(t){n(307)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-card-expand-content",style:t.contentStyles},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(137),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(311),s=function(t){n(310)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-card-actions",class:"md-alignment-"+t.mdAlignment},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(313),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(138),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(315),s=function(t){n(314)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-checkbox",class:[t.$mdActiveTheme,t.checkClasses]},[n("div",{staticClass:"md-checkbox-container",on:{click:function(e){return e.stopPropagation(),t.toggleCheck(e)}}},[n("md-ripple",{attrs:{"md-centered":"","md-active":t.rippleActive,"md-disabled":t.disabled},on:{"update:mdActive":function(e){t.rippleActive=e},"update:md-active":function(e){t.rippleActive=e}}},[n("input",t._b({attrs:{id:t.id,type:"checkbox"},domProps:{indeterminate:t.indeterminate}},"input",t.attrs,!1))])],1),t._v(" "),t.$slots.default?n("label",{staticClass:"md-checkbox-label",attrs:{for:t.id},on:{click:function(e){return e.preventDefault(),t.toggleCheck(e)}}},[t._t("default")],2):t._e()])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(317),s=r(a),u=n(320),l=r(u),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(139),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(319),s=function(t){n(318)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-field",{staticClass:"md-chips",class:[t.$mdActiveTheme,t.chipsClasses]},[t._t("default"),t._v(" "),t._l(t.value,(function(e,r){return n("md-chip",{key:e,attrs:{"md-deletable":!t.mdStatic,"md-clickable":!t.mdStatic,"md-duplicated":t.duplicatedChip===e},on:{keydown:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:t.$emit("md-click",e,r)},"md-delete":function(n){return n.stopPropagation(),t.removeChip(e)}},nativeOn:{click:function(n){return t.$emit("md-click",e,r)}}},[t.$scopedSlots["md-chip"]?t._t("md-chip",[t._v(t._s(e))],{chip:e}):[t._v(t._s(e))]],2)})),t._v(" "),!t.mdStatic&&t.modelRespectLimit?n("md-input",{ref:"input",attrs:{type:t.mdInputType,id:t.id,placeholder:t.mdPlaceholder},on:{input:t.handleInput,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.insertChip(e)},function(e){return e.type.indexOf("key")||8===e.keyCode?t.handleBackRemove(e):null}]},model:{value:t.inputValue,callback:function(e){t.inputValue="string"==typeof e?e.trim():e},expression:"inputValue"}}):t._e()],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(140),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(322),s=function(t){n(321)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"md-chip",appear:""}},[n("div",t._g({staticClass:"md-chip",class:[t.$mdActiveTheme,t.chipClasses],attrs:{tabindex:"0"}},t.$listeners),[t.mdClickable||!t.mdRipple?n("md-ripple",{attrs:{"md-disabled":t.mdDisabled}},[t._t("default")],2):t._t("default"),t._v(" "),n("transition",{attrs:{name:"md-input-action",appear:""}},[t.mdDeletable?n("md-button",{staticClass:"md-icon-button md-dense md-input-action md-clear",attrs:{tabindex:"-1"},on:{click:function(e){return t.$emit("md-delete",e)}}},[n("md-clear-icon")],1):t._e()],1)],2)])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(103),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(325),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(141),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(351),s=function(t){n(326)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent)},function(t,e,n){"use strict";function r(t,e){for(var n=t<0?"-":"",r=""+Math.abs(t);r.length<e;)r="0"+r;return n+r}function i(t,e){var n=t>0?"-":"+",i=Math.abs(t),o=Math.floor(i/60),a=i%60;return 0===a?n+(o+""):n+(o+"")+(e||"")+r(a,2)}function o(t,e){return t%60==0?(t>0?"-":"+")+r(Math.abs(t)/60,2):a(t,e)}function a(t,e){var n=e||"",i=t>0?"-":"+",o=Math.abs(t);return i+r(Math.floor(o/60),2)+n+r(o%60,2)}function s(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function u(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}function l(t){return t.match(T)[1].replace(E,"'")}var c,f,d,h,p,m,v,g,b,y,w,_,k,M,x,S,C,A,T,E;Object.defineProperty(e,"__esModule",{value:!0}),c=n(17),f=n(142),d=n(9),h=n(143),p=n(144),m={y:function(t,e){var n=t.getUTCFullYear(),i=n>0?n:1-n;return r("yy"===e?i%100:i,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?n+1+"":r(n+1,2)},d:function(t,e){return r(t.getUTCDate(),e.length)},a:function(t,e){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.toUpperCase();case"aaaaa":return n[0];case"aaaa":default:return"am"===n?"a.m.":"p.m."}},h:function(t,e){return r(t.getUTCHours()%12||12,e.length)},H:function(t,e){return r(t.getUTCHours(),e.length)},m:function(t,e){return r(t.getUTCMinutes(),e.length)},s:function(t,e){return r(t.getUTCSeconds(),e.length)}},v=864e5,g=n(145),b=n(146),y=n(147),w=n(93),_={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},k={G:function(t,e,n){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(t,e,n){var r,i;return"yo"===e?(i=(r=t.getUTCFullYear())>0?r:1-r,n.ordinalNumber(i,{unit:"year"})):m.y(t,e)},Y:function(t,e,n,i){var o=Object(w.a)(t,i),a=o>0?o:1-o;return"YY"===e?r(a%100,2):"Yo"===e?n.ordinalNumber(a,{unit:"year"}):r(a,e.length)},R:function(t,e){return r(Object(b.a)(t),e.length)},u:function(t,e){return r(t.getUTCFullYear(),e.length)},Q:function(t,e,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return i+"";case"QQ":return r(i,2);case"Qo":return n.ordinalNumber(i,{unit:"quarter"});case"QQQ":return n.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,e,n){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return i+"";case"qq":return r(i,2);case"qo":return n.ordinalNumber(i,{unit:"quarter"});case"qqq":return n.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,e,n){var r=t.getUTCMonth();switch(e){case"M":case"MM":return m.M(t,e);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,n){var i=t.getUTCMonth();switch(e){case"L":return i+1+"";case"LL":return r(i+1,2);case"Lo":return n.ordinalNumber(i+1,{unit:"month"});case"LLL":return n.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(i,{width:"wide",context:"standalone"})}},w:function(t,e,n,i){var o=Object(y.a)(t,i);return"wo"===e?n.ordinalNumber(o,{unit:"week"}):r(o,e.length)},I:function(t,e,n){var i=Object(g.a)(t);return"Io"===e?n.ordinalNumber(i,{unit:"week"}):r(i,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):m.d(t,e)},D:function(t,e,n){var i=function(t){var e,n,r;if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return n=(e=Object(d.a)(t)).getTime(),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0),r=n-e.getTime(),Math.floor(r/v)+1}(t);return"Do"===e?n.ordinalNumber(i,{unit:"dayOfYear"}):r(i,e.length)},E:function(t,e,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(e){case"e":return a+"";case"ee":return r(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,n,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(e){case"c":return a+"";case"cc":return r(a,e.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,n){var i=t.getUTCDay(),o=0===i?7:i;switch(e){case"i":return o+"";case"ii":return r(o,e.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(i,{width:"short",context:"formatting"});case"iiii":default:return n.day(i,{width:"wide",context:"formatting"})}},a:function(t,e,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,n){var r,i=t.getUTCHours();switch(r=12===i?_.noon:0===i?_.midnight:i/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,n){var r,i=t.getUTCHours();switch(r=i>=17?_.evening:i>=12?_.afternoon:i>=4?_.morning:_.night,e){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,n){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return m.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):m.H(t,e)},K:function(t,e,n){var i=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(i,{unit:"hour"}):r(i,e.length)},k:function(t,e,n){var i=t.getUTCHours();return 0===i&&(i=24),"ko"===e?n.ordinalNumber(i,{unit:"hour"}):r(i,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):m.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):m.s(t,e)},S:function(t,e){var n=e.length,i=t.getUTCMilliseconds();return r(Math.floor(i*Math.pow(10,n-3)),n)},X:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();if(0===i)return"Z";switch(e){case"X":return o(i);case"XXXX":case"XX":return a(i);case"XXXXX":case"XXX":default:return a(i,":")}},x:function(t,e,n,r){var i=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return o(i);case"xxxx":case"xx":return a(i);case"xxxxx":case"xxx":default:return a(i,":")}},O:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+i(o,":");case"OOOO":default:return"GMT"+a(o,":")}},z:function(t,e,n,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+i(o,":");case"zzzz":default:return"GMT"+a(o,":")}},t:function(t,e,n,i){var o=i._originalDate||t;return r(Math.floor(o.getTime()/1e3),e.length)},T:function(t,e,n,i){return r((i._originalDate||t).getTime(),e.length)}},M={p:u,P:function(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return s(t,e);switch(i){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",s(i,e)).replace("{{time}}",u(o,e))}},x=n(148),S=n(149),e.default=function(t,e,n){var r,i,o,a,s,u,m,v,g,b,y,w,_;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");if(r=e+"",s=null==(a=(o=(i=n||{}).locale||p.a).options&&o.options.firstWeekContainsDate)?1:Object(c.a)(a),!((u=null==i.firstWeekContainsDate?s:Object(c.a)(i.firstWeekContainsDate))>=1&&u<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");if(v=null==(m=o.options&&o.options.weekStartsOn)?0:Object(c.a)(m),!((g=null==i.weekStartsOn?v:Object(c.a)(i.weekStartsOn))>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");if(b=Object(d.a)(t),!Object(h.default)(b))throw new RangeError("Invalid time value");return y=Object(f.a)(b),w=Object(x.a)(b,y),_={firstWeekContainsDate:u,weekStartsOn:g,locale:o,_originalDate:b},r.match(A).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,M[e])(t,o.formatLong,_):t})).join("").match(C).map((function(t){var e,n;return"''"===t?"'":"'"===(e=t[0])?l(t):(n=k[e])?(!i.awareOfUnicodeTokens&&Object(S.a)(t)&&Object(S.b)(t),n(w,t,o.localize,_)):t})).join("")},C=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,A=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'(.*?)'?$/,E=/''/g},function(t,e,n){"use strict";function r(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in e=e||{})e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function i(t,e,n){var r,i,o,a,s,u,l,c;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");if(a=null==(o=(i=(r=n||{}).locale)&&i.options&&i.options.weekStartsOn)?0:Object(m.a)(o),!((s=null==r.weekStartsOn?a:Object(m.a)(r.weekStartsOn))>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");return u=Object(g.a)(t),c=(((l=Object(m.a)(e))%7+7)%7<s?7:0)+l-u.getUTCDay(),u.setUTCDate(u.getUTCDate()+c),u}function o(t,e,n){var r,i=e.match(t);return i?(r=parseInt(i[0],10),{value:n?n(r):r,rest:e.slice(i[0].length)}):null}function a(t,e){var n,r,i,o,a=e.match(t);return a?"Z"===a[0]?{value:0,rest:e.slice(1)}:(n="+"===a[1]?1:-1,r=a[2]?parseInt(a[2],10):0,i=a[3]?parseInt(a[3],10):0,o=a[5]?parseInt(a[5],10):0,{value:n*(r*S+i*C+o*A),rest:e.slice(a[0].length)}):null}function s(t,e){return o(T.anyDigitsSigned,t,e)}function u(t,e,n){switch(t){case 1:return o(T.singleDigit,e,n);case 2:return o(T.twoDigits,e,n);case 3:return o(T.threeDigits,e,n);case 4:return o(T.fourDigits,e,n);default:return o(RegExp("^\\d{1,"+t+"}"),e,n)}}function l(t,e,n){switch(t){case 1:return o(T.singleDigitSigned,e,n);case 2:return o(T.twoDigitsSigned,e,n);case 3:return o(T.threeDigitsSigned,e,n);case 4:return o(T.fourDigitsSigned,e,n);default:return o(RegExp("^-?\\d{1,"+t+"}"),e,n)}}function c(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function f(t,e){var n,r,i=e>0,o=i?e:1-e;return o<=50?n=t||100:(r=o+50,n=t+100*Math.floor(r/100)-(t>=r%100?100:0)),i?n:1-n}function d(t){return t%400==0||t%4==0&&t%100!=0}function h(t,e){if(e.timestampIsSet)return t;var n=new Date(0);return n.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),n.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),n}function p(t){return t.match(N)[1].replace(L,"'")}var m,v,g,b,y,w,_,k,M,x,S,C,A,T,E,O,P,I,R,j,D,N,L,B;Object.defineProperty(e,"__esModule",{value:!0}),m=n(17),v=n(142),g=n(9),b=n(148),y=n(144),w=n(93),_=n(147),k=n(65),M=n(145),x=n(64),S=36e5,C=6e4,A=1e3,T={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},E={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/},O=[31,28,31,30,31,30,31,31,30,31,30,31],P=[31,29,31,30,31,30,31,31,30,31,30,31],I={G:{priority:140,parse:function(t,e,n,r){switch(e){case"G":case"GG":case"GGG":return n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"});case"GGGGG":return n.era(t,{width:"narrow"});case"GGGG":default:return n.era(t,{width:"wide"})||n.era(t,{width:"abbreviated"})||n.era(t,{width:"narrow"})}},set:function(t,e,n,r){return t.setUTCFullYear(1===n?10:-9,0,1),t.setUTCHours(0,0,0,0),t}},y:{priority:130,parse:function(t,e,n,r){var i=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return u(4,t,i);case"yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return u(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n,r){var i,o,a=Object(w.a)(t,r);return n.isTwoDigitYear?(i=f(n.year,a),t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t):(o=a>0?n.year:1-n.year,t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t)}},Y:{priority:130,parse:function(t,e,n,r){var i=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return u(4,t,i);case"Yo":return n.ordinalNumber(t,{unit:"year",valueCallback:i});default:return u(e.length,t,i)}},validate:function(t,e,n){return e.isTwoDigitYear||e.year>0},set:function(t,e,n,r){var i,o,a=t.getUTCFullYear();return n.isTwoDigitYear?(i=f(n.year,a),t.setUTCFullYear(i,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(k.a)(t,r)):(o=a>0?n.year:1-n.year,t.setUTCFullYear(o,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Object(k.a)(t,r))}},R:{priority:130,parse:function(t,e,n,r){return l("R"===e?4:e.length,t)},set:function(t,e,n,r){var i=new Date(0);return i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0),Object(x.a)(i)}},u:{priority:130,parse:function(t,e,n,r){return l("u"===e?4:e.length,t)},set:function(t,e,n,r){return t.setUTCFullYear(n,0,1),t.setUTCHours(0,0,0,0),t}},Q:{priority:120,parse:function(t,e,n,r){switch(e){case"Q":case"QQ":return u(e.length,t);case"Qo":return n.ordinalNumber(t,{unit:"quarter"});case"QQQ":return n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(t,{width:"wide",context:"formatting"})||n.quarter(t,{width:"abbreviated",context:"formatting"})||n.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=1&&e<=4},set:function(t,e,n,r){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}},q:{priority:120,parse:function(t,e,n,r){switch(e){case"q":case"qq":return u(e.length,t);case"qo":return n.ordinalNumber(t,{unit:"quarter"});case"qqq":return n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(t,{width:"wide",context:"standalone"})||n.quarter(t,{width:"abbreviated",context:"standalone"})||n.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=1&&e<=4},set:function(t,e,n,r){return t.setUTCMonth(3*(n-1),1),t.setUTCHours(0,0,0,0),t}},M:{priority:110,parse:function(t,e,n,r){var i=function(t){return t-1};switch(e){case"M":return o(T.month,t,i);case"MM":return u(2,t,i);case"Mo":return n.ordinalNumber(t,{unit:"month",valueCallback:i});case"MMM":return n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(t,{width:"wide",context:"formatting"})||n.month(t,{width:"abbreviated",context:"formatting"})||n.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}},L:{priority:110,parse:function(t,e,n,r){var i=function(t){return t-1};switch(e){case"L":return o(T.month,t,i);case"LL":return u(2,t,i);case"Lo":return n.ordinalNumber(t,{unit:"month",valueCallback:i});case"LLL":return n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(t,{width:"wide",context:"standalone"})||n.month(t,{width:"abbreviated",context:"standalone"})||n.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.setUTCMonth(n,1),t.setUTCHours(0,0,0,0),t}},w:{priority:100,parse:function(t,e,n,r){switch(e){case"w":return o(T.week,t);case"wo":return n.ordinalNumber(t,{unit:"week"});default:return u(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n,r){return Object(k.a)(function(t,e,n){var r,i,o;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return r=Object(g.a)(t),i=Object(m.a)(e),o=Object(_.a)(r,n)-i,r.setUTCDate(r.getUTCDate()-7*o),r}(t,n,r),r)}},I:{priority:100,parse:function(t,e,n,r){switch(e){case"I":return o(T.week,t);case"Io":return n.ordinalNumber(t,{unit:"week"});default:return u(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=53},set:function(t,e,n,r){return Object(x.a)(function(t,e){var n,r,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(g.a)(t),r=Object(m.a)(e),i=Object(M.a)(n)-r,n.setUTCDate(n.getUTCDate()-7*i),n}(t,n,r),r)}},d:{priority:90,parse:function(t,e,n,r){switch(e){case"d":return o(T.date,t);case"do":return n.ordinalNumber(t,{unit:"date"});default:return u(e.length,t)}},validate:function(t,e,n){var r=d(t.getUTCFullYear()),i=t.getUTCMonth();return r?e>=1&&e<=P[i]:e>=1&&e<=O[i]},set:function(t,e,n,r){return t.setUTCDate(n),t.setUTCHours(0,0,0,0),t}},D:{priority:90,parse:function(t,e,n,r){switch(e){case"D":case"DD":return o(T.dayOfYear,t);case"Do":return n.ordinalNumber(t,{unit:"date"});default:return u(e.length,t)}},validate:function(t,e,n){return d(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,n,r){return t.setUTCMonth(0,n),t.setUTCHours(0,0,0,0),t}},E:{priority:90,parse:function(t,e,n,r){switch(e){case"E":case"EE":case"EEE":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return(t=i(t,n,r)).setUTCHours(0,0,0,0),t}},e:{priority:90,parse:function(t,e,n,r){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return u(e.length,t,i);case"eo":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"eee":return n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeeee":return n.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(t,{width:"wide",context:"formatting"})||n.day(t,{width:"abbreviated",context:"formatting"})||n.day(t,{width:"short",context:"formatting"})||n.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return(t=i(t,n,r)).setUTCHours(0,0,0,0),t}},c:{priority:90,parse:function(t,e,n,r){var i=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return u(e.length,t,i);case"co":return n.ordinalNumber(t,{unit:"day",valueCallback:i});case"ccc":return n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"ccccc":return n.day(t,{width:"narrow",context:"standalone"});case"cccccc":return n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(t,{width:"wide",context:"standalone"})||n.day(t,{width:"abbreviated",context:"standalone"})||n.day(t,{width:"short",context:"standalone"})||n.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,n){return e>=0&&e<=6},set:function(t,e,n,r){return(t=i(t,n,r)).setUTCHours(0,0,0,0),t}},i:{priority:90,parse:function(t,e,n,r){var i=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return u(e.length,t);case"io":return n.ordinalNumber(t,{unit:"day"});case"iii":return n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiii":return n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiiiii":return n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i});case"iiii":default:return n.day(t,{width:"wide",context:"formatting",valueCallback:i})||n.day(t,{width:"abbreviated",context:"formatting",valueCallback:i})||n.day(t,{width:"short",context:"formatting",valueCallback:i})||n.day(t,{width:"narrow",context:"formatting",valueCallback:i})}},validate:function(t,e,n){return e>=1&&e<=7},set:function(t,e,n,r){return(t=function(t,e){var n,r,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return(n=Object(m.a)(e))%7==0&&(n-=7),i=((n%7+7)%7<1?7:0)+n-(r=Object(g.a)(t)).getUTCDay(),r.setUTCDate(r.getUTCDate()+i),r}(t,n,r)).setUTCHours(0,0,0,0),t}},a:{priority:80,parse:function(t,e,n,r){switch(e){case"a":case"aa":case"aaa":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,n,r){return t.setUTCHours(c(n),0,0,0),t}},b:{priority:80,parse:function(t,e,n,r){switch(e){case"b":case"bb":case"bbb":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,n,r){return t.setUTCHours(c(n),0,0,0),t}},B:{priority:80,parse:function(t,e,n,r){switch(e){case"B":case"BB":case"BBB":return n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(t,{width:"wide",context:"formatting"})||n.dayPeriod(t,{width:"abbreviated",context:"formatting"})||n.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,n,r){return t.setUTCHours(c(n),0,0,0),t}},h:{priority:70,parse:function(t,e,n,r){switch(e){case"h":return o(T.hour12h,t);case"ho":return n.ordinalNumber(t,{unit:"hour"});default:return u(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=12},set:function(t,e,n,r){var i=t.getUTCHours()>=12;return i&&n<12?t.setUTCHours(n+12,0,0,0):i||12!==n?t.setUTCHours(n,0,0,0):t.setUTCHours(0,0,0,0),t}},H:{priority:70,parse:function(t,e,n,r){switch(e){case"H":return o(T.hour23h,t);case"Ho":return n.ordinalNumber(t,{unit:"hour"});default:return u(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=23},set:function(t,e,n,r){return t.setUTCHours(n,0,0,0),t}},K:{priority:70,parse:function(t,e,n,r){switch(e){case"K":return o(T.hour11h,t);case"Ko":return n.ordinalNumber(t,{unit:"hour"});default:return u(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=11},set:function(t,e,n,r){return t.getUTCHours()>=12&&n<12?t.setUTCHours(n+12,0,0,0):t.setUTCHours(n,0,0,0),t}},k:{priority:70,parse:function(t,e,n,r){switch(e){case"k":return o(T.hour24h,t);case"ko":return n.ordinalNumber(t,{unit:"hour"});default:return u(e.length,t)}},validate:function(t,e,n){return e>=1&&e<=24},set:function(t,e,n,r){var i=n<=24?n%24:n;return t.setUTCHours(i,0,0,0),t}},m:{priority:60,parse:function(t,e,n,r){switch(e){case"m":return o(T.minute,t);case"mo":return n.ordinalNumber(t,{unit:"minute"});default:return u(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n,r){return t.setUTCMinutes(n,0,0),t}},s:{priority:50,parse:function(t,e,n,r){switch(e){case"s":return o(T.second,t);case"so":return n.ordinalNumber(t,{unit:"second"});default:return u(e.length,t)}},validate:function(t,e,n){return e>=0&&e<=59},set:function(t,e,n,r){return t.setUTCSeconds(n,0),t}},S:{priority:30,parse:function(t,e,n,r){return u(e.length,t,(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))},set:function(t,e,n,r){return t.setUTCMilliseconds(n),t}},X:{priority:10,parse:function(t,e,n,r){switch(e){case"X":return a(E.basicOptionalMinutes,t);case"XX":return a(E.basic,t);case"XXXX":return a(E.basicOptionalSeconds,t);case"XXXXX":return a(E.extendedOptionalSeconds,t);case"XXX":default:return a(E.extended,t)}},set:function(t,e,n,r){return e.timestampIsSet?t:new Date(t.getTime()-n)}},x:{priority:10,parse:function(t,e,n,r){switch(e){case"x":return a(E.basicOptionalMinutes,t);case"xx":return a(E.basic,t);case"xxxx":return a(E.basicOptionalSeconds,t);case"xxxxx":return a(E.extendedOptionalSeconds,t);case"xxx":default:return a(E.extended,t)}},set:function(t,e,n,r){return e.timestampIsSet?t:new Date(t.getTime()-n)}},t:{priority:40,parse:function(t,e,n,r){return s(t)},set:function(t,e,n,r){return[new Date(1e3*n),{timestampIsSet:!0}]}},T:{priority:20,parse:function(t,e,n,r){return s(t)},set:function(t,e,n,r){return[new Date(n),{timestampIsSet:!0}]}}},R=n(149),e.default=function(t,e,n,i){var o,a,s,u,l,c,f,d,w,_,k,M,x,S,C,A,T,E,O,P,N,L,z,F;if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");if(o=t+"",a=e+"",!(u=(s=i||{}).locale||y.a).match)throw new RangeError("locale must contain match property");if(c=null==(l=u.options&&u.options.firstWeekContainsDate)?1:Object(m.a)(l),!((f=null==s.firstWeekContainsDate?c:Object(m.a)(s.firstWeekContainsDate))>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");if(w=null==(d=u.options&&u.options.weekStartsOn)?0:Object(m.a)(d),!((_=null==s.weekStartsOn?w:Object(m.a)(s.weekStartsOn))>=0&&_<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===a)return""===o?Object(g.a)(n):new Date(NaN);for(k={firstWeekContainsDate:f,weekStartsOn:_,locale:u},M=[{priority:j,set:h,index:0}],S=a.match(D),x=0;x<S.length;x++)if(C=S[x],!s.awareOfUnicodeTokens&&Object(R.a)(C)&&Object(R.b)(C),A=C[0],T=I[A]){if(!(E=T.parse(o,C,u.match,k)))return new Date(NaN);M.push({priority:T.priority,set:T.set,validate:T.validate,value:E.value,index:M.length}),o=E.rest}else{if("''"===C?C="'":"'"===A&&(C=p(C)),0!==o.indexOf(C))return new Date(NaN);o=o.slice(C.length)}if(o.length>0&&B.test(o))return new Date(NaN);if(O=M.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,n){return n.indexOf(t)===e})).map((function(t){return M.filter((function(e){return e.priority===t})).reverse()})).map((function(t){return t[0]})),P=Object(g.a)(n),isNaN(P))return new Date(NaN);for(N=Object(b.a)(P,Object(v.a)(P)),L={},x=0;x<O.length;x++){if((z=O[x]).validate&&!z.validate(N,z.value,k))return new Date(NaN);(F=z.set(N,L,z.value,k))[0]?(N=F[0],r(L,F[1])):N=F}return N},j=10,D=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,N=/^'(.*?)'?$/,L=/''/g,B=/\S/},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(150),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(347),s=function(t){n(331)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object(r.a)(t);return e.setDate(1),e.setHours(0,0,0,0),e};var r=n(9)},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Object(r.a)(e);return Object(i.default)(t,-n)},r=n(17),i=n(151)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(t).getDate()};var r=n(9)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(t).getDay()};var r=n(9)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(t).getMonth()};var r=n(9)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");return Object(r.a)(t).getFullYear()};var r=n(9)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(r.a)(t),i=Object(r.a)(e),n.getTime()===i.getTime()};var r=n(9)},function(t,e,n){"use strict";function r(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Object(i.a)(t);return e.setHours(0,0,0,0),e}Object.defineProperty(e,"__esModule",{value:!0});var i=n(9);e.default=function(t,e){var n,i;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=r(t),i=r(e),n.getTime()===i.getTime()}},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,o;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(t),o=Object(r.a)(e),n.setDate(o),n},r=n(17),i=n(9)},function(t,e,n){"use strict";var r,i,o;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,a,s,u,l,c;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(t),a=Object(r.a)(e),s=n.getFullYear(),u=n.getDate(),(l=new Date(0)).setFullYear(s,a,15),l.setHours(0,0,0,0),c=Object(o.default)(l),n.setMonth(a,Math.min(u,c)),n},r=n(17),i=n(9),o=n(96)},function(t,e,n){"use strict";var r,i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,o;if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return n=Object(i.a)(t),o=Object(r.a)(e),isNaN(n)?new Date(NaN):(n.setFullYear(o),n)},r=n(17),i=n(9)},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(152),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(344),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this;return t.$createElement,t._self._c,t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}}),t._v(" "),n("path",{attrs:{d:"M0-.25h24v24H0z",fill:"none"}})])])}]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(153),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(346),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this;return t.$createElement,t._self._c,t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}}),t._v(" "),n("path",{attrs:{d:"M0-.5h24v24H0z",fill:"none"}})])])}]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-popover",{attrs:{"md-settings":t.popperSettings,"md-active":""}},[n("transition",{attrs:{name:"md-datepicker-dialog",appear:""},on:{enter:t.setContentStyles,"after-leave":t.resetDate}},[n("div",{staticClass:"md-datepicker-dialog",class:[t.$mdActiveTheme]},[n("div",{staticClass:"md-datepicker-header"},[n("span",{staticClass:"md-datepicker-year-select",class:{"md-selected":"year"===t.currentView},on:{click:function(e){t.currentView="year"}}},[t._v(t._s(t.selectedYear))]),t._v(" "),n("div",{staticClass:"md-datepicker-date-select",class:{"md-selected":"year"!==t.currentView},on:{click:function(e){t.currentView="day"}}},[n("strong",{staticClass:"md-datepicker-dayname"},[t._v(t._s(t.shortDayName)+", ")]),t._v(" "),n("strong",{staticClass:"md-datepicker-monthname"},[t._v(t._s(t.shortMonthName))]),t._v(" "),n("strong",{staticClass:"md-datepicker-day"},[t._v(t._s(t.currentDay))])])]),t._v(" "),n("div",{staticClass:"md-datepicker-body"},[n("transition",{attrs:{name:"md-datepicker-body-header"}},["day"===t.currentView?n("div",{staticClass:"md-datepicker-body-header"},[n("md-button",{staticClass:"md-dense md-icon-button",on:{click:t.previousMonth}},[n("md-arrow-left-icon")],1),t._v(" "),n("md-button",{staticClass:"md-dense md-icon-button",on:{click:t.nextMonth}},[n("md-arrow-right-icon")],1)],1):t._e()]),t._v(" "),n("div",{staticClass:"md-datepicker-body-content",style:t.contentStyles},[n("transition",{attrs:{name:"md-datepicker-view"}},["day"===t.currentView?n("transition-group",{staticClass:"md-datepicker-panel md-datepicker-calendar",class:t.calendarClasses,attrs:{tag:"div",name:"md-datepicker-month"}},t._l([t.currentDate],(function(e){return n("div",{key:e.getMonth(),staticClass:"md-datepicker-panel md-datepicker-month"},[n("md-button",{staticClass:"md-dense md-datepicker-month-trigger",on:{click:function(e){t.currentView="month"}}},[t._v(t._s(t.currentMonthName)+" "+t._s(t.currentYear))]),t._v(" "),n("div",{staticClass:"md-datepicker-week"},[t._l(t.locale.shorterDays,(function(e,r){return r>=t.firstDayOfAWeek?n("span",{key:r},[t._v(t._s(e))]):t._e()})),t._v(" "),t._l(t.locale.shorterDays,(function(e,r){return r<t.firstDayOfAWeek?n("span",{key:r},[t._v(t._s(e))]):t._e()}))],2),t._v(" "),n("div",{staticClass:"md-datepicker-days"},[t._l(t.prefixEmptyDays,(function(t){return n("span",{key:"day-empty-"+t,staticClass:"md-datepicker-empty"})})),t._v(" "),t._l(t.daysInMonth,(function(e){return n("div",{key:"day-"+e,staticClass:"md-datepicker-day"},[n("span",{staticClass:"md-datepicker-day-button",class:{"md-datepicker-selected":t.isSelectedDay(e),"md-datepicker-today":t.isToday(e),"md-datepicker-disabled":t.isDisabled(e)},on:{click:function(n){return t.selectDate(e)}}},[t._v(t._s(e))])])}))],2)],1)})),0):"month"===t.currentView?n("div",{staticClass:"md-datepicker-panel md-datepicker-month-selector"},[n("md-button",{staticClass:"md-datepicker-year-trigger",on:{click:function(e){t.currentView="year"}}},[t._v(t._s(t.currentYear))]),t._v(" "),t._l(t.locale.months,(function(e,r){return n("span",{key:e,staticClass:"md-datepicker-month-button",class:{"md-datepicker-selected":t.currentMonthName===e},on:{click:function(e){return t.switchMonth(r)}}},[t._v(t._s(e))])}))],2):"year"===t.currentView?n("keep-alive",[n("md-content",{staticClass:"md-datepicker-panel md-datepicker-year-selector md-scrollbar"},t._l(t.availableYears,(function(e){return n("span",{key:e,staticClass:"md-datepicker-year-button",class:{"md-datepicker-selected":t.currentYear===e},on:{click:function(n){return t.switchYear(e)}}},[t._v(t._s(e))])})),0)],1):t._e()],1)],1),t._v(" "),n("md-dialog-actions",{staticClass:"md-datepicker-body-footer"},[n("md-button",{staticClass:"md-primary",on:{click:t.onCancel}},[t._v("Cancel")]),t._v(" "),t.mdImmediately?t._e():n("md-button",{staticClass:"md-primary",on:{click:t.onConfirm}},[t._v("Ok")])],1)],1)])])],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(156),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(349),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this;return t.$createElement,t._self._c,t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}}),t._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};e.a=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=void 0;return function(){var r=this,i=arguments,o=function(){return t.apply(r,i)};clearTimeout(n),n=setTimeout(o,e)}}},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-field",{class:["md-datepicker",{"md-native":!this.mdOverrideNative}],attrs:{"md-clearable":""}},[n("md-date-icon",{staticClass:"md-date-icon",nativeOn:{click:function(e){return t.toggleDialog(e)}}}),t._v(" "),n("md-input",{ref:"input",attrs:{type:t.type,pattern:t.pattern},nativeOn:{focus:function(e){return t.onFocus(e)}},model:{value:t.inputDate,callback:function(e){t.inputDate=e},expression:"inputDate"}}),t._v(" "),t._t("default"),t._v(" "),n("keep-alive",[t.showDialog?n("md-datepicker-dialog",{attrs:{"md-date":t.localDate,"md-disabled-dates":t.mdDisabledDates,mdImmediately:t.mdImmediately},on:{"update:mdDate":function(e){t.localDate=e},"update:md-date":function(e){t.localDate=e},"md-closed":t.toggleDialog}}):t._e()],1),t._v(" "),n("md-overlay",{staticClass:"md-datepicker-overlay",attrs:{"md-fixed":"","md-active":t.showDialog},on:{click:t.toggleDialog}})],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f,d,h;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),u=n(353),l=r(u),c=n(356),f=r(c),d=n(359),h=r(d),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default),t.component(f.default.name,f.default),t.component(h.default.name,h.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(157),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(355),s=function(t){n(354)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{staticClass:"md-dialog-title md-title"},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(158),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(358),s=function(t){n(357)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:["md-dialog-content",t.$mdActiveTheme]},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(159),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(361),s=function(t){n(360)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-dialog-actions"},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(363),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(160),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(365),s=function(t){n(364)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.insideList?n("li",{staticClass:"md-divider",class:[t.$mdActiveTheme]}):n("hr",{staticClass:"md-divider",class:[t.$mdActiveTheme]})},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(367),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(161),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(369),s=function(t){n(368)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-drawer",class:[t.$mdActiveTheme,t.drawerClasses]},[t._t("default"),t._v(" "),t.mdFixed?n("md-overlay",{attrs:{"md-active":t.mdActive},on:{click:t.closeDrawer}}):n("md-overlay",{attrs:{"md-active":t.mdActive,"md-attach-to-parent":""},on:{click:t.closeDrawer}})],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(371),e.default=function(t){}},function(t,e){},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(105),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f,d,h,p,m,v,g;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(106),s=r(a),u=n(374),l=r(u),c=n(62),f=r(c),d=n(386),h=r(d),p=n(53),m=r(p),v=n(391),g=r(v),e.default=function(t){(0,o.default)(t),t.use(s.default),t.use(l.default),t.component(f.default.name,f.default),t.component(h.default.name,h.default),t.component(m.default.name,m.default),t.component(g.default.name,g.default)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(375),s=r(a),u=n(380),l=r(u),c=n(383),f=r(c),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default),t.component(f.default.name,f.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(164),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(379),s=function(t){n(376)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(165),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(378),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this;return t.$createElement,t._self._c,t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M7 10l5 5 5-5z"}}),t._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-menu",{staticClass:"md-select",class:{"md-disabled":t.disabled},attrs:{"md-close-on-select":!1,"md-active":t.showSelect,"md-offset-x":t.offset.x,"md-offset-y":t.offset.y,"md-dense":t.mdDense},on:{"update:mdActive":function(e){t.showSelect=e},"update:md-active":function(e){t.showSelect=e},"md-closed":t.onClose}},[n("md-input",t._g(t._b({ref:"input",staticClass:"md-input md-select-value",attrs:{readonly:"",disabled:t.disabled,required:t.required,placeholder:t.placeholder},on:{focus:function(e){return e.preventDefault(),t.onFocus(e)},blur:function(e){return e.preventDefault(),t.removeHighlight(e)},click:t.openSelect,keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:t.openSelect(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.openSelect(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.openSelect(e)}]},model:{value:t.MdSelect.label,callback:function(e){t.$set(t.MdSelect,"label",e)},expression:"MdSelect.label"}},"md-input",t.attrs,!1),t.inputListeners)),t._v(" "),n("md-drop-down-icon",{nativeOn:{click:function(e){return t.openSelect(e)}}}),t._v(" "),n("keep-alive",[n("md-menu-content",{ref:"menu",staticClass:"md-select-menu",style:t.menuStyles,attrs:{"md-content-class":t.mdClass},on:{enter:t.onMenuEnter}},[t.showSelect?t._t("default"):t._e()],2)],1),t._v(" "),t.showSelect?t._e():n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[t._t("default")],2),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"md-input-fake",attrs:{disabled:t.disabled,readonly:"",tabindex:"-1"},domProps:{value:t.model},on:{input:function(e){e.target.composing||(t.model=e.target.value)}}}),t._v(" "),n("select",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],attrs:{readonly:"",tabindex:"-1"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.model=e.target.multiple?n:n[0]}}},"select",t.attributes,!1))],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(170),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(382),s=function(t){n(381)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-menu-item",{class:t.optionClasses,attrs:{disabled:t.isDisabled},on:{click:t.setSelection}},[t.MdSelect.multiple?n("md-checkbox",{staticClass:"md-primary",attrs:{disabled:t.isDisabled},model:{value:t.isChecked,callback:function(e){t.isChecked=e},expression:"isChecked"}}):t._e(),t._v(" "),n("span",{ref:"text",staticClass:"md-list-item-text"},[t._t("default")],2)],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(171),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(385),s=function(t){n(384)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-optgroup"},[n("md-subheader",[t._v(t._s(t.label))]),t._v(" "),t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(172),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(390),s=function(t){n(387)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(173),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(389),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this;return t.$createElement,t._self._c,t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z"}}),t._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-file"},[n("md-file-icon",{staticClass:"md-file-icon",class:t.iconClass,nativeOn:{click:function(e){return t.openPicker(e)}}}),t._v(" "),"checkbox"==={disabled:t.disabled,required:t.required,placeholder:t.placeholder}.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"md-input",attrs:{readonly:"",type:"checkbox"},domProps:{checked:Array.isArray(t.model)?t._i(t.model,null)>-1:t.model},on:{click:t.openPicker,blur:t.onBlur,change:function(e){var n,r=t.model,i=e.target,o=!!i.checked;Array.isArray(r)?(n=t._i(r,null),i.checked?n<0&&(t.model=r.concat([null])):n>-1&&(t.model=r.slice(0,n).concat(r.slice(n+1)))):t.model=o}}},"input",{disabled:t.disabled,required:t.required,placeholder:t.placeholder},!1)):"radio"==={disabled:t.disabled,required:t.required,placeholder:t.placeholder}.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"md-input",attrs:{readonly:"",type:"radio"},domProps:{checked:t._q(t.model,null)},on:{click:t.openPicker,blur:t.onBlur,change:function(e){t.model=null}}},"input",{disabled:t.disabled,required:t.required,placeholder:t.placeholder},!1)):n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"md-input",attrs:{readonly:"",type:{disabled:t.disabled,required:t.required,placeholder:t.placeholder}.type},domProps:{value:t.model},on:{click:t.openPicker,blur:t.onBlur,input:function(e){e.target.composing||(t.model=e.target.value)}}},"input",{disabled:t.disabled,required:t.required,placeholder:t.placeholder},!1)),t._v(" "),n("input",t._g(t._b({ref:"inputFile",attrs:{type:"file"},on:{change:t.onChange}},"input",t.attributes,!1),t.$listeners))],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(174),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(392),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("textarea",t._g(t._b({directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"md-textarea",style:t.textareaStyles,domProps:{value:t.model},on:{focus:t.onFocus,blur:t.onBlur,input:function(e){e.target.composing||(t.model=e.target.value)}}},"textarea",t.attributes,!1),t.listeners))},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(394),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(175),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=function(t){n(395)},s=n(0)(i.a,null,!1,a,null,null),e.default=s.exports},function(t,e){},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(397),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(176),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(399),s=function(t){n(398)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-image",class:[t.$mdActiveTheme]},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(401),e.default=function(t){}},function(t,e){},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(74),s=r(a),u=n(109),l=r(u),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(107),s=r(a),u=n(108),l=r(u),c=n(404),f=r(c),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default),t.component(f.default.name,f.default)}},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(195),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(405),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("md-list-item",t._g(t._b({staticClass:"md-menu-item",class:[t.itemClasses,t.$mdActiveTheme],attrs:{disabled:t.disabled,tabindex:t.highlighted&&-1}},"md-list-item",t.$attrs,!1),t.listeners),[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(407),s=r(a),u=n(410),l=r(u),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(196),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(409),s=function(t){n(408)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"md-progress-bar",appear:""}},[n("div",{staticClass:"md-progress-bar",class:[t.progressClasses,t.$mdActiveTheme]},[n("div",{staticClass:"md-progress-bar-track",style:t.progressTrackStyle}),t._v(" "),n("div",{staticClass:"md-progress-bar-fill",style:t.progressValueStyle}),t._v(" "),n("div",{staticClass:"md-progress-bar-buffer",attrs:{Style:t.progressBufferStyle}})])])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(197),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(412),s=function(t){n(411)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"md-progress-spinner",appear:""}},[n("div",{staticClass:"md-progress-spinner",class:[t.progressClasses,t.$mdActiveTheme]},[n("svg",{ref:"md-progress-spinner-draw",staticClass:"md-progress-spinner-draw",attrs:{preserveAspectRatio:"xMidYMid meet",focusable:"false",viewBox:"0 0 "+t.mdDiameter+" "+t.mdDiameter}},[n("circle",{ref:"md-progress-spinner-circle",staticClass:"md-progress-spinner-circle",attrs:{cx:"50%",cy:"50%",r:t.circleRadius}})])])])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(414),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(198),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(416),s=function(t){n(415)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-radio",class:[t.$mdActiveTheme,t.radioClasses]},[n("div",{staticClass:"md-radio-container",on:{click:function(e){return e.stopPropagation(),t.toggleCheck(e)}}},[n("md-ripple",{attrs:{"md-centered":"","md-active":t.rippleActive,"md-disabled":t.disabled},on:{"update:mdActive":function(e){t.rippleActive=e},"update:md-active":function(e){t.rippleActive=e}}},[n("input",t._b({attrs:{type:"radio"}},"input",{id:t.id,name:t.name,disabled:t.disabled,required:t.required,value:t.value},!1))])],1),t._v(" "),t.$slots.default?n("label",{staticClass:"md-radio-label",attrs:{for:t.id},on:{click:function(e){return e.preventDefault(),t.toggleCheck(e)}}},[t._t("default")],2):t._e()])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(16),s=r(a),u=n(22),l=r(u),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(419),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(199),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(424),s=function(t){n(420)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(200),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(422),s=n(0)(i.a,a.a,!0,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(t,e){var n=e._c;return n("transition",{attrs:{name:"md-snackbar",appear:""}},[n("div",{staticClass:"md-snackbar",class:e.props.mdClasses},[n("div",{staticClass:"md-snackbar-content"},[e._t("default")],2)])])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t,e,n){return new Promise((function(r){i={destroy:function(){i=null,r()}},t!==1/0&&(o=window.setTimeout((function(){a(),e||n._vnode.componentInstance.initDestroy(!0)}),t))}))}var i,o,a;Object.defineProperty(e,"__esModule",{value:!0}),i=null,o=null,a=e.destroySnackbar=function(){return new Promise((function(t){i?(window.clearTimeout(o),i.destroy(),window.setTimeout(t,400)):t()}))},e.createSnackbar=function(t,e,n){return i?a().then((function(){return r(t,e,n)})):r(t,e,n)}},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.mdPersistent&&t.mdDuration!==1/0?n("md-portal",[n("keep-alive",[t.mdActive?n("md-snackbar-content",{attrs:{"md-classes":[t.snackbarClasses,t.$mdActiveTheme]}},[t._t("default")],2):t._e()],1)],1):n("md-portal",[t.mdActive?n("md-snackbar-content",{attrs:{"md-classes":[t.snackbarClasses,t.$mdActiveTheme]}},[t._t("default")],2):t._e()],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(426),s=r(a),u=n(429),l=r(u),c=n(432),f=r(c),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default),t.component(f.default.name,f.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(201),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(428),s=function(t){n(427)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-speed-dial",class:[t.$mdActiveTheme,t.speedDialClasses]},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(202),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(431),s=function(t){n(430)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("md-button",t._g(t._b({staticClass:"md-speed-dial-target md-fab",on:{click:t.handleClick}},"md-button",t.$attrs,!1),t.$listeners),[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(203),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(434),s=function(t){n(433)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"md-speed-dial-content"},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(436),s=r(a),u=n(446),l=r(u),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(204),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(445),s=function(t){n(437)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(207),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(439),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this;return t.$createElement,t._self._c,t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),t._v(" "),n("path",{attrs:{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}})])])}]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(208),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(441),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this;return t.$createElement,t._self._c,t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),t._v(" "),n("path",{attrs:{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}})])])}]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(209),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(443),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this;return t.$createElement,t._self._c,t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}}),t._v(" "),n("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}})])])}]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-button",t._g(t._b({staticClass:"md-stepper-header",class:t.classes,attrs:{disabled:t.shouldDisable},nativeOn:{click:function(e){!t.MdSteppers.syncRoute&&t.MdSteppers.setActiveStep(t.index)}}},"md-button",t.data.props,!1),t.data.events),[t.data.error?n("md-warning-icon",{staticClass:"md-stepper-icon"}):n("div",{staticClass:"md-stepper-number"},[t.data.done&&t.data.editable?n("md-edit-icon",{staticClass:"md-stepper-editable"}):t.data.done?n("md-check-icon",{staticClass:"md-stepper-done"}):[t._v(t._s(t.MdSteppers.getStepperNumber(t.index)))]],2),t._v(" "),n("div",{staticClass:"md-stepper-text"},[n("span",{staticClass:"md-stepper-label"},[t._v(t._s(t.data.label))]),t._v(" "),t.data.error?n("span",{staticClass:"md-stepper-error"},[t._v(t._s(t.data.error))]):t.data.description?n("span",{staticClass:"md-stepper-description"},[t._v(t._s(t.data.description))]):t._e()])],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-steppers",class:[t.steppersClasses,t.$mdActiveTheme]},[t.mdVertical?t._e():n("div",{staticClass:"md-steppers-navigation"},t._l(t.MdSteppers.items,(function(t,e){return n("md-step-header",{key:e,attrs:{index:e}})})),1),t._v(" "),n("div",{staticClass:"md-steppers-wrapper",style:t.contentStyles},[n("div",{staticClass:"md-steppers-container",style:t.containerStyles},[t._t("default")],2)])])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(210),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(448),s=function(t){n(447)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-stepper"},[t.MdSteppers.isVertical?n("md-step-header",{attrs:{index:t.id}}):t._e(),t._v(" "),n("div",{staticClass:"md-stepper-content",class:{"md-active":!t.MdSteppers.syncRoute&&t.id===t.MdSteppers.activeStep}},[t._t("default")],2)],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(450),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(211),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(452),s=function(t){n(451)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.insideList?n("li",{staticClass:"md-subheader",class:[t.$mdActiveTheme]},[t._t("default")],2):n("div",{staticClass:"md-subheader",class:[t.$mdActiveTheme]},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(454),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(212),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(456),s=function(t){n(455)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-switch",class:[t.$mdActiveTheme,t.checkClasses]},[n("div",{staticClass:"md-switch-container",on:{click:function(e){return e.stopPropagation(),t.toggleCheck(e)}}},[n("div",{staticClass:"md-switch-thumb"},[n("md-ripple",{attrs:{"md-centered":"","md-active":t.rippleActive,"md-disabled":t.disabled},on:{"update:mdActive":function(e){t.rippleActive=e},"update:md-active":function(e){t.rippleActive=e}}},[n("input",t._b({attrs:{id:t.id,type:"checkbox"}},"input",{id:t.id,name:t.name,disabled:t.disabled,required:t.required,value:t.value},!1))])],1)]),t._v(" "),t.$slots.default?n("label",{staticClass:"md-switch-label",attrs:{for:t.id},on:{click:function(e){return e.preventDefault(),t.toggleCheck(e)}}},[t._t("default")],2):t._e()])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f,d,h,p,m,v,g,b,y;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(458),s=r(a),u=n(479),l=r(u),c=n(482),f=r(c),d=n(220),h=r(d),p=n(101),m=r(p),v=n(485),g=r(v),b=n(488),y=r(b),e.default=function(t){(0,o.default)(t),t.component("MdTable",s.default),t.component(l.default.name,l.default),t.component(f.default.name,f.default),t.component(h.default.name,h.default),t.component(m.default.name,m.default),t.component(g.default.name,g.default),t.component(y.default.name,y.default)}},function(t,e,n){"use strict";var r,i,o;Object.defineProperty(e,"__esModule",{value:!0}),r=Object.assign||function(t){var e,n,r;for(e=1;e<arguments.length;e++)for(r in n=arguments[e])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},i=n(459),o=function(t){return t&&t.__esModule?t:{default:t}}(i),e.default={name:"MdTableContainer",functional:!0,render:function(t,e){var n,i,a,s=e.data,u=e.props,l=e.children,c=[],f=s.scopedSlots;return l&&(n=function(t,e){var n=["md-table-toolbar","md-table-empty-state","md-table-pagination"],r=Array.from(t),i={};return r.forEach((function(t,e){if(t&&t.tag){var o=function(t){var e=t.componentOptions;return e&&e.tag}(t);o&&n.includes(o)&&(t.data.slot=o,t.data.attrs=t.data.attrs||{},i[o]=function(){return t},r.splice(e,1))}})),{childNodes:r,slots:i}}(l),i=n.childNodes,a=n.slots,c=i,f=r({},f,a)),t(o.default,r({},s,{props:u,scopedSlots:f}),[c])}}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(213),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(478),s=function(t){n(460)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(214),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(0)(i.a,null,!1,null,null,null),e.default=a.exports},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(215),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(469),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e){},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(217),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(465),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this;return t.$createElement,t._self._c,t._m(0)},staticRenderFns:[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-icon",{staticClass:"md-icon-image"},[n("svg",{attrs:{height:"24",viewBox:"0 0 24 24",width:"24",xmlns:"http://www.w3.org/2000/svg"}},[n("path",{attrs:{d:"M0 0h24v24H0V0z",fill:"none"}}),t._v(" "),n("path",{attrs:{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}})])])}]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("th",{staticClass:"md-table-head",class:t.headClasses,style:t.headStyles,attrs:{id:t.id},on:{click:t.changeSort}},[t.$slots.default?n("div",{staticClass:"md-table-head-container"},[n("div",{staticClass:"md-table-head-label"},[t._t("default")],2)]):n("md-ripple",{staticClass:"md-table-head-container",attrs:{"md-disabled":!t.hasSort}},[n("div",{staticClass:"md-table-head-label"},[t.hasSort?n("md-upward-icon",{staticClass:"md-table-sortable-icon"},[t._v("arrow_upward")]):t._e(),t._v("\n\n      "+t._s(t.label)+"\n\n      "),t.tooltip?n("md-tooltip",[t._v(t._s(t.tooltip))]):t._e()],1)])],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(218),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(468),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.selectableCount?n("md-table-head",{staticClass:"md-table-cell-selection"},[n("div",{staticClass:"md-table-cell-container"},[n("md-checkbox",{attrs:{model:t.allSelected,disabled:t.isDisabled},on:{change:t.onChange}})],1)]):t._e()},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("thead",[n("tr",[n("md-table-head-selection"),t._v(" "),t._l(t.MdTable.items,(function(e,r){return n("md-table-head",t._b({key:r},"md-table-head",e,!1))}))],2)])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(219),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(472),s=function(t){n(471)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"md-table-alternate-header"}},[n("div",{staticClass:"md-table-alternate-header"},[t._t("default")],2)])},staticRenderFns:[]};e.a=r},function(t,e){},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.mdSelectable?n("td",{staticClass:"md-table-cell md-table-cell-selection"},[n("div",{staticClass:"md-table-cell-container"},[n("md-checkbox",{attrs:{disabled:!t.mdSelectable||t.mdDisabled},on:{change:t.onChange},model:{value:t.isSelected,callback:function(e){t.isSelected=e},expression:"isSelected"}})],1)]):t._e()},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",t._g({staticClass:"md-table-row",class:t.rowClasses,on:{click:t.onClick}},t.$listeners),[t.selectableCount?n("md-table-cell-selection",{attrs:{value:t.isMultipleSelected,"md-disabled":t.mdDisabled,"md-selectable":"multiple"===t.mdSelectable,"md-row-id":t.mdIndex},on:{input:function(e){return e?t.addSelection():t.removeSelection()}}}):t._e(),t._v(" "),t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(224),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(0)(i.a,null,!1,null,null,null),e.default=a.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-tag-switcher",{staticClass:"md-table",attrs:{"md-tag":t.contentTag}},[t._t("md-table-toolbar"),t._v(" "),n("keep-alive",[t.$scopedSlots["md-table-alternate-header"]&&t.selectedCount?n("md-table-alternate-header",[t._t("md-table-alternate-header",null,{count:t.selectedCount})],2):t._e()],1),t._v(" "),t.mdFixedHeader?n("div",{staticClass:"md-table-fixed-header",class:t.headerClasses,style:t.headerStyles},[n("div",{ref:"fixedHeaderContainer",staticClass:"md-table-fixed-header-container",on:{scroll:t.setHeaderScroll}},[n("table",{style:t.fixedHeaderTableStyles},[n("md-table-thead")],1)])]):t._e(),t._v(" "),n("md-content",{staticClass:"md-table-content md-scrollbar",class:t.contentClasses,style:t.contentStyles,on:{scroll:t.setScroll}},[n("table",{ref:"contentTable"},[!t.mdFixedHeader&&t.$scopedSlots["md-table-row"]?n("md-table-thead",{class:t.headerClasses}):t._e(),t._v(" "),t.$scopedSlots["md-table-row"]?t.value.length?n("tbody",t._l(t.value,(function(e,r){return n("md-table-row-ghost",{key:t.getRowId(e,t.mdModelId),attrs:{"md-id":t.getRowId(e,t.mdModelId),"md-index":r,"md-item":e}},[t._t("md-table-row",null,{item:e,index:r})],2)})),1):t.$scopedSlots["md-table-empty-state"]?n("tbody",[n("tr",[n("td",{attrs:{colspan:t.headerCount}},[t._t("md-table-empty-state")],2)])]):t._e():n("tbody",[t._t("default")],2)],1),t._v(" "),t._t("md-table-pagination")],2),t._v(" "),!t.hasValue&&t.$scopedSlots["md-table-row"]?t._t("default"):t._e()],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(225),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(481),s=function(t){n(480)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("md-toolbar",{staticClass:"md-table-toolbar md-transparent",attrs:{"md-elevation":0}},[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(228),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(484),s=function(t){n(483)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("md-empty-state",t._b({staticClass:"md-table-empty-state"},"md-empty-state",t.$props,!1),[t._t("default")],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(229),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(487),s=function(t){n(486)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("td",{staticClass:"md-table-cell",class:t.cellClasses},[n("div",{staticClass:"md-table-cell-container"},[t._t("default")],2)])},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(230),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(490),s=function(t){n(489)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-table-pagination"},[!1!==t.mdPageOptions?[n("span",{staticClass:"md-table-pagination-label"},[t._v(t._s(t.mdLabel))]),t._v(" "),n("md-field",[n("md-select",{attrs:{"md-dense":"","md-class":"md-pagination-select"},on:{changed:t.setPageSize},model:{value:t.currentPageSize,callback:function(e){t.currentPageSize=e},expression:"currentPageSize"}},t._l(t.mdPageOptions,(function(e){return n("md-option",{key:e,attrs:{value:e}},[t._v(t._s(e))])})),1)],1)]:t._e(),t._v(" "),n("span",[t._v(t._s(t.currentItemCount)+"-"+t._s(t.currentPageCount)+" "+t._s(t.mdSeparator)+" "+t._s(t.mdTotal))]),t._v(" "),n("md-button",{staticClass:"md-icon-button md-table-pagination-previous",attrs:{disabled:1===t.mdPage},on:{click:function(e){return t.goToPrevious()}}},[n("md-icon",[t._v("keyboard_arrow_left")])],1),t._v(" "),n("md-button",{staticClass:"md-icon-button md-table-pagination-next",on:{click:function(e){return t.goToNext()}}},[n("md-icon",[t._v("keyboard_arrow_right")])],1)],2)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(492),s=r(a),u=n(495),l=r(u),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(231),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(494),s=function(t){n(493)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"md-tabs",class:[t.tabsClasses,t.$mdActiveTheme]},[n("div",{ref:"navigation",staticClass:"md-tabs-navigation",class:t.navigationClasses},[t._l(t.MdTabs.items,(function(e,r){var i=e.label,o=e.props,a=e.icon,s=e.disabled,u=e.data,l=e.events;return n("md-button",t._g(t._b({key:r,staticClass:"md-tab-nav-button",class:{"md-active":!t.mdSyncRoute&&r===t.activeTab,"md-icon-label":a&&i},attrs:{disabled:s},nativeOn:{click:function(e){return t.setActiveTab(r)}}},"md-button",o,!1),l),[t.$scopedSlots["md-tab"]?t._t("md-tab",null,{tab:{label:i,icon:a,data:u}}):[a?[t.isAssetIcon(a)?n("md-icon",{staticClass:"md-tab-icon",attrs:{"md-src":a}}):n("md-icon",{staticClass:"md-tab-icon"},[t._v(t._s(a))]),t._v(" "),n("span",{staticClass:"md-tab-label"},[t._v(t._s(i))])]:[t._v(t._s(i))]]],2)})),t._v(" "),n("span",{ref:"indicator",staticClass:"md-tabs-indicator",class:t.indicatorClass,style:t.indicatorStyles})],2),t._v(" "),n("md-content",{directives:[{name:"show",rawName:"v-show",value:t.hasContent,expression:"hasContent"}],ref:"tabsContent",staticClass:"md-tabs-content",style:t.contentStyles},[n("div",{staticClass:"md-tabs-container",style:t.containerStyles},[t._t("default")],2)])],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";var r,i,o,a;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(232),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(0)(i.a,null,!1,null,null,null),e.default=a.exports},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(111),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(498),s=r(a),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default)}},function(t,e,n){"use strict";var r,i,o,a,s,u;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(233),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(500),s=function(t){n(499)},u=n(0)(i.a,a.a,!1,s,null,null),e.default=u.exports},function(t,e){},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-popover",{attrs:{"md-settings":t.popperSettings,"md-active":t.shouldRender}},[t.shouldRender?n("transition",{attrs:{name:"md-tooltip"}},[n("div",{staticClass:"md-tooltip",class:[t.tooltipClasses,t.$mdActiveTheme],style:t.tooltipStyles},[t._t("default")],2)]):t._e()],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdDialogAlert",props:{mdTitle:String,mdContent:String,mdConfirmText:{type:String,default:"Ok"}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdDialogConfirm",props:{mdTitle:String,mdContent:String,mdConfirmText:{type:String,default:"Ok"},mdCancelText:{type:String,default:"Cancel"}},methods:{onCancel:function(){this.$emit("md-cancel"),this.$emit("update:mdActive",!1)},onConfirm:function(){this.$emit("md-confirm"),this.$emit("update:mdActive",!1)}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"MdDialogPrompt",props:{value:{},mdTitle:String,mdInputName:String,mdInputId:String,mdInputMaxlength:[String,Number],mdInputPlaceholder:[String,Number],mdContent:String,mdConfirmText:{type:String,default:"Ok"},mdCancelText:{type:String,default:"Cancel"}},data:function(){return{inputValue:null}},watch:{value:function(){this.inputValue=this.value}},methods:{onCancel:function(){this.$emit("md-cancel"),this.$emit("update:mdActive",!1)},onConfirm:function(){this.$emit("input",this.inputValue),this.$emit("md-confirm",this.inputValue),this.$emit("update:mdActive",!1)},setInputFocus:function(){var t=this;window.setTimeout((function(){t.$refs.input.$el.focus()}),50)}},created:function(){this.inputValue=this.value}}},function(t,e,n){t.exports=n(505)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l,c,f,d,h,p,m,v,g,b,y,w,_,k,M,x,S,C,A,T,E,O,P,I,R,j,D,N,L,B,z,F,q;Object.defineProperty(e,"__esModule",{value:!0}),e.MdTooltip=e.MdToolbar=e.MdTabs=e.MdTable=e.MdSwitch=e.MdSubheader=e.MdSteppers=e.MdSpeedDial=e.MdSnackbar=e.MdRipple=e.MdRadio=e.MdProgress=e.MdMenu=e.MdList=e.MdLayout=e.MdImage=e.MdIcon=e.MdHighlightText=e.MdField=e.MdEmptyState=e.MdElevation=e.MdDrawer=e.MdDivider=e.MdDialogPrompt=e.MdDialogConfirm=e.MdDialogAlert=e.MdDialog=e.MdDatepicker=e.MdContent=e.MdChips=e.MdCheckbox=e.MdCard=e.MdButton=e.MdBottomBar=e.MdAvatar=e.MdAutocomplete=e.MdApp=e.MdBadge=void 0,i=r(n(234)),o=r(n(253)),a=r(n(260)),s=r(n(266)),u=r(n(270)),l=r(n(276)),c=r(n(277)),f=r(n(312)),d=r(n(316)),h=r(n(323)),p=r(n(324)),m=r(n(352)),v=r(n(506)),g=r(n(509)),b=r(n(512)),y=r(n(362)),w=r(n(366)),_=r(n(370)),k=r(n(372)),M=r(n(373)),x=r(n(393)),S=r(n(106)),C=r(n(396)),A=r(n(400)),T=r(n(402)),E=r(n(403)),O=r(n(406)),P=r(n(413)),I=r(n(417)),R=r(n(418)),j=r(n(425)),D=r(n(435)),N=r(n(449)),L=r(n(453)),B=r(n(457)),z=r(n(491)),F=r(n(496)),q=r(n(497)),e.MdBadge=o.default,e.MdApp=i.default,e.MdAutocomplete=a.default,e.MdAvatar=s.default,e.MdBottomBar=u.default,e.MdButton=l.default,e.MdCard=c.default,e.MdCheckbox=f.default,e.MdChips=d.default,e.MdContent=h.default,e.MdDatepicker=p.default,e.MdDialog=m.default,e.MdDialogAlert=v.default,e.MdDialogConfirm=g.default,e.MdDialogPrompt=b.default,e.MdDivider=y.default,e.MdDrawer=w.default,e.MdElevation=_.default,e.MdEmptyState=k.default,e.MdField=M.default,e.MdHighlightText=x.default,e.MdIcon=S.default,e.MdImage=C.default,e.MdLayout=A.default,e.MdList=T.default,e.MdMenu=E.default,e.MdProgress=O.default,e.MdRadio=P.default,e.MdRipple=I.default,e.MdSnackbar=R.default,e.MdSpeedDial=j.default,e.MdSteppers=D.default,e.MdSubheader=N.default,e.MdSwitch=L.default,e.MdTable=B.default,e.MdTabs=z.default,e.MdToolbar=F.default,e.MdTooltip=q.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),u=n(507),l=r(u),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default)}},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(501),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(508),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-dialog",t._g(t._b({attrs:{"md-fullscreen":!1}},"md-dialog",t.$attrs,!1),t.$listeners),[t.mdTitle?n("md-dialog-title",[t._v(t._s(t.mdTitle))]):t._e(),t._v(" "),t.mdContent?n("md-dialog-content",{domProps:{innerHTML:t._s(t.mdContent)}}):t._e(),t._v(" "),n("md-dialog-actions",[n("md-button",{staticClass:"md-primary",on:{click:function(e){return t.$emit("update:mdActive",!1)}}},[t._v(t._s(t.mdConfirmText))])],1)],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),u=n(510),l=r(u),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default)}},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(502),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(511),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-dialog",t._g(t._b({attrs:{"md-fullscreen":!1}},"md-dialog",t.$attrs,!1),t.$listeners),[t.mdTitle?n("md-dialog-title",[t._v(t._s(t.mdTitle))]):t._e(),t._v(" "),t.mdContent?n("md-dialog-content",{domProps:{innerHTML:t._s(t.mdContent)}}):t._e(),t._v(" "),n("md-dialog-actions",[n("md-button",{on:{click:t.onCancel}},[t._v(t._s(t.mdCancelText))]),t._v(" "),n("md-button",{staticClass:"md-primary",on:{click:t.onConfirm}},[t._v(t._s(t.mdConfirmText))])],1)],1)},staticRenderFns:[]};e.a=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var i,o,a,s,u,l;Object.defineProperty(e,"__esModule",{value:!0}),i=n(3),o=r(i),a=n(68),s=r(a),u=n(513),l=r(u),e.default=function(t){(0,o.default)(t),t.component(s.default.name,s.default),t.component(l.default.name,l.default)}},function(t,e,n){"use strict";var r,i,o,a,s;for(o in Object.defineProperty(e,"__esModule",{value:!0}),r=n(503),i=n.n(r),r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);a=n(514),s=n(0)(i.a,a.a,!1,null,null,null),e.default=s.exports},function(t,e,n){"use strict";var r={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("md-dialog",t._b({attrs:{"md-fullscreen":!1},on:{"md-opened":t.setInputFocus}},"md-dialog",t.$attrs,!1),[t.mdTitle?n("md-dialog-title",[t._v(t._s(t.mdTitle))]):t._e(),t._v(" "),t.mdContent?n("md-dialog-content",{domProps:{innerHTML:t._s(t.mdContent)}}):t._e(),t._v(" "),n("md-dialog-content",[n("md-field",[n("md-input",{ref:"input",attrs:{id:t.mdInputId,name:t.mdInputName,maxlength:t.mdInputMaxlength,placeholder:t.mdInputPlaceholder},nativeOn:{keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.onConfirm(e)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}})],1)],1),t._v(" "),n("md-dialog-actions",[n("md-button",{staticClass:"md-primary",on:{click:t.onCancel}},[t._v(t._s(t.mdCancelText))]),t._v(" "),n("md-button",{staticClass:"md-primary",on:{click:t.onConfirm}},[t._v(t._s(t.mdConfirmText))])],1)],1)},staticRenderFns:[]};e.a=r}]))},function(t,e,n){t.exports=function(){"use strict";function t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function n(n){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?e(Object(i),!0).forEach((function(e){t(n,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(i,t))}))}return n}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(t){var e,n="algoliasearch-client-js-".concat(t.key),i=function(){return void 0===e&&(e=t.localStorage||window.localStorage),e},o=function(){return JSON.parse(i().getItem(n)||"{}")};return{get:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){var n=JSON.stringify(t),r=o()[n];return Promise.all([r||e(),void 0!==r])})).then((function(t){var e=r(t,2),i=e[0],o=e[1];return Promise.all([i,o||n.miss(i)])})).then((function(t){return r(t,1)[0]}))},set:function(t,e){return Promise.resolve().then((function(){var r=o();return r[JSON.stringify(t)]=e,i().setItem(n,JSON.stringify(r)),e}))},delete:function(t){return Promise.resolve().then((function(){var e=o();delete e[JSON.stringify(t)],i().setItem(n,JSON.stringify(e))}))},clear:function(){return Promise.resolve().then((function(){i().removeItem(n)}))}}}function a(t){var e=i(t.caches),n=e.shift();return void 0===n?{get:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},i=e();return i.then((function(t){return Promise.all([t,n.miss(t)])})).then((function(t){return r(t,1)[0]}))},set:function(t,e){return Promise.resolve(e)},delete:function(t){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(t,r,i).catch((function(){return a({caches:e}).get(t,r,i)}))},set:function(t,r){return n.set(t,r).catch((function(){return a({caches:e}).set(t,r)}))},delete:function(t){return n.delete(t).catch((function(){return a({caches:e}).delete(t)}))},clear:function(){return n.clear().catch((function(){return a({caches:e}).clear()}))}}}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},e={};return{get:function(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},o=JSON.stringify(n);if(o in e)return Promise.resolve(t.serializable?JSON.parse(e[o]):e[o]);var a=r(),s=i&&i.miss||function(){return Promise.resolve()};return a.then((function(t){return s(t)})).then((function(){return a}))},set:function(n,r){return e[JSON.stringify(n)]=t.serializable?JSON.stringify(r):r,Promise.resolve(r)},delete:function(t){return delete e[JSON.stringify(t)],Promise.resolve()},clear:function(){return e={},Promise.resolve()}}}function u(t){for(var e=t.length-1;e>0;e--){var n=Math.floor(Math.random()*(e+1)),r=t[e];t[e]=t[n],t[n]=r}return t}function l(t,e){return Object.keys(void 0!==e?e:{}).forEach((function(n){t[n]=e[n](t)})),t}function c(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0;return t.replace(/%s/g,(function(){return encodeURIComponent(n[i++])}))}var f=0,d=1;function h(t,e){var n=t||{},r=n.data||{};return Object.keys(n).forEach((function(t){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(t)&&(r[t]=n[t])})),{data:Object.entries(r).length>0?r:void 0,timeout:n.timeout||e,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var p={Read:1,Write:2,Any:3};function m(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n({},t,{status:e,lastUpdate:Date.now()})}function v(t){return{protocol:t.protocol||"https",url:t.url,accept:t.accept||p.Any}}var g="POST";function b(t,e,r,o){var a=[],s=function(t,e){if("GET"!==t.method&&(void 0!==t.data||void 0!==e.data)){var r=Array.isArray(t.data)?t.data:n({},t.data,{},e.data);return JSON.stringify(r)}}(r,o),u=function(t,e){var r=n({},t.headers,{},e.headers),i={};return Object.keys(r).forEach((function(t){var e=r[t];i[t.toLowerCase()]=e})),i}(t,o),l=r.method,c="GET"!==r.method?{}:n({},r.data,{},o.data),f=n({"x-algolia-agent":t.userAgent.value},t.queryParameters,{},c,{},o.queryParameters),d=0,h=function e(n,i){var c=n.pop();if(void 0===c)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:k(a)};var h={data:s,headers:u,method:l,url:w(c,r.path,f),connectTimeout:i(d,t.timeouts.connect),responseTimeout:i(d,o.timeout)},p=function(t){var e={request:h,response:t,host:c,triesLeft:n.length};return a.push(e),e},v={onSucess:function(t){return function(t){try{return JSON.parse(t.content)}catch(e){throw function(t,e){return{name:"DeserializationError",message:t,response:e}}(e.message,t)}}(t)},onRetry:function(r){var o=p(r);return r.isTimedOut&&d++,Promise.all([t.logger.info("Retryable failure",M(o)),t.hostsCache.set(c,m(c,r.isTimedOut?3:2))]).then((function(){return e(n,i)}))},onFail:function(t){throw p(t),function(t,e){var n=t.content,r=t.status,i=n;try{i=JSON.parse(n).message}catch(t){}return function(t,e,n){return{name:"ApiError",message:t,status:e,transporterStackTrace:n}}(i,r,e)}(t,k(a))}};return t.requester.send(h).then((function(t){return function(t,e){return function(t){var e=t.status;return t.isTimedOut||function(t){var e=t.isTimedOut,n=t.status;return!e&&0==~~n}(t)||2!=~~(e/100)&&4!=~~(e/100)}(t)?e.onRetry(t):2==~~(t.status/100)?e.onSucess(t):e.onFail(t)}(t,v)}))};return function(t,e){return Promise.all(e.map((function(e){return t.get(e,(function(){return Promise.resolve(m(e))}))}))).then((function(t){var n=t.filter((function(t){return function(t){return 1===t.status||Date.now()-t.lastUpdate>12e4}(t)})),r=t.filter((function(t){return function(t){return 3===t.status&&Date.now()-t.lastUpdate<=12e4}(t)})),o=[].concat(i(n),i(r));return{getTimeout:function(t,e){return(0===r.length&&0===t?1:r.length+3+t)*e},statelessHosts:o.length>0?o.map((function(t){return v(t)})):e}}))}(t.hostsCache,e).then((function(t){return h(i(t.statelessHosts).reverse(),t.getTimeout)}))}function y(t){var e={value:"Algolia for JavaScript (".concat(t,")"),add:function(t){var n="; ".concat(t.segment).concat(void 0!==t.version?" (".concat(t.version,")"):"");return-1===e.value.indexOf(n)&&(e.value="".concat(e.value).concat(n)),e}};return e}function w(t,e,n){var r=_(n),i="".concat(t.protocol,"://").concat(t.url,"/").concat("/"===e.charAt(0)?e.substr(1):e);return r.length&&(i+="?".concat(r)),i}function _(t){return Object.keys(t).map((function(e){return c("%s=%s",e,(n=t[e],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(t[e]):t[e]));var n})).join("&")}function k(t){return t.map((function(t){return M(t)}))}function M(t){var e=t.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n({},t,{request:n({},t.request,{headers:n({},t.request.headers,{},e)})})}var x=function(t){var e=t.appId,i=function(t,e,n){var r={"x-algolia-api-key":n,"x-algolia-application-id":e};return{headers:function(){return t===d?r:{}},queryParameters:function(){return t===f?r:{}}}}(void 0!==t.authMode?t.authMode:d,e,t.apiKey),o=function(t){var e=t.hostsCache,n=t.logger,i=t.requester,o=t.requestsCache,a=t.responsesCache,s=t.timeouts,u=t.userAgent,l=t.hosts,c=t.queryParameters,f={hostsCache:e,logger:n,requester:i,requestsCache:o,responsesCache:a,timeouts:s,userAgent:u,headers:t.headers,queryParameters:c,hosts:l.map((function(t){return v(t)})),read:function(t,e){var n=h(e,f.timeouts.read),i=function(){return b(f,f.hosts.filter((function(t){return 0!=(t.accept&p.Read)})),t,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:t.cacheable))return i();var o={request:t,mappedRequestOptions:n,transporter:{queryParameters:f.queryParameters,headers:f.headers}};return f.responsesCache.get(o,(function(){return f.requestsCache.get(o,(function(){return f.requestsCache.set(o,i()).then((function(t){return Promise.all([f.requestsCache.delete(o),t])}),(function(t){return Promise.all([f.requestsCache.delete(o),Promise.reject(t)])})).then((function(t){var e=r(t,2);return e[0],e[1]}))}))}),{miss:function(t){return f.responsesCache.set(o,t)}})},write:function(t,e){return b(f,f.hosts.filter((function(t){return 0!=(t.accept&p.Write)})),t,h(e,f.timeouts.write))}};return f}(n({hosts:[{url:"".concat(e,"-dsn.algolia.net"),accept:p.Read},{url:"".concat(e,".algolia.net"),accept:p.Write}].concat(u([{url:"".concat(e,"-1.algolianet.com")},{url:"".concat(e,"-2.algolianet.com")},{url:"".concat(e,"-3.algolianet.com")}]))},t,{headers:n({},i.headers(),{},{"content-type":"application/x-www-form-urlencoded"},{},t.headers),queryParameters:n({},i.queryParameters(),{},t.queryParameters)}));return l({transporter:o,appId:e,addAlgoliaAgent:function(t,e){o.userAgent.add({segment:t,version:e})},clearCache:function(){return Promise.all([o.requestsCache.clear(),o.responsesCache.clear()]).then((function(){}))}},t.methods)},S=function(t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={transporter:t.transporter,appId:t.appId,indexName:e};return l(r,n.methods)}},C=function(t){return function(e,r){var i=e.map((function(t){return n({},t,{params:_(t.params||{})})}));return t.transporter.read({method:g,path:"1/indexes/*/queries",data:{requests:i},cacheable:!0},r)}},A=function(t){return function(e,r){return Promise.all(e.map((function(e){var i=e.params,o=i.facetName,a=i.facetQuery,s=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(i,["facetName","facetQuery"]);return S(t)(e.indexName,{methods:{searchForFacetValues:E}}).searchForFacetValues(o,a,n({},r,{},s))})))}},T=function(t){return function(e,n){return t.transporter.read({method:g,path:c("1/indexes/%s/query",t.indexName),data:{query:e},cacheable:!0},n)}},E=function(t){return function(e,n,r){return t.transporter.read({method:g,path:c("1/indexes/%s/facets/%s/query",t.indexName,e),data:{facetQuery:n},cacheable:!0},r)}};function O(t,e,r){var i={appId:t,apiKey:e,timeouts:{connect:1,read:2,write:30},requester:{send:function(t){return new Promise((function(e){var n=new XMLHttpRequest;n.open(t.method,t.url,!0),Object.keys(t.headers).forEach((function(e){return n.setRequestHeader(e,t.headers[e])}));var r,i=function(t,r){return setTimeout((function(){n.abort(),e({status:0,content:r,isTimedOut:!0})}),1e3*t)},o=i(t.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===r&&(clearTimeout(o),r=i(t.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(o),clearTimeout(r),e({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(o),clearTimeout(r),e({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(t.data)}))}},logger:{debug:function(t,e){return Promise.resolve()},info:function(t,e){return Promise.resolve()},error:function(t,e){return console.error(t,e),Promise.resolve()}},responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:a({caches:[o({key:"".concat("4.1.0","-").concat(t)}),s()]}),userAgent:y("4.1.0").add({segment:"Browser",version:"lite"}),authMode:f};return x(n({},i,{},r,{methods:{search:C,searchForFacetValues:A,multipleQueries:C,multipleSearchForFacetValues:A,initIndex:function(t){return function(e){return S(t)(e,{methods:{search:T,searchForFacetValues:E}})}}}}))}return O.version="4.1.0",O}()},function(t,e,n){t.exports=function(){"use strict";var t=function(t){var e=new XMLHttpRequest;return e.open(t.method||"GET",t.url),e.responseType="json",t.headers&&Object.keys(t.headers).forEach((function(n){e.setRequestHeader(n,t.headers[n])})),e};function e(e){return function(t,e){return new Promise((function(n,r){t.onload=function(){if(t.status>=200&&t.status<300){var e;try{e=JSON.parse(t.response)}catch(n){e=t.response}n(e)}else r(t.response)},t.onerror=function(){return r(t.response)},t.send(JSON.stringify(e))}))}(t(e),e.body)}var n,r,i,o,a,s=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function(){function n(t,e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),this.file=t,this.options=e}return s(n,[{key:"createChunks",value:function(){this.chunks=[];for(var t=0,e=this.chunkSize;t<this.fileSize;)this.chunks.push({blob:this.file.file.slice(t,e),startOffset:t,active:!1,retries:this.maxRetries}),e=(t=e)+this.chunkSize}},{key:"updateFileProgress",value:function(){this.file.progress=this.progress}},{key:"pause",value:function(){this.file.active=!1,this.stopChunks()}},{key:"stopChunks",value:function(){this.chunksUploading.forEach((function(t){t.xhr.abort(),t.active=!1}))}},{key:"resume",value:function(){this.file.active=!0,this.startChunking()}},{key:"upload",value:function(){var t=this;return this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n})),this.start(),this.promise}},{key:"start",value:function(){var t=this;e({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.startBody,{phase:"start",mime_type:this.fileType,size:this.fileSize,name:this.fileName})}).then((function(e){if("success"!==e.status)return t.file.response=e,t.reject("server");t.sessionId=e.data.session_id,t.chunkSize=e.data.end_offset,t.createChunks(),t.startChunking()})).catch((function(e){t.file.response=e,t.reject("server")}))}},{key:"startChunking",value:function(){for(var t=0;t<this.maxActiveChunks;t++)this.uploadNextChunk()}},{key:"uploadNextChunk",value:function(){if(this.file.active){if(this.hasChunksToUpload)return this.uploadChunk(this.chunksToUpload[0]);if(0===this.chunksUploading.length)return this.finish()}}},{key:"uploadChunk",value:function(e){var n=this;e.progress=0,e.active=!0,this.updateFileProgress(),e.xhr=t({method:"POST",headers:this.headers,url:this.action}),e.xhr.upload.addEventListener("progress",(function(t){t.lengthComputable&&(e.progress=Math.round(t.loaded/t.total*100))}),!1),function(t,e){var n=new FormData;for(var r in e)n.append(r,e[r]);return new Promise((function(e,r){t.onload=function(){if(t.status>=200&&t.status<300){var n;try{n=JSON.parse(t.response)}catch(e){n=t.response}e(n)}else r(t.response)},t.onerror=function(){return r(t.response)},t.send(n)}))}(e.xhr,Object.assign(this.uploadBody,{phase:"upload",session_id:this.sessionId,start_offset:e.startOffset,chunk:e.blob})).then((function(t){if(e.active=!1,"success"===t.status)e.uploaded=!0;else if(e.retries--<=0)return n.stopChunks(),n.reject("upload");n.uploadNextChunk()})).catch((function(){if(e.active=!1,e.retries--<=0)return n.stopChunks(),n.reject("upload");n.uploadNextChunk()}))}},{key:"finish",value:function(){var t=this;this.updateFileProgress(),e({method:"POST",headers:Object.assign({},this.headers,{"Content-Type":"application/json"}),url:this.action,body:Object.assign(this.finishBody,{phase:"finish",session_id:this.sessionId})}).then((function(e){if(t.file.response=e,"success"!==e.status)return t.reject("server");t.resolve(e)})).catch((function(e){t.file.response=e,t.reject("server")}))}},{key:"maxRetries",get:function(){return parseInt(this.options.maxRetries)}},{key:"maxActiveChunks",get:function(){return parseInt(this.options.maxActive)}},{key:"fileType",get:function(){return this.file.type}},{key:"fileSize",get:function(){return this.file.size}},{key:"fileName",get:function(){return this.file.name}},{key:"action",get:function(){return this.options.action||null}},{key:"startBody",get:function(){return this.options.startBody||{}}},{key:"uploadBody",get:function(){return this.options.uploadBody||{}}},{key:"finishBody",get:function(){return this.options.finishBody||{}}},{key:"headers",get:function(){return this.options.headers||{}}},{key:"readyToUpload",get:function(){return!!this.chunks}},{key:"progress",get:function(){var t=this,e=this.chunksUploaded.length/this.chunks.length*100,n=this.chunksUploading.reduce((function(e,n){return e+(0|n.progress)/t.chunks.length}),0);return Math.min(e+n,100)}},{key:"chunksToUpload",get:function(){return this.chunks.filter((function(t){return!t.active&&!t.uploaded}))}},{key:"hasChunksToUpload",get:function(){return this.chunksToUpload.length>0}},{key:"chunksUploading",get:function(){return this.chunks.filter((function(t){return!!t.xhr&&!!t.active}))}},{key:"chunksUploaded",get:function(){return this.chunks.filter((function(t){return!!t.uploaded}))}}]),n}(),l=(n={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("input",{attrs:{type:"file",name:t.$parent.name,id:t.$parent.inputId||t.$parent.name,accept:t.$parent.accept,capture:t.$parent.capture,disabled:t.$parent.disabled,webkitdirectory:t.$parent.directory&&t.$parent.features.directory,directory:t.$parent.directory&&t.$parent.features.directory,multiple:t.$parent.multiple&&t.$parent.features.html5},on:{change:t.change}})},staticRenderFns:[]},i=void 0,o=!1,(a=("function"==typeof(r={methods:{change:function(t){this.$parent.addInputFile(t.target),t.target.files?(t.target.value="",t.target.files.length&&!/safari/i.test(navigator.userAgent)&&(t.target.type="",t.target.type="file")):(this.$destroy(),new this.constructor({parent:this.$parent,el:this.$el}))}}})?r.options:r)||{}).render||(a.render=n.render,a.staticRenderFns=n.staticRenderFns,a._compiled=!0,o&&(a.functional=!0)),a._scopeId=i,a),c=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function d(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}var h={headers:{},action:"",minSize:1048576,maxActive:3,maxRetries:5,handler:u},p={components:{InputFile:l},props:{inputId:{type:String},name:{type:String,default:"file"},accept:{type:String},capture:{},disabled:{},multiple:{type:Boolean},maximum:{type:Number,default:function(){return this.multiple?0:1}},addIndex:{type:[Boolean,Number]},directory:{type:Boolean},postAction:{type:String},putAction:{type:String},customAction:{type:Function},headers:{type:Object,default:Object},data:{type:Object,default:Object},timeout:{type:Number,default:0},drop:{default:!1},dropDirectory:{type:Boolean,default:!0},size:{type:Number,default:0},extensions:{default:Array},value:{type:Array,default:Array},thread:{type:Number,default:1},chunkEnabled:{type:Boolean,default:!1},chunk:{type:Object,default:function(){return h}}},data:function(){return{files:this.value,features:{html5:!0,directory:!1,drag:!1},active:!1,dropActive:!1,uploading:0,destroy:!1}},mounted:function(){var t=document.createElement("input");if(t.type="file",t.multiple=!0,window.FormData&&t.files?("boolean"!=typeof t.webkitdirectory&&"boolean"!=typeof t.directory||(this.features.directory=!0),this.features.html5&&void 0!==t.ondrop&&(this.features.drop=!0)):this.features.html5=!1,this.maps={},this.files)for(var e=0;e<this.files.length;e++){var n=this.files[e];this.maps[n.id]=n}this.$nextTick((function(){this.$parent&&this.$parent.$forceUpdate(),this.watchDrop(this.drop)}))},beforeDestroy:function(){this.destroy=!0,this.active=!1},computed:{uploaded:function(){for(var t=void 0,e=0;e<this.files.length;e++)if((t=this.files[e]).fileObject&&!t.error&&!t.success)return!1;return!0},chunkOptions:function(){return Object.assign(h,this.chunk)},className:function(){return["file-uploads",this.features.html5?"file-uploads-html5":"file-uploads-html4",this.features.directory&&this.directory?"file-uploads-directory":void 0,this.features.drop&&this.drop?"file-uploads-drop":void 0,this.disabled?"file-uploads-disabled":void 0]}},watch:{active:function(t){this.watchActive(t)},dropActive:function(){this.$parent&&this.$parent.$forceUpdate()},drop:function(t){this.watchDrop(t)},value:function(t){if(this.files!==t){this.files=t;var e=this.maps;this.maps={};for(var n=0;n<this.files.length;n++){var r=this.files[n];this.maps[r.id]=r}for(var i in this.maps){var o=this.maps[i],a=e[i];o!==a&&this.emitFile(o,a)}for(var s in e)this.maps[s]||this.emitFile(void 0,e[s])}}},methods:{clear:function(){if(this.files.length){var t=this.files;this.files=[],this.maps={},this.emitInput();for(var e=0;e<t.length;e++)this.emitFile(void 0,t[e])}return!0},get:function(t){return!!t&&("object"===(void 0===t?"undefined":f(t))?this.maps[t.id]||!1:this.maps[t]||!1)},add:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.addIndex,n=t,r=n instanceof Array;r||(n=[n]);for(var i=[],o=0;o<n.length;o++){var a=n[o];this.features.html5&&a instanceof Blob&&(a={file:a,size:a.size,name:a.webkitRelativePath||a.relativePath||a.name||"unknown",type:a.type});var s=!1;if(!1===a.fileObject||(a.fileObject||"undefined"!=typeof Element&&a.el instanceof Element||"undefined"!=typeof Blob&&a.file instanceof Blob)&&(s=!0),s&&((a=c({fileObject:!0,size:-1,name:"Filename",type:"",active:!1,error:"",success:!1,putAction:this.putAction,postAction:this.postAction,timeout:this.timeout},a,{response:{},progress:"0.00",speed:0})).data=c({},this.data,a.data?a.data:{}),a.headers=c({},this.headers,a.headers?a.headers:{})),a.id||(a.id=Math.random().toString(36).substr(2)),!this.emitFilter(a,void 0)){if(this.maximum>1&&i.length+this.files.length>=this.maximum)break;if(i.push(a),1===this.maximum)break}}if(!i.length)return!1;1===this.maximum&&this.clear();var u=void 0;if(!0===e||0===e)u=i.concat(this.files);else if(e){var l;(l=u=this.files.concat([])).splice.apply(l,[e,0].concat(i))}else u=this.files.concat(i);this.files=u;for(var f=0;f<i.length;f++){var d=i[f];this.maps[d.id]=d}this.emitInput();for(var h=0;h<i.length;h++)this.emitFile(i[h],void 0);return r?i:i[0]},addInputFile:function(t){var e=[];if(t.files)for(var n=0;n<t.files.length;n++){var r=t.files[n];e.push({size:r.size,name:r.webkitRelativePath||r.relativePath||r.name,type:r.type,file:r})}else{var i=t.value.replace(/\\/g,"/").split("/");delete t.__vuex__,e.push({name:i[i.length-1],el:t})}return this.add(e)},addDataTransfer:function(t){var e=this,n=[];if(t.items&&t.items.length){for(var r=[],i=0;i<t.items.length;i++){var o=t.items[i];(o=o.getAsEntry?o.getAsEntry()||o.getAsFile():o.webkitGetAsEntry&&o.webkitGetAsEntry()||o.getAsFile())&&r.push(o)}return new Promise((function(t,i){!function i(o){var a=r[o];if(!a||e.maximum>0&&n.length>=e.maximum)return t(e.add(n));e.getEntry(a).then((function(t){n.push.apply(n,d(t)),i(o+1)}))}(0)}))}if(t.files.length){for(var a=0;a<t.files.length&&(n.push(t.files[a]),!(this.maximum>0&&n.length>=this.maximum));a++);return Promise.resolve(this.add(n))}return Promise.resolve([])},getEntry:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return new Promise((function(r,i){if(t.isFile)t.file((function(t){r([{size:t.size,name:n+t.name,type:t.type,file:t}])}));else if(t.isDirectory&&e.dropDirectory){var o=[],a=t.createReader();!function i(){a.readEntries((function(a){!function s(u){return!a[u]&&0===u||e.maximum>0&&o.length>=e.maximum?r(o):a[u]?void e.getEntry(a[u],n+t.name+"/").then((function(t){o.push.apply(o,d(t)),s(u+1)})):i()}(0)}))}()}else r([])}))},replace:function(t,e){var n=this.get(t),r=this.get(e);if(!n||!r||n===r)return!1;var i=this.files.concat([]),o=i.indexOf(n),a=i.indexOf(r);return-1!==o&&-1!==a&&(i[o]=r,i[a]=n,this.files=i,this.emitInput(),!0)},remove:function(t){var e=this.get(t);if(e){if(this.emitFilter(void 0,e))return!1;var n=this.files.concat([]),r=n.indexOf(e);if(-1===r)return console.error("remove",e),!1;n.splice(r,1),this.files=n,delete this.maps[e.id],this.emitInput(),this.emitFile(void 0,e)}return e},update:function(t,e){var n=this.get(t);if(n){var r=c({},n,e);if(!n.fileObject||!n.active||r.active||r.error||r.success||(r.error="abort"),this.emitFilter(r,n))return!1;var i=this.files.concat([]),o=i.indexOf(n);return-1===o?(console.error("update",n),!1):(i.splice(o,1,r),this.files=i,delete this.maps[n.id],this.maps[r.id]=r,this.emitInput(),this.emitFile(r,n),r)}return!1},emitFilter:function(t,e){var n=!1;return this.$emit("input-filter",t,e,(function(){return n=!0})),n},emitFile:function(t,e){this.$emit("input-file",t,e),!(t&&t.fileObject&&t.active)||e&&e.active?t&&t.fileObject&&t.active||!e||!e.fileObject||!e.active||this.uploading--:(this.uploading++,this.$nextTick((function(){var e=this;setTimeout((function(){e.upload(t).then((function(){(t=e.get(t))&&t.fileObject&&e.update(t,{active:!1,success:!t.error})})).catch((function(n){e.update(t,{active:!1,success:!1,error:n.code||n.error||n.message||n})}))}),parseInt(50*Math.random()+50,10))}))),!this.active||Boolean(t)===Boolean(e)&&t.active===e.active||this.watchActive(!0)},emitInput:function(){this.$emit("input",this.files)},upload:function(t){var e=this.get(t);if(!e)return Promise.reject("not_exists");if(!e.fileObject)return Promise.reject("file_object");if(e.error)return Promise.reject(e.error);if(e.success)return Promise.resolve(e);var n=this.extensions;if(n&&(n.length||void 0===n.length)&&("object"===(void 0===n?"undefined":f(n))&&n instanceof RegExp||("string"==typeof n&&(n=n.split(",").map((function(t){return t.trim()})).filter((function(t){return t}))),n=new RegExp("\\.("+n.join("|").replace(/\./g,"\\.")+")$","i")),-1===e.name.search(n)))return Promise.reject("extension");if(this.size>0&&e.size>=0&&e.size>this.size)return Promise.reject("size");if(this.customAction)return this.customAction(e,this);if(this.features.html5){if(this.shouldUseChunkUpload(e))return this.uploadChunk(e);if(e.putAction)return this.uploadPut(e);if(e.postAction)return this.uploadHtml5(e)}return e.postAction?this.uploadHtml4(e):Promise.reject("No action configured")},shouldUseChunkUpload:function(t){return this.chunkEnabled&&!!this.chunkOptions.handler&&t.size>this.chunkOptions.minSize},uploadChunk:function(t){var e=this.chunkOptions.handler;return t.chunk=new e(t,this.chunkOptions),t.chunk.upload()},uploadPut:function(t){var e=[],n=void 0;for(var r in t.data)null!=(n=t.data[r])&&e.push(encodeURIComponent(r)+"="+encodeURIComponent(n));var i=e.length?(-1===t.putAction.indexOf("?")?"?":"&")+e.join("&"):"",o=new XMLHttpRequest;return o.open("PUT",t.putAction+i),this.uploadXhr(o,t,t.file)},uploadHtml5:function(t){var e=new window.FormData,n=void 0;for(var r in t.data)(n=t.data[r])&&"object"===(void 0===n?"undefined":f(n))&&"function"!=typeof n.toString?n instanceof File?e.append(r,n,n.name):e.append(r,JSON.stringify(n)):null!=n&&e.append(r,n);e.append(this.name,t.file,t.file.filename||t.name);var i=new XMLHttpRequest;return i.open("POST",t.postAction),this.uploadXhr(i,t,e)},uploadXhr:function(t,e,n){var r=this,i=e,o=0,a=0;t.upload.onprogress=function(t){if(i=r.get(i),t.lengthComputable&&i&&i.fileObject&&i.active){var e=Math.round(Date.now()/1e3);e!==o&&(o=e,i=r.update(i,{progress:(t.loaded/t.total*100).toFixed(2),speed:t.loaded-a}),a=t.loaded)}};var s=setInterval((function(){if(!(i=r.get(i))||!i.fileObject||i.success||i.error||!i.active){s&&(clearInterval(s),s=!1);try{t.abort(),t.timeout=1}catch(t){}}}),100);return new Promise((function(e,o){var a=void 0,u=function(n){if(!a){if(a=!0,s&&(clearInterval(s),s=!1),!(i=r.get(i)))return o("not_exists");if(!i.fileObject)return o("file_object");if(i.error)return o(i.error);if(!i.active)return o("abort");if(i.success)return e(i);var u={};switch(n.type){case"timeout":case"abort":u.error=n.type;break;case"error":t.status?t.status>=500?u.error="server":t.status>=400&&(u.error="denied"):u.error="network";break;default:t.status>=500?u.error="server":t.status>=400?u.error="denied":u.progress="100.00"}if(t.responseText){var l=t.getResponseHeader("Content-Type");l&&-1!==l.indexOf("/json")?u.response=JSON.parse(t.responseText):u.response=t.responseText}return(i=r.update(i,u)).error?o(i.error):e(i)}};for(var l in t.onload=u,t.onerror=u,t.onabort=u,t.ontimeout=u,i.timeout&&(t.timeout=i.timeout),i.headers)t.setRequestHeader(l,i.headers[l]);i=r.update(i,{xhr:t}),t.send(n)}))},uploadHtml4:function(t){var e=this,n=t,r=function(t){27===t.keyCode&&t.preventDefault()},i=document.createElement("iframe");i.id="upload-iframe-"+n.id,i.name="upload-iframe-"+n.id,i.src="about:blank",i.setAttribute("style","width:1px;height:1px;top:-999em;position:absolute; margin-top:-999em;");var o=document.createElement("form");o.action=n.postAction,o.name="upload-form-"+n.id,o.setAttribute("method","POST"),o.setAttribute("target","upload-iframe-"+n.id),o.setAttribute("enctype","multipart/form-data");var a=void 0,s=void 0;for(var u in n.data)(a=n.data[u])&&"object"===(void 0===a?"undefined":f(a))&&"function"!=typeof a.toString&&(a=JSON.stringify(a)),null!=a&&((s=document.createElement("input")).type="hidden",s.name=u,s.value=a,o.appendChild(s));return o.appendChild(n.el),document.body.appendChild(i).appendChild(o),new Promise((function(t,a){setTimeout((function(){if(!(n=e.update(n,{iframe:i})))return a("not_exists");var s=setInterval((function(){(n=e.get(n))&&n.fileObject&&!n.success&&!n.error&&n.active||(s&&(clearInterval(s),s=!1),i.onabort({type:n?"abort":"not_exists"}))}),100),u=void 0,l=function(o){if(!u){if(u=!0,s&&(clearInterval(s),s=!1),document.body.removeEventListener("keydown",r),!(n=e.get(n)))return a("not_exists");if(!n.fileObject)return a("file_object");if(n.error)return a(n.error);if(!n.active)return a("abort");if(n.success)return t(n);var l=function(){var t=void 0;try{i.contentWindow&&(t=i.contentWindow.document)}catch(t){}if(!t)try{t=i.contentDocument?i.contentDocument:i.document}catch(e){t=i.document}return t&&t.body?t.body.innerHTML:null}(),c={};switch(o.type){case"abort":c.error="abort";break;case"error":n.error?c.error=n.error:c.error=null===l?"network":"denied";break;default:n.error?c.error=n.error:null===c?c.error="network":c.progress="100.00"}if(null!==l){if(l&&"{"===l.substr(0,1)&&"}"===l.substr(l.length-1,1))try{l=JSON.parse(l)}catch(t){}c.response=l}return(n=e.update(n,c)).error?a(n.error):t(n)}};i.onload=l,i.onerror=l,i.onabort=l,document.body.addEventListener("keydown",r),o.submit()}),50)})).then((function(t){return i.parentNode&&i.parentNode.removeChild(i),t})).catch((function(t){return i.parentNode&&i.parentNode.removeChild(i),t}))},watchActive:function(t){for(var e=void 0,n=0;e=this.files[n];)if(n++,e.fileObject)if(t&&!this.destroy){if(this.uploading>=this.thread||this.uploading&&!this.features.html5)break;e.active||e.error||e.success||this.update(e,{active:!0})}else e.active&&this.update(e,{active:!1});0===this.uploading&&(this.active=!1)},watchDrop:function(t){var e=t;if(this.features.drop){if(this.dropElement)try{document.removeEventListener("dragenter",this.onDragenter,!1),document.removeEventListener("dragleave",this.onDragleave,!1),document.removeEventListener("drop",this.onDocumentDrop,!1),this.dropElement.removeEventListener("dragover",this.onDragover,!1),this.dropElement.removeEventListener("drop",this.onDrop,!1)}catch(t){}e?"string"==typeof e?e=document.querySelector(e)||this.$root.$el.querySelector(e):!0===e&&(e=this.$parent.$el):e=!1,this.dropElement=e,this.dropElement&&(document.addEventListener("dragenter",this.onDragenter,!1),document.addEventListener("dragleave",this.onDragleave,!1),document.addEventListener("drop",this.onDocumentDrop,!1),this.dropElement.addEventListener("dragover",this.onDragover,!1),this.dropElement.addEventListener("drop",this.onDrop,!1))}},onDragenter:function(t){if(t.preventDefault(),!this.dropActive&&t.dataTransfer){var e=t.dataTransfer;e.files&&e.files.length?this.dropActive=!0:e.types?(e.types.indexOf&&-1!==e.types.indexOf("Files")||e.types.contains&&e.types.contains("Files"))&&(this.dropActive=!0):this.dropActive=!0}},onDragleave:function(t){t.preventDefault(),this.dropActive&&("HTML"===t.target.nodeName||t.target===t.explicitOriginalTarget||!t.fromElement&&(t.clientX<=0||t.clientY<=0||t.clientX>=window.innerWidth||t.clientY>=window.innerHeight))&&(this.dropActive=!1)},onDragover:function(t){t.preventDefault()},onDocumentDrop:function(){this.dropActive=!1},onDrop:function(t){t.preventDefault(),this.addDataTransfer(t.dataTransfer)}}},m=function(t,e,n,r,i,o,a,s){var u=("function"==typeof n?n.options:n)||{};u.render||(u.render=t.render,u.staticRenderFns=t.staticRenderFns,u._compiled=!0,i&&(u.functional=!0)),u._scopeId=r;var l=void 0;if(e&&(l=function(t){e.call(this,a(t))}),void 0!==l)if(u.functional){var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return u}({render:function(){var t=this.$createElement,e=this._self._c||t;return e("span",{class:this.className},[this._t("default"),this._v(" "),e("label",{attrs:{for:this.inputId||this.name}}),this._v(" "),e("input-file")],2)},staticRenderFns:[]},(function(t){t&&t("data-v-595958af_0",{source:"\n.file-uploads{overflow:hidden;position:relative;text-align:center;display:inline-block\n}\n.file-uploads.file-uploads-html4 input,.file-uploads.file-uploads-html5 label{background:#fff;opacity:0;font-size:20em;z-index:1;top:0;left:0;right:0;bottom:0;position:absolute;width:100%;height:100%\n}\n.file-uploads.file-uploads-html4 label,.file-uploads.file-uploads-html5 input{background:rgba(255,255,255,0);overflow:hidden;position:fixed;width:1px;height:1px;z-index:-1;opacity:0\n}",map:void 0,media:void 0})}),p,void 0,!1,0,(function t(){var e=document.head||document.getElementsByTagName("head")[0],n=t.styles||(t.styles={}),r="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(t,i){if(!document.querySelector('style[data-vue-ssr-id~="'+t+'"]')){var o=r?i.media||"default":t,a=n[o]||(n[o]={ids:[],parts:[],element:void 0});if(!a.ids.includes(t)){var s=i.source,u=a.ids.length;if(a.ids.push(t),i.map&&(s+="\n/*# sourceURL="+i.map.sources[0]+" */",s+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i.map))))+" */"),r&&(a.element=a.element||document.querySelector("style[data-group="+o+"]")),!a.element){var l=a.element=document.createElement("style");l.type="text/css",i.media&&l.setAttribute("media",i.media),r&&(l.setAttribute("data-group",o),l.setAttribute("data-next-index","0")),e.appendChild(l)}if(r&&(u=parseInt(a.element.getAttribute("data-next-index")),a.element.setAttribute("data-next-index",u+1)),a.element.styleSheet)a.parts.push(s),a.element.styleSheet.cssText=a.parts.filter(Boolean).join("\n");else{var c=document.createTextNode(s),f=a.element.childNodes;f[u]&&a.element.removeChild(f[u]),f.length?a.element.insertBefore(c,f[u]):a.element.appendChild(c)}}}}})),v=Object.freeze({default:m});return v&&m||v}()},function(t,e,n){"use strict";(function(e){const r=n(310);l.PACKAGE_VERSION=n(484).version,l.USER_AGENT={bindings_version:l.PACKAGE_VERSION,lang:"node",lang_version:e.version,platform:e.platform,publisher:"stripe",uname:null,typescript:!1},l.USER_AGENT_SERIALIZED=null;const i=["name","version","url","partner_id"],o=["apiVersion","typescript","maxNetworkRetries","httpAgent","timeout","host","port","protocol","telemetry","appInfo"],a=n(15).EventEmitter,s=n(19),{emitWarning:u}=s;function l(t,e={}){if(!(this instanceof l))return new l(t,e);const r=this._getPropsFromConfig(e);if(Object.defineProperty(this,"_emitter",{value:new a,enumerable:!1,configurable:!1,writable:!1}),this.VERSION=l.PACKAGE_VERSION,this.on=this._emitter.on.bind(this._emitter),this.once=this._emitter.once.bind(this._emitter),this.off=this._emitter.removeListener.bind(this._emitter),r.protocol&&"https"!==r.protocol&&(!r.host||/\.stripe\.com$/.test(r.host)))throw new Error("The `https` protocol must be used when sending requests to `*.stripe.com`");this._api={auth:null,host:r.host||"api.stripe.com",port:r.port||"443",protocol:r.protocol||"https",basePath:"/v1/",version:r.apiVersion||null,timeout:s.validateInteger("timeout",r.timeout,8e4),maxNetworkRetries:s.validateInteger("maxNetworkRetries",r.maxNetworkRetries,0),agent:r.httpAgent||null,dev:!1};const i=r.typescript||!1;i!==l.USER_AGENT.typescript&&(l.USER_AGENT_SERIALIZED=null,l.USER_AGENT.typescript=i),r.appInfo&&this._setAppInfo(r.appInfo),this._prepResources(),this._setApiKey(t),this.errors=n(39),this.webhooks=n(196),this._prevRequestMetrics=[],this._enableTelemetry=!1!==r.telemetry,this.StripeResource=l.StripeResource}l.StripeResource=n(1),l.resources=r,l.errors=n(39),l.webhooks=n(196),l.prototype={setHost(t,e,n){u("`setHost` is deprecated. Use the `host` config option instead."),this._setApiField("host",t),e&&this.setPort(e),n&&this.setProtocol(n)},setProtocol(t){u("`setProtocol` is deprecated. Use the `protocol` config option instead."),this._setApiField("protocol",t.toLowerCase())},setPort(t){u("`setPort` is deprecated. Use the `port` config option instead."),this._setApiField("port",t)},setApiVersion(t){u("`setApiVersion` is deprecated. Use the `apiVersion` config or request option instead."),t&&this._setApiField("version",t)},setApiKey(t){u("`setApiKey` is deprecated. Use the `apiKey` request option instead."),this._setApiKey(t)},_setApiKey(t){t&&this._setApiField("auth","Bearer "+t)},setTimeout(t){u("`setTimeout` is deprecated. Use the `timeout` config or request option instead."),this._setApiField("timeout",null==t?8e4:t)},setAppInfo(t){u("`setAppInfo` is deprecated. Use the `appInfo` config option instead."),this._setAppInfo(t)},_setAppInfo(t){if(t&&"object"!=typeof t)throw new Error("AppInfo must be an object.");if(t&&!t.name)throw new Error("AppInfo.name is required");t=t||{};const e=i.reduce((e,n)=>("string"==typeof t[n]&&((e=e||{})[n]=t[n]),e),void 0);l.USER_AGENT_SERIALIZED=void 0,this._appInfo=e},setHttpAgent(t){u("`setHttpAgent` is deprecated. Use the `httpAgent` config option instead."),this._setApiField("agent",t)},_setApiField(t,e){this._api[t]=e},getApiField(t){return this._api[t]},setClientId(t){this._clientId=t},getClientId(){return this._clientId},getConstant:t=>{switch(t){case"DEFAULT_HOST":return"api.stripe.com";case"DEFAULT_PORT":return"443";case"DEFAULT_BASE_PATH":return"/v1/";case"DEFAULT_API_VERSION":return null;case"DEFAULT_TIMEOUT":return 8e4;case"MAX_NETWORK_RETRY_DELAY_SEC":return 2;case"INITIAL_NETWORK_RETRY_DELAY_SEC":return.5}return l[t]},getMaxNetworkRetries(){return this.getApiField("maxNetworkRetries")},setMaxNetworkRetries(t){this._setApiNumberField("maxNetworkRetries",t)},_setApiNumberField(t,e,n){const r=s.validateInteger(t,e,n);this._setApiField(t,r)},getMaxNetworkRetryDelay:()=>2,getInitialNetworkRetryDelay:()=>.5,getClientUserAgent(t){if(l.USER_AGENT_SERIALIZED)return t(l.USER_AGENT_SERIALIZED);this.getClientUserAgentSeeded(l.USER_AGENT,e=>{l.USER_AGENT_SERIALIZED=e,t(l.USER_AGENT_SERIALIZED)})},getClientUserAgentSeeded(t,e){s.safeExec("uname -a",(n,r)=>{const i={};for(const e in t)i[e]=encodeURIComponent(t[e]);i.uname=encodeURIComponent(r||"UNKNOWN"),this._appInfo&&(i.application=this._appInfo),e(JSON.stringify(i))})},getAppInfoAsString(){if(!this._appInfo)return"";let t=this._appInfo.name;return this._appInfo.version&&(t+="/"+this._appInfo.version),this._appInfo.url&&(t+=` (${this._appInfo.url})`),t},setTelemetryEnabled(t){u("`setTelemetryEnabled` is deprecated. Use the `telemetry` config option instead."),this._enableTelemetry=t},getTelemetryEnabled(){return this._enableTelemetry},_prepResources(){for(const t in r)this[s.pascalToCamelCase(t)]=new r[t](this)},_getPropsFromConfig(t){if(!t)return{};const e="string"==typeof t;if(!(t===Object(t)&&!Array.isArray(t))&&!e)throw new Error("Config must either be an object or a string");if(e)return{apiVersion:t};if(Object.keys(t).filter(t=>!o.includes(t)).length>0)throw new Error("Config object may only contain the following: "+o.join(", "));return t}},t.exports=l,t.exports.Stripe=l,t.exports.default=l}).call(this,n(5))},,,,,,,,,,,,,,function(t,e,n){var r=n(8),i=n(215);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){(e=n(9)(!1)).push([t.i,":root{--md-theme-default-primary:#448aff;--md-theme-default-accent:#ff5252;--md-theme-default-theme:light}.md-theme-default :not(input):not(textarea)::selection{background-color:#ff5252;background-color:var(--md-theme-default-accent-on-background,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-theme-default a:not(.md-button){color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-theme-default a:not(.md-button):hover{color:rgba(68,138,255,.8);color:var(--md-theme-default-primary-on-background,rgba(68,138,255,.8))}.md-theme-default a:not(.md-button).md-accent{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-theme-default a:not(.md-button).md-accent:hover{color:rgba(255,82,82,.8);color:var(--md-theme-default-accent-on-background,rgba(255,82,82,.8))}html.md-theme-default{background-color:#fafafa;background-color:var(--md-theme-default-background-variant,#fafafa);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-theme-default .md-caption,.md-theme-default .md-display-1,.md-theme-default .md-display-2,.md-theme-default .md-display-3,.md-theme-default .md-display-4{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background-variant,rgba(0,0,0,.54))}.md-scrollbar.md-theme-default::-webkit-scrollbar-corner,.md-scrollbar.md-theme-default::-webkit-scrollbar-track{background:#e1e1e1;background:var(--md-theme-default-scrollbar-background-on-background-variant,#e1e1e1)}.md-scrollbar.md-theme-default::-webkit-scrollbar-thumb{background:#757575;background:var(--md-theme-default-scrollbar-on-background-variant,#757575)}.md-app:not(.md-overlap).md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-list.md-theme-default .md-autocomplete-items .md-highlight-text-match{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-list.md-theme-default .md-autocomplete-loading{background-color:hsla(0,0%,100%,.54);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.54))}.md-autocomplete.md-theme-default.md-autocomplete-box{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-autocomplete.md-theme-default.md-autocomplete-box.md-focused label{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box{background-color:hsla(0,0%,100%,.12);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.12))}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box input,.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box label{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff);-webkit-text-fill-color:#fff;-webkit-text-fill-color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused input,.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused label{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38));-webkit-text-fill-color:rgba(0,0,0,.38);-webkit-text-fill-color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-toolbar .md-autocomplete.md-theme-default.md-autocomplete-box.md-focused svg{fill:rgba(0,0,0,.38);fill:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-autocomplete-box-content.md-theme-default:after{background-color:#fff;background-color:var(--md-theme-default-background,#fff);border-bottom-color:rgba(0,0,0,.12);border-bottom-color:var(--md-theme-default-divider,rgba(0,0,0,.12))}.md-avatar.md-theme-default.md-avatar-icon{background-color:rgba(0,0,0,.38);background-color:var(--md-theme-default-icon-disabled,rgba(0,0,0,.38));color:#fff;color:var(--md-theme-default-text-primary-on-icon-disabled,#fff)}.md-avatar.md-theme-default.md-avatar-icon .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-icon-disabled,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-icon-disabled,#fff)}.md-avatar.md-theme-default.md-primary,.md-avatar.md-theme-default.md-primary.md-avatar-icon{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-avatar.md-theme-default.md-primary.md-avatar-icon,.md-avatar.md-theme-default.md-primary.md-avatar-icon .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-avatar.md-theme-default.md-primary.md-avatar-icon .md-icon{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-avatar.md-theme-default.md-accent,.md-avatar.md-theme-default.md-accent.md-avatar-icon{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-avatar.md-theme-default.md-accent.md-avatar-icon,.md-avatar.md-theme-default.md-accent.md-avatar-icon .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-avatar.md-theme-default.md-accent.md-avatar-icon .md-icon{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-type-fixed{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-bottom-bar.md-theme-default.md-type-fixed .md-bottom-bar-item.md-active,.md-bottom-bar.md-theme-default.md-type-fixed .md-bottom-bar-item.md-active .md-icon{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-bottom-bar.md-theme-default.md-type-fixed .md-bottom-bar-item.md-active .md-icon svg{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-bottom-bar.md-theme-default.md-type-shift{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-bottom-bar.md-theme-default.md-type-shift>.md-ripple .md-ripple-wave{background-color:#116aff;background-color:var(--md-theme-default-primary-on-primary,#116aff)}.md-bottom-bar.md-theme-default.md-type-shift .md-icon{color:#fff;color:var(--md-theme-default-icon-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-type-shift .md-icon svg{fill:#fff;fill:var(--md-theme-default-icon-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-type-shift .md-bottom-bar-item,.md-bottom-bar.md-theme-default.md-type-shift .md-bottom-bar-item .md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-type-shift .md-bottom-bar-item .md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-fixed{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-fixed .md-bottom-bar-item.md-active,.md-bottom-bar.md-theme-default.md-accent.md-type-fixed .md-bottom-bar-item.md-active .md-icon{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-bottom-bar.md-theme-default.md-accent.md-type-fixed .md-bottom-bar-item.md-active .md-icon svg{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-bottom-bar.md-theme-default.md-accent.md-type-shift>.md-ripple .md-ripple-wave{background-color:#ff1f1f;background-color:var(--md-theme-default-accent-on-accent,#ff1f1f)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-icon{color:#fff;color:var(--md-theme-default-icon-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-icon svg{fill:#fff;fill:var(--md-theme-default-icon-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-bottom-bar-item,.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-bottom-bar-item .md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-bottom-bar.md-theme-default.md-accent.md-type-shift .md-bottom-bar-item .md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-button.md-theme-default.md-primary,.md-button.md-theme-default.md-primary .md-icon-font{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-button.md-theme-default.md-primary .md-icon-image{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-button.md-theme-default.md-accent,.md-button.md-theme-default.md-accent .md-icon-font{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-button.md-theme-default.md-accent .md-icon-image{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-button.md-theme-default.md-raised[disabled]{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-disabled-background-on-background,rgba(0,0,0,.12));color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled,rgba(0,0,0,.26))}.md-button.md-theme-default.md-raised:not([disabled]){background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-button.md-theme-default.md-raised:not([disabled]).md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-button.md-theme-default.md-raised:not([disabled]).md-primary,.md-button.md-theme-default.md-raised:not([disabled]).md-primary .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default.md-raised:not([disabled]).md-primary .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default.md-raised:not([disabled]).md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-button.md-theme-default.md-raised:not([disabled]).md-accent,.md-button.md-theme-default.md-raised:not([disabled]).md-accent .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-raised:not([disabled]).md-accent .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-fab[disabled]{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-disabled-background-on-background,rgba(0,0,0,.12))}.md-button.md-theme-default.md-fab:not([disabled]){background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-button.md-theme-default.md-fab:not([disabled]) .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-fab:not([disabled]) .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-button.md-theme-default.md-fab:not([disabled]).md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-button.md-theme-default.md-fab:not([disabled]).md-primary .md-icon-font{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default.md-fab:not([disabled]).md-primary .md-icon-image{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-button.md-theme-default[disabled]{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-button.md-theme-default[disabled] .md-icon-font{color:rgba(0,0,0,.38);color:var(--md-theme-default-icon-disabled-on-background,rgba(0,0,0,.38))}.md-button.md-theme-default[disabled] .md-icon-image{fill:rgba(0,0,0,.38);fill:var(--md-theme-default-icon-disabled-on-background,rgba(0,0,0,.38))}.md-card.md-theme-default{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-card.md-theme-default,.md-card.md-theme-default .md-card-expand .md-card-actions{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-card.md-theme-default .md-card-actions .md-button:not(.md-primary):not(.md-accent),.md-card.md-theme-default .md-card-header .md-button:not(.md-primary):not(.md-accent){color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-card.md-theme-default .md-card-actions .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon,.md-card.md-theme-default .md-card-header .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.54));fill:rgba(0,0,0,.54);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.54))}.md-card.md-theme-default>.md-card-area:after{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-card.md-theme-default.md-primary{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-card.md-theme-default.md-primary,.md-card.md-theme-default.md-primary .md-card-expand .md-card-actions{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-card.md-theme-default.md-primary .md-card-actions .md-button:not(.md-primary):not(.md-accent),.md-card.md-theme-default.md-primary .md-card-header .md-button:not(.md-primary):not(.md-accent){color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-card.md-theme-default.md-primary .md-card-actions .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon,.md-card.md-theme-default.md-primary .md-card-header .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon{color:hsla(0,0%,100%,.54);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.54));fill:hsla(0,0%,100%,.54);fill:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.54))}.md-card.md-theme-default.md-primary>.md-card-area:after{background-color:hsla(0,0%,100%,.12);background-color:var(--md-theme-default-divider-on-primary,hsla(0,0%,100%,.12))}.md-card.md-theme-default.md-accent{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-card.md-theme-default.md-accent,.md-card.md-theme-default.md-accent .md-card-expand .md-card-actions{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-card.md-theme-default.md-accent .md-card-actions .md-button:not(.md-primary):not(.md-accent),.md-card.md-theme-default.md-accent .md-card-header .md-button:not(.md-primary):not(.md-accent){color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-card.md-theme-default.md-accent .md-card-actions .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon,.md-card.md-theme-default.md-accent .md-card-header .md-button:not(.md-primary):not(.md-accent).md-icon-button .md-icon{color:hsla(0,0%,100%,.54);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.54));fill:hsla(0,0%,100%,.54);fill:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.54))}.md-card.md-theme-default.md-accent>.md-card-area:after{background-color:hsla(0,0%,100%,.12);background-color:var(--md-theme-default-divider-on-accent,hsla(0,0%,100%,.12))}.md-checkbox.md-theme-default.md-checked .md-checkbox-container{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);border-color:#ff5252;border-color:var(--md-theme-default-accent,#ff5252)}.md-checkbox.md-theme-default.md-checked .md-checkbox-container:after{border-color:#fff;border-color:var(--md-theme-default-background,#fff)}.md-checkbox.md-theme-default.md-checked .md-ripple{color:#ff5252;color:var(--md-theme-default-accent,#ff5252)}.md-checkbox.md-theme-default.md-indeterminate .md-checkbox-container{background-color:hsla(0,0%,100%,.3)}.md-checkbox.md-theme-default.md-checked.md-primary .md-checkbox-container{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-checkbox.md-theme-default.md-checked.md-primary .md-ripple{color:#448aff;color:var(--md-theme-default-primary,#448aff)}.md-checkbox.md-theme-default.md-indeterminate .md-checkbox-container{border-color:rgba(0,0,0,.54);background-color:transparent}.md-checkbox.md-theme-default.md-indeterminate .md-checkbox-container:after{border-color:rgba(0,0,0,.54)}.md-checkbox.md-theme-default.md-indeterminate .md-ripple{color:rgba(0,0,0,.54)}.md-checkbox.md-theme-default .md-checkbox-container{border-color:rgba(0,0,0,.54)}.md-checkbox.md-theme-default.md-disabled .md-checkbox-container{border-color:rgba(0,0,0,.26)}.md-checkbox.md-theme-default.md-disabled.md-checked .md-checkbox-container{border-color:rgba(0,0,0,.26);background-color:rgba(0,0,0,.26)}.md-chip.md-theme-default{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-highlight,rgba(0,0,0,.12));color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary,rgba(0,0,0,.87))}.md-chip.md-theme-default .md-icon.md-icon-image svg{color:#fff;color:var(--md-theme-default-text-primary-on-text-primary,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-text-primary,#fff)}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover{background-color:rgba(0,0,0,.54);background-color:var(--md-theme-default-icon,rgba(0,0,0,.54));color:#fff;color:var(--md-theme-default-text-primary-on-icon,#fff)}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover .md-icon,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover .md-icon{fill:#fff;fill:var(--md-theme-default-text-primary-on-icon,#fff)}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover .md-input-action{background-color:hsla(0,0%,100%,.87);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.87));color:rgba(0,0,0,.54);color:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-chip.md-theme-default.md-clickable:not(.md-disabled):hover .md-input-action .md-icon svg,.md-chip.md-theme-default.md-deletable:not(.md-disabled):hover .md-input-action .md-icon svg{fill:rgba(0,0,0,.54);fill:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54));color:rgba(0,0,0,.54);color:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-chip.md-theme-default.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-chip.md-theme-default.md-primary .md-input-action{color:#fff;color:var(--md-theme-default-icon-on-disabled,#fff);background-color:rgba(0,0,0,.26);background-color:var(--md-theme-default-disabled,rgba(0,0,0,.26))}.md-chip.md-theme-default.md-primary.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-primary.md-deletable:not(.md-disabled):hover{color:#fff;color:var(--md-theme-default-text-primary-on-icon,#fff);background-color:rgba(0,0,0,.54);background-color:var(--md-theme-default-icon,rgba(0,0,0,.54))}.md-chip.md-theme-default.md-primary.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-primary.md-deletable:not(.md-disabled):hover .md-input-action{background-color:hsla(0,0%,100%,.87);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.87))}.md-chip.md-theme-default.md-accent,.md-chip.md-theme-default.md-duplicated{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-chip.md-theme-default.md-accent .md-input-action,.md-chip.md-theme-default.md-duplicated .md-input-action{color:#fff;color:var(--md-theme-default-icon-on-disabled,#fff);background-color:rgba(0,0,0,.26);background-color:var(--md-theme-default-disabled,rgba(0,0,0,.26))}.md-chip.md-theme-default.md-accent.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-accent.md-deletable:not(.md-disabled):hover,.md-chip.md-theme-default.md-duplicated.md-clickable:not(.md-disabled):hover,.md-chip.md-theme-default.md-duplicated.md-deletable:not(.md-disabled):hover{background-color:rgba(0,0,0,.54);background-color:var(--md-theme-default-icon,rgba(0,0,0,.54));color:#fff;color:var(--md-theme-default-text-primary-on-icon,#fff)}.md-chip.md-theme-default.md-accent.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-accent.md-deletable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-duplicated.md-clickable:not(.md-disabled):hover .md-input-action,.md-chip.md-theme-default.md-duplicated.md-deletable:not(.md-disabled):hover .md-input-action{background-color:hsla(0,0%,100%,.87);background-color:var(--md-theme-default-background,hsla(0,0%,100%,.87))}.md-chip.md-theme-default.md-disabled{background-color:rgba(0,0,0,.1);background-color:var(--md-theme-default-highlight,rgba(0,0,0,.1));color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent,rgba(0,0,0,.54))}.md-chips.md-theme-default .md-clear{background-color:rgba(0,0,0,.2)}.md-content.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-content.md-theme-default.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-content.md-theme-default.md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-app .md-content.md-theme-default{border-left-color:rgba(0,0,0,.12);border-left-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12));border-right-color:rgba(0,0,0,.12);border-right-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-datepicker-dialog.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-datepicker-dialog.md-theme-default .md-datepicker-header{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-datepicker-dialog.md-theme-default .md-datepicker-body-footer,.md-datepicker-dialog.md-theme-default .md-datepicker-body-header:after,.md-datepicker-dialog.md-theme-default .md-datepicker-body-header:before{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-datepicker-dialog.md-theme-default .md-datepicker-body-footer{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-datepicker-dialog.md-theme-default .md-datepicker-week{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-datepicker-dialog.md-theme-default .md-datepicker-disabled{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-datepicker-dialog.md-theme-default .md-datepicker-today{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-datepicker-dialog.md-theme-default .md-datepicker-day-button:hover,.md-datepicker-dialog.md-theme-default .md-datepicker-month-button:hover,.md-datepicker-dialog.md-theme-default .md-datepicker-year-button:hover{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider,rgba(0,0,0,.12))}.md-datepicker-dialog.md-theme-default .md-datepicker-day-button.md-datepicker-selected{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-datepicker-dialog.md-theme-default .md-datepicker-month-button.md-datepicker-selected,.md-datepicker-dialog.md-theme-default .md-datepicker-year-button.md-datepicker-selected{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-datepicker-dialog.md-theme-default .md-datepicker-year-selector{border-bottom-color:rgba(0,0,0,.12);border-bottom-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-dialog.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-divider.md-theme-default{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider,rgba(0,0,0,.12))}.md-drawer.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-drawer.md-theme-default.md-persistent-mini.md-left{border-right-color:rgba(0,0,0,.12);border-right-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-drawer.md-theme-default.md-persistent-mini.md-right{border-left-color:rgba(0,0,0,.12);border-left-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-empty-state.md-theme-default .md-empty-state-icon.md-icon-image svg{fill:rgba(0,0,0,.26);fill:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-empty-state.md-theme-default .md-empty-state-icon.md-icon-font{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-empty-state.md-theme-default.md-rounded{background-color:rgba(0,0,0,.06);background-color:var(--md-theme-default-disabled,rgba(0,0,0,.06))}.md-empty-state.md-theme-default.md-primary .md-empty-state-icon.md-icon-image svg{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-empty-state.md-theme-default.md-primary .md-empty-state-icon.md-icon-font{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-empty-state.md-theme-default.md-accent .md-empty-state-icon.md-icon-image svg{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-empty-state.md-theme-default.md-accent .md-empty-state-icon.md-icon-font{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-field.md-theme-default:after{background-color:rgba(0,0,0,.42)}.md-field.md-theme-default:before{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-field.md-theme-default .md-count,.md-field.md-theme-default .md-helper-text,.md-field.md-theme-default .md-prefix,.md-field.md-theme-default .md-suffix,.md-field.md-theme-default label{color:rgba(0,0,0,.54)}.md-field.md-theme-default .md-input::-webkit-input-placeholder,.md-field.md-theme-default .md-textarea::-webkit-input-placeholder{color:rgba(0,0,0,.54)}.md-field.md-theme-default.md-focused .md-input,.md-field.md-theme-default.md-focused .md-textarea,.md-field.md-theme-default.md-has-value .md-input,.md-field.md-theme-default.md-has-value .md-textarea{-webkit-text-fill-color:rgba(0,0,0,.87)}.md-field.md-theme-default.md-has-textarea:not(.md-autogrow):after{border-color:rgba(0,0,0,.42)}.md-field.md-theme-default.md-has-textarea:not(.md-autogrow):before{border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-field.md-theme-default.md-disabled:after{background-image:linear-gradient(90deg,rgba(0,0,0,.38),rgba(0,0,0,.38) 33%,transparent 0)}.md-field.md-theme-default.md-disabled .md-input,.md-field.md-theme-default.md-disabled .md-textarea,.md-field.md-theme-default.md-disabled label{color:rgba(0,0,0,.42)}.md-field.md-theme-default>.md-icon:after{background-color:#fafafa;background-color:var(--md-theme-default-background-variant,#fafafa)}.md-field.md-theme-default.md-invalid:after{background-color:#ff1744;background-color:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-invalid.md-has-textarea:not(.md-autogrow):before{border-color:#ff1744;border-color:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-invalid .md-error,.md-field.md-theme-default.md-invalid label{color:#ff1744;color:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-invalid .md-date-icon,.md-field.md-theme-default.md-invalid .md-date-icon svg{color:#ff1744;color:var(--md-theme-default-fieldvariant,#ff1744);fill:#ff1744;fill:var(--md-theme-default-fieldvariant,#ff1744)}.md-field.md-theme-default.md-focused .md-input,.md-field.md-theme-default.md-focused .md-textarea,.md-field.md-theme-default.md-highlight .md-input,.md-field.md-theme-default.md-highlight .md-textarea{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-field.md-theme-default.md-focused>.md-icon,.md-field.md-theme-default.md-highlight>.md-icon{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff);fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-field.md-theme-default.md-focused label{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-field.md-theme-default.md-disabled .md-icon svg{fill:rgba(0,0,0,.26);fill:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-icon.md-theme-default.md-icon-image svg{fill:rgba(0,0,0,.54);fill:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-icon.md-theme-default.md-icon-image svg.md-primary{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-icon.md-theme-default.md-icon-image svg.md-accent{fill:#ff5252;fill:var(--md-theme-default-accent-on-background,#ff5252)}.md-icon.md-theme-default.md-icon-font{color:rgba(0,0,0,.54);color:var(--md-theme-default-icon-on-background,rgba(0,0,0,.54))}.md-icon.md-theme-default.md-icon-font.md-primary{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-icon.md-theme-default.md-icon-font.md-accent{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-list.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-list.md-theme-default.md-double-line .md-list-item-text :nth-child(2),.md-list.md-theme-default.md-triple-line .md-list-item-text :nth-child(3){color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-list.md-theme-default .md-highlight .md-list-item-container{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-list.md-theme-default .md-list-item-container{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-list.md-theme-default .md-list-item-container:not(.md-list-item-default):not(.md-list-item-expand):not([disabled]):hover{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12));color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-list.md-theme-default [disabled]{color:rgba(0,0,0,.26);color:var(--md-theme-default-disabled-on-background,rgba(0,0,0,.26))}.md-list.md-theme-default .md-selected .md-list-item-content,.md-list.md-theme-default .router-link-active .md-list-item-content{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-list.md-theme-default .md-list-item-expand.md-active{border-color:rgba(0,0,0,.12);border-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-list.md-theme-default .md-list-item-expand:not(.md-list-item-default):not([disabled])>.md-list-item-content:hover{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12));color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-menu-item.md-theme-default.md-primary .md-list-item-button,.md-menu-item.md-theme-default.md-primary .md-list-item-link,.md-menu-item.md-theme-default.md-primary .md-list-item-router{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-menu-item.md-theme-default.md-accent .md-list-item-button,.md-menu-item.md-theme-default.md-accent .md-list-item-link,.md-menu-item.md-theme-default.md-accent .md-list-item-router{color:#ff5252;color:var(--md-theme-default-accent-on-background,#ff5252)}.md-progress-bar.md-theme-default.md-indeterminate,.md-progress-bar.md-theme-default.md-query{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-indeterminate .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-indeterminate .md-progress-bar-track:after,.md-progress-bar.md-theme-default.md-query .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-query .md-progress-bar-track:after{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-progress-bar.md-theme-default.md-indeterminate.md-accent,.md-progress-bar.md-theme-default.md-query.md-accent{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-bar.md-theme-default.md-indeterminate.md-accent .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-indeterminate.md-accent .md-progress-bar-track:after,.md-progress-bar.md-theme-default.md-query.md-accent .md-progress-bar-fill:after,.md-progress-bar.md-theme-default.md-query.md-accent .md-progress-bar-track:after{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-progress-bar.md-theme-default.md-determinate{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-determinate .md-progress-bar-fill{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-progress-bar.md-theme-default.md-determinate.md-accent{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-bar.md-theme-default.md-determinate.md-accent .md-progress-bar-fill{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-progress-bar.md-theme-default.md-buffer .md-progress-bar-fill{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-progress-bar.md-theme-default.md-buffer .md-progress-bar-track{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-buffer .md-progress-bar-buffer{border-color:rgba(68,138,255,.38);border-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-progress-bar.md-theme-default.md-buffer.md-accent .md-progress-bar-fill{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-progress-bar.md-theme-default.md-buffer.md-accent .md-progress-bar-track{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-bar.md-theme-default.md-buffer.md-accent .md-progress-bar-buffer{border-color:rgba(255,82,82,.38);border-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-progress-spinner.md-theme-default .md-progress-spinner-circle{stroke:#448aff;stroke:var(--md-theme-default-primary,#448aff)}.md-progress-spinner.md-theme-default.md-accent .md-progress-spinner-circle{stroke:#ff5252;stroke:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked .md-radio-container{border-color:#ff5252;border-color:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked .md-radio-container:after{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked .md-ripple{color:#ff5252;color:var(--md-theme-default-accent,#ff5252)}.md-radio.md-theme-default.md-checked.md-primary .md-radio-container{border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-radio.md-theme-default.md-checked.md-primary .md-radio-container:after{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-radio.md-theme-default.md-checked.md-primary .md-ripple{color:#448aff;color:var(--md-theme-default-primary,#448aff)}.md-radio.md-theme-default .md-radio-container{border-color:rgba(0,0,0,.54)}.md-radio.md-theme-default.md-disabled.md-checked .md-radio-container,.md-radio.md-theme-default.md-disabled .md-radio-container{border-color:rgba(0,0,0,.26)}.md-radio.md-theme-default.md-disabled.md-checked .md-radio-container:after{background-color:rgba(0,0,0,.26)}.md-snackbar.md-theme-default{color:#fff;color:var(--md-theme-default-text-primary-on-text-primary,#fff);background-color:#323232}.md-steppers.md-theme-default{background-color:#fff;background-color:var(--md-theme-default-background,#fff);color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-steppers.md-theme-default .md-stepper-icon:after,.md-steppers.md-theme-default .md-stepper-icon:before,.md-steppers.md-theme-default .md-stepper-number:after,.md-steppers.md-theme-default .md-stepper-number:before,.md-steppers.md-theme-default .md-stepper:after,.md-steppers.md-theme-default .md-stepper:before{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-steppers.md-theme-default .md-stepper-number{background-color:rgba(0,0,0,.38);background-color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38));color:#fff;color:var(--md-theme-default-text-primary-on-text-hint,#fff)}.md-steppers.md-theme-default .md-stepper-number svg{color:#fff;color:var(--md-theme-default-text-primary-on-text-hint,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-text-hint,#fff)}.md-steppers.md-theme-default .md-stepper-header .md-button-content{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-hint-on-background,rgba(0,0,0,.38))}.md-steppers.md-theme-default .md-stepper-header .md-button-content:after,.md-steppers.md-theme-default .md-stepper-header .md-button-content:before{background-color:rgba(0,0,0,.12);background-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-steppers.md-theme-default .md-stepper-header.md-active .md-button-content,.md-steppers.md-theme-default .md-stepper-header.md-done .md-button-content{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-steppers.md-theme-default .md-stepper-header.md-active .md-stepper-number,.md-steppers.md-theme-default .md-stepper-header.md-done .md-stepper-number{background-color:#448aff;background-color:var(--md-theme-default-primary-on-background,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-steppers.md-theme-default .md-stepper-header.md-active .md-stepper-number svg,.md-steppers.md-theme-default .md-stepper-header.md-done .md-stepper-number svg{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff);fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-steppers.md-theme-default .md-stepper-header.md-error .md-button-content{color:#ff1744;color:var(--md-theme-default-steppervariant,#ff1744)}.md-steppers.md-theme-default .md-stepper-header.md-error .md-icon svg{color:#ff1744;color:var(--md-theme-default-steppervariant,#ff1744);fill:#ff1744;fill:var(--md-theme-default-steppervariant,#ff1744)}.md-subheader.md-theme-default{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-subheader.md-theme-default.md-primary{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-switch.md-theme-default.md-checked .md-switch-container{background-color:rgba(255,82,82,.38);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.38))}.md-switch.md-theme-default.md-checked .md-switch-thumb{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-switch.md-theme-default.md-checked .md-ripple{color:#ff5252;color:var(--md-theme-default-accent,#ff5252)}.md-switch.md-theme-default.md-checked.md-primary .md-switch-container{background-color:rgba(68,138,255,.38);background-color:var(--md-theme-default-primary-on-,rgba(68,138,255,.38))}.md-switch.md-theme-default.md-checked.md-primary .md-switch-thumb{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-switch.md-theme-default.md-checked.md-primary .md-ripple{color:#448aff;color:var(--md-theme-default-primary,#448aff)}.md-switch.md-theme-default .md-switch-container{background-color:rgba(0,0,0,.38)}.md-switch.md-theme-default .md-switch-thumb{background-color:#f5f5f5;background-color:var(--md-theme-default-switchvariant,#f5f5f5)}.md-switch.md-theme-default.md-disabled .md-switch-container{background-color:rgba(0,0,0,.12)}.md-switch.md-theme-default.md-disabled .md-switch-thumb{background-color:#bdbdbd;background-color:var(--md-theme-default-switchvariant,#bdbdbd)}.md-table.md-theme-default .md-table-alternate-header,.md-table.md-theme-default .md-table-content{background-color:#fff;background-color:var(--md-theme-default-background,#fff)}.md-table.md-theme-default .md-table-alternate-header .md-table-toolbar{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87));background-color:rgba(255,82,82,.2);background-color:var(--md-theme-default-accent-on-,rgba(255,82,82,.2))}.md-table.md-theme-default .md-table-row:hover:not(.md-header-row) .md-table-cell{background-color:rgba(0,0,0,.08);background-color:var(--md-theme-default-highlight-on-background,rgba(0,0,0,.08))}.md-table.md-theme-default .md-table-row.md-selected,.md-table.md-theme-default .md-table-row.md-selected-single{background-color:#f5f5f5;background-color:var(--md-theme-default-rowvariant,#f5f5f5)}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary,.md-table.md-theme-default .md-table-row.md-selected.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary-on-background,#448aff);color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary .md-ripple,.md-table.md-theme-default .md-table-row.md-selected.md-primary .md-ripple{color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary .md-checkbox-container,.md-table.md-theme-default .md-table-row.md-selected.md-primary .md-checkbox-container{background-color:#fff;border-color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-primary .md-checkbox-container:after,.md-table.md-theme-default .md-table-row.md-selected.md-primary .md-checkbox-container:after{border-color:#448aff;border-color:var(--md-theme-default-primary,#448aff)}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent,.md-table.md-theme-default .md-table-row.md-selected.md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent-on-background,#ff5252);color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent .md-ripple,.md-table.md-theme-default .md-table-row.md-selected.md-accent .md-ripple{color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent .md-checkbox-container,.md-table.md-theme-default .md-table-row.md-selected.md-accent .md-checkbox-container{background-color:#fff;border-color:#fff}.md-table.md-theme-default .md-table-row.md-selected-single.md-accent .md-checkbox-container:after,.md-table.md-theme-default .md-table-row.md-selected.md-accent .md-checkbox-container:after{border-color:#ff5252;border-color:var(--md-theme-default-accent,#ff5252)}.md-table.md-theme-default .md-table-row td{border-top-color:rgba(0,0,0,.12);border-top-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-table.md-theme-default .md-table-head{color:rgba(0,0,0,.54);color:var(--md-theme-default-text-accent-on-background,rgba(0,0,0,.54))}.md-table.md-theme-default .md-table-fixed-header-active{border-bottom-color:rgba(0,0,0,.12);border-bottom-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-table.md-theme-default .md-sortable.md-sorted,.md-table.md-theme-default .md-sortable:hover{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-table.md-theme-default .md-sortable.md-sorted svg,.md-table.md-theme-default .md-sortable:hover svg{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87));fill:rgba(0,0,0,.87);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-table.md-theme-default .md-table-pagination{border-top-color:rgba(0,0,0,.12);border-top-color:var(--md-theme-default-divider-on-background,rgba(0,0,0,.12))}.md-tabs.md-theme-default .md-tabs-navigation{background-color:#fff;background-color:var(--md-theme-default-background-on-background,#fff)}.md-tabs.md-theme-default .md-tabs-navigation .md-button{color:rgba(0,0,0,.7);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.7))}.md-tabs.md-theme-default .md-tabs-navigation .md-button[disabled]{color:rgba(0,0,0,.38);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.38))}.md-tabs.md-theme-default .md-tabs-navigation .md-button .md-icon{color:rgba(0,0,0,.7);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.7))}.md-tabs.md-theme-default .md-tabs-navigation .md-button .md-icon svg{fill:rgba(0,0,0,.7);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.7))}.md-tabs.md-theme-default .md-tabs-navigation .md-button.md-active,.md-tabs.md-theme-default .md-tabs-navigation .md-button.md-active .md-icon{color:#448aff;color:var(--md-theme-default-primary-on-background,#448aff)}.md-tabs.md-theme-default .md-tabs-navigation .md-button.md-active .md-icon svg{fill:#448aff;fill:var(--md-theme-default-primary-on-background,#448aff)}.md-tabs.md-theme-default.md-primary .md-tabs-navigation,.md-tabs.md-theme-default .md-tabs-indicator{background-color:#448aff;background-color:var(--md-theme-default-primary-on-background,#448aff)}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button[disabled]{color:hsla(0,0%,100%,.38);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.38))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button .md-icon{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button .md-icon svg{fill:hsla(0,0%,100%,.7);fill:var(--md-theme-default-text-primary-on-primary,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button.md-active,.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button.md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-tabs.md-theme-default.md-primary .md-tabs-navigation .md-button.md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-tabs.md-theme-default.md-primary .md-tabs-indicator{background-color:#fff;background-color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-tabs.md-theme-default.md-accent .md-tabs-navigation{background-color:#ff5252;background-color:var(--md-theme-default-accent-on-background,#ff5252)}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button[disabled]{color:hsla(0,0%,100%,.38);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.38))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button .md-icon{color:hsla(0,0%,100%,.7);color:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button .md-icon svg{fill:hsla(0,0%,100%,.7);fill:var(--md-theme-default-text-primary-on-accent,hsla(0,0%,100%,.7))}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button.md-active,.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button.md-active .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-tabs.md-theme-default.md-accent .md-tabs-navigation .md-button.md-active .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-tabs.md-theme-default.md-accent .md-tabs-indicator{background-color:#fff;background-color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default{background-color:#f5f5f5;background-color:var(--md-theme-default-toolbarvariant,#f5f5f5)}.md-toolbar.md-theme-default,.md-toolbar.md-theme-default .md-icon{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-toolbar.md-theme-default .md-icon svg{fill:rgba(0,0,0,.87);fill:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-toolbar.md-theme-default .md-display-1,.md-toolbar.md-theme-default .md-display-2,.md-toolbar.md-theme-default .md-title{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background-variant,rgba(0,0,0,.87))}.md-toolbar.md-theme-default.md-primary{background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}.md-toolbar.md-theme-default.md-primary,.md-toolbar.md-theme-default.md-primary .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar.md-theme-default.md-primary .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar.md-theme-default.md-primary .md-button:not([disabled]):not(.md-raised),.md-toolbar.md-theme-default.md-primary .md-display-1,.md-toolbar.md-theme-default.md-primary .md-display-2,.md-toolbar.md-theme-default.md-primary .md-title{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff)}.md-toolbar.md-theme-default.md-accent{background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-toolbar.md-theme-default.md-accent,.md-toolbar.md-theme-default.md-accent .md-icon{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default.md-accent .md-icon svg{fill:#fff;fill:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default.md-accent .md-button:not([disabled]):not(.md-raised),.md-toolbar.md-theme-default.md-accent .md-display-1,.md-toolbar.md-theme-default.md-accent .md-display-2,.md-toolbar.md-theme-default.md-accent .md-title{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff)}.md-toolbar.md-theme-default.md-transparent{background-color:transparent}.md-toolbar.md-theme-default.md-transparent,.md-toolbar.md-theme-default.md-transparent .md-icon{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-toolbar.md-theme-default.md-transparent .md-icon svg{fill:rgba(0,0,0,.87);fill:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-toolbar.md-theme-default.md-transparent .md-display-1,.md-toolbar.md-theme-default.md-transparent .md-display-2,.md-toolbar.md-theme-default.md-transparent .md-title{color:rgba(0,0,0,.87);color:var(--md-theme-default-text-primary-on-background,rgba(0,0,0,.87))}.md-tooltip.md-theme-default{color:#fff;color:var(--md-theme-default-text-primary-on-tooltip,#fff);background-color:rgba(97,97,97,.9);background-color:var(--md-theme-default-tooltip-on-background,rgba(97,97,97,.9))}.md-badge.md-theme-default{color:#fff;color:var(--md-theme-default-text-primary-on-accent,#fff);background-color:#ff5252;background-color:var(--md-theme-default-accent,#ff5252)}.md-badge.md-theme-default.md-primary{color:#fff;color:var(--md-theme-default-text-primary-on-primary,#fff);background-color:#448aff;background-color:var(--md-theme-default-primary,#448aff)}",""]),t.exports=e},function(t,e,n){!function(t,e,n){"use strict";function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t){var n=this,r=!1;return e(this).one(l.TRANSITION_END,(function(){r=!0})),setTimeout((function(){r||l.triggerTransitionEnd(n)}),t),this}e=e&&e.hasOwnProperty("default")?e.default:e,n=n&&n.hasOwnProperty("default")?n.default:n;var l={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var n=e(t).css("transition-duration"),r=e(t).css("transition-delay"),i=parseFloat(n),o=parseFloat(r);return i||o?(n=n.split(",")[0],r=r.split(",")[0],1e3*(parseFloat(n)+parseFloat(r))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){e(t).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r],o=e[r],a=o&&l.isElement(o)?"element":(s=o,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(i).test(a))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+a+'" but expected type "'+i+'".')}var s},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){var e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?l.findShadowRoot(t.parentNode):null},jQueryDetection:function(){if(void 0===e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};l.jQueryDetection(),e.fn.emulateTransitionEnd=u,e.event.special[l.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var c="alert",f=e.fn[c],d={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},h="alert",p="fade",m="show",v=function(){function t(t){this._element=t}var n=t.prototype;return n.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},n.dispose=function(){e.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(t){var n=l.getSelectorFromElement(t),r=!1;return n&&(r=document.querySelector(n)),r||(r=e(t).closest("."+h)[0]),r},n._triggerCloseEvent=function(t){var n=e.Event(d.CLOSE);return e(t).trigger(n),n},n._removeElement=function(t){var n=this;if(e(t).removeClass(m),e(t).hasClass(p)){var r=l.getTransitionDurationFromElement(t);e(t).one(l.TRANSITION_END,(function(e){return n._destroyElement(t,e)})).emulateTransitionEnd(r)}else this._destroyElement(t)},n._destroyElement=function(t){e(t).detach().trigger(d.CLOSED).remove()},t._jQueryInterface=function(n){return this.each((function(){var r=e(this),i=r.data("bs.alert");i||(i=new t(this),r.data("bs.alert",i)),"close"===n&&i[n](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},i(t,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),t}();e(document).on(d.CLICK_DATA_API,'[data-dismiss="alert"]',v._handleDismiss(new v)),e.fn[c]=v._jQueryInterface,e.fn[c].Constructor=v,e.fn[c].noConflict=function(){return e.fn[c]=f,v._jQueryInterface};var g=e.fn.button,b="active",y="btn",w="focus",_='[data-toggle^="button"]',k='[data-toggle="buttons"]',M='[data-toggle="button"]',x='[data-toggle="buttons"] .btn',S='input:not([type="hidden"])',C=".active",A=".btn",T={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api",LOAD_DATA_API:"load.bs.button.data-api"},E=function(){function t(t){this._element=t}var n=t.prototype;return n.toggle=function(){var t=!0,n=!0,r=e(this._element).closest(k)[0];if(r){var i=this._element.querySelector(S);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(b))t=!1;else{var o=r.querySelector(C);o&&e(o).removeClass(b)}else"checkbox"===i.type?"LABEL"===this._element.tagName&&i.checked===this._element.classList.contains(b)&&(t=!1):t=!1;t&&(i.checked=!this._element.classList.contains(b),e(i).trigger("change")),i.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(b)),t&&e(this._element).toggleClass(b))},n.dispose=function(){e.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(n){return this.each((function(){var r=e(this).data("bs.button");r||(r=new t(this),e(this).data("bs.button",r)),"toggle"===n&&r[n]()}))},i(t,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),t}();e(document).on(T.CLICK_DATA_API,_,(function(t){var n=t.target;if(e(n).hasClass(y)||(n=e(n).closest(A)[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))t.preventDefault();else{var r=n.querySelector(S);if(r&&(r.hasAttribute("disabled")||r.classList.contains("disabled")))return void t.preventDefault();E._jQueryInterface.call(e(n),"toggle")}})).on(T.FOCUS_BLUR_DATA_API,_,(function(t){var n=e(t.target).closest(A)[0];e(n).toggleClass(w,/^focus(in)?$/.test(t.type))})),e(window).on(T.LOAD_DATA_API,(function(){for(var t=[].slice.call(document.querySelectorAll(x)),e=0,n=t.length;e<n;e++){var r=t[e],i=r.querySelector(S);i.checked||i.hasAttribute("checked")?r.classList.add(b):r.classList.remove(b)}for(var o=0,a=(t=[].slice.call(document.querySelectorAll(M))).length;o<a;o++){var s=t[o];"true"===s.getAttribute("aria-pressed")?s.classList.add(b):s.classList.remove(b)}})),e.fn.button=E._jQueryInterface,e.fn.button.Constructor=E,e.fn.button.noConflict=function(){return e.fn.button=g,E._jQueryInterface};var O="carousel",P=".bs.carousel",I=e.fn[O],R={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},j={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},D="next",N="prev",L="left",B="right",z={SLIDE:"slide"+P,SLID:"slid"+P,KEYDOWN:"keydown"+P,MOUSEENTER:"mouseenter"+P,MOUSELEAVE:"mouseleave"+P,TOUCHSTART:"touchstart"+P,TOUCHMOVE:"touchmove"+P,TOUCHEND:"touchend"+P,POINTERDOWN:"pointerdown"+P,POINTERUP:"pointerup"+P,DRAG_START:"dragstart"+P,LOAD_DATA_API:"load"+P+".data-api",CLICK_DATA_API:"click"+P+".data-api"},F="carousel",q="active",V="slide",$="carousel-item-right",H="carousel-item-left",U="carousel-item-next",W="carousel-item-prev",K="pointer-event",Y=".active",G=".active.carousel-item",Z=".carousel-item",J=".carousel-item img",X=".carousel-item-next, .carousel-item-prev",Q=".carousel-indicators",tt="[data-slide], [data-slide-to]",et='[data-ride="carousel"]',nt={TOUCH:"touch",PEN:"pen"},rt=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(e),this._element=t,this._indicatorsElement=this._element.querySelector(Q),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=t.prototype;return n.next=function(){this._isSliding||this._slide(D)},n.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(N)},n.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(X)&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(t){var n=this;this._activeElement=this._element.querySelector(G);var r=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)e(this._element).one(z.SLID,(function(){return n.to(t)}));else{if(r===t)return this.pause(),void this.cycle();var i=t>r?D:N;this._slide(i,this._items[t])}},n.dispose=function(){e(this._element).off(P),e.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(t){return t=s({},R,{},t),l.typeCheckConfig(O,t,j),t},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},n._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on(z.KEYDOWN,(function(e){return t._keydown(e)})),"hover"===this._config.pause&&e(this._element).on(z.MOUSEENTER,(function(e){return t.pause(e)})).on(z.MOUSELEAVE,(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var n=function(e){t._pointerEvent&&nt[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},r=function(e){t._pointerEvent&&nt[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};e(this._element.querySelectorAll(J)).on(z.DRAG_START,(function(t){return t.preventDefault()})),this._pointerEvent?(e(this._element).on(z.POINTERDOWN,(function(t){return n(t)})),e(this._element).on(z.POINTERUP,(function(t){return r(t)})),this._element.classList.add(K)):(e(this._element).on(z.TOUCHSTART,(function(t){return n(t)})),e(this._element).on(z.TOUCHMOVE,(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),e(this._element).on(z.TOUCHEND,(function(t){return r(t)})))}},n._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},n._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(Z)):[],this._items.indexOf(t)},n._getItemByDirection=function(t,e){var n=t===D,r=t===N,i=this._getItemIndex(e),o=this._items.length-1;if((r&&0===i||n&&i===o)&&!this._config.wrap)return e;var a=(i+(t===N?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},n._triggerSlideEvent=function(t,n){var r=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(G)),o=e.Event(z.SLIDE,{relatedTarget:t,direction:n,from:i,to:r});return e(this._element).trigger(o),o},n._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(Y));e(n).removeClass(q);var r=this._indicatorsElement.children[this._getItemIndex(t)];r&&e(r).addClass(q)}},n._slide=function(t,n){var r,i,o,a=this,s=this._element.querySelector(G),u=this._getItemIndex(s),c=n||s&&this._getItemByDirection(t,s),f=this._getItemIndex(c),d=Boolean(this._interval);if(t===D?(r=H,i=U,o=L):(r=$,i=W,o=B),c&&e(c).hasClass(q))this._isSliding=!1;else if(!this._triggerSlideEvent(c,o).isDefaultPrevented()&&s&&c){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(c);var h=e.Event(z.SLID,{relatedTarget:c,direction:o,from:u,to:f});if(e(this._element).hasClass(V)){e(c).addClass(i),l.reflow(c),e(s).addClass(r),e(c).addClass(r);var p=parseInt(c.getAttribute("data-interval"),10);p?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=p):this._config.interval=this._config.defaultInterval||this._config.interval;var m=l.getTransitionDurationFromElement(s);e(s).one(l.TRANSITION_END,(function(){e(c).removeClass(r+" "+i).addClass(q),e(s).removeClass(q+" "+i+" "+r),a._isSliding=!1,setTimeout((function(){return e(a._element).trigger(h)}),0)})).emulateTransitionEnd(m)}else e(s).removeClass(q),e(c).addClass(q),this._isSliding=!1,e(this._element).trigger(h);d&&this.cycle()}},t._jQueryInterface=function(n){return this.each((function(){var r=e(this).data("bs.carousel"),i=s({},R,{},e(this).data());"object"==typeof n&&(i=s({},i,{},n));var o="string"==typeof n?n:i.slide;if(r||(r=new t(this,i),e(this).data("bs.carousel",r)),"number"==typeof n)r.to(n);else if("string"==typeof o){if(void 0===r[o])throw new TypeError('No method named "'+o+'"');r[o]()}else i.interval&&i.ride&&(r.pause(),r.cycle())}))},t._dataApiClickHandler=function(n){var r=l.getSelectorFromElement(this);if(r){var i=e(r)[0];if(i&&e(i).hasClass(F)){var o=s({},e(i).data(),{},e(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),t._jQueryInterface.call(e(i),o),a&&e(i).data("bs.carousel").to(a),n.preventDefault()}}},i(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return R}}]),t}();e(document).on(z.CLICK_DATA_API,tt,rt._dataApiClickHandler),e(window).on(z.LOAD_DATA_API,(function(){for(var t=[].slice.call(document.querySelectorAll(et)),n=0,r=t.length;n<r;n++){var i=e(t[n]);rt._jQueryInterface.call(i,i.data())}})),e.fn[O]=rt._jQueryInterface,e.fn[O].Constructor=rt,e.fn[O].noConflict=function(){return e.fn[O]=I,rt._jQueryInterface};var it="collapse",ot=e.fn[it],at={toggle:!0,parent:""},st={toggle:"boolean",parent:"(string|element)"},ut={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},lt="show",ct="collapse",ft="collapsing",dt="collapsed",ht="width",pt="height",mt=".show, .collapsing",vt='[data-toggle="collapse"]',gt=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(vt)),r=0,i=n.length;r<i;r++){var o=n[r],a=l.getSelectorFromElement(o),s=[].slice.call(document.querySelectorAll(a)).filter((function(e){return e===t}));null!==a&&s.length>0&&(this._selector=a,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=t.prototype;return n.toggle=function(){e(this._element).hasClass(lt)?this.hide():this.show()},n.show=function(){var n,r,i=this;if(!(this._isTransitioning||e(this._element).hasClass(lt)||(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(mt)).filter((function(t){return"string"==typeof i._config.parent?t.getAttribute("data-parent")===i._config.parent:t.classList.contains(ct)}))).length&&(n=null),n&&(r=e(n).not(this._selector).data("bs.collapse"))&&r._isTransitioning))){var o=e.Event(ut.SHOW);if(e(this._element).trigger(o),!o.isDefaultPrevented()){n&&(t._jQueryInterface.call(e(n).not(this._selector),"hide"),r||e(n).data("bs.collapse",null));var a=this._getDimension();e(this._element).removeClass(ct).addClass(ft),this._element.style[a]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(dt).attr("aria-expanded",!0),this.setTransitioning(!0);var s="scroll"+(a[0].toUpperCase()+a.slice(1)),u=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,(function(){e(i._element).removeClass(ft).addClass(ct).addClass(lt),i._element.style[a]="",i.setTransitioning(!1),e(i._element).trigger(ut.SHOWN)})).emulateTransitionEnd(u),this._element.style[a]=this._element[s]+"px"}}},n.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass(lt)){var n=e.Event(ut.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",l.reflow(this._element),e(this._element).addClass(ft).removeClass(ct).removeClass(lt);var i=this._triggerArray.length;if(i>0)for(var o=0;o<i;o++){var a=this._triggerArray[o],s=l.getSelectorFromElement(a);null!==s&&(e([].slice.call(document.querySelectorAll(s))).hasClass(lt)||e(a).addClass(dt).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[r]="";var u=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,(function(){t.setTransitioning(!1),e(t._element).removeClass(ft).addClass(ct).trigger(ut.HIDDEN)})).emulateTransitionEnd(u)}}},n.setTransitioning=function(t){this._isTransitioning=t},n.dispose=function(){e.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},n._getConfig=function(t){return(t=s({},at,{},t)).toggle=Boolean(t.toggle),l.typeCheckConfig(it,t,st),t},n._getDimension=function(){return e(this._element).hasClass(ht)?ht:pt},n._getParent=function(){var n,r=this;l.isElement(this._config.parent)?(n=this._config.parent,void 0!==this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(n.querySelectorAll(i));return e(o).each((function(e,n){r._addAriaAndCollapsedClass(t._getTargetFromElement(n),[n])})),n},n._addAriaAndCollapsedClass=function(t,n){var r=e(t).hasClass(lt);n.length&&e(n).toggleClass(dt,!r).attr("aria-expanded",r)},t._getTargetFromElement=function(t){var e=l.getSelectorFromElement(t);return e?document.querySelector(e):null},t._jQueryInterface=function(n){return this.each((function(){var r=e(this),i=r.data("bs.collapse"),o=s({},at,{},r.data(),{},"object"==typeof n&&n?n:{});if(!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||(i=new t(this,o),r.data("bs.collapse",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},i(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return at}}]),t}();e(document).on(ut.CLICK_DATA_API,vt,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=e(this),r=l.getSelectorFromElement(this),i=[].slice.call(document.querySelectorAll(r));e(i).each((function(){var t=e(this),r=t.data("bs.collapse")?"toggle":n.data();gt._jQueryInterface.call(t,r)}))})),e.fn[it]=gt._jQueryInterface,e.fn[it].Constructor=gt,e.fn[it].noConflict=function(){return e.fn[it]=ot,gt._jQueryInterface};var bt="dropdown",yt=e.fn[bt],wt=new RegExp("38|40|27"),_t={HIDE:"hide.bs.dropdown",HIDDEN:"hidden.bs.dropdown",SHOW:"show.bs.dropdown",SHOWN:"shown.bs.dropdown",CLICK:"click.bs.dropdown",CLICK_DATA_API:"click.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api",KEYUP_DATA_API:"keyup.bs.dropdown.data-api"},kt="disabled",Mt="show",xt="dropup",St="dropright",Ct="dropleft",At="dropdown-menu-right",Tt="position-static",Et='[data-toggle="dropdown"]',Ot=".dropdown form",Pt=".dropdown-menu",It=".navbar-nav",Rt=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",jt="top-start",Dt="top-end",Nt="bottom-start",Lt="bottom-end",Bt="right-start",zt="left-start",Ft={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},qt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},Vt=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var r=t.prototype;return r.toggle=function(){if(!this._element.disabled&&!e(this._element).hasClass(kt)){var n=e(this._menu).hasClass(Mt);t._clearMenus(),n||this.show(!0)}},r.show=function(r){if(void 0===r&&(r=!1),!(this._element.disabled||e(this._element).hasClass(kt)||e(this._menu).hasClass(Mt))){var i={relatedTarget:this._element},o=e.Event(_t.SHOW,i),a=t._getParentFromElement(this._element);if(e(a).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&r){if(void 0===n)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var s=this._element;"parent"===this._config.reference?s=a:l.isElement(this._config.reference)&&(s=this._config.reference,void 0!==this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(a).addClass(Tt),this._popper=new n(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(a).closest(It).length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(Mt),e(a).toggleClass(Mt).trigger(e.Event(_t.SHOWN,i))}}},r.hide=function(){if(!this._element.disabled&&!e(this._element).hasClass(kt)&&e(this._menu).hasClass(Mt)){var n={relatedTarget:this._element},r=e.Event(_t.HIDE,n),i=t._getParentFromElement(this._element);e(i).trigger(r),r.isDefaultPrevented()||(this._popper&&this._popper.destroy(),e(this._menu).toggleClass(Mt),e(i).toggleClass(Mt).trigger(e.Event(_t.HIDDEN,n)))}},r.dispose=function(){e.removeData(this._element,"bs.dropdown"),e(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},r.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},r._addEventListeners=function(){var t=this;e(this._element).on(_t.CLICK,(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},r._getConfig=function(t){return t=s({},this.constructor.Default,{},e(this._element).data(),{},t),l.typeCheckConfig(bt,t,this.constructor.DefaultType),t},r._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(Pt))}return this._menu},r._getPlacement=function(){var t=e(this._element.parentNode),n=Nt;return t.hasClass(xt)?(n=jt,e(this._menu).hasClass(At)&&(n=Dt)):t.hasClass(St)?n=Bt:t.hasClass(Ct)?n=zt:e(this._menu).hasClass(At)&&(n=Lt),n},r._detectNavbar=function(){return e(this._element).closest(".navbar").length>0},r._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,{},t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},r._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),s({},t,{},this._config.popperConfig)},t._jQueryInterface=function(n){return this.each((function(){var r=e(this).data("bs.dropdown");if(r||(r=new t(this,"object"==typeof n?n:null),e(this).data("bs.dropdown",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},t._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var r=[].slice.call(document.querySelectorAll(Et)),i=0,o=r.length;i<o;i++){var a=t._getParentFromElement(r[i]),s=e(r[i]).data("bs.dropdown"),u={relatedTarget:r[i]};if(n&&"click"===n.type&&(u.clickEvent=n),s){var l=s._menu;if(e(a).hasClass(Mt)&&!(n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"keyup"===n.type&&9===n.which)&&e.contains(a,n.target))){var c=e.Event(_t.HIDE,u);e(a).trigger(c),c.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),r[i].setAttribute("aria-expanded","false"),s._popper&&s._popper.destroy(),e(l).removeClass(Mt),e(a).removeClass(Mt).trigger(e.Event(_t.HIDDEN,u)))}}}},t._getParentFromElement=function(t){var e,n=l.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},t._dataApiKeydownHandler=function(n){if(!(/input|textarea/i.test(n.target.tagName)?32===n.which||27!==n.which&&(40!==n.which&&38!==n.which||e(n.target).closest(Pt).length):!wt.test(n.which))&&(n.preventDefault(),n.stopPropagation(),!this.disabled&&!e(this).hasClass(kt))){var r=t._getParentFromElement(this),i=e(r).hasClass(Mt);if(i||27!==n.which)if(i&&(!i||27!==n.which&&32!==n.which)){var o=[].slice.call(r.querySelectorAll(Rt)).filter((function(t){return e(t).is(":visible")}));if(0!==o.length){var a=o.indexOf(n.target);38===n.which&&a>0&&a--,40===n.which&&a<o.length-1&&a++,a<0&&(a=0),o[a].focus()}}else{if(27===n.which){var s=r.querySelector(Et);e(s).trigger("focus")}e(this).trigger("click")}}},i(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Ft}},{key:"DefaultType",get:function(){return qt}}]),t}();e(document).on(_t.KEYDOWN_DATA_API,Et,Vt._dataApiKeydownHandler).on(_t.KEYDOWN_DATA_API,Pt,Vt._dataApiKeydownHandler).on(_t.CLICK_DATA_API+" "+_t.KEYUP_DATA_API,Vt._clearMenus).on(_t.CLICK_DATA_API,Et,(function(t){t.preventDefault(),t.stopPropagation(),Vt._jQueryInterface.call(e(this),"toggle")})).on(_t.CLICK_DATA_API,Ot,(function(t){t.stopPropagation()})),e.fn[bt]=Vt._jQueryInterface,e.fn[bt].Constructor=Vt,e.fn[bt].noConflict=function(){return e.fn[bt]=yt,Vt._jQueryInterface};var $t=e.fn.modal,Ht={backdrop:!0,keyboard:!0,focus:!0,show:!0},Ut={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},Wt={HIDE:"hide.bs.modal",HIDE_PREVENTED:"hidePrevented.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},Kt="modal-dialog-scrollable",Yt="modal-scrollbar-measure",Gt="modal-backdrop",Zt="modal-open",Jt="fade",Xt="show",Qt="modal-static",te=".modal-dialog",ee=".modal-body",ne='[data-toggle="modal"]',re='[data-dismiss="modal"]',ie=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",oe=".sticky-top",ae=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(te),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var n=t.prototype;return n.toggle=function(t){return this._isShown?this.hide():this.show(t)},n.show=function(t){var n=this;if(!this._isShown&&!this._isTransitioning){e(this._element).hasClass(Jt)&&(this._isTransitioning=!0);var r=e.Event(Wt.SHOW,{relatedTarget:t});e(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(Wt.CLICK_DISMISS,re,(function(t){return n.hide(t)})),e(this._dialog).on(Wt.MOUSEDOWN_DISMISS,(function(){e(n._element).one(Wt.MOUSEUP_DISMISS,(function(t){e(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return n._showElement(t)})))}},n.hide=function(t){var n=this;if(t&&t.preventDefault(),this._isShown&&!this._isTransitioning){var r=e.Event(Wt.HIDE);if(e(this._element).trigger(r),this._isShown&&!r.isDefaultPrevented()){this._isShown=!1;var i=e(this._element).hasClass(Jt);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(Wt.FOCUSIN),e(this._element).removeClass(Xt),e(this._element).off(Wt.CLICK_DISMISS),e(this._dialog).off(Wt.MOUSEDOWN_DISMISS),i){var o=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,(function(t){return n._hideModal(t)})).emulateTransitionEnd(o)}else this._hideModal()}}},n.dispose=function(){[window,this._element,this._dialog].forEach((function(t){return e(t).off(".bs.modal")})),e(document).off(Wt.FOCUSIN),e.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(t){return t=s({},Ht,{},t),l.typeCheckConfig("modal",t,Ut),t},n._triggerBackdropTransition=function(){var t=this;if("static"===this._config.backdrop){var n=e.Event(Wt.HIDE_PREVENTED);if(e(this._element).trigger(n),n.defaultPrevented)return;this._element.classList.add(Qt);var r=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,(function(){t._element.classList.remove(Qt)})).emulateTransitionEnd(r),this._element.focus()}else this.hide()},n._showElement=function(t){var n=this,r=e(this._element).hasClass(Jt),i=this._dialog?this._dialog.querySelector(ee):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),e(this._dialog).hasClass(Kt)&&i?i.scrollTop=0:this._element.scrollTop=0,r&&l.reflow(this._element),e(this._element).addClass(Xt),this._config.focus&&this._enforceFocus();var o=e.Event(Wt.SHOWN,{relatedTarget:t}),a=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,e(n._element).trigger(o)};if(r){var s=l.getTransitionDurationFromElement(this._dialog);e(this._dialog).one(l.TRANSITION_END,a).emulateTransitionEnd(s)}else a()},n._enforceFocus=function(){var t=this;e(document).off(Wt.FOCUSIN).on(Wt.FOCUSIN,(function(n){document!==n.target&&t._element!==n.target&&0===e(t._element).has(n.target).length&&t._element.focus()}))},n._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?e(this._element).on(Wt.KEYDOWN_DISMISS,(function(e){27===e.which&&t._triggerBackdropTransition()})):this._isShown||e(this._element).off(Wt.KEYDOWN_DISMISS)},n._setResizeEvent=function(){var t=this;this._isShown?e(window).on(Wt.RESIZE,(function(e){return t.handleUpdate(e)})):e(window).off(Wt.RESIZE)},n._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop((function(){e(document.body).removeClass(Zt),t._resetAdjustments(),t._resetScrollbar(),e(t._element).trigger(Wt.HIDDEN)}))},n._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(t){var n=this,r=e(this._element).hasClass(Jt)?Jt:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=Gt,r&&this._backdrop.classList.add(r),e(this._backdrop).appendTo(document.body),e(this._element).on(Wt.CLICK_DISMISS,(function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&n._triggerBackdropTransition()})),r&&l.reflow(this._backdrop),e(this._backdrop).addClass(Xt),!t)return;if(!r)return void t();var i=l.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(l.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(Xt);var o=function(){n._removeBackdrop(),t&&t()};if(e(this._element).hasClass(Jt)){var a=l.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(l.TRANSITION_END,o).emulateTransitionEnd(a)}else o()}else t&&t()},n._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var n=[].slice.call(document.querySelectorAll(ie)),r=[].slice.call(document.querySelectorAll(oe));e(n).each((function(n,r){var i=r.style.paddingRight,o=e(r).css("padding-right");e(r).data("padding-right",i).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")})),e(r).each((function(n,r){var i=r.style.marginRight,o=e(r).css("margin-right");e(r).data("margin-right",i).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")}));var i=document.body.style.paddingRight,o=e(document.body).css("padding-right");e(document.body).data("padding-right",i).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}e(document.body).addClass(Zt)},n._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(ie));e(t).each((function(t,n){var r=e(n).data("padding-right");e(n).removeData("padding-right"),n.style.paddingRight=r||""}));var n=[].slice.call(document.querySelectorAll(""+oe));e(n).each((function(t,n){var r=e(n).data("margin-right");void 0!==r&&e(n).css("margin-right",r).removeData("margin-right")}));var r=e(document.body).data("padding-right");e(document.body).removeData("padding-right"),document.body.style.paddingRight=r||""},n._getScrollbarWidth=function(){var t=document.createElement("div");t.className=Yt,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(n,r){return this.each((function(){var i=e(this).data("bs.modal"),o=s({},Ht,{},e(this).data(),{},"object"==typeof n&&n?n:{});if(i||(i=new t(this,o),e(this).data("bs.modal",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n](r)}else o.show&&i.show(r)}))},i(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Ht}}]),t}();e(document).on(Wt.CLICK_DATA_API,ne,(function(t){var n,r=this,i=l.getSelectorFromElement(this);i&&(n=document.querySelector(i));var o=e(n).data("bs.modal")?"toggle":s({},e(n).data(),{},e(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=e(n).one(Wt.SHOW,(function(t){t.isDefaultPrevented()||a.one(Wt.HIDDEN,(function(){e(r).is(":visible")&&r.focus()}))}));ae._jQueryInterface.call(e(n),o,this)})),e.fn.modal=ae._jQueryInterface,e.fn.modal.Constructor=ae,e.fn.modal.noConflict=function(){return e.fn.modal=$t,ae._jQueryInterface};var se=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],ue={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},le=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ce=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function fe(t,e,n){if(0===t.length)return t;if(n&&"function"==typeof n)return n(t);for(var r=(new window.DOMParser).parseFromString(t,"text/html"),i=Object.keys(e),o=[].slice.call(r.body.querySelectorAll("*")),a=function(t,n){var r=o[t],a=r.nodeName.toLowerCase();if(-1===i.indexOf(r.nodeName.toLowerCase()))return r.parentNode.removeChild(r),"continue";var s=[].slice.call(r.attributes),u=[].concat(e["*"]||[],e[a]||[]);s.forEach((function(t){(function(t,e){var n=t.nodeName.toLowerCase();if(-1!==e.indexOf(n))return-1===se.indexOf(n)||Boolean(t.nodeValue.match(le)||t.nodeValue.match(ce));for(var r=e.filter((function(t){return t instanceof RegExp})),i=0,o=r.length;i<o;i++)if(n.match(r[i]))return!0;return!1})(t,u)||r.removeAttribute(t.nodeName)}))},s=0,u=o.length;s<u;s++)a(s);return r.body.innerHTML}var de="tooltip",he=e.fn[de],pe=new RegExp("(^|\\s)bs-tooltip\\S+","g"),me=["sanitize","whiteList","sanitizeFn"],ve={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},ge={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},be={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:ue,popperConfig:null},ye="show",we="out",_e={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},ke="fade",Me="show",xe=".tooltip-inner",Se=".arrow",Ce="hover",Ae="focus",Te="click",Ee="manual",Oe=function(){function t(t,e){if(void 0===n)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var r=t.prototype;return r.enable=function(){this._isEnabled=!0},r.disable=function(){this._isEnabled=!1},r.toggleEnabled=function(){this._isEnabled=!this._isEnabled},r.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,r=e(t.currentTarget).data(n);r||(r=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(e(this.getTipElement()).hasClass(Me))return void this._leave(null,this);this._enter(null,this)}},r.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},r.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var r=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(r);var i=l.findShadowRoot(this.element),o=e.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(r.isDefaultPrevented()||!o)return;var a=this.getTipElement(),s=l.getUID(this.constructor.NAME);a.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&e(a).addClass(ke);var u="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,c=this._getAttachment(u);this.addAttachmentClass(c);var f=this._getContainer();e(a).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(a).appendTo(f),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,a,this._getPopperConfig(c)),e(a).addClass(Me),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);var d=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),n===we&&t._leave(null,t)};if(e(this.tip).hasClass(ke)){var h=l.getTransitionDurationFromElement(this.tip);e(this.tip).one(l.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},r.hide=function(t){var n=this,r=this.getTipElement(),i=e.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==ye&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};if(e(this.element).trigger(i),!i.isDefaultPrevented()){if(e(r).removeClass(Me),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger[Te]=!1,this._activeTrigger[Ae]=!1,this._activeTrigger[Ce]=!1,e(this.tip).hasClass(ke)){var a=l.getTransitionDurationFromElement(r);e(r).one(l.TRANSITION_END,o).emulateTransitionEnd(a)}else o();this._hoverState=""}},r.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},r.isWithContent=function(){return Boolean(this.getTitle())},r.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-tooltip-"+t)},r.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},r.setContent=function(){var t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(xe)),this.getTitle()),e(t).removeClass(ke+" "+Me)},r.setElementContent=function(t,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=fe(n,this.config.whiteList,this.config.sanitizeFn)),t.html(n)):t.text(n):this.config.html?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text())},r.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},r._getPopperConfig=function(t){var e=this;return s({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:Se},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},{},this.config.popperConfig)},r._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,{},t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},r._getContainer=function(){return!1===this.config.container?document.body:l.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)},r._getAttachment=function(t){return ge[t.toUpperCase()]},r._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if(n!==Ee){var r=n===Ce?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=n===Ce?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(r,t.config.selector,(function(e){return t._enter(e)})).on(i,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},e(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},r._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},r._enter=function(t,n){var r=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(r))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(r,n)),t&&(n._activeTrigger["focusin"===t.type?Ae:Ce]=!0),e(n.getTipElement()).hasClass(Me)||n._hoverState===ye?n._hoverState=ye:(clearTimeout(n._timeout),n._hoverState=ye,n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){n._hoverState===ye&&n.show()}),n.config.delay.show):n.show())},r._leave=function(t,n){var r=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(r))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(r,n)),t&&(n._activeTrigger["focusout"===t.type?Ae:Ce]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=we,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){n._hoverState===we&&n.hide()}),n.config.delay.hide):n.hide())},r._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},r._getConfig=function(t){var n=e(this.element).data();return Object.keys(n).forEach((function(t){-1!==me.indexOf(t)&&delete n[t]})),"number"==typeof(t=s({},this.constructor.Default,{},n,{},"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),l.typeCheckConfig(de,t,this.constructor.DefaultType),t.sanitize&&(t.template=fe(t.template,t.whiteList,t.sanitizeFn)),t},r._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},r._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(pe);null!==n&&n.length&&t.removeClass(n.join(""))},r._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},r._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(ke),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},t._jQueryInterface=function(n){return this.each((function(){var r=e(this).data("bs.tooltip"),i="object"==typeof n&&n;if((r||!/dispose|hide/.test(n))&&(r||(r=new t(this,i),e(this).data("bs.tooltip",r)),"string"==typeof n)){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},i(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return be}},{key:"NAME",get:function(){return de}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return _e}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return ve}}]),t}();e.fn[de]=Oe._jQueryInterface,e.fn[de].Constructor=Oe,e.fn[de].noConflict=function(){return e.fn[de]=he,Oe._jQueryInterface};var Pe="popover",Ie=e.fn[Pe],Re=new RegExp("(^|\\s)bs-popover\\S+","g"),je=s({},Oe.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),De=s({},Oe.DefaultType,{content:"(string|element|function)"}),Ne="fade",Le="show",Be=".popover-header",ze=".popover-body",Fe={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},qe=function(t){var n,r;function o(){return t.apply(this,arguments)||this}r=t,(n=o).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var a=o.prototype;return a.isWithContent=function(){return this.getTitle()||this._getContent()},a.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-popover-"+t)},a.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},a.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(Be),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(t.find(ze),n),t.removeClass(Ne+" "+Le)},a._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},a._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(Re);null!==n&&n.length>0&&t.removeClass(n.join(""))},o._jQueryInterface=function(t){return this.each((function(){var n=e(this).data("bs.popover"),r="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new o(this,r),e(this).data("bs.popover",n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},i(o,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return je}},{key:"NAME",get:function(){return Pe}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return Fe}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return De}}]),o}(Oe);e.fn[Pe]=qe._jQueryInterface,e.fn[Pe].Constructor=qe,e.fn[Pe].noConflict=function(){return e.fn[Pe]=Ie,qe._jQueryInterface};var Ve="scrollspy",$e=e.fn[Ve],He={offset:10,method:"auto",target:""},Ue={offset:"number",method:"string",target:"(string|element)"},We={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},Ke="dropdown-item",Ye="active",Ge='[data-spy="scroll"]',Ze=".nav, .list-group",Je=".nav-link",Xe=".nav-item",Qe=".list-group-item",tn=".dropdown",en=".dropdown-item",nn=".dropdown-toggle",rn="offset",on="position",an=function(){function t(t,n){var r=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" "+Je+","+this._config.target+" "+Qe+","+this._config.target+" "+en,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(We.SCROLL,(function(t){return r._process(t)})),this.refresh(),this._process()}var n=t.prototype;return n.refresh=function(){var t=this,n=this._scrollElement===this._scrollElement.window?rn:on,r="auto"===this._config.method?n:this._config.method,i=r===on?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var n,o=l.getSelectorFromElement(t);if(o&&(n=document.querySelector(o)),n){var a=n.getBoundingClientRect();if(a.width||a.height)return[e(n)[r]().top+i,o]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},n.dispose=function(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(t){if("string"!=typeof(t=s({},He,{},"object"==typeof t&&t?t:{})).target){var n=e(t.target).attr("id");n||(n=l.getUID(Ve),e(t.target).attr("id",n)),t.target="#"+n}return l.typeCheckConfig(Ve,t,Ue),t},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var r=this._targets[this._targets.length-1];this._activeTarget!==r&&this._activate(r)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length;i--;)this._activeTarget!==this._targets[i]&&t>=this._offsets[i]&&(void 0===this._offsets[i+1]||t<this._offsets[i+1])&&this._activate(this._targets[i])}},n._activate=function(t){this._activeTarget=t,this._clear();var n=this._selector.split(",").map((function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})),r=e([].slice.call(document.querySelectorAll(n.join(","))));r.hasClass(Ke)?(r.closest(tn).find(nn).addClass(Ye),r.addClass(Ye)):(r.addClass(Ye),r.parents(Ze).prev(Je+", "+Qe).addClass(Ye),r.parents(Ze).prev(Xe).children(Je).addClass(Ye)),e(this._scrollElement).trigger(We.ACTIVATE,{relatedTarget:t})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(t){return t.classList.contains(Ye)})).forEach((function(t){return t.classList.remove(Ye)}))},t._jQueryInterface=function(n){return this.each((function(){var r=e(this).data("bs.scrollspy");if(r||(r=new t(this,"object"==typeof n&&n),e(this).data("bs.scrollspy",r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n]()}}))},i(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return He}}]),t}();e(window).on(We.LOAD_DATA_API,(function(){for(var t=[].slice.call(document.querySelectorAll(Ge)),n=t.length;n--;){var r=e(t[n]);an._jQueryInterface.call(r,r.data())}})),e.fn[Ve]=an._jQueryInterface,e.fn[Ve].Constructor=an,e.fn[Ve].noConflict=function(){return e.fn[Ve]=$e,an._jQueryInterface};var sn=e.fn.tab,un={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},ln="dropdown-menu",cn="active",fn="disabled",dn="fade",hn="show",pn=".dropdown",mn=".nav, .list-group",vn=".active",gn="> li > .active",bn='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',yn=".dropdown-toggle",wn="> .dropdown-menu .active",_n=function(){function t(t){this._element=t}var n=t.prototype;return n.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(cn)||e(this._element).hasClass(fn))){var n,r,i=e(this._element).closest(mn)[0],o=l.getSelectorFromElement(this._element);if(i){var a="UL"===i.nodeName||"OL"===i.nodeName?gn:vn;r=(r=e.makeArray(e(i).find(a)))[r.length-1]}var s=e.Event(un.HIDE,{relatedTarget:this._element}),u=e.Event(un.SHOW,{relatedTarget:r});if(r&&e(r).trigger(s),e(this._element).trigger(u),!u.isDefaultPrevented()&&!s.isDefaultPrevented()){o&&(n=document.querySelector(o)),this._activate(this._element,i);var c=function(){var n=e.Event(un.HIDDEN,{relatedTarget:t._element}),i=e.Event(un.SHOWN,{relatedTarget:r});e(r).trigger(n),e(t._element).trigger(i)};n?this._activate(n,n.parentNode,c):c()}}},n.dispose=function(){e.removeData(this._element,"bs.tab"),this._element=null},n._activate=function(t,n,r){var i=this,o=(!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?e(n).children(vn):e(n).find(gn))[0],a=r&&o&&e(o).hasClass(dn),s=function(){return i._transitionComplete(t,o,r)};if(o&&a){var u=l.getTransitionDurationFromElement(o);e(o).removeClass(hn).one(l.TRANSITION_END,s).emulateTransitionEnd(u)}else s()},n._transitionComplete=function(t,n,r){if(n){e(n).removeClass(cn);var i=e(n.parentNode).find(wn)[0];i&&e(i).removeClass(cn),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass(cn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),l.reflow(t),t.classList.contains(dn)&&t.classList.add(hn),t.parentNode&&e(t.parentNode).hasClass(ln)){var o=e(t).closest(pn)[0];if(o){var a=[].slice.call(o.querySelectorAll(yn));e(a).addClass(cn)}t.setAttribute("aria-expanded",!0)}r&&r()},t._jQueryInterface=function(n){return this.each((function(){var r=e(this),i=r.data("bs.tab");if(i||(i=new t(this),r.data("bs.tab",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},i(t,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),t}();e(document).on(un.CLICK_DATA_API,bn,(function(t){t.preventDefault(),_n._jQueryInterface.call(e(this),"show")})),e.fn.tab=_n._jQueryInterface,e.fn.tab.Constructor=_n,e.fn.tab.noConflict=function(){return e.fn.tab=sn,_n._jQueryInterface};var kn=e.fn.toast,Mn={CLICK_DISMISS:"click.dismiss.bs.toast",HIDE:"hide.bs.toast",HIDDEN:"hidden.bs.toast",SHOW:"show.bs.toast",SHOWN:"shown.bs.toast"},xn="fade",Sn="hide",Cn="show",An="showing",Tn={animation:"boolean",autohide:"boolean",delay:"number"},En={animation:!0,autohide:!0,delay:500},On='[data-dismiss="toast"]',Pn=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var n=t.prototype;return n.show=function(){var t=this,n=e.Event(Mn.SHOW);if(e(this._element).trigger(n),!n.isDefaultPrevented()){this._config.animation&&this._element.classList.add(xn);var r=function(){t._element.classList.remove(An),t._element.classList.add(Cn),e(t._element).trigger(Mn.SHOWN),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove(Sn),l.reflow(this._element),this._element.classList.add(An),this._config.animation){var i=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,r).emulateTransitionEnd(i)}else r()}},n.hide=function(){if(this._element.classList.contains(Cn)){var t=e.Event(Mn.HIDE);e(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(Cn)&&this._element.classList.remove(Cn),e(this._element).off(Mn.CLICK_DISMISS),e.removeData(this._element,"bs.toast"),this._element=null,this._config=null},n._getConfig=function(t){return t=s({},En,{},e(this._element).data(),{},"object"==typeof t&&t?t:{}),l.typeCheckConfig("toast",t,this.constructor.DefaultType),t},n._setListeners=function(){var t=this;e(this._element).on(Mn.CLICK_DISMISS,On,(function(){return t.hide()}))},n._close=function(){var t=this,n=function(){t._element.classList.add(Sn),e(t._element).trigger(Mn.HIDDEN)};if(this._element.classList.remove(Cn),this._config.animation){var r=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,n).emulateTransitionEnd(r)}else n()},t._jQueryInterface=function(n){return this.each((function(){var r=e(this),i=r.data("bs.toast");if(i||(i=new t(this,"object"==typeof n&&n),r.data("bs.toast",i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n](this)}}))},i(t,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return Tn}},{key:"Default",get:function(){return En}}]),t}();e.fn.toast=Pn._jQueryInterface,e.fn.toast.Constructor=Pn,e.fn.toast.noConflict=function(){return e.fn.toast=kn,Pn._jQueryInterface},t.Alert=v,t.Button=E,t.Carousel=rt,t.Collapse=gt,t.Dropdown=Vt,t.Modal=ae,t.Popover=qe,t.Scrollspy=an,t.Tab=_n,t.Toast=Pn,t.Tooltip=Oe,t.Util=l,Object.defineProperty(t,"__esModule",{value:!0})}(e,n(69),n(108))},function(t,e,n){t.exports=n(218)},function(t,e,n){"use strict";var r=n(11),i=n(109),o=n(219),a=n(115);function s(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var u=s(n(112));u.Axios=o,u.create=function(t){return s(a(u.defaults,t))},u.Cancel=n(116),u.CancelToken=n(232),u.isCancel=n(111),u.all=function(t){return Promise.all(t)},u.spread=n(233),t.exports=u,t.exports.default=u},function(t,e,n){"use strict";var r=n(11),i=n(110),o=n(220),a=n(221),s=n(115);function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,i){return this.request(r.merge(i||{},{method:t,url:e,data:n}))}})),t.exports=u},function(t,e,n){"use strict";var r=n(11);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},function(t,e,n){"use strict";var r=n(11),i=n(222),o=n(111),a=n(112);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";var r=n(11);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(114);t.exports=function(t,e,n){var i=n.config.validateStatus;!i||i(n.status)?t(n):e(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(227),i=n(228);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(11),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(11);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var r=n(11);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(116);function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i((function(e){t=e})),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){(function(e){var n;window,n=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){!function(t){"use strict";var e=function(t){var e,n=new Float64Array(16);if(t)for(e=0;e<t.length;e++)n[e]=t[e];return n},r=function(){throw new Error("no PRNG")},i=new Uint8Array(16),o=new Uint8Array(32);o[0]=9;var a=e(),s=e([1]),u=e([56129,1]),l=e([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),c=e([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),f=e([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=e([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=e([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function p(t,e,n,r){t[e]=n>>24&255,t[e+1]=n>>16&255,t[e+2]=n>>8&255,t[e+3]=255&n,t[e+4]=r>>24&255,t[e+5]=r>>16&255,t[e+6]=r>>8&255,t[e+7]=255&r}function m(t,e,n,r,i){var o,a=0;for(o=0;o<i;o++)a|=t[e+o]^n[r+o];return(1&a-1>>>8)-1}function v(t,e,n,r){return m(t,e,n,r,16)}function g(t,e,n,r){return m(t,e,n,r,32)}function b(t,e,n,r){!function(t,e,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,u=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,d=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,h=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,v=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,g=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,_=o,k=a,M=s,x=u,S=l,C=c,A=f,T=d,E=h,O=p,P=m,I=v,R=g,j=b,D=y,N=w,L=0;L<20;L+=2)_^=(i=(R^=(i=(E^=(i=(S^=(i=_+R|0)<<7|i>>>25)+_|0)<<9|i>>>23)+S|0)<<13|i>>>19)+E|0)<<18|i>>>14,C^=(i=(k^=(i=(j^=(i=(O^=(i=C+k|0)<<7|i>>>25)+C|0)<<9|i>>>23)+O|0)<<13|i>>>19)+j|0)<<18|i>>>14,P^=(i=(A^=(i=(M^=(i=(D^=(i=P+A|0)<<7|i>>>25)+P|0)<<9|i>>>23)+D|0)<<13|i>>>19)+M|0)<<18|i>>>14,N^=(i=(I^=(i=(T^=(i=(x^=(i=N+I|0)<<7|i>>>25)+N|0)<<9|i>>>23)+x|0)<<13|i>>>19)+T|0)<<18|i>>>14,_^=(i=(x^=(i=(M^=(i=(k^=(i=_+x|0)<<7|i>>>25)+_|0)<<9|i>>>23)+k|0)<<13|i>>>19)+M|0)<<18|i>>>14,C^=(i=(S^=(i=(T^=(i=(A^=(i=C+S|0)<<7|i>>>25)+C|0)<<9|i>>>23)+A|0)<<13|i>>>19)+T|0)<<18|i>>>14,P^=(i=(O^=(i=(E^=(i=(I^=(i=P+O|0)<<7|i>>>25)+P|0)<<9|i>>>23)+I|0)<<13|i>>>19)+E|0)<<18|i>>>14,N^=(i=(D^=(i=(j^=(i=(R^=(i=N+D|0)<<7|i>>>25)+N|0)<<9|i>>>23)+R|0)<<13|i>>>19)+j|0)<<18|i>>>14;_=_+o|0,k=k+a|0,M=M+s|0,x=x+u|0,S=S+l|0,C=C+c|0,A=A+f|0,T=T+d|0,E=E+h|0,O=O+p|0,P=P+m|0,I=I+v|0,R=R+g|0,j=j+b|0,D=D+y|0,N=N+w|0,t[0]=_>>>0&255,t[1]=_>>>8&255,t[2]=_>>>16&255,t[3]=_>>>24&255,t[4]=k>>>0&255,t[5]=k>>>8&255,t[6]=k>>>16&255,t[7]=k>>>24&255,t[8]=M>>>0&255,t[9]=M>>>8&255,t[10]=M>>>16&255,t[11]=M>>>24&255,t[12]=x>>>0&255,t[13]=x>>>8&255,t[14]=x>>>16&255,t[15]=x>>>24&255,t[16]=S>>>0&255,t[17]=S>>>8&255,t[18]=S>>>16&255,t[19]=S>>>24&255,t[20]=C>>>0&255,t[21]=C>>>8&255,t[22]=C>>>16&255,t[23]=C>>>24&255,t[24]=A>>>0&255,t[25]=A>>>8&255,t[26]=A>>>16&255,t[27]=A>>>24&255,t[28]=T>>>0&255,t[29]=T>>>8&255,t[30]=T>>>16&255,t[31]=T>>>24&255,t[32]=E>>>0&255,t[33]=E>>>8&255,t[34]=E>>>16&255,t[35]=E>>>24&255,t[36]=O>>>0&255,t[37]=O>>>8&255,t[38]=O>>>16&255,t[39]=O>>>24&255,t[40]=P>>>0&255,t[41]=P>>>8&255,t[42]=P>>>16&255,t[43]=P>>>24&255,t[44]=I>>>0&255,t[45]=I>>>8&255,t[46]=I>>>16&255,t[47]=I>>>24&255,t[48]=R>>>0&255,t[49]=R>>>8&255,t[50]=R>>>16&255,t[51]=R>>>24&255,t[52]=j>>>0&255,t[53]=j>>>8&255,t[54]=j>>>16&255,t[55]=j>>>24&255,t[56]=D>>>0&255,t[57]=D>>>8&255,t[58]=D>>>16&255,t[59]=D>>>24&255,t[60]=N>>>0&255,t[61]=N>>>8&255,t[62]=N>>>16&255,t[63]=N>>>24&255}(t,e,n,r)}function y(t,e,n,r){!function(t,e,n,r){for(var i,o=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,u=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,c=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,f=255&e[0]|(255&e[1])<<8|(255&e[2])<<16|(255&e[3])<<24,d=255&e[4]|(255&e[5])<<8|(255&e[6])<<16|(255&e[7])<<24,h=255&e[8]|(255&e[9])<<8|(255&e[10])<<16|(255&e[11])<<24,p=255&e[12]|(255&e[13])<<8|(255&e[14])<<16|(255&e[15])<<24,m=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,v=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,g=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,w=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,_=0;_<20;_+=2)o^=(i=(g^=(i=(h^=(i=(l^=(i=o+g|0)<<7|i>>>25)+o|0)<<9|i>>>23)+l|0)<<13|i>>>19)+h|0)<<18|i>>>14,c^=(i=(a^=(i=(b^=(i=(p^=(i=c+a|0)<<7|i>>>25)+c|0)<<9|i>>>23)+p|0)<<13|i>>>19)+b|0)<<18|i>>>14,m^=(i=(f^=(i=(s^=(i=(y^=(i=m+f|0)<<7|i>>>25)+m|0)<<9|i>>>23)+y|0)<<13|i>>>19)+s|0)<<18|i>>>14,w^=(i=(v^=(i=(d^=(i=(u^=(i=w+v|0)<<7|i>>>25)+w|0)<<9|i>>>23)+u|0)<<13|i>>>19)+d|0)<<18|i>>>14,o^=(i=(u^=(i=(s^=(i=(a^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+a|0)<<13|i>>>19)+s|0)<<18|i>>>14,c^=(i=(l^=(i=(d^=(i=(f^=(i=c+l|0)<<7|i>>>25)+c|0)<<9|i>>>23)+f|0)<<13|i>>>19)+d|0)<<18|i>>>14,m^=(i=(p^=(i=(h^=(i=(v^=(i=m+p|0)<<7|i>>>25)+m|0)<<9|i>>>23)+v|0)<<13|i>>>19)+h|0)<<18|i>>>14,w^=(i=(y^=(i=(b^=(i=(g^=(i=w+y|0)<<7|i>>>25)+w|0)<<9|i>>>23)+g|0)<<13|i>>>19)+b|0)<<18|i>>>14;t[0]=o>>>0&255,t[1]=o>>>8&255,t[2]=o>>>16&255,t[3]=o>>>24&255,t[4]=c>>>0&255,t[5]=c>>>8&255,t[6]=c>>>16&255,t[7]=c>>>24&255,t[8]=m>>>0&255,t[9]=m>>>8&255,t[10]=m>>>16&255,t[11]=m>>>24&255,t[12]=w>>>0&255,t[13]=w>>>8&255,t[14]=w>>>16&255,t[15]=w>>>24&255,t[16]=f>>>0&255,t[17]=f>>>8&255,t[18]=f>>>16&255,t[19]=f>>>24&255,t[20]=d>>>0&255,t[21]=d>>>8&255,t[22]=d>>>16&255,t[23]=d>>>24&255,t[24]=h>>>0&255,t[25]=h>>>8&255,t[26]=h>>>16&255,t[27]=h>>>24&255,t[28]=p>>>0&255,t[29]=p>>>8&255,t[30]=p>>>16&255,t[31]=p>>>24&255}(t,e,n,r)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function _(t,e,n,r,i,o,a){var s,u,l=new Uint8Array(16),c=new Uint8Array(64);for(u=0;u<16;u++)l[u]=0;for(u=0;u<8;u++)l[u]=o[u];for(;i>=64;){for(b(c,l,a,w),u=0;u<64;u++)t[e+u]=n[r+u]^c[u];for(s=1,u=8;u<16;u++)s=s+(255&l[u])|0,l[u]=255&s,s>>>=8;i-=64,e+=64,r+=64}if(i>0)for(b(c,l,a,w),u=0;u<i;u++)t[e+u]=n[r+u]^c[u];return 0}function k(t,e,n,r,i){var o,a,s=new Uint8Array(16),u=new Uint8Array(64);for(a=0;a<16;a++)s[a]=0;for(a=0;a<8;a++)s[a]=r[a];for(;n>=64;){for(b(u,s,i,w),a=0;a<64;a++)t[e+a]=u[a];for(o=1,a=8;a<16;a++)o=o+(255&s[a])|0,s[a]=255&o,o>>>=8;n-=64,e+=64}if(n>0)for(b(u,s,i,w),a=0;a<n;a++)t[e+a]=u[a];return 0}function M(t,e,n,r,i){var o=new Uint8Array(32);y(o,r,i,w);for(var a=new Uint8Array(8),s=0;s<8;s++)a[s]=r[s+16];return k(t,e,n,a,o)}function x(t,e,n,r,i,o,a){var s=new Uint8Array(32);y(s,o,a,w);for(var u=new Uint8Array(8),l=0;l<8;l++)u[l]=o[l+16];return _(t,e,n,r,i,u,s)}var S=function(t){var e,n,r,i,o,a,s,u;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,e=255&t[0]|(255&t[1])<<8,this.r[0]=8191&e,n=255&t[2]|(255&t[3])<<8,this.r[1]=8191&(e>>>13|n<<3),r=255&t[4]|(255&t[5])<<8,this.r[2]=7939&(n>>>10|r<<6),i=255&t[6]|(255&t[7])<<8,this.r[3]=8191&(r>>>7|i<<9),o=255&t[8]|(255&t[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,a=255&t[10]|(255&t[11])<<8,this.r[6]=8191&(o>>>14|a<<2),s=255&t[12]|(255&t[13])<<8,this.r[7]=8065&(a>>>11|s<<5),u=255&t[14]|(255&t[15])<<8,this.r[8]=8191&(s>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&t[16]|(255&t[17])<<8,this.pad[1]=255&t[18]|(255&t[19])<<8,this.pad[2]=255&t[20]|(255&t[21])<<8,this.pad[3]=255&t[22]|(255&t[23])<<8,this.pad[4]=255&t[24]|(255&t[25])<<8,this.pad[5]=255&t[26]|(255&t[27])<<8,this.pad[6]=255&t[28]|(255&t[29])<<8,this.pad[7]=255&t[30]|(255&t[31])<<8};function C(t,e,n,r,i,o){var a=new S(o);return a.update(n,r,i),a.finish(t,e),0}function A(t,e,n,r,i,o){var a=new Uint8Array(16);return C(a,0,n,r,i,o),v(t,e,a,0)}function T(t,e,n,r,i){var o;if(n<32)return-1;for(x(t,0,e,0,n,r,i),C(t,16,t,32,n-32,t),o=0;o<16;o++)t[o]=0;return 0}function E(t,e,n,r,i){var o,a=new Uint8Array(32);if(n<32)return-1;if(M(a,0,32,r,i),0!==A(e,16,e,32,n-32,a))return-1;for(x(t,0,e,0,n,r,i),o=0;o<32;o++)t[o]=0;return 0}function O(t,e){var n;for(n=0;n<16;n++)t[n]=0|e[n]}function P(t){var e,n,r=1;for(e=0;e<16;e++)n=t[e]+r+65535,r=Math.floor(n/65536),t[e]=n-65536*r;t[0]+=r-1+37*(r-1)}function I(t,e,n){for(var r,i=~(n-1),o=0;o<16;o++)r=i&(t[o]^e[o]),t[o]^=r,e[o]^=r}function R(t,n){var r,i,o,a=e(),s=e();for(r=0;r<16;r++)s[r]=n[r];for(P(s),P(s),P(s),i=0;i<2;i++){for(a[0]=s[0]-65517,r=1;r<15;r++)a[r]=s[r]-65535-(a[r-1]>>16&1),a[r-1]&=65535;a[15]=s[15]-32767-(a[14]>>16&1),o=a[15]>>16&1,a[14]&=65535,I(s,a,1-o)}for(r=0;r<16;r++)t[2*r]=255&s[r],t[2*r+1]=s[r]>>8}function j(t,e){var n=new Uint8Array(32),r=new Uint8Array(32);return R(n,t),R(r,e),g(n,0,r,0)}function D(t){var e=new Uint8Array(32);return R(e,t),1&e[0]}function N(t,e){var n;for(n=0;n<16;n++)t[n]=e[2*n]+(e[2*n+1]<<8);t[15]&=32767}function L(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]+n[r]}function B(t,e,n){for(var r=0;r<16;r++)t[r]=e[r]-n[r]}function z(t,e,n){var r,i,o=0,a=0,s=0,u=0,l=0,c=0,f=0,d=0,h=0,p=0,m=0,v=0,g=0,b=0,y=0,w=0,_=0,k=0,M=0,x=0,S=0,C=0,A=0,T=0,E=0,O=0,P=0,I=0,R=0,j=0,D=0,N=n[0],L=n[1],B=n[2],z=n[3],F=n[4],q=n[5],V=n[6],$=n[7],H=n[8],U=n[9],W=n[10],K=n[11],Y=n[12],G=n[13],Z=n[14],J=n[15];o+=(r=e[0])*N,a+=r*L,s+=r*B,u+=r*z,l+=r*F,c+=r*q,f+=r*V,d+=r*$,h+=r*H,p+=r*U,m+=r*W,v+=r*K,g+=r*Y,b+=r*G,y+=r*Z,w+=r*J,a+=(r=e[1])*N,s+=r*L,u+=r*B,l+=r*z,c+=r*F,f+=r*q,d+=r*V,h+=r*$,p+=r*H,m+=r*U,v+=r*W,g+=r*K,b+=r*Y,y+=r*G,w+=r*Z,_+=r*J,s+=(r=e[2])*N,u+=r*L,l+=r*B,c+=r*z,f+=r*F,d+=r*q,h+=r*V,p+=r*$,m+=r*H,v+=r*U,g+=r*W,b+=r*K,y+=r*Y,w+=r*G,_+=r*Z,k+=r*J,u+=(r=e[3])*N,l+=r*L,c+=r*B,f+=r*z,d+=r*F,h+=r*q,p+=r*V,m+=r*$,v+=r*H,g+=r*U,b+=r*W,y+=r*K,w+=r*Y,_+=r*G,k+=r*Z,M+=r*J,l+=(r=e[4])*N,c+=r*L,f+=r*B,d+=r*z,h+=r*F,p+=r*q,m+=r*V,v+=r*$,g+=r*H,b+=r*U,y+=r*W,w+=r*K,_+=r*Y,k+=r*G,M+=r*Z,x+=r*J,c+=(r=e[5])*N,f+=r*L,d+=r*B,h+=r*z,p+=r*F,m+=r*q,v+=r*V,g+=r*$,b+=r*H,y+=r*U,w+=r*W,_+=r*K,k+=r*Y,M+=r*G,x+=r*Z,S+=r*J,f+=(r=e[6])*N,d+=r*L,h+=r*B,p+=r*z,m+=r*F,v+=r*q,g+=r*V,b+=r*$,y+=r*H,w+=r*U,_+=r*W,k+=r*K,M+=r*Y,x+=r*G,S+=r*Z,C+=r*J,d+=(r=e[7])*N,h+=r*L,p+=r*B,m+=r*z,v+=r*F,g+=r*q,b+=r*V,y+=r*$,w+=r*H,_+=r*U,k+=r*W,M+=r*K,x+=r*Y,S+=r*G,C+=r*Z,A+=r*J,h+=(r=e[8])*N,p+=r*L,m+=r*B,v+=r*z,g+=r*F,b+=r*q,y+=r*V,w+=r*$,_+=r*H,k+=r*U,M+=r*W,x+=r*K,S+=r*Y,C+=r*G,A+=r*Z,T+=r*J,p+=(r=e[9])*N,m+=r*L,v+=r*B,g+=r*z,b+=r*F,y+=r*q,w+=r*V,_+=r*$,k+=r*H,M+=r*U,x+=r*W,S+=r*K,C+=r*Y,A+=r*G,T+=r*Z,E+=r*J,m+=(r=e[10])*N,v+=r*L,g+=r*B,b+=r*z,y+=r*F,w+=r*q,_+=r*V,k+=r*$,M+=r*H,x+=r*U,S+=r*W,C+=r*K,A+=r*Y,T+=r*G,E+=r*Z,O+=r*J,v+=(r=e[11])*N,g+=r*L,b+=r*B,y+=r*z,w+=r*F,_+=r*q,k+=r*V,M+=r*$,x+=r*H,S+=r*U,C+=r*W,A+=r*K,T+=r*Y,E+=r*G,O+=r*Z,P+=r*J,g+=(r=e[12])*N,b+=r*L,y+=r*B,w+=r*z,_+=r*F,k+=r*q,M+=r*V,x+=r*$,S+=r*H,C+=r*U,A+=r*W,T+=r*K,E+=r*Y,O+=r*G,P+=r*Z,I+=r*J,b+=(r=e[13])*N,y+=r*L,w+=r*B,_+=r*z,k+=r*F,M+=r*q,x+=r*V,S+=r*$,C+=r*H,A+=r*U,T+=r*W,E+=r*K,O+=r*Y,P+=r*G,I+=r*Z,R+=r*J,y+=(r=e[14])*N,w+=r*L,_+=r*B,k+=r*z,M+=r*F,x+=r*q,S+=r*V,C+=r*$,A+=r*H,T+=r*U,E+=r*W,O+=r*K,P+=r*Y,I+=r*G,R+=r*Z,j+=r*J,w+=(r=e[15])*N,a+=38*(k+=r*B),s+=38*(M+=r*z),u+=38*(x+=r*F),l+=38*(S+=r*q),c+=38*(C+=r*V),f+=38*(A+=r*$),d+=38*(T+=r*H),h+=38*(E+=r*U),p+=38*(O+=r*W),m+=38*(P+=r*K),v+=38*(I+=r*Y),g+=38*(R+=r*G),b+=38*(j+=r*Z),y+=38*(D+=r*J),o=(r=(o+=38*(_+=r*L))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),o=(r=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(r/65536)),a=(r=a+i+65535)-65536*(i=Math.floor(r/65536)),s=(r=s+i+65535)-65536*(i=Math.floor(r/65536)),u=(r=u+i+65535)-65536*(i=Math.floor(r/65536)),l=(r=l+i+65535)-65536*(i=Math.floor(r/65536)),c=(r=c+i+65535)-65536*(i=Math.floor(r/65536)),f=(r=f+i+65535)-65536*(i=Math.floor(r/65536)),d=(r=d+i+65535)-65536*(i=Math.floor(r/65536)),h=(r=h+i+65535)-65536*(i=Math.floor(r/65536)),p=(r=p+i+65535)-65536*(i=Math.floor(r/65536)),m=(r=m+i+65535)-65536*(i=Math.floor(r/65536)),v=(r=v+i+65535)-65536*(i=Math.floor(r/65536)),g=(r=g+i+65535)-65536*(i=Math.floor(r/65536)),b=(r=b+i+65535)-65536*(i=Math.floor(r/65536)),y=(r=y+i+65535)-65536*(i=Math.floor(r/65536)),w=(r=w+i+65535)-65536*(i=Math.floor(r/65536)),o+=i-1+37*(i-1),t[0]=o,t[1]=a,t[2]=s,t[3]=u,t[4]=l,t[5]=c,t[6]=f,t[7]=d,t[8]=h,t[9]=p,t[10]=m,t[11]=v,t[12]=g,t[13]=b,t[14]=y,t[15]=w}function F(t,e){z(t,e,e)}function q(t,n){var r,i=e();for(r=0;r<16;r++)i[r]=n[r];for(r=253;r>=0;r--)F(i,i),2!==r&&4!==r&&z(i,i,n);for(r=0;r<16;r++)t[r]=i[r]}function V(t,n){var r,i=e();for(r=0;r<16;r++)i[r]=n[r];for(r=250;r>=0;r--)F(i,i),1!==r&&z(i,i,n);for(r=0;r<16;r++)t[r]=i[r]}function $(t,n,r){var i,o,a=new Uint8Array(32),s=new Float64Array(80),l=e(),c=e(),f=e(),d=e(),h=e(),p=e();for(o=0;o<31;o++)a[o]=n[o];for(a[31]=127&n[31]|64,a[0]&=248,N(s,r),o=0;o<16;o++)c[o]=s[o],d[o]=l[o]=f[o]=0;for(l[0]=d[0]=1,o=254;o>=0;--o)I(l,c,i=a[o>>>3]>>>(7&o)&1),I(f,d,i),L(h,l,f),B(l,l,f),L(f,c,d),B(c,c,d),F(d,h),F(p,l),z(l,f,l),z(f,c,h),L(h,l,f),B(l,l,f),F(c,l),B(f,d,p),z(l,f,u),L(l,l,d),z(f,f,l),z(l,d,p),z(d,c,s),F(c,h),I(l,c,i),I(f,d,i);for(o=0;o<16;o++)s[o+16]=l[o],s[o+32]=f[o],s[o+48]=c[o],s[o+64]=d[o];var m=s.subarray(32),v=s.subarray(16);return q(m,m),z(v,v,m),R(t,v),0}function H(t,e){return $(t,e,o)}function U(t,e){return r(e,32),H(t,e)}function W(t,e,n){var r=new Uint8Array(32);return $(r,n,e),y(t,i,r,w)}S.prototype.blocks=function(t,e,n){for(var r,i,o,a,s,u,l,c,f,d,h,p,m,v,g,b,y,w,_,k=this.fin?0:2048,M=this.h[0],x=this.h[1],S=this.h[2],C=this.h[3],A=this.h[4],T=this.h[5],E=this.h[6],O=this.h[7],P=this.h[8],I=this.h[9],R=this.r[0],j=this.r[1],D=this.r[2],N=this.r[3],L=this.r[4],B=this.r[5],z=this.r[6],F=this.r[7],q=this.r[8],V=this.r[9];n>=16;)d=f=0,d+=(M+=8191&(r=255&t[e+0]|(255&t[e+1])<<8))*R,d+=(x+=8191&(r>>>13|(i=255&t[e+2]|(255&t[e+3])<<8)<<3))*(5*V),d+=(S+=8191&(i>>>10|(o=255&t[e+4]|(255&t[e+5])<<8)<<6))*(5*q),d+=(C+=8191&(o>>>7|(a=255&t[e+6]|(255&t[e+7])<<8)<<9))*(5*F),f=(d+=(A+=8191&(a>>>4|(s=255&t[e+8]|(255&t[e+9])<<8)<<12))*(5*z))>>>13,d&=8191,d+=(T+=s>>>1&8191)*(5*B),d+=(E+=8191&(s>>>14|(u=255&t[e+10]|(255&t[e+11])<<8)<<2))*(5*L),d+=(O+=8191&(u>>>11|(l=255&t[e+12]|(255&t[e+13])<<8)<<5))*(5*N),d+=(P+=8191&(l>>>8|(c=255&t[e+14]|(255&t[e+15])<<8)<<8))*(5*D),h=f+=(d+=(I+=c>>>5|k)*(5*j))>>>13,h+=M*j,h+=x*R,h+=S*(5*V),h+=C*(5*q),f=(h+=A*(5*F))>>>13,h&=8191,h+=T*(5*z),h+=E*(5*B),h+=O*(5*L),h+=P*(5*N),f+=(h+=I*(5*D))>>>13,h&=8191,p=f,p+=M*D,p+=x*j,p+=S*R,p+=C*(5*V),f=(p+=A*(5*q))>>>13,p&=8191,p+=T*(5*F),p+=E*(5*z),p+=O*(5*B),p+=P*(5*L),m=f+=(p+=I*(5*N))>>>13,m+=M*N,m+=x*D,m+=S*j,m+=C*R,f=(m+=A*(5*V))>>>13,m&=8191,m+=T*(5*q),m+=E*(5*F),m+=O*(5*z),m+=P*(5*B),v=f+=(m+=I*(5*L))>>>13,v+=M*L,v+=x*N,v+=S*D,v+=C*j,f=(v+=A*R)>>>13,v&=8191,v+=T*(5*V),v+=E*(5*q),v+=O*(5*F),v+=P*(5*z),g=f+=(v+=I*(5*B))>>>13,g+=M*B,g+=x*L,g+=S*N,g+=C*D,f=(g+=A*j)>>>13,g&=8191,g+=T*R,g+=E*(5*V),g+=O*(5*q),g+=P*(5*F),b=f+=(g+=I*(5*z))>>>13,b+=M*z,b+=x*B,b+=S*L,b+=C*N,f=(b+=A*D)>>>13,b&=8191,b+=T*j,b+=E*R,b+=O*(5*V),b+=P*(5*q),y=f+=(b+=I*(5*F))>>>13,y+=M*F,y+=x*z,y+=S*B,y+=C*L,f=(y+=A*N)>>>13,y&=8191,y+=T*D,y+=E*j,y+=O*R,y+=P*(5*V),w=f+=(y+=I*(5*q))>>>13,w+=M*q,w+=x*F,w+=S*z,w+=C*B,f=(w+=A*L)>>>13,w&=8191,w+=T*N,w+=E*D,w+=O*j,w+=P*R,_=f+=(w+=I*(5*V))>>>13,_+=M*V,_+=x*q,_+=S*F,_+=C*z,f=(_+=A*B)>>>13,_&=8191,_+=T*L,_+=E*N,_+=O*D,_+=P*j,M=d=8191&(f=(f=((f+=(_+=I*R)>>>13)<<2)+f|0)+(d&=8191)|0),x=h+=f>>>=13,S=p&=8191,C=m&=8191,A=v&=8191,T=g&=8191,E=b&=8191,O=y&=8191,P=w&=8191,I=_&=8191,e+=16,n-=16;this.h[0]=M,this.h[1]=x,this.h[2]=S,this.h[3]=C,this.h[4]=A,this.h[5]=T,this.h[6]=E,this.h[7]=O,this.h[8]=P,this.h[9]=I},S.prototype.finish=function(t,e){var n,r,i,o,a=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=n,n=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,a[0]=this.h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this.h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,r=(1^n)-1,o=0;o<10;o++)a[o]&=r;for(r=~r,o=0;o<10;o++)this.h[o]=this.h[o]&r|a[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;t[e+0]=this.h[0]>>>0&255,t[e+1]=this.h[0]>>>8&255,t[e+2]=this.h[1]>>>0&255,t[e+3]=this.h[1]>>>8&255,t[e+4]=this.h[2]>>>0&255,t[e+5]=this.h[2]>>>8&255,t[e+6]=this.h[3]>>>0&255,t[e+7]=this.h[3]>>>8&255,t[e+8]=this.h[4]>>>0&255,t[e+9]=this.h[4]>>>8&255,t[e+10]=this.h[5]>>>0&255,t[e+11]=this.h[5]>>>8&255,t[e+12]=this.h[6]>>>0&255,t[e+13]=this.h[6]>>>8&255,t[e+14]=this.h[7]>>>0&255,t[e+15]=this.h[7]>>>8&255},S.prototype.update=function(t,e,n){var r,i;if(this.leftover){for((i=16-this.leftover)>n&&(i=n),r=0;r<i;r++)this.buffer[this.leftover+r]=t[e+r];if(n-=i,e+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(i=n-n%16,this.blocks(t,e,i),e+=i,n-=i),n){for(r=0;r<n;r++)this.buffer[this.leftover+r]=t[e+r];this.leftover+=n}};var K=T,Y=E,G=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function Z(t,e,n,r){for(var i,o,a,s,u,l,c,f,d,h,p,m,v,g,b,y,w,_,k,M,x,S,C,A,T,E,O=new Int32Array(16),P=new Int32Array(16),I=t[0],R=t[1],j=t[2],D=t[3],N=t[4],L=t[5],B=t[6],z=t[7],F=e[0],q=e[1],V=e[2],$=e[3],H=e[4],U=e[5],W=e[6],K=e[7],Y=0;r>=128;){for(k=0;k<16;k++)M=8*k+Y,O[k]=n[M+0]<<24|n[M+1]<<16|n[M+2]<<8|n[M+3],P[k]=n[M+4]<<24|n[M+5]<<16|n[M+6]<<8|n[M+7];for(k=0;k<80;k++)if(i=I,o=R,a=j,s=D,u=N,l=L,c=B,d=F,h=q,p=V,m=$,v=H,g=U,b=W,C=65535&(S=K),A=S>>>16,T=65535&(x=z),E=x>>>16,C+=65535&(S=(H>>>14|N<<18)^(H>>>18|N<<14)^(N>>>9|H<<23)),A+=S>>>16,T+=65535&(x=(N>>>14|H<<18)^(N>>>18|H<<14)^(H>>>9|N<<23)),E+=x>>>16,C+=65535&(S=H&U^~H&W),A+=S>>>16,T+=65535&(x=N&L^~N&B),E+=x>>>16,C+=65535&(S=G[2*k+1]),A+=S>>>16,T+=65535&(x=G[2*k]),E+=x>>>16,x=O[k%16],A+=(S=P[k%16])>>>16,T+=65535&x,E+=x>>>16,T+=(A+=(C+=65535&S)>>>16)>>>16,C=65535&(S=_=65535&C|A<<16),A=S>>>16,T=65535&(x=w=65535&T|(E+=T>>>16)<<16),E=x>>>16,C+=65535&(S=(F>>>28|I<<4)^(I>>>2|F<<30)^(I>>>7|F<<25)),A+=S>>>16,T+=65535&(x=(I>>>28|F<<4)^(F>>>2|I<<30)^(F>>>7|I<<25)),E+=x>>>16,A+=(S=F&q^F&V^q&V)>>>16,T+=65535&(x=I&R^I&j^R&j),E+=x>>>16,f=65535&(T+=(A+=(C+=65535&S)>>>16)>>>16)|(E+=T>>>16)<<16,y=65535&C|A<<16,C=65535&(S=m),A=S>>>16,T=65535&(x=s),E=x>>>16,A+=(S=_)>>>16,T+=65535&(x=w),E+=x>>>16,R=i,j=o,D=a,N=s=65535&(T+=(A+=(C+=65535&S)>>>16)>>>16)|(E+=T>>>16)<<16,L=u,B=l,z=c,I=f,q=d,V=h,$=p,H=m=65535&C|A<<16,U=v,W=g,K=b,F=y,k%16==15)for(M=0;M<16;M++)x=O[M],C=65535&(S=P[M]),A=S>>>16,T=65535&x,E=x>>>16,x=O[(M+9)%16],C+=65535&(S=P[(M+9)%16]),A+=S>>>16,T+=65535&x,E+=x>>>16,w=O[(M+1)%16],C+=65535&(S=((_=P[(M+1)%16])>>>1|w<<31)^(_>>>8|w<<24)^(_>>>7|w<<25)),A+=S>>>16,T+=65535&(x=(w>>>1|_<<31)^(w>>>8|_<<24)^w>>>7),E+=x>>>16,w=O[(M+14)%16],A+=(S=((_=P[(M+14)%16])>>>19|w<<13)^(w>>>29|_<<3)^(_>>>6|w<<26))>>>16,T+=65535&(x=(w>>>19|_<<13)^(_>>>29|w<<3)^w>>>6),E+=x>>>16,E+=(T+=(A+=(C+=65535&S)>>>16)>>>16)>>>16,O[M]=65535&T|E<<16,P[M]=65535&C|A<<16;C=65535&(S=F),A=S>>>16,T=65535&(x=I),E=x>>>16,x=t[0],A+=(S=e[0])>>>16,T+=65535&x,E+=x>>>16,E+=(T+=(A+=(C+=65535&S)>>>16)>>>16)>>>16,t[0]=I=65535&T|E<<16,e[0]=F=65535&C|A<<16,C=65535&(S=q),A=S>>>16,T=65535&(x=R),E=x>>>16,x=t[1],A+=(S=e[1])>>>16,T+=65535&x,E+=x>>>16,E+=(T+=(A+=(C+=65535&S)>>>16)>>>16)>>>16,t[1]=R=65535&T|E<<16,e[1]=q=65535&C|A<<16,C=65535&(S=V),A=S>>>16,T=65535&(x=j),E=x>>>16,x=t[2],A+=(S=e[2])>>>16,T+=65535&x,E+=x>>>16,E+=(T+=(A+=(C+=65535&S)>>>16)>>>16)>>>16,t[2]=j=65535&T|E<<16,e[2]=V=65535&C|A<<16,C=65535&(S=$),A=S>>>16,T=65535&(x=D),E=x>>>16,x=t[3],A+=(S=e[3])>>>16,T+=65535&x,E+=x>>>16,E+=(T+=(A+=(C+=65535&S)>>>16)>>>16)>>>16,t[3]=D=65535&T|E<<16,e[3]=$=65535&C|A<<16,C=65535&(S=H),A=S>>>16,T=65535&(x=N),E=x>>>16,x=t[4],A+=(S=e[4])>>>16,T+=65535&x,E+=x>>>16,E+=(T+=(A+=(C+=65535&S)>>>16)>>>16)>>>16,t[4]=N=65535&T|E<<16,e[4]=H=65535&C|A<<16,C=65535&(S=U),A=S>>>16,T=65535&(x=L),E=x>>>16,x=t[5],A+=(S=e[5])>>>16,T+=65535&x,E+=x>>>16,E+=(T+=(A+=(C+=65535&S)>>>16)>>>16)>>>16,t[5]=L=65535&T|E<<16,e[5]=U=65535&C|A<<16,C=65535&(S=W),A=S>>>16,T=65535&(x=B),E=x>>>16,x=t[6],A+=(S=e[6])>>>16,T+=65535&x,E+=x>>>16,E+=(T+=(A+=(C+=65535&S)>>>16)>>>16)>>>16,t[6]=B=65535&T|E<<16,e[6]=W=65535&C|A<<16,C=65535&(S=K),A=S>>>16,T=65535&(x=z),E=x>>>16,x=t[7],A+=(S=e[7])>>>16,T+=65535&x,E+=x>>>16,E+=(T+=(A+=(C+=65535&S)>>>16)>>>16)>>>16,t[7]=z=65535&T|E<<16,e[7]=K=65535&C|A<<16,Y+=128,r-=128}return r}function J(t,e,n){var r,i=new Int32Array(8),o=new Int32Array(8),a=new Uint8Array(256),s=n;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,Z(i,o,e,n),n%=128,r=0;r<n;r++)a[r]=e[s-n+r];for(a[n]=128,a[(n=256-128*(n<112?1:0))-9]=0,p(a,n-8,s/536870912|0,s<<3),Z(i,o,a,n),r=0;r<8;r++)p(t,8*r,i[r],o[r]);return 0}function X(t,n){var r=e(),i=e(),o=e(),a=e(),s=e(),u=e(),l=e(),f=e(),d=e();B(r,t[1],t[0]),B(d,n[1],n[0]),z(r,r,d),L(i,t[0],t[1]),L(d,n[0],n[1]),z(i,i,d),z(o,t[3],n[3]),z(o,o,c),z(a,t[2],n[2]),L(a,a,a),B(s,i,r),B(u,a,o),L(l,a,o),L(f,i,r),z(t[0],s,u),z(t[1],f,l),z(t[2],l,u),z(t[3],s,f)}function Q(t,e,n){var r;for(r=0;r<4;r++)I(t[r],e[r],n)}function tt(t,n){var r=e(),i=e(),o=e();q(o,n[2]),z(r,n[0],o),z(i,n[1],o),R(t,i),t[31]^=D(r)<<7}function et(t,e,n){var r,i;for(O(t[0],a),O(t[1],s),O(t[2],s),O(t[3],a),i=255;i>=0;--i)Q(t,e,r=n[i/8|0]>>(7&i)&1),X(e,t),X(t,t),Q(t,e,r)}function nt(t,n){var r=[e(),e(),e(),e()];O(r[0],f),O(r[1],d),O(r[2],s),z(r[3],f,d),et(t,r,n)}function rt(t,n,i){var o,a=new Uint8Array(64),s=[e(),e(),e(),e()];for(i||r(n,32),J(a,n,32),a[0]&=248,a[31]&=127,a[31]|=64,nt(s,a),tt(t,s),o=0;o<32;o++)n[o+32]=t[o];return 0}var it,ot=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function at(t,e){var n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i<o;++i)e[i]+=n-16*e[r]*ot[i-(r-32)],n=e[i]+128>>8,e[i]-=256*n;e[i]+=n,e[r]=0}for(n=0,i=0;i<32;i++)e[i]+=n-(e[31]>>4)*ot[i],n=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=n*ot[i];for(r=0;r<32;r++)e[r+1]+=e[r]>>8,t[r]=255&e[r]}function st(t){var e,n=new Float64Array(64);for(e=0;e<64;e++)n[e]=t[e];for(e=0;e<64;e++)t[e]=0;at(t,n)}function ut(t,n,r,i){var o,a,s=new Uint8Array(64),u=new Uint8Array(64),l=new Uint8Array(64),c=new Float64Array(64),f=[e(),e(),e(),e()];J(s,i,32),s[0]&=248,s[31]&=127,s[31]|=64;var d=r+64;for(o=0;o<r;o++)t[64+o]=n[o];for(o=0;o<32;o++)t[32+o]=s[32+o];for(J(l,t.subarray(32),r+32),st(l),nt(f,l),tt(t,f),o=32;o<64;o++)t[o]=i[o];for(J(u,t,r+64),st(u),o=0;o<64;o++)c[o]=0;for(o=0;o<32;o++)c[o]=l[o];for(o=0;o<32;o++)for(a=0;a<32;a++)c[o+a]+=u[o]*s[a];return at(t.subarray(32),c),d}function lt(t,n,r,i){var o,u=new Uint8Array(32),c=new Uint8Array(64),f=[e(),e(),e(),e()],d=[e(),e(),e(),e()];if(r<64)return-1;if(function(t,n){var r=e(),i=e(),o=e(),u=e(),c=e(),f=e(),d=e();return O(t[2],s),N(t[1],n),F(o,t[1]),z(u,o,l),B(o,o,t[2]),L(u,t[2],u),F(c,u),F(f,c),z(d,f,c),z(r,d,o),z(r,r,u),V(r,r),z(r,r,o),z(r,r,u),z(r,r,u),z(t[0],r,u),F(i,t[0]),z(i,i,u),j(i,o)&&z(t[0],t[0],h),F(i,t[0]),z(i,i,u),j(i,o)?-1:(D(t[0])===n[31]>>7&&B(t[0],a,t[0]),z(t[3],t[0],t[1]),0)}(d,i))return-1;for(o=0;o<r;o++)t[o]=n[o];for(o=0;o<32;o++)t[o+32]=i[o];if(J(c,t,r),st(c),et(f,d,c),nt(d,n.subarray(32)),X(f,d),tt(u,f),r-=64,g(n,0,u,0)){for(o=0;o<r;o++)t[o]=0;return-1}for(o=0;o<r;o++)t[o]=n[o+64];return r}function ct(t,e){if(32!==t.length)throw new Error("bad key size");if(24!==e.length)throw new Error("bad nonce size")}function ft(){for(var t=0;t<arguments.length;t++)if(!(arguments[t]instanceof Uint8Array))throw new TypeError("unexpected type, use Uint8Array")}function dt(t){for(var e=0;e<t.length;e++)t[e]=0}t.lowlevel={crypto_core_hsalsa20:y,crypto_stream_xor:x,crypto_stream:M,crypto_stream_salsa20_xor:_,crypto_stream_salsa20:k,crypto_onetimeauth:C,crypto_onetimeauth_verify:A,crypto_verify_16:v,crypto_verify_32:g,crypto_secretbox:T,crypto_secretbox_open:E,crypto_scalarmult:$,crypto_scalarmult_base:H,crypto_box_beforenm:W,crypto_box_afternm:K,crypto_box:function(t,e,n,r,i,o){var a=new Uint8Array(32);return W(a,i,o),K(t,e,n,r,a)},crypto_box_open:function(t,e,n,r,i,o){var a=new Uint8Array(32);return W(a,i,o),Y(t,e,n,r,a)},crypto_box_keypair:U,crypto_hash:J,crypto_sign:ut,crypto_sign_keypair:rt,crypto_sign_open:lt,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:64,crypto_sign_PUBLICKEYBYTES:32,crypto_sign_SECRETKEYBYTES:64,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64,gf:e,D:l,L:ot,pack25519:R,unpack25519:N,M:z,A:L,S:F,Z:B,pow2523:V,add:X,set25519:O,modL:at,scalarmult:et,scalarbase:nt},t.randomBytes=function(t){var e=new Uint8Array(t);return r(e,t),e},t.secretbox=function(t,e,n){ft(t,e,n),ct(n,e);for(var r=new Uint8Array(32+t.length),i=new Uint8Array(r.length),o=0;o<t.length;o++)r[o+32]=t[o];return T(i,r,r.length,e,n),i.subarray(16)},t.secretbox.open=function(t,e,n){ft(t,e,n),ct(n,e);for(var r=new Uint8Array(16+t.length),i=new Uint8Array(r.length),o=0;o<t.length;o++)r[o+16]=t[o];return r.length<32||0!==E(i,r,r.length,e,n)?null:i.subarray(32)},t.secretbox.keyLength=32,t.secretbox.nonceLength=24,t.secretbox.overheadLength=16,t.scalarMult=function(t,e){if(ft(t,e),32!==t.length)throw new Error("bad n size");if(32!==e.length)throw new Error("bad p size");var n=new Uint8Array(32);return $(n,t,e),n},t.scalarMult.base=function(t){if(ft(t),32!==t.length)throw new Error("bad n size");var e=new Uint8Array(32);return H(e,t),e},t.scalarMult.scalarLength=32,t.scalarMult.groupElementLength=32,t.box=function(e,n,r,i){var o=t.box.before(r,i);return t.secretbox(e,n,o)},t.box.before=function(t,e){ft(t,e),function(t,e){if(32!==t.length)throw new Error("bad public key size");if(32!==e.length)throw new Error("bad secret key size")}(t,e);var n=new Uint8Array(32);return W(n,t,e),n},t.box.after=t.secretbox,t.box.open=function(e,n,r,i){var o=t.box.before(r,i);return t.secretbox.open(e,n,o)},t.box.open.after=t.secretbox.open,t.box.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(32);return U(t,e),{publicKey:t,secretKey:e}},t.box.keyPair.fromSecretKey=function(t){if(ft(t),32!==t.length)throw new Error("bad secret key size");var e=new Uint8Array(32);return H(e,t),{publicKey:e,secretKey:new Uint8Array(t)}},t.box.publicKeyLength=32,t.box.secretKeyLength=32,t.box.sharedKeyLength=32,t.box.nonceLength=24,t.box.overheadLength=t.secretbox.overheadLength,t.sign=function(t,e){if(ft(t,e),64!==e.length)throw new Error("bad secret key size");var n=new Uint8Array(64+t.length);return ut(n,t,t.length,e),n},t.sign.open=function(t,e){if(ft(t,e),32!==e.length)throw new Error("bad public key size");var n=new Uint8Array(t.length),r=lt(n,t,t.length,e);if(r<0)return null;for(var i=new Uint8Array(r),o=0;o<i.length;o++)i[o]=n[o];return i},t.sign.detached=function(e,n){for(var r=t.sign(e,n),i=new Uint8Array(64),o=0;o<i.length;o++)i[o]=r[o];return i},t.sign.detached.verify=function(t,e,n){if(ft(t,e,n),64!==e.length)throw new Error("bad signature size");if(32!==n.length)throw new Error("bad public key size");var r,i=new Uint8Array(64+t.length),o=new Uint8Array(64+t.length);for(r=0;r<64;r++)i[r]=e[r];for(r=0;r<t.length;r++)i[r+64]=t[r];return lt(o,i,i.length,n)>=0},t.sign.keyPair=function(){var t=new Uint8Array(32),e=new Uint8Array(64);return rt(t,e),{publicKey:t,secretKey:e}},t.sign.keyPair.fromSecretKey=function(t){if(ft(t),64!==t.length)throw new Error("bad secret key size");for(var e=new Uint8Array(32),n=0;n<e.length;n++)e[n]=t[32+n];return{publicKey:e,secretKey:new Uint8Array(t)}},t.sign.keyPair.fromSeed=function(t){if(ft(t),32!==t.length)throw new Error("bad seed size");for(var e=new Uint8Array(32),n=new Uint8Array(64),r=0;r<32;r++)n[r]=t[r];return rt(e,n,!0),{publicKey:e,secretKey:n}},t.sign.publicKeyLength=32,t.sign.secretKeyLength=64,t.sign.seedLength=32,t.sign.signatureLength=64,t.hash=function(t){ft(t);var e=new Uint8Array(64);return J(e,t,t.length),e},t.hash.hashLength=64,t.verify=function(t,e){return ft(t,e),0!==t.length&&0!==e.length&&t.length===e.length&&0===m(t,0,e,0,t.length)},t.setPRNG=function(t){r=t},(it="undefined"!=typeof self?self.crypto||self.msCrypto:null)&&it.getRandomValues?t.setPRNG((function(t,e){var n,r=new Uint8Array(e);for(n=0;n<e;n+=65536)it.getRandomValues(r.subarray(n,n+Math.min(e-n,65536)));for(n=0;n<e;n++)t[n]=r[n];dt(r)})):(it=n(3))&&it.randomBytes&&t.setPRNG((function(t,e){var n,r=it.randomBytes(e);for(n=0;n<e;n++)t[n]=r[n];dt(r)}))}(t.exports?t.exports:self.nacl=self.nacl||{})},function(t,n,r){!function(e,n){"use strict";t.exports?t.exports=n():(e.nacl||(e.nacl={}),e.nacl.util=n())}(this,(function(){"use strict";var t={};function n(t){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(t))throw new TypeError("invalid encoding")}return t.decodeUTF8=function(t){if("string"!=typeof t)throw new TypeError("expected string");var e,n=unescape(encodeURIComponent(t)),r=new Uint8Array(n.length);for(e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r},t.encodeUTF8=function(t){var e,n=[];for(e=0;e<t.length;e++)n.push(String.fromCharCode(t[e]));return decodeURIComponent(escape(n.join("")))},"undefined"==typeof atob?void 0!==e.from?(t.encodeBase64=function(t){return e.from(t).toString("base64")},t.decodeBase64=function(t){return n(t),new Uint8Array(Array.prototype.slice.call(e.from(t,"base64"),0))}):(t.encodeBase64=function(t){return new e(t).toString("base64")},t.decodeBase64=function(t){return n(t),new Uint8Array(Array.prototype.slice.call(new e(t,"base64"),0))}):(t.encodeBase64=function(t){var e,n=[],r=t.length;for(e=0;e<r;e++)n.push(String.fromCharCode(t[e]));return btoa(n.join(""))},t.decodeBase64=function(t){n(t);var e,r=atob(t),i=new Uint8Array(r.length);for(e=0;e<r.length;e++)i[e]=r.charCodeAt(e);return i}),t}))},function(t,e,n){t.exports=n(4).default},function(t,e){},function(t,e,n){"use strict";n.r(e);for(var r=function(){function t(t,e){this.lastId=0,this.prefix=t,this.name=e}return t.prototype.create=function(t){this.lastId++;var e=this.lastId,n=this.prefix+e,r=this.name+"["+e+"]",i=!1,o=function(){i||(t.apply(null,arguments),i=!0)};return this[e]=o,{number:e,id:n,name:r,callback:o}},t.prototype.remove=function(t){delete this[t.number]},t}(),i=new r("_pusher_script_","Pusher.ScriptReceivers"),o={VERSION:"5.1.1",PROTOCOL:7,host:"ws.pusherapp.com",ws_port:80,wss_port:443,ws_path:"",sockjs_host:"sockjs.pusher.com",sockjs_http_port:80,sockjs_https_port:443,sockjs_path:"/pusher",stats_host:"stats.pusher.com",channel_auth_endpoint:"/pusher/auth",channel_auth_transport:"ajax",activity_timeout:12e4,pong_timeout:3e4,unavailable_timeout:1e4,cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},a=function(){function t(t){this.options=t,this.receivers=t.receivers||i,this.loading={}}return t.prototype.load=function(t,e,n){var r=this;if(r.loading[t]&&r.loading[t].length>0)r.loading[t].push(n);else{r.loading[t]=[n];var i=we.createScriptRequest(r.getPath(t,e)),o=r.receivers.create((function(e){if(r.receivers.remove(o),r.loading[t]){var n=r.loading[t];delete r.loading[t];for(var a=function(t){t||i.cleanup()},s=0;s<n.length;s++)n[s](e,a)}}));i.send(o)}},t.prototype.getRoot=function(t){var e=we.getDocument().location.protocol;return(t&&t.useTLS||"https:"===e?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version},t.prototype.getPath=function(t,e){return this.getRoot(e)+"/"+t+this.options.suffix+".js"},t}(),s=new r("_pusher_dependencies","Pusher.DependenciesReceivers"),u=new a({cdn_http:o.cdn_http,cdn_https:o.cdn_https,version:o.VERSION,suffix:o.dependency_suffix,receivers:s}),l=String.fromCharCode,c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f={},d=0,h=c.length;d<h;d++)f[c.charAt(d)]=d;var p,m=function(t){var e=t.charCodeAt(0);return e<128?t:e<2048?l(192|e>>>6)+l(128|63&e):l(224|e>>>12&15)+l(128|e>>>6&63)+l(128|63&e)},v=function(t){return t.replace(/[^\x00-\x7F]/g,m)},g=function(t){var e=[0,2,1][t.length%3],n=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0);return[c.charAt(n>>>18),c.charAt(n>>>12&63),e>=2?"=":c.charAt(n>>>6&63),e>=1?"=":c.charAt(63&n)].join("")},b=window.btoa||function(t){return t.replace(/[\s\S]{1,3}/g,g)},y=function(){function t(t,e,n,r){var i=this;this.clear=e,this.timer=t((function(){i.timer&&(i.timer=r(i.timer))}),n)}return t.prototype.isRunning=function(){return null!==this.timer},t.prototype.ensureAborted=function(){this.timer&&(this.clear(this.timer),this.timer=null)},t}(),w=(p=function(t,e){return(p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}p(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function _(t){window.clearTimeout(t)}function k(t){window.clearInterval(t)}var M=function(t){function e(e,n){return t.call(this,setTimeout,_,e,(function(t){return n(),null}))||this}return w(e,t),e}(y),x=function(t){function e(e,n){return t.call(this,setInterval,k,e,(function(t){return n(),t}))||this}return w(e,t),e}(y),S={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(t){return new M(0,t)},method:function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=Array.prototype.slice.call(arguments,1);return function(e){return e[t].apply(e,r.concat(arguments))}}};function C(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++){var i=e[r];for(var o in i)i[o]&&i[o].constructor&&i[o].constructor===Object?t[o]=C(t[o]||{},i[o]):t[o]=i[o]}return t}function A(){for(var t=["Pusher"],e=0;e<arguments.length;e++)"string"==typeof arguments[e]?t.push(arguments[e]):t.push(B(arguments[e]));return t.join(" : ")}function T(t,e){var n=Array.prototype.indexOf;if(null===t)return-1;if(n&&t.indexOf===n)return t.indexOf(e);for(var r=0,i=t.length;r<i;r++)if(t[r]===e)return r;return-1}function E(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(t[n],n,t)}function O(t){var e=[];return E(t,(function(t,n){e.push(n)})),e}function P(t,e,n){for(var r=0;r<t.length;r++)e.call(n||window,t[r],r,t)}function I(t,e){for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r,t,n));return n}function R(t,e){e=e||function(t){return!!t};for(var n=[],r=0;r<t.length;r++)e(t[r],r,t,n)&&n.push(t[r]);return n}function j(t,e){var n={};return E(t,(function(r,i){(e&&e(r,i,t,n)||Boolean(r))&&(n[i]=r)})),n}function D(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return!0;return!1}function N(t){return e=function(t){return"object"==typeof t&&(t=B(t)),encodeURIComponent((e=t.toString(),b(v(e))));var e},n={},E(t,(function(t,r){n[r]=e(t)})),n;var e,n}function L(t){var e,n,r=j(t,(function(t){return void 0!==t}));return I((e=N(r),n=[],E(e,(function(t,e){n.push([e,t])})),n),S.method("join","=")).join("&")}function B(t){try{return JSON.stringify(t)}catch(r){return JSON.stringify((e=[],n=[],function t(r,i){var o,a,s;switch(typeof r){case"object":if(!r)return null;for(o=0;o<e.length;o+=1)if(e[o]===r)return{$ref:n[o]};if(e.push(r),n.push(i),"[object Array]"===Object.prototype.toString.apply(r))for(s=[],o=0;o<r.length;o+=1)s[o]=t(r[o],i+"["+o+"]");else for(a in s={},r)Object.prototype.hasOwnProperty.call(r,a)&&(s[a]=t(r[a],i+"["+JSON.stringify(a)+"]"));return s;case"number":case"string":case"boolean":return r}}(t,"$")))}var e,n}var z=new(function(){function t(){this.globalLog=function(t){window.console&&window.console.log&&window.console.log(t)}}return t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.log(this.globalLog,t)},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.log(this.globalLogWarn,t)},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.log(this.globalLogError,t)},t.prototype.globalLogWarn=function(t){window.console&&window.console.warn?window.console.warn(t):this.globalLog(t)},t.prototype.globalLogError=function(t){window.console&&window.console.error?window.console.error(t):this.globalLogWarn(t)},t.prototype.log=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=A.apply(this,arguments);if(Ee.log)Ee.log(r);else if(Ee.logToConsole){var i=t.bind(this);i(r)}},t}()),F={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/authenticating_users"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"}}},q=function(t){var e,n=F.urls[t];return n?(n.fullUrl?e=n.fullUrl:n.path&&(e=F.baseUrl+n.path),e?"See: "+e:""):""},V=function(t,e,n){var r,i=this;for(var o in(r=we.createXHR()).open("POST",i.options.authEndpoint,!0),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),this.authOptions.headers)r.setRequestHeader(o,this.authOptions.headers[o]);return r.onreadystatechange=function(){if(4===r.readyState)if(200===r.status){var t,e=!1;try{t=JSON.parse(r.responseText),e=!0}catch(t){n(!0,"JSON returned from auth endpoint was invalid, yet status code was 200. Data was: "+r.responseText)}e&&n(!1,t)}else{var o=q("authenticationEndpoint");z.error("Unable to retrieve auth string from auth endpoint - received status "+r.status+" from "+i.options.authEndpoint+". Clients must be authenticated to join private or presence channels. "+o),n(!0,r.status)}},r.send(this.composeQuery(e)),r},$=function(t,e,n){void 0!==this.authOptions.headers&&z.warn("To send headers with the auth request, you must use AJAX, rather than JSONP.");var r=t.nextAuthCallbackID.toString();t.nextAuthCallbackID++;var i=t.getDocument(),o=i.createElement("script");t.auth_callbacks[r]=function(t){n(!1,t)};var a="Pusher.auth_callbacks['"+r+"']";o.src=this.options.authEndpoint+"?callback="+encodeURIComponent(a)+"&"+this.composeQuery(e);var s=i.getElementsByTagName("head")[0]||i.documentElement;s.insertBefore(o,s.firstChild)},H=function(){function t(t){this.src=t}return t.prototype.send=function(t){var e=this,n="Error loading "+e.src;e.script=document.createElement("script"),e.script.id=t.id,e.script.src=e.src,e.script.type="text/javascript",e.script.charset="UTF-8",e.script.addEventListener?(e.script.onerror=function(){t.callback(n)},e.script.onload=function(){t.callback(null)}):e.script.onreadystatechange=function(){"loaded"!==e.script.readyState&&"complete"!==e.script.readyState||t.callback(null)},void 0===e.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(e.errorScript=document.createElement("script"),e.errorScript.id=t.id+"_error",e.errorScript.text=t.name+"('"+n+"');",e.script.async=e.errorScript.async=!1):e.script.async=!0;var r=document.getElementsByTagName("head")[0];r.insertBefore(e.script,r.firstChild),e.errorScript&&r.insertBefore(e.errorScript,e.script.nextSibling)},t.prototype.cleanup=function(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null},t}(),U=function(){function t(t,e){this.url=t,this.data=e}return t.prototype.send=function(t){if(!this.request){var e=L(this.data),n=this.url+"/"+t.number+"?"+e;this.request=we.createScriptRequest(n),this.request.send(t)}},t.prototype.cleanup=function(){this.request&&this.request.cleanup()},t}(),W={name:"jsonp",getAgent:function(t,e){return function(n,r){var o="http"+(e?"s":"")+"://"+(t.host||t.options.host)+t.options.path,a=we.createJSONPRequest(o,n),s=we.ScriptReceivers.create((function(e,n){i.remove(s),a.cleanup(),n&&n.host&&(t.host=n.host),r&&r(e,n)}));a.send(s)}}};function K(t,e,n){return t+(e.useTLS?"s":"")+"://"+(e.useTLS?e.hostTLS:e.hostNonTLS)+n}function Y(t,e){return"/app/"+t+"?protocol="+o.PROTOCOL+"&client=js&version="+o.VERSION+(e?"&"+e:"")}var G={getInitial:function(t,e){return K("ws",e,(e.httpPath||"")+Y(t,"flash=false"))}},Z={getInitial:function(t,e){return K("http",e,(e.httpPath||"/pusher")+Y(t))}},J={getInitial:function(t,e){return K("http",e,e.httpPath||"/pusher")},getPath:function(t,e){return Y(t)}},X=function(){function t(){this._callbacks={}}return t.prototype.get=function(t){return this._callbacks[Q(t)]},t.prototype.add=function(t,e,n){var r=Q(t);this._callbacks[r]=this._callbacks[r]||[],this._callbacks[r].push({fn:e,context:n})},t.prototype.remove=function(t,e,n){if(t||e||n){var r=t?[Q(t)]:O(this._callbacks);e||n?this.removeCallback(r,e,n):this.removeAllCallbacks(r)}else this._callbacks={}},t.prototype.removeCallback=function(t,e,n){P(t,(function(t){this._callbacks[t]=R(this._callbacks[t]||[],(function(t){return e&&e!==t.fn||n&&n!==t.context})),0===this._callbacks[t].length&&delete this._callbacks[t]}),this)},t.prototype.removeAllCallbacks=function(t){P(t,(function(t){delete this._callbacks[t]}),this)},t}();function Q(t){return"_"+t}var tt=function(){function t(t){this.callbacks=new X,this.global_callbacks=[],this.failThrough=t}return t.prototype.bind=function(t,e,n){return this.callbacks.add(t,e,n),this},t.prototype.bind_global=function(t){return this.global_callbacks.push(t),this},t.prototype.unbind=function(t,e,n){return this.callbacks.remove(t,e,n),this},t.prototype.unbind_global=function(t){return t?(this.global_callbacks=R(this.global_callbacks||[],(function(e){return e!==t})),this):(this.global_callbacks=[],this)},t.prototype.unbind_all=function(){return this.unbind(),this.unbind_global(),this},t.prototype.emit=function(t,e,n){for(var r=0;r<this.global_callbacks.length;r++)this.global_callbacks[r](t,e);var i=this.callbacks.get(t),o=[];if(n?o.push(e,n):e&&o.push(e),i&&i.length>0)for(r=0;r<i.length;r++)i[r].fn.apply(i[r].context||window,o);else this.failThrough&&this.failThrough(t,e);return this},t}(),et=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nt=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a.initialize=we.transportConnectionInitializer,a.hooks=e,a.name=n,a.priority=r,a.key=i,a.options=o,a.state="new",a.timeline=o.timeline,a.activityTimeout=o.activityTimeout,a.id=a.timeline.generateUniqueID(),a}return et(e,t),e.prototype.handlesActivityChecks=function(){return Boolean(this.hooks.handlesActivityChecks)},e.prototype.supportsPing=function(){return Boolean(this.hooks.supportsPing)},e.prototype.connect=function(){var t=this;if(this.socket||"initialized"!==this.state)return!1;var e=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(e,this.options)}catch(e){return S.defer((function(){t.onError(e),t.changeState("closed")})),!1}return this.bindListeners(),z.debug("Connecting",{transport:this.name,url:e}),this.changeState("connecting"),!0},e.prototype.close=function(){return!!this.socket&&(this.socket.close(),!0)},e.prototype.send=function(t){var e=this;return"open"===this.state&&(S.defer((function(){e.socket&&e.socket.send(t)})),!0)},e.prototype.ping=function(){"open"===this.state&&this.supportsPing()&&this.socket.ping()},e.prototype.onOpen=function(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0},e.prototype.onError=function(t){this.emit("error",{type:"WebSocketError",error:t}),this.timeline.error(this.buildTimelineMessage({error:t.toString()}))},e.prototype.onClose=function(t){t?this.changeState("closed",{code:t.code,reason:t.reason,wasClean:t.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0},e.prototype.onMessage=function(t){this.emit("message",t)},e.prototype.onActivity=function(){this.emit("activity")},e.prototype.bindListeners=function(){var t=this;this.socket.onopen=function(){t.onOpen()},this.socket.onerror=function(e){t.onError(e)},this.socket.onclose=function(e){t.onClose(e)},this.socket.onmessage=function(e){t.onMessage(e)},this.supportsPing()&&(this.socket.onactivity=function(){t.onActivity()})},e.prototype.unbindListeners=function(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))},e.prototype.changeState=function(t,e){this.state=t,this.timeline.info(this.buildTimelineMessage({state:t,params:e})),this.emit(t,e)},e.prototype.buildTimelineMessage=function(t){return C({cid:this.id},t)},e}(tt),rt=function(){function t(t){this.hooks=t}return t.prototype.isSupported=function(t){return this.hooks.isSupported(t)},t.prototype.createConnection=function(t,e,n,r){return new nt(this.hooks,t,e,n,r)},t}(),it=new rt({urls:G,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(we.getWebSocketAPI())},isSupported:function(){return Boolean(we.getWebSocketAPI())},getSocket:function(t){return we.createWebSocket(t)}}),ot={urls:Z,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},at=C({getSocket:function(t){return we.HTTPFactory.createStreamingSocket(t)}},ot),st=C({getSocket:function(t){return we.HTTPFactory.createPollingSocket(t)}},ot),ut={isSupported:function(){return we.isXHRSupported()}},lt={ws:it,xhr_streaming:new rt(C({},at,ut)),xhr_polling:new rt(C({},st,ut))},ct=new rt({file:"sockjs",urls:J,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(t,e){return new window.SockJS(t,null,{js_path:u.getPath("sockjs",{useTLS:e.useTLS}),ignore_null_origin:e.ignoreNullOrigin})},beforeOpen:function(t,e){t.send(JSON.stringify({path:e}))}}),ft={isSupported:function(t){return we.isXDRSupported(t.useTLS)}},dt=new rt(C({},at,ft)),ht=new rt(C({},st,ft));lt.xdr_streaming=dt,lt.xdr_polling=ht,lt.sockjs=ct;var pt=lt,mt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vt=new(function(t){function e(){var e=t.call(this)||this,n=e;return void 0!==window.addEventListener&&(window.addEventListener("online",(function(){n.emit("online")}),!1),window.addEventListener("offline",(function(){n.emit("offline")}),!1)),e}return mt(e,t),e.prototype.isOnline=function(){return void 0===window.navigator.onLine||window.navigator.onLine},e}(tt)),gt=function(){function t(t,e,n){this.manager=t,this.transport=e,this.minPingDelay=n.minPingDelay,this.maxPingDelay=n.maxPingDelay,this.pingDelay=void 0}return t.prototype.createConnection=function(t,e,n,r){var i=this;r=C({},r,{activityTimeout:this.pingDelay});var o=this.transport.createConnection(t,e,n,r),a=null,s=function(){o.unbind("open",s),o.bind("closed",u),a=S.now()},u=function(t){if(o.unbind("closed",u),1002===t.code||1003===t.code)i.manager.reportDeath();else if(!t.wasClean&&a){var e=S.now()-a;e<2*i.maxPingDelay&&(i.manager.reportDeath(),i.pingDelay=Math.max(e/2,i.minPingDelay))}};return o.bind("open",s),o},t.prototype.isSupported=function(t){return this.manager.isAlive()&&this.transport.isSupported(t)},t}(),bt={decodeMessage:function(t){try{var e=JSON.parse(t.data),n=e.data;if("string"==typeof n)try{n=JSON.parse(e.data)}catch(t){}var r={event:e.event,channel:e.channel,data:n};return e.user_id&&(r.user_id=e.user_id),r}catch(e){throw{type:"MessageParseError",error:e,data:t.data}}},encodeMessage:function(t){return JSON.stringify(t)},processHandshake:function(t){var e=bt.decodeMessage(t);if("pusher:connection_established"===e.event){if(!e.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:e.data.socket_id,activityTimeout:1e3*e.data.activity_timeout}}if("pusher:error"===e.event)return{action:this.getCloseAction(e.data),error:this.getCloseError(e.data)};throw"Invalid handshake"},getCloseAction:function(t){return t.code<4e3?t.code>=1002&&t.code<=1004?"backoff":null:4e3===t.code?"tls_only":t.code<4100?"refused":t.code<4200?"backoff":t.code<4300?"retry":"refused"},getCloseError:function(t){return 1e3!==t.code&&1001!==t.code?{type:"PusherError",data:{code:t.code,message:t.reason||t.message}}:null}},yt=bt,wt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_t=function(t){function e(e,n){var r=t.call(this)||this;return r.id=e,r.transport=n,r.activityTimeout=n.activityTimeout,r.bindListeners(),r}return wt(e,t),e.prototype.handlesActivityChecks=function(){return this.transport.handlesActivityChecks()},e.prototype.send=function(t){return this.transport.send(t)},e.prototype.send_event=function(t,e,n){var r={event:t,data:e};return n&&(r.channel=n),z.debug("Event sent",r),this.send(yt.encodeMessage(r))},e.prototype.ping=function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})},e.prototype.close=function(){this.transport.close()},e.prototype.bindListeners=function(){var t=this,e={message:function(e){var n;try{n=yt.decodeMessage(e)}catch(n){t.emit("error",{type:"MessageParseError",error:n,data:e.data})}if(void 0!==n){switch(z.debug("Event recd",n),n.event){case"pusher:error":t.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":t.emit("ping");break;case"pusher:pong":t.emit("pong")}t.emit("message",n)}},activity:function(){t.emit("activity")},error:function(e){t.emit("error",{type:"WebSocketError",error:e})},closed:function(e){n(),e&&e.code&&t.handleCloseEvent(e),t.transport=null,t.emit("closed")}},n=function(){E(e,(function(e,n){t.transport.unbind(n,e)}))};E(e,(function(e,n){t.transport.bind(n,e)}))},e.prototype.handleCloseEvent=function(t){var e=yt.getCloseAction(t),n=yt.getCloseError(t);n&&this.emit("error",n),e&&this.emit(e,{action:e,error:n})},e}(tt),kt=function(){function t(t,e){this.transport=t,this.callback=e,this.bindListeners()}return t.prototype.close=function(){this.unbindListeners(),this.transport.close()},t.prototype.bindListeners=function(){var t=this;this.onMessage=function(e){var n;t.unbindListeners();try{n=yt.processHandshake(e)}catch(e){return t.finish("error",{error:e}),void t.transport.close()}"connected"===n.action?t.finish("connected",{connection:new _t(n.id,t.transport),activityTimeout:n.activityTimeout}):(t.finish(n.action,{error:n.error}),t.transport.close())},this.onClosed=function(e){t.unbindListeners();var n=yt.getCloseAction(e)||"backoff",r=yt.getCloseError(e);t.finish(n,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)},t.prototype.unbindListeners=function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)},t.prototype.finish=function(t,e){this.callback(C({transport:this.transport,action:t},e))},t}(),Mt=function(){function t(t,e){this.channel=t;var n=e.authTransport;if(void 0===we.getAuthorizers()[n])throw"'"+n+"' is not a recognized auth transport";this.type=n,this.options=e,this.authOptions=(e||{}).auth||{}}return t.prototype.composeQuery=function(t){var e="socket_id="+encodeURIComponent(t)+"&channel_name="+encodeURIComponent(this.channel.name);for(var n in this.authOptions.params)e+="&"+encodeURIComponent(n)+"="+encodeURIComponent(this.authOptions.params[n]);return e},t.prototype.authorize=function(e,n){t.authorizers=t.authorizers||we.getAuthorizers(),t.authorizers[this.type].call(this,we,e,n)},t}(),xt=function(){function t(t,e){this.timeline=t,this.options=e||{}}return t.prototype.send=function(t,e){this.timeline.isEmpty()||this.timeline.send(we.TimelineTransport.getAgent(this,t),e)},t}(),St=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ct=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),At=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Tt=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Et=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Ot=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Pt=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),It=function(t){function e(e){var n=this.constructor,r=t.call(this,e)||this;return Object.setPrototypeOf(r,n.prototype),r}return St(e,t),e}(Error),Rt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jt=function(t){function e(e,n){var r=t.call(this,(function(t,n){z.debug("No callbacks on "+e+" for "+t)}))||this;return r.name=e,r.pusher=n,r.subscribed=!1,r.subscriptionPending=!1,r.subscriptionCancelled=!1,r}return Rt(e,t),e.prototype.authorize=function(t,e){return e(!1,{auth:""})},e.prototype.trigger=function(t,e){if(0!==t.indexOf("client-"))throw new Ct("Event '"+t+"' does not start with 'client-'");if(!this.subscribed){var n=q("triggeringClientEvents");z.warn("Client event triggered before channel 'subscription_succeeded' event . "+n)}return this.pusher.send_event(t,e,this.name)},e.prototype.disconnect=function(){this.subscribed=!1,this.subscriptionPending=!1},e.prototype.handleEvent=function(t){var e=t.event,n=t.data;"pusher_internal:subscription_succeeded"===e?this.handleSubscriptionSucceededEvent(t):0!==e.indexOf("pusher_internal:")&&this.emit(e,n,{})},e.prototype.handleSubscriptionSucceededEvent=function(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",t.data)},e.prototype.subscribe=function(){var t=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(function(e,n){e?(z.error(n),t.emit("pusher:subscription_error",n)):(n=n,t.pusher.send_event("pusher:subscribe",{auth:n.auth,channel_data:n.channel_data,channel:t.name}))})))},e.prototype.unsubscribe=function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})},e.prototype.cancelSubscription=function(){this.subscriptionCancelled=!0},e.prototype.reinstateSubscription=function(){this.subscriptionCancelled=!1},e}(tt),Dt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dt(e,t),e.prototype.authorize=function(t,e){return Kt.createAuthorizer(this,this.pusher.config).authorize(t,e)},e}(jt),Lt=function(){function t(){this.reset()}return t.prototype.get=function(t){return Object.prototype.hasOwnProperty.call(this.members,t)?{id:t,info:this.members[t]}:null},t.prototype.each=function(t){var e=this;E(this.members,(function(n,r){t(e.get(r))}))},t.prototype.setMyID=function(t){this.myID=t},t.prototype.onSubscription=function(t){this.members=t.presence.hash,this.count=t.presence.count,this.me=this.get(this.myID)},t.prototype.addMember=function(t){return null===this.get(t.user_id)&&this.count++,this.members[t.user_id]=t.user_info,this.get(t.user_id)},t.prototype.removeMember=function(t){var e=this.get(t.user_id);return e&&(delete this.members[t.user_id],this.count--),e},t.prototype.reset=function(){this.members={},this.count=0,this.myID=null,this.me=null},t}(),Bt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zt=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.members=new Lt,r}return Bt(e,t),e.prototype.authorize=function(e,n){var r=this;t.prototype.authorize.call(this,e,(function(t,e){if(!t){if(void 0===(e=e).channel_data){var i=q("authenticationEndpoint");return z.error("Invalid auth response for channel '"+r.name+"',expected 'channel_data' field. "+i),void n("Invalid auth response")}var o=JSON.parse(e.channel_data);r.members.setMyID(o.user_id)}n(t,e)}))},e.prototype.handleEvent=function(t){var e=t.event;if(0===e.indexOf("pusher_internal:"))this.handleInternalEvent(t);else{var n=t.data,r={};t.user_id&&(r.user_id=t.user_id),this.emit(e,n,r)}},e.prototype.handleInternalEvent=function(t){var e=t.event,n=t.data;switch(e){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(t);break;case"pusher_internal:member_added":var r=this.members.addMember(n);this.emit("pusher:member_added",r);break;case"pusher_internal:member_removed":var i=this.members.removeMember(n);i&&this.emit("pusher:member_removed",i)}},e.prototype.handleSubscriptionSucceededEvent=function(t){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(t.data),this.emit("pusher:subscription_succeeded",this.members))},e.prototype.disconnect=function(){this.members.reset(),t.prototype.disconnect.call(this)},e}(Nt),Ft=n(0),qt=n(1),Vt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.key=null,e}return Vt(e,t),e.prototype.authorize=function(e,n){var r=this;t.prototype.authorize.call(this,e,(function(t,e){if(t)n(!0,e);else{var i=e.shared_secret;if(i)r.key=Object(qt.decodeBase64)(i),delete e.shared_secret,n(!1,e);else{var o="No shared_secret key in auth payload for encrypted channel: "+r.name;n(!0,o)}}}))},e.prototype.trigger=function(t,e){throw new Ot("Client events are not currently supported for encrypted channels")},e.prototype.handleEvent=function(e){var n=e.event,r=e.data;0!==n.indexOf("pusher_internal:")&&0!==n.indexOf("pusher:")?this.handleEncryptedEvent(n,r):t.prototype.handleEvent.call(this,e)},e.prototype.handleEncryptedEvent=function(t,e){var n=this;if(this.key)if(e.ciphertext&&e.nonce){var r=Object(qt.decodeBase64)(e.ciphertext);if(r.length<Ft.secretbox.overheadLength)z.error("Expected encrypted event ciphertext length to be "+Ft.secretbox.overheadLength+", got: "+r.length);else{var i=Object(qt.decodeBase64)(e.nonce);if(i.length<Ft.secretbox.nonceLength)z.error("Expected encrypted event nonce length to be "+Ft.secretbox.nonceLength+", got: "+i.length);else{var o=Ft.secretbox.open(r,i,this.key);if(null===o)return z.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,(function(e,a){e?z.error("Failed to make a request to the authEndpoint: "+a+". Unable to fetch new key, so dropping encrypted event"):null!==(o=Ft.secretbox.open(r,i,n.key))?n.emitJSON(t,Object(qt.encodeUTF8)(o)):z.error("Failed to decrypt event with new key. Dropping encrypted event")}));this.emitJSON(t,Object(qt.encodeUTF8)(o))}}}else z.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+e);else z.debug("Received encrypted event before key has been retrieved from the authEndpoint")},e.prototype.emitJSON=function(t,e){try{this.emit(t,JSON.parse(e))}catch(n){this.emit(t,e)}return this},e}(Nt),Ht=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ut=function(t){function e(e,n){var r=t.call(this)||this;r.key=e,r.options=n||{},r.state="initialized",r.connection=null,r.usingTLS=!!n.useTLS,r.timeline=r.options.timeline,r.errorCallbacks=r.buildErrorCallbacks(),r.connectionCallbacks=r.buildConnectionCallbacks(r.errorCallbacks),r.handshakeCallbacks=r.buildHandshakeCallbacks(r.errorCallbacks);var i=we.getNetwork();return i.bind("online",(function(){r.timeline.info({netinfo:"online"}),"connecting"!==r.state&&"unavailable"!==r.state||r.retryIn(0)})),i.bind("offline",(function(){r.timeline.info({netinfo:"offline"}),r.connection&&r.sendActivityCheck()})),r.updateStrategy(),r}return Ht(e,t),e.prototype.connect=function(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))},e.prototype.send=function(t){return!!this.connection&&this.connection.send(t)},e.prototype.send_event=function(t,e,n){return!!this.connection&&this.connection.send_event(t,e,n)},e.prototype.disconnect=function(){this.disconnectInternally(),this.updateState("disconnected")},e.prototype.isUsingTLS=function(){return this.usingTLS},e.prototype.startConnecting=function(){var t=this,e=function(n,r){n?t.runner=t.strategy.connect(0,e):"error"===r.action?(t.emit("error",{type:"HandshakeError",error:r.error}),t.timeline.error({handshakeError:r.error})):(t.abortConnecting(),t.handshakeCallbacks[r.action](r))};this.runner=this.strategy.connect(0,e)},e.prototype.abortConnecting=function(){this.runner&&(this.runner.abort(),this.runner=null)},e.prototype.disconnectInternally=function(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()},e.prototype.updateStrategy=function(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})},e.prototype.retryIn=function(t){var e=this;this.timeline.info({action:"retry",delay:t}),t>0&&this.emit("connecting_in",Math.round(t/1e3)),this.retryTimer=new M(t||0,(function(){e.disconnectInternally(),e.connect()}))},e.prototype.clearRetryTimer=function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)},e.prototype.setUnavailableTimer=function(){var t=this;this.unavailableTimer=new M(this.options.unavailableTimeout,(function(){t.updateState("unavailable")}))},e.prototype.clearUnavailableTimer=function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()},e.prototype.sendActivityCheck=function(){var t=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new M(this.options.pongTimeout,(function(){t.timeline.error({pong_timed_out:t.options.pongTimeout}),t.retryIn(0)}))},e.prototype.resetActivityCheck=function(){var t=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new M(this.activityTimeout,(function(){t.sendActivityCheck()})))},e.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},e.prototype.buildConnectionCallbacks=function(t){var e=this;return C({},t,{message:function(t){e.resetActivityCheck(),e.emit("message",t)},ping:function(){e.send_event("pusher:pong",{})},activity:function(){e.resetActivityCheck()},error:function(t){e.emit("error",{type:"WebSocketError",error:t})},closed:function(){e.abandonConnection(),e.shouldRetry()&&e.retryIn(1e3)}})},e.prototype.buildHandshakeCallbacks=function(t){var e=this;return C({},t,{connected:function(t){e.activityTimeout=Math.min(e.options.activityTimeout,t.activityTimeout,t.connection.activityTimeout||1/0),e.clearUnavailableTimer(),e.setConnection(t.connection),e.socket_id=e.connection.id,e.updateState("connected",{socket_id:e.socket_id})}})},e.prototype.buildErrorCallbacks=function(){var t=this,e=function(e){return function(n){n.error&&t.emit("error",{type:"WebSocketError",error:n.error}),e(n)}};return{tls_only:e((function(){t.usingTLS=!0,t.updateStrategy(),t.retryIn(0)})),refused:e((function(){t.disconnect()})),backoff:e((function(){t.retryIn(1e3)})),retry:e((function(){t.retryIn(0)}))}},e.prototype.setConnection=function(t){for(var e in this.connection=t,this.connectionCallbacks)this.connection.bind(e,this.connectionCallbacks[e]);this.resetActivityCheck()},e.prototype.abandonConnection=function(){if(this.connection){for(var t in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(t,this.connectionCallbacks[t]);var e=this.connection;return this.connection=null,e}},e.prototype.updateState=function(t,e){var n=this.state;if(this.state=t,n!==t){var r=t;"connected"===r&&(r+=" with new socket ID "+e.socket_id),z.debug("State changed",n+" -> "+r),this.timeline.info({state:t,params:e}),this.emit("state_change",{previous:n,current:t}),this.emit(t,e)}},e.prototype.shouldRetry=function(){return"connecting"===this.state||"connected"===this.state},e}(tt),Wt=function(){function t(){this.channels={}}return t.prototype.add=function(t,e){return this.channels[t]||(this.channels[t]=function(t,e){return 0===t.indexOf("private-encrypted-")?Kt.createEncryptedChannel(t,e):0===t.indexOf("private-")?Kt.createPrivateChannel(t,e):0===t.indexOf("presence-")?Kt.createPresenceChannel(t,e):Kt.createChannel(t,e)}(t,e)),this.channels[t]},t.prototype.all=function(){return function(t){var e=[];return E(t,(function(t){e.push(t)})),e}(this.channels)},t.prototype.find=function(t){return this.channels[t]},t.prototype.remove=function(t){var e=this.channels[t];return delete this.channels[t],e},t.prototype.disconnect=function(){E(this.channels,(function(t){t.disconnect()}))},t}(),Kt={createChannels:function(){return new Wt},createConnectionManager:function(t,e){return new Ut(t,e)},createChannel:function(t,e){return new jt(t,e)},createPrivateChannel:function(t,e){return new Nt(t,e)},createPresenceChannel:function(t,e){return new zt(t,e)},createEncryptedChannel:function(t,e){return new $t(t,e)},createTimelineSender:function(t,e){return new xt(t,e)},createAuthorizer:function(t,e){return e.authorizer?e.authorizer(t,e):new Mt(t,e)},createHandshake:function(t,e){return new kt(t,e)},createAssistantToTheTransportManager:function(t,e,n){return new gt(t,e,n)}},Yt=function(){function t(t){this.options=t||{},this.livesLeft=this.options.lives||1/0}return t.prototype.getAssistant=function(t){return Kt.createAssistantToTheTransportManager(this,t,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})},t.prototype.isAlive=function(){return this.livesLeft>0},t.prototype.reportDeath=function(){this.livesLeft-=1},t}(),Gt=function(){function t(t,e){this.strategies=t,this.loop=Boolean(e.loop),this.failFast=Boolean(e.failFast),this.timeout=e.timeout,this.timeoutLimit=e.timeoutLimit}return t.prototype.isSupported=function(){return D(this.strategies,S.method("isSupported"))},t.prototype.connect=function(t,e){var n=this,r=this.strategies,i=0,o=this.timeout,a=null,s=function(u,l){l?e(null,l):(i+=1,n.loop&&(i%=r.length),i<r.length?(o&&(o*=2,n.timeoutLimit&&(o=Math.min(o,n.timeoutLimit))),a=n.tryStrategy(r[i],t,{timeout:o,failFast:n.failFast},s)):e(!0))};return a=this.tryStrategy(r[i],t,{timeout:o,failFast:this.failFast},s),{abort:function(){a.abort()},forceMinPriority:function(e){t=e,a&&a.forceMinPriority(e)}}},t.prototype.tryStrategy=function(t,e,n,r){var i=null,o=null;return n.timeout>0&&(i=new M(n.timeout,(function(){o.abort(),r(!0)}))),o=t.connect(e,(function(t,e){t&&i&&i.isRunning()&&!n.failFast||(i&&i.ensureAborted(),r(t,e))})),{abort:function(){i&&i.ensureAborted(),o.abort()},forceMinPriority:function(t){o.forceMinPriority(t)}}},t}(),Zt=function(){function t(t){this.strategies=t}return t.prototype.isSupported=function(){return D(this.strategies,S.method("isSupported"))},t.prototype.connect=function(t,e){return function(t,e,n){var r=I(t,(function(t,r,i,o){return t.connect(e,n(r,o))}));return{abort:function(){P(r,Jt)},forceMinPriority:function(t){P(r,(function(e){e.forceMinPriority(t)}))}}}(this.strategies,t,(function(t,n){return function(r,i){n[t].error=r,r?function(t){return function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n,t))return!1;return!0}(t,(function(t){return Boolean(t.error)}))}(n)&&e(!0):(P(n,(function(t){t.forceMinPriority(i.transport.priority)})),e(null,i))}}))},t}();function Jt(t){t.error||t.aborted||(t.abort(),t.aborted=!0)}var Xt=function(){function t(t,e,n){this.strategy=t,this.transports=e,this.ttl=n.ttl||18e5,this.usingTLS=n.useTLS,this.timeline=n.timeline}return t.prototype.isSupported=function(){return this.strategy.isSupported()},t.prototype.connect=function(t,e){var n=this.usingTLS,r=function(t){var e=we.getLocalStorage();if(e)try{var n=e[Qt(t)];if(n)return JSON.parse(n)}catch(e){te(t)}return null}(n),i=[this.strategy];if(r&&r.timestamp+this.ttl>=S.now()){var o=this.transports[r.transport];o&&(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),i.push(new Gt([o],{timeout:2*r.latency+1e3,failFast:!0})))}var a=S.now(),s=i.pop().connect(t,(function r(o,u){o?(te(n),i.length>0?(a=S.now(),s=i.pop().connect(t,r)):e(o)):(function(t,e,n){var r=we.getLocalStorage();if(r)try{r[Qt(t)]=B({timestamp:S.now(),transport:e,latency:n})}catch(t){}}(n,u.transport.name,S.now()-a),e(null,u))}));return{abort:function(){s.abort()},forceMinPriority:function(e){t=e,s&&s.forceMinPriority(e)}}},t}();function Qt(t){return"pusherTransport"+(t?"TLS":"NonTLS")}function te(t){var e=we.getLocalStorage();if(e)try{delete e[Qt(t)]}catch(t){}}var ee=function(){function t(t,e){var n=e.delay;this.strategy=t,this.options={delay:n}}return t.prototype.isSupported=function(){return this.strategy.isSupported()},t.prototype.connect=function(t,e){var n,r=this.strategy,i=new M(this.options.delay,(function(){n=r.connect(t,e)}));return{abort:function(){i.ensureAborted(),n&&n.abort()},forceMinPriority:function(e){t=e,n&&n.forceMinPriority(e)}}},t}(),ne=function(){function t(t,e,n){this.test=t,this.trueBranch=e,this.falseBranch=n}return t.prototype.isSupported=function(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()},t.prototype.connect=function(t,e){return(this.test()?this.trueBranch:this.falseBranch).connect(t,e)},t}(),re=function(){function t(t){this.strategy=t}return t.prototype.isSupported=function(){return this.strategy.isSupported()},t.prototype.connect=function(t,e){var n=this.strategy.connect(t,(function(t,r){r&&n.abort(),e(t,r)}));return n},t}();function ie(t){return function(){return t.isSupported()}}var oe,ae=function(t,e){var n={};function r(r,i,o,a,s){var u=e(t,r,i,o,a,s);return n[r]=u,u}var i,o={hostNonTLS:t.wsHost+":"+t.wsPort,hostTLS:t.wsHost+":"+t.wssPort,httpPath:t.wsPath},a=C({},o,{useTLS:!0}),s={hostNonTLS:t.httpHost+":"+t.httpPort,hostTLS:t.httpHost+":"+t.httpsPort,httpPath:t.httpPath},u={loop:!0,timeout:15e3,timeoutLimit:6e4},l=new Yt({lives:2,minPingDelay:1e4,maxPingDelay:t.activity_timeout}),c=new Yt({lives:2,minPingDelay:1e4,maxPingDelay:t.activity_timeout}),f=r("ws","ws",3,o,l),d=r("wss","ws",3,a,l),h=r("sockjs","sockjs",1,s),p=r("xhr_streaming","xhr_streaming",1,s,c),m=r("xdr_streaming","xdr_streaming",1,s,c),v=r("xhr_polling","xhr_polling",1,s),g=r("xdr_polling","xdr_polling",1,s),b=new Gt([f],u),y=new Gt([d],u),w=new Gt([h],u),_=new Gt([new ne(ie(p),p,m)],u),k=new Gt([new ne(ie(v),v,g)],u),M=new Gt([new ne(ie(_),new Zt([_,new ee(k,{delay:4e3})]),k)],u),x=new ne(ie(M),M,w);return i=t.useTLS?new Zt([b,new ee(x,{delay:2e3})]):new Zt([b,new ee(y,{delay:2e3}),new ee(x,{delay:5e3})]),new Xt(new re(new ne(ie(f),i,x)),n,{ttl:18e5,timeline:t.timeline,useTLS:t.useTLS})},se={getRequest:function(t){var e=new window.XDomainRequest;return e.ontimeout=function(){t.emit("error",new At),t.close()},e.onerror=function(e){t.emit("error",e),t.close()},e.onprogress=function(){e.responseText&&e.responseText.length>0&&t.onChunk(200,e.responseText)},e.onload=function(){e.responseText&&e.responseText.length>0&&t.onChunk(200,e.responseText),t.emit("finished",200),t.close()},e},abortRequest:function(t){t.ontimeout=t.onerror=t.onprogress=t.onload=null,t.abort()}},ue=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),le=function(t){function e(e,n,r){var i=t.call(this)||this;return i.hooks=e,i.method=n,i.url=r,i}return ue(e,t),e.prototype.start=function(t){var e=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){e.close()},we.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(t)},e.prototype.close=function(){this.unloader&&(we.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)},e.prototype.onChunk=function(t,e){for(;;){var n=this.advanceBuffer(e);if(!n)break;this.emit("chunk",{status:t,data:n})}this.isBufferTooLong(e)&&this.emit("buffer_too_long")},e.prototype.advanceBuffer=function(t){var e=t.slice(this.position),n=e.indexOf("\n");return-1!==n?(this.position+=n+1,e.slice(0,n)):null},e.prototype.isBufferTooLong=function(t){return this.position===t.length&&t.length>262144},e}(tt);!function(t){t[t.CONNECTING=0]="CONNECTING",t[t.OPEN=1]="OPEN",t[t.CLOSED=3]="CLOSED"}(oe||(oe={}));var ce=oe,fe=1;function de(t){var e=-1===t.indexOf("?")?"?":"&";return t+e+"t="+ +new Date+"&n="+fe++}function he(t){return Math.floor(Math.random()*t)}var pe,me=function(){function t(t,e){this.hooks=t,this.session=he(1e3)+"/"+function(t){for(var e=[],n=0;n<t;n++)e.push(he(32).toString(32));return e.join("")}(8),this.location=function(t){var e=/([^\?]*)\/*(\??.*)/.exec(t);return{base:e[1],queryString:e[2]}}(e),this.readyState=ce.CONNECTING,this.openStream()}return t.prototype.send=function(t){return this.sendRaw(JSON.stringify([t]))},t.prototype.ping=function(){this.hooks.sendHeartbeat(this)},t.prototype.close=function(t,e){this.onClose(t,e,!0)},t.prototype.sendRaw=function(t){if(this.readyState!==ce.OPEN)return!1;try{return we.createSocketRequest("POST",de((e=this.location,n=this.session,e.base+"/"+n+"/xhr_send"))).start(t),!0}catch(t){return!1}var e,n},t.prototype.reconnect=function(){this.closeStream(),this.openStream()},t.prototype.onClose=function(t,e,n){this.closeStream(),this.readyState=ce.CLOSED,this.onclose&&this.onclose({code:t,reason:e,wasClean:n})},t.prototype.onChunk=function(t){var e;if(200===t.status)switch(this.readyState===ce.OPEN&&this.onActivity(),t.data.slice(0,1)){case"o":e=JSON.parse(t.data.slice(1)||"{}"),this.onOpen(e);break;case"a":e=JSON.parse(t.data.slice(1)||"[]");for(var n=0;n<e.length;n++)this.onEvent(e[n]);break;case"m":e=JSON.parse(t.data.slice(1)||"null"),this.onEvent(e);break;case"h":this.hooks.onHeartbeat(this);break;case"c":e=JSON.parse(t.data.slice(1)||"[]"),this.onClose(e[0],e[1],!0)}},t.prototype.onOpen=function(t){var e,n,r;this.readyState===ce.CONNECTING?(t&&t.hostname&&(this.location.base=(e=this.location.base,n=t.hostname,(r=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(e))[1]+n+r[3])),this.readyState=ce.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)},t.prototype.onEvent=function(t){this.readyState===ce.OPEN&&this.onmessage&&this.onmessage({data:t})},t.prototype.onActivity=function(){this.onactivity&&this.onactivity()},t.prototype.onError=function(t){this.onerror&&this.onerror(t)},t.prototype.openStream=function(){var t=this;this.stream=we.createSocketRequest("POST",de(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",(function(e){t.onChunk(e)})),this.stream.bind("finished",(function(e){t.hooks.onFinished(t,e)})),this.stream.bind("buffer_too_long",(function(){t.reconnect()}));try{this.stream.start()}catch(e){S.defer((function(){t.onError(e),t.onClose(1006,"Could not start streaming",!1)}))}},t.prototype.closeStream=function(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)},t}(),ve={getReceiveURL:function(t,e){return t.base+"/"+e+"/xhr_streaming"+t.queryString},onHeartbeat:function(t){t.sendRaw("[]")},sendHeartbeat:function(t){t.sendRaw("[]")},onFinished:function(t,e){t.onClose(1006,"Connection interrupted ("+e+")",!1)}},ge={getReceiveURL:function(t,e){return t.base+"/"+e+"/xhr"+t.queryString},onHeartbeat:function(){},sendHeartbeat:function(t){t.sendRaw("[]")},onFinished:function(t,e){200===e?t.reconnect():t.onClose(1006,"Connection interrupted ("+e+")",!1)}},be={getRequest:function(t){var e=new(we.getXHRAPI());return e.onreadystatechange=e.onprogress=function(){switch(e.readyState){case 3:e.responseText&&e.responseText.length>0&&t.onChunk(e.status,e.responseText);break;case 4:e.responseText&&e.responseText.length>0&&t.onChunk(e.status,e.responseText),t.emit("finished",e.status),t.close()}},e},abortRequest:function(t){t.onreadystatechange=null,t.abort()}},ye={createStreamingSocket:function(t){return this.createSocket(ve,t)},createPollingSocket:function(t){return this.createSocket(ge,t)},createSocket:function(t,e){return new me(t,e)},createXHR:function(t,e){return this.createRequest(be,t,e)},createRequest:function(t,e,n){return new le(t,e,n)},createXDR:function(t,e){return this.createRequest(se,t,e)}},we={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:s,getDefaultStrategy:ae,Transports:pt,transportConnectionInitializer:function(){var t=this;t.timeline.info(t.buildTimelineMessage({transport:t.name+(t.options.useTLS?"s":"")})),t.hooks.isInitialized()?t.changeState("initialized"):t.hooks.file?(t.changeState("initializing"),u.load(t.hooks.file,{useTLS:t.options.useTLS},(function(e,n){t.hooks.isInitialized()?(t.changeState("initialized"),n(!0)):(e&&t.onError(e),t.onClose(),n(!1))}))):t.onClose()},HTTPFactory:ye,TimelineTransport:W,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(t){var e=this;window.Pusher=t;var n=function(){e.onDocumentBody(t.ready)};window.JSON?n():u.load("json2",{},n)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:V,jsonp:$}},onDocumentBody:function(t){var e=this;document.body?t():setTimeout((function(){e.onDocumentBody(t)}),0)},createJSONPRequest:function(t,e){return new U(t,e)},createScriptRequest:function(t){return new H(t)},getLocalStorage:function(){try{return window.localStorage}catch(t){return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){return new(this.getXHRAPI())},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return vt},createWebSocket:function(t){return new(this.getWebSocketAPI())(t)},createSocketRequest:function(t,e){if(this.isXHRSupported())return this.HTTPFactory.createXHR(t,e);if(this.isXDRSupported(0===e.indexOf("https:")))return this.HTTPFactory.createXDR(t,e);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var t=this.getXHRAPI();return Boolean(t)&&void 0!==(new t).withCredentials},isXDRSupported:function(t){var e=t?"https:":"http:",n=this.getProtocol();return Boolean(window.XDomainRequest)&&n===e},addUnloadListener:function(t){void 0!==window.addEventListener?window.addEventListener("unload",t,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",t)},removeUnloadListener:function(t){void 0!==window.addEventListener?window.removeEventListener("unload",t,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",t)}};!function(t){t[t.ERROR=3]="ERROR",t[t.INFO=6]="INFO",t[t.DEBUG=7]="DEBUG"}(pe||(pe={}));var _e=pe,ke=function(){function t(t,e,n){this.key=t,this.session=e,this.events=[],this.options=n||{},this.sent=0,this.uniqueID=0}return t.prototype.log=function(t,e){t<=this.options.level&&(this.events.push(C({},e,{timestamp:S.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},t.prototype.error=function(t){this.log(_e.ERROR,t)},t.prototype.info=function(t){this.log(_e.INFO,t)},t.prototype.debug=function(t){this.log(_e.DEBUG,t)},t.prototype.isEmpty=function(){return 0===this.events.length},t.prototype.send=function(t,e){var n=this,r=C({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],t(r,(function(t,r){t||n.sent++,e&&e(t,r)})),!0},t.prototype.generateUniqueID=function(){return this.uniqueID++,this.uniqueID},t}(),Me=function(){function t(t,e,n,r){this.name=t,this.priority=e,this.transport=n,this.options=r||{}}return t.prototype.isSupported=function(){return this.transport.isSupported({useTLS:this.options.useTLS})},t.prototype.connect=function(t,e){var n=this;if(!this.isSupported())return xe(new It,e);if(this.priority<t)return xe(new Tt,e);var r=!1,i=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),o=null,a=function(){i.unbind("initialized",a),i.connect()},s=function(){o=Kt.createHandshake(i,(function(t){r=!0,c(),e(null,t)}))},u=function(t){c(),e(t)},l=function(){var t;c(),t=B(i),e(new Et(t))},c=function(){i.unbind("initialized",a),i.unbind("open",s),i.unbind("error",u),i.unbind("closed",l)};return i.bind("initialized",a),i.bind("open",s),i.bind("error",u),i.bind("closed",l),i.initialize(),{abort:function(){r||(c(),o?o.close():i.close())},forceMinPriority:function(t){r||n.priority<t&&(o?o.close():i.close())}}},t}();function xe(t,e){return S.defer((function(){e(t)})),{abort:function(){},forceMinPriority:function(){}}}var Se=we.Transports,Ce=function(t,e,n,r,i,o){var a=Se[n];if(!a)throw new Pt(n);return t.enabledTransports&&-1===T(t.enabledTransports,e)||t.disabledTransports&&-1!==T(t.disabledTransports,e)?Ae:new Me(e,r,o?o.getAssistant(a):a,C({key:t.key,useTLS:t.useTLS,timeline:t.timeline,ignoreNullOrigin:t.ignoreNullOrigin},i))},Ae={isSupported:function(){return!1},connect:function(t,e){var n=S.defer((function(){e(new It)}));return{abort:function(){n.ensureAborted()},forceMinPriority:function(){}}}},Te=function(){function t(e,n){var r,i=this;if(function(t){if(null==t)throw"You must pass your app key when you instantiate Pusher."}(e),!(n=n||{}).cluster&&!n.wsHost&&!n.httpHost){var a=q("javascriptQuickStart");z.warn("You should always specify a cluster when connecting. "+a)}"disableStats"in n&&(z.warn("The disableStats option is deprecated in favor of enableStats"),"enableStats"in n||(n.enableStats=!n.disableStats)),this.key=e,this.config=C({wsHost:o.host,wsPort:o.ws_port,wssPort:o.wss_port,wsPath:o.ws_path,httpHost:o.sockjs_host,httpPort:o.sockjs_http_port,httpsPort:o.sockjs_https_port,httpPath:o.sockjs_path,statsHost:o.stats_host,authEndpoint:o.channel_auth_endpoint,authTransport:o.channel_auth_transport,activity_timeout:o.activity_timeout,pong_timeout:o.pong_timeout,unavailable_timeout:o.unavailable_timeout},n.cluster?{wsHost:"ws-"+(r=n.cluster)+".pusher.com",httpHost:"sockjs-"+r+".pusher.com"}:{},n),this.channels=Kt.createChannels(),this.global_emitter=new tt,this.sessionID=Math.floor(1e9*Math.random()),this.timeline=new ke(this.key,this.sessionID,{cluster:this.config.cluster,features:t.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:_e.INFO,version:o.VERSION}),this.config.enableStats&&(this.timelineSender=Kt.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+we.TimelineTransport.name})),this.connection=Kt.createConnectionManager(this.key,C({getStrategy:function(t){var e=C({},i.config,t);return we.getDefaultStrategy(e,Ce)},timeline:this.timeline,activityTimeout:this.config.activity_timeout,pongTimeout:this.config.pong_timeout,unavailableTimeout:this.config.unavailable_timeout},this.config,{useTLS:this.shouldUseTLS()})),this.connection.bind("connected",(function(){i.subscribeAll(),i.timelineSender&&i.timelineSender.send(i.connection.isUsingTLS())})),this.connection.bind("message",(function(t){var e=0===t.event.indexOf("pusher_internal:");if(t.channel){var n=i.channel(t.channel);n&&n.handleEvent(t)}e||i.global_emitter.emit(t.event,t.data)})),this.connection.bind("connecting",(function(){i.channels.disconnect()})),this.connection.bind("disconnected",(function(){i.channels.disconnect()})),this.connection.bind("error",(function(t){z.warn(t)})),t.instances.push(this),this.timeline.info({instances:t.instances.length}),t.isReady&&this.connect()}return t.ready=function(){t.isReady=!0;for(var e=0,n=t.instances.length;e<n;e++)t.instances[e].connect()},t.getClientFeatures=function(){return O(j({ws:we.Transports.ws},(function(t){return t.isSupported({})})))},t.prototype.channel=function(t){return this.channels.find(t)},t.prototype.allChannels=function(){return this.channels.all()},t.prototype.connect=function(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var t=this.connection.isUsingTLS(),e=this.timelineSender;this.timelineSenderTimer=new x(6e4,(function(){e.send(t)}))}},t.prototype.disconnect=function(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)},t.prototype.bind=function(t,e,n){return this.global_emitter.bind(t,e,n),this},t.prototype.unbind=function(t,e,n){return this.global_emitter.unbind(t,e,n),this},t.prototype.bind_global=function(t){return this.global_emitter.bind_global(t),this},t.prototype.unbind_global=function(t){return this.global_emitter.unbind_global(t),this},t.prototype.unbind_all=function(t){return this.global_emitter.unbind_all(),this},t.prototype.subscribeAll=function(){var t;for(t in this.channels.channels)this.channels.channels.hasOwnProperty(t)&&this.subscribe(t)},t.prototype.subscribe=function(t){var e=this.channels.add(t,this);return e.subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||"connected"!==this.connection.state||e.subscribe(),e},t.prototype.unsubscribe=function(t){var e=this.channels.find(t);e&&e.subscriptionPending?e.cancelSubscription():(e=this.channels.remove(t))&&"connected"===this.connection.state&&e.unsubscribe()},t.prototype.send_event=function(t,e,n){return this.connection.send_event(t,e,n)},t.prototype.shouldUseTLS=function(){return"https:"===we.getProtocol()||!0===this.config.forceTLS||Boolean(this.config.encrypted)},t.instances=[],t.isReady=!1,t.logToConsole=!1,t.Runtime=we,t.ScriptReceivers=we.ScriptReceivers,t.DependenciesReceivers=we.DependenciesReceivers,t.auth_callbacks=we.auth_callbacks,t}(),Ee=e.default=Te;we.setup(Te)}])},t.exports=n()}).call(this,n(6).Buffer)},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=l(t),a=r[0],s=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),c=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[c++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e);return u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(c(t,a,a+16383>s?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,f=n?i-1:0,d=n?-1:1,h=t[e+f];for(f+=d,o=h&(1<<-c)-1,h>>=-c,c+=s;c>0;o=256*o+t[e+f],f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+f],f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=l}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<<l)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,l+=i;l>0;t[n+h]=255&a,h+=p,a/=256,l-=8);t[n+h-p]|=128*m}},function(t,e,n){"use strict";(function(e,n){var r=Object.freeze({});function i(t){return null==t}function o(t){return null!=t}function a(t){return!0===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function u(t){return null!==t&&"object"==typeof t}var l=Object.prototype.toString;function c(t){return"[object Object]"===l.call(t)}function f(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function h(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===l?JSON.stringify(t,null,2):String(t)}function p(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return e?function(t){return n[t.toLowerCase()]}:function(t){return n[t]}}var v=m("slot,component",!0),g=m("key,ref,slot,slot-scope,is");function b(t,e){if(t.length){var n=t.indexOf(e);if(n>-1)return t.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function w(t,e){return y.call(t,e)}function _(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var k=/-(\w)/g,M=_((function(t){return t.replace(k,(function(t,e){return e?e.toUpperCase():""}))})),x=_((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,C=_((function(t){return t.replace(S,"-$1").toLowerCase()})),A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function T(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function E(t,e){for(var n in e)t[n]=e[n];return t}function O(t){for(var e={},n=0;n<t.length;n++)t[n]&&E(e,t[n]);return e}function P(t,e,n){}var I=function(t,e,n){return!1},R=function(t){return t};function j(t,e){if(t===e)return!0;var n=u(t),r=u(e);if(!n||!r)return!n&&!r&&String(t)===String(e);try{var i=Array.isArray(t),o=Array.isArray(e);if(i&&o)return t.length===e.length&&t.every((function(t,n){return j(t,e[n])}));if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(i||o)return!1;var a=Object.keys(t),s=Object.keys(e);return a.length===s.length&&a.every((function(n){return j(t[n],e[n])}))}catch(t){return!1}}function D(t,e){for(var n=0;n<t.length;n++)if(j(t[n],e))return n;return-1}function N(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var L="data-server-rendered",B=["component","directive","filter"],z=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],F={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:I,isReservedAttr:I,isUnknownElement:I,getTagNamespace:P,parsePlatformTagName:R,mustUseProp:I,async:!0,_lifecycleHooks:z},q=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function V(t,e,n,r){Object.defineProperty(t,e,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var $,H=new RegExp("[^"+q.source+".$_\\d]"),U="__proto__"in{},W="undefined"!=typeof window,K="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,Y=K&&WXEnvironment.platform.toLowerCase(),G=W&&window.navigator.userAgent.toLowerCase(),Z=G&&/msie|trident/.test(G),J=G&&G.indexOf("msie 9.0")>0,X=G&&G.indexOf("edge/")>0,Q=(G&&G.indexOf("android"),G&&/iphone|ipad|ipod|ios/.test(G)||"ios"===Y),tt=(G&&/chrome\/\d+/.test(G),G&&/phantomjs/.test(G),G&&G.match(/firefox\/(\d+)/)),et={}.watch,nt=!1;if(W)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,rt)}catch(r){}var it=function(){return void 0===$&&($=!W&&!K&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),$},ot=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function at(t){return"function"==typeof t&&/native code/.test(t.toString())}var st,ut="undefined"!=typeof Symbol&&at(Symbol)&&"undefined"!=typeof Reflect&&at(Reflect.ownKeys);st="undefined"!=typeof Set&&at(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var lt=P,ct=0,ft=function(){this.id=ct++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){b(this.subs,t)},ft.prototype.depend=function(){ft.target&&ft.target.addDep(this)},ft.prototype.notify=function(){for(var t=this.subs.slice(),e=0,n=t.length;e<n;e++)t[e].update()},ft.target=null;var dt=[];function ht(t){dt.push(t),ft.target=t}function pt(){dt.pop(),ft.target=dt[dt.length-1]}var mt=function(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},vt={child:{configurable:!0}};vt.child.get=function(){return this.componentInstance},Object.defineProperties(mt.prototype,vt);var gt=function(t){void 0===t&&(t="");var e=new mt;return e.text=t,e.isComment=!0,e};function bt(t){return new mt(void 0,void 0,void 0,String(t))}function yt(t){var e=new mt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var wt=Array.prototype,_t=Object.create(wt);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(t){var e=wt[t];V(_t,t,(function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=e.apply(this,n),a=this.__ob__;switch(t){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o}))}));var kt=Object.getOwnPropertyNames(_t),Mt=!0;function xt(t){Mt=t}var St=function(t){var e;this.value=t,this.dep=new ft,this.vmCount=0,V(t,"__ob__",this),Array.isArray(t)?(U?(e=_t,t.__proto__=e):function(t,e,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];V(t,o,e[o])}}(t,_t,kt),this.observeArray(t)):this.walk(t)};function Ct(t,e){var n;if(u(t)&&!(t instanceof mt))return w(t,"__ob__")&&t.__ob__ instanceof St?n=t.__ob__:Mt&&!it()&&(Array.isArray(t)||c(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new St(t)),e&&n&&n.vmCount++,n}function At(t,e,n,r,i){var o=new ft,a=Object.getOwnPropertyDescriptor(t,e);if(!a||!1!==a.configurable){var s=a&&a.get,u=a&&a.set;s&&!u||2!==arguments.length||(n=t[e]);var l=!i&&Ct(n);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):n;return ft.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(e)&&function t(e){for(var n=void 0,r=0,i=e.length;r<i;r++)(n=e[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&t(n)}(e))),e},set:function(e){var r=s?s.call(t):n;e===r||e!=e&&r!=r||s&&!u||(u?u.call(t,e):n=e,l=!i&&Ct(e),o.notify())}})}}function Tt(t,e,n){if(Array.isArray(t)&&f(e))return t.length=Math.max(t.length,e),t.splice(e,1,n),n;if(e in t&&!(e in Object.prototype))return t[e]=n,n;var r=t.__ob__;return t._isVue||r&&r.vmCount?n:r?(At(r.value,e,n),r.dep.notify(),n):(t[e]=n,n)}function Et(t,e){if(Array.isArray(t)&&f(e))t.splice(e,1);else{var n=t.__ob__;t._isVue||n&&n.vmCount||w(t,e)&&(delete t[e],n&&n.dep.notify())}}St.prototype.walk=function(t){for(var e=Object.keys(t),n=0;n<e.length;n++)At(t,e[n])},St.prototype.observeArray=function(t){for(var e=0,n=t.length;e<n;e++)Ct(t[e])};var Ot=F.optionMergeStrategies;function Pt(t,e){if(!e)return t;for(var n,r,i,o=ut?Reflect.ownKeys(e):Object.keys(e),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=t[n],i=e[n],w(t,n)?r!==i&&c(r)&&c(i)&&Pt(r,i):Tt(t,n,i));return t}function It(t,e,n){return n?function(){var r="function"==typeof e?e.call(n,n):e,i="function"==typeof t?t.call(n,n):t;return r?Pt(r,i):i}:e?t?function(){return Pt("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function Rt(t,e){var n=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return n?function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(n):n}function jt(t,e,n,r){var i=Object.create(t||null);return e?E(i,e):i}Ot.data=function(t,e,n){return n?It(t,e,n):e&&"function"!=typeof e?t:It(t,e)},z.forEach((function(t){Ot[t]=Rt})),B.forEach((function(t){Ot[t+"s"]=jt})),Ot.watch=function(t,e,n,r){if(t===et&&(t=void 0),e===et&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var i={};for(var o in E(i,t),e){var a=i[o],s=e[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Ot.props=Ot.methods=Ot.inject=Ot.computed=function(t,e,n,r){if(!t)return e;var i=Object.create(null);return E(i,t),e&&E(i,e),i},Ot.provide=It;var Dt=function(t,e){return void 0===e?t:e};function Nt(t,e,n){if("function"==typeof e&&(e=e.options),function(t,e){var n=t.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[M(i)]={type:null});else if(c(n))for(var a in n)i=n[a],o[M(a)]=c(i)?i:{type:i};t.props=o}}(e),function(t,e){var n=t.inject;if(n){var r=t.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(c(n))for(var o in n){var a=n[o];r[o]=c(a)?E({from:o},a):{from:a}}}}(e),function(t){var e=t.directives;if(e)for(var n in e){var r=e[n];"function"==typeof r&&(e[n]={bind:r,update:r})}}(e),!e._base&&(e.extends&&(t=Nt(t,e.extends,n)),e.mixins))for(var r=0,i=e.mixins.length;r<i;r++)t=Nt(t,e.mixins[r],n);var o,a={};for(o in t)s(o);for(o in e)w(t,o)||s(o);function s(r){var i=Ot[r]||Dt;a[r]=i(t[r],e[r],n,r)}return a}function Lt(t,e,n,r){if("string"==typeof n){var i=t[e];if(w(i,n))return i[n];var o=M(n);if(w(i,o))return i[o];var a=x(o);return w(i,a)?i[a]:i[n]||i[o]||i[a]}}function Bt(t,e,n,r){var i=e[t],o=!w(n,t),a=n[t],s=qt(Boolean,i.type);if(s>-1)if(o&&!w(i,"default"))a=!1;else if(""===a||a===C(t)){var u=qt(String,i.type);(u<0||s<u)&&(a=!0)}if(void 0===a){a=function(t,e,n){if(w(e,"default")){var r=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[n]&&void 0!==t._props[n]?t._props[n]:"function"==typeof r&&"Function"!==zt(e.type)?r.call(t):r}}(r,i,t);var l=Mt;xt(!0),Ct(a),xt(l)}return a}function zt(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Ft(t,e){return zt(t)===zt(e)}function qt(t,e){if(!Array.isArray(e))return Ft(e,t)?0:-1;for(var n=0,r=e.length;n<r;n++)if(Ft(e[n],t))return n;return-1}function Vt(t,e,n){ht();try{if(e)for(var r=e;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,t,e,n))return}catch(t){Ht(t,r,"errorCaptured hook")}}Ht(t,e,n)}finally{pt()}}function $t(t,e,n,r,i){var o;try{(o=n?t.apply(e,n):t.call(e))&&!o._isVue&&d(o)&&!o._handled&&(o.catch((function(t){return Vt(t,r,i+" (Promise/async)")})),o._handled=!0)}catch(t){Vt(t,r,i)}return o}function Ht(t,e,n){if(F.errorHandler)try{return F.errorHandler.call(null,t,e,n)}catch(e){e!==t&&Ut(e,null,"config.errorHandler")}Ut(t,e,n)}function Ut(t,e,n){if(!W&&!K||"undefined"==typeof console)throw t;console.error(t)}var Wt,Kt=!1,Yt=[],Gt=!1;function Zt(){Gt=!1;var t=Yt.slice(0);Yt.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&at(Promise)){var Jt=Promise.resolve();Wt=function(){Jt.then(Zt),Q&&setTimeout(P)},Kt=!0}else if(Z||"undefined"==typeof MutationObserver||!at(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Wt=void 0!==n&&at(n)?function(){n(Zt)}:function(){setTimeout(Zt,0)};else{var Xt=1,Qt=new MutationObserver(Zt),te=document.createTextNode(String(Xt));Qt.observe(te,{characterData:!0}),Wt=function(){Xt=(Xt+1)%2,te.data=String(Xt)},Kt=!0}function ee(t,e){var n;if(Yt.push((function(){if(t)try{t.call(e)}catch(t){Vt(t,e,"nextTick")}else n&&n(e)})),Gt||(Gt=!0,Wt()),!t&&"undefined"!=typeof Promise)return new Promise((function(t){n=t}))}var ne=new st;function re(t){!function t(e,n){var r,i,o=Array.isArray(e);if(!(!o&&!u(e)||Object.isFrozen(e)||e instanceof mt)){if(e.__ob__){var a=e.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=e.length;r--;)t(e[r],n);else for(r=(i=Object.keys(e)).length;r--;)t(e[i[r]],n)}}(t,ne),ne.clear()}var ie=_((function(t){var e="&"===t.charAt(0),n="~"===(t=e?t.slice(1):t).charAt(0),r="!"===(t=n?t.slice(1):t).charAt(0);return{name:t=r?t.slice(1):t,once:n,capture:r,passive:e}}));function oe(t,e){function n(){var t=arguments,r=n.fns;if(!Array.isArray(r))return $t(r,null,arguments,e,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)$t(i[o],null,t,e,"v-on handler")}return n.fns=t,n}function ae(t,e,n,r,o,s){var u,l,c,f;for(u in t)l=t[u],c=e[u],f=ie(u),i(l)||(i(c)?(i(l.fns)&&(l=t[u]=oe(l,s)),a(f.once)&&(l=t[u]=o(f.name,l,f.capture)),n(f.name,l,f.capture,f.passive,f.params)):l!==c&&(c.fns=l,t[u]=c));for(u in e)i(t[u])&&r((f=ie(u)).name,e[u],f.capture)}function se(t,e,n){var r;t instanceof mt&&(t=t.data.hook||(t.data.hook={}));var s=t[e];function u(){n.apply(this,arguments),b(r.fns,u)}i(s)?r=oe([u]):o(s.fns)&&a(s.merged)?(r=s).fns.push(u):r=oe([s,u]),r.merged=!0,t[e]=r}function ue(t,e,n,r,i){if(o(e)){if(w(e,n))return t[n]=e[n],i||delete e[n],!0;if(w(e,r))return t[n]=e[r],i||delete e[r],!0}return!1}function le(t){return s(t)?[bt(t)]:Array.isArray(t)?function t(e,n){var r,u,l,c,f=[];for(r=0;r<e.length;r++)i(u=e[r])||"boolean"==typeof u||(c=f[l=f.length-1],Array.isArray(u)?u.length>0&&(ce((u=t(u,(n||"")+"_"+r))[0])&&ce(c)&&(f[l]=bt(c.text+u[0].text),u.shift()),f.push.apply(f,u)):s(u)?ce(c)?f[l]=bt(c.text+u):""!==u&&f.push(bt(u)):ce(u)&&ce(c)?f[l]=bt(c.text+u.text):(a(e._isVList)&&o(u.tag)&&i(u.key)&&o(n)&&(u.key="__vlist"+n+"_"+r+"__"),f.push(u)));return f}(t):void 0}function ce(t){return o(t)&&o(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var n=Object.create(null),r=ut?Reflect.ownKeys(t):Object.keys(t),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=t[o].from,s=e;s;){if(s._provided&&w(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in t[o]){var u=t[o].default;n[o]="function"==typeof u?u.call(e):u}}}return n}}function de(t,e){if(!t||!t.length)return{};for(var n={},r=0,i=t.length;r<i;r++){var o=t[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==e&&o.fnContext!==e||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,u=n[s]||(n[s]=[]);"template"===o.tag?u.push.apply(u,o.children||[]):u.push(o)}}for(var l in n)n[l].every(he)&&delete n[l];return n}function he(t){return t.isComment&&!t.asyncFactory||" "===t.text}function pe(t,e,n){var i,o=Object.keys(e).length>0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=me(e,u,t[u]))}else i={};for(var l in e)l in i||(i[l]=ve(e,l));return t&&Object.isExtensible(t)&&(t._normalized=i),V(i,"$stable",a),V(i,"$key",s),V(i,"$hasNormal",o),i}function me(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:le(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function ve(t,e){return function(){return t[e]}}function ge(t,e){var n,r,i,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;r<i;r++)n[r]=e(t[r],r);else if("number"==typeof t)for(n=new Array(t),r=0;r<t;r++)n[r]=e(r+1,r);else if(u(t))if(ut&&t[Symbol.iterator]){n=[];for(var l=t[Symbol.iterator](),c=l.next();!c.done;)n.push(e(c.value,n.length)),c=l.next()}else for(a=Object.keys(t),n=new Array(a.length),r=0,i=a.length;r<i;r++)s=a[r],n[r]=e(t[s],s,r);return o(n)||(n=[]),n._isVList=!0,n}function be(t,e,n,r){var i,o=this.$scopedSlots[t];o?(n=n||{},r&&(n=E(E({},r),n)),i=o(n)||e):i=this.$slots[t]||e;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function ye(t){return Lt(this.$options,"filters",t)||R}function we(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function _e(t,e,n,r,i){var o=F.keyCodes[e]||n;return i&&r&&!F.keyCodes[e]?we(i,r):o?we(o,t):r?C(r)!==e:void 0}function ke(t,e,n,r,i){if(n&&u(n)){var o;Array.isArray(n)&&(n=O(n));var a=function(a){if("class"===a||"style"===a||g(a))o=t;else{var s=t.attrs&&t.attrs.type;o=r||F.mustUseProp(e,s,a)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var u=M(a),l=C(a);u in o||l in o||(o[a]=n[a],i&&((t.on||(t.on={}))["update:"+a]=function(t){n[a]=t}))};for(var s in n)a(s)}return t}function Me(t,e){var n=this._staticTrees||(this._staticTrees=[]),r=n[t];return r&&!e||Se(r=n[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),r}function xe(t,e,n){return Se(t,"__once__"+e+(n?"_"+n:""),!0),t}function Se(t,e,n){if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]&&"string"!=typeof t[r]&&Ce(t[r],e+"_"+r,n);else Ce(t,e,n)}function Ce(t,e,n){t.isStatic=!0,t.key=e,t.isOnce=n}function Ae(t,e){if(e&&c(e)){var n=t.on=t.on?E({},t.on):{};for(var r in e){var i=n[r],o=e[r];n[r]=i?[].concat(i,o):o}}return t}function Te(t,e,n,r){e=e||{$stable:!n};for(var i=0;i<t.length;i++){var o=t[i];Array.isArray(o)?Te(o,e,n):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return r&&(e.$key=r),e}function Ee(t,e){for(var n=0;n<e.length;n+=2){var r=e[n];"string"==typeof r&&r&&(t[e[n]]=e[n+1])}return t}function Oe(t,e){return"string"==typeof t?e+t:t}function Pe(t){t._o=xe,t._n=p,t._s=h,t._l=ge,t._t=be,t._q=j,t._i=D,t._m=Me,t._f=ye,t._k=_e,t._b=ke,t._v=bt,t._e=gt,t._u=Te,t._g=Ae,t._d=Ee,t._p=Oe}function Ie(t,e,n,i,o){var s,u=this,l=o.options;w(i,"_uid")?(s=Object.create(i))._original=i:(s=i,i=i._original);var c=a(l._compiled),f=!c;this.data=t,this.props=e,this.children=n,this.parent=i,this.listeners=t.on||r,this.injections=fe(l.inject,i),this.slots=function(){return u.$slots||pe(t.scopedSlots,u.$slots=de(n,i)),u.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return pe(t.scopedSlots,this.slots())}}),c&&(this.$options=l,this.$slots=this.slots(),this.$scopedSlots=pe(t.scopedSlots,this.$slots)),l._scopeId?this._c=function(t,e,n,r){var o=ze(s,t,e,n,r,f);return o&&!Array.isArray(o)&&(o.fnScopeId=l._scopeId,o.fnContext=i),o}:this._c=function(t,e,n,r){return ze(s,t,e,n,r,f)}}function Re(t,e,n,r,i){var o=yt(t);return o.fnContext=n,o.fnOptions=r,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function je(t,e){for(var n in e)t[M(n)]=e[n]}Pe(Ie.prototype);var De={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var n=t;De.prepatch(n,n)}else(t.componentInstance=function(t,e){var n={_isComponent:!0,_parentVnode:t,parent:e},r=t.data.inlineTemplate;return o(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new t.componentOptions.Ctor(n)}(t,Ge)).$mount(e?t.elm:void 0,e)},prepatch:function(t,e){var n=e.componentOptions;!function(t,e,n,i,o){var a=i.data.scopedSlots,s=t.$scopedSlots,u=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&t.$scopedSlots.$key!==a.$key),l=!!(o||t.$options._renderChildren||u);if(t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i),t.$options._renderChildren=o,t.$attrs=i.data.attrs||r,t.$listeners=n||r,e&&t.$options.props){xt(!1);for(var c=t._props,f=t.$options._propKeys||[],d=0;d<f.length;d++){var h=f[d],p=t.$options.props;c[h]=Bt(h,p,e,t)}xt(!0),t.$options.propsData=e}n=n||r;var m=t.$options._parentListeners;t.$options._parentListeners=n,Ye(t,n,m),l&&(t.$slots=de(o,i.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,n.propsData,n.listeners,e,n.children)},insert:function(t){var e,n=t.context,r=t.componentInstance;r._isMounted||(r._isMounted=!0,Qe(r,"mounted")),t.data.keepAlive&&(n._isMounted?((e=r)._inactive=!1,en.push(e)):Xe(r,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,n){if(!(n&&(e._directInactive=!0,Je(e))||e._inactive)){e._inactive=!0;for(var r=0;r<e.$children.length;r++)t(e.$children[r]);Qe(e,"deactivated")}}(e,!0):e.$destroy())}},Ne=Object.keys(De);function Le(t,e,n,s,l){if(!i(t)){var c=n.$options._base;if(u(t)&&(t=c.extend(t)),"function"==typeof t){var f;if(i(t.cid)&&void 0===(t=function(t,e){if(a(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;var n=qe;if(n&&o(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),a(t.loading)&&o(t.loadingComp))return t.loadingComp;if(n&&!o(t.owners)){var r=t.owners=[n],s=!0,l=null,c=null;n.$on("hook:destroyed",(function(){return b(r,n)}));var f=function(t){for(var e=0,n=r.length;e<n;e++)r[e].$forceUpdate();t&&(r.length=0,null!==l&&(clearTimeout(l),l=null),null!==c&&(clearTimeout(c),c=null))},h=N((function(n){t.resolved=Ve(n,e),s?r.length=0:f(!0)})),p=N((function(e){o(t.errorComp)&&(t.error=!0,f(!0))})),m=t(h,p);return u(m)&&(d(m)?i(t.resolved)&&m.then(h,p):d(m.component)&&(m.component.then(h,p),o(m.error)&&(t.errorComp=Ve(m.error,e)),o(m.loading)&&(t.loadingComp=Ve(m.loading,e),0===m.delay?t.loading=!0:l=setTimeout((function(){l=null,i(t.resolved)&&i(t.error)&&(t.loading=!0,f(!1))}),m.delay||200)),o(m.timeout)&&(c=setTimeout((function(){c=null,i(t.resolved)&&p(null)}),m.timeout)))),s=!1,t.loading?t.loadingComp:t.resolved}}(f=t,c)))return function(t,e,n,r,i){var o=gt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}(f,e,n,s,l);e=e||{},_n(t),o(e.model)&&function(t,e){var n=t.model&&t.model.prop||"value",r=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[n]=e.model.value;var i=e.on||(e.on={}),a=i[r],s=e.model.callback;o(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(i[r]=[s].concat(a)):i[r]=s}(t.options,e);var h=function(t,e,n){var r=e.options.props;if(!i(r)){var a={},s=t.attrs,u=t.props;if(o(s)||o(u))for(var l in r){var c=C(l);ue(a,u,l,c,!0)||ue(a,s,l,c,!1)}return a}}(e,t);if(a(t.options.functional))return function(t,e,n,i,a){var s=t.options,u={},l=s.props;if(o(l))for(var c in l)u[c]=Bt(c,l,e||r);else o(n.attrs)&&je(u,n.attrs),o(n.props)&&je(u,n.props);var f=new Ie(n,u,a,i,t),d=s.render.call(null,f._c,f);if(d instanceof mt)return Re(d,n,f.parent,s);if(Array.isArray(d)){for(var h=le(d)||[],p=new Array(h.length),m=0;m<h.length;m++)p[m]=Re(h[m],n,f.parent,s);return p}}(t,h,e,n,s);var p=e.on;if(e.on=e.nativeOn,a(t.options.abstract)){var m=e.slot;e={},m&&(e.slot=m)}!function(t){for(var e=t.hook||(t.hook={}),n=0;n<Ne.length;n++){var r=Ne[n],i=e[r],o=De[r];i===o||i&&i._merged||(e[r]=i?Be(o,i):o)}}(e);var v=t.options.name||l;return new mt("vue-component-"+t.cid+(v?"-"+v:""),e,void 0,void 0,void 0,n,{Ctor:t,propsData:h,listeners:p,tag:l,children:s},f)}}}function Be(t,e){var n=function(n,r){t(n,r),e(n,r)};return n._merged=!0,n}function ze(t,e,n,r,l,c){return(Array.isArray(n)||s(n))&&(l=r,r=n,n=void 0),a(c)&&(l=2),function(t,e,n,r,s){if(o(n)&&o(n.__ob__))return gt();if(o(n)&&o(n.is)&&(e=n.is),!e)return gt();var l,c,f;(Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0),2===s?r=le(r):1===s&&(r=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(r)),"string"==typeof e)?(c=t.$vnode&&t.$vnode.ns||F.getTagNamespace(e),l=F.isReservedTag(e)?new mt(F.parsePlatformTagName(e),n,r,void 0,void 0,t):n&&n.pre||!o(f=Lt(t.$options,"components",e))?new mt(e,n,r,void 0,void 0,t):Le(f,n,t,r,e)):l=Le(e,n,t,r);return Array.isArray(l)?l:o(l)?(o(c)&&function t(e,n,r){if(e.ns=n,"foreignObject"===e.tag&&(n=void 0,r=!0),o(e.children))for(var s=0,u=e.children.length;s<u;s++){var l=e.children[s];o(l.tag)&&(i(l.ns)||a(r)&&"svg"!==l.tag)&&t(l,n,r)}}(l,c),o(n)&&function(t){u(t.style)&&re(t.style),u(t.class)&&re(t.class)}(n),l):gt()}(t,e,n,r,l)}var Fe,qe=null;function Ve(t,e){return(t.__esModule||ut&&"Module"===t[Symbol.toStringTag])&&(t=t.default),u(t)?e.extend(t):t}function $e(t){return t.isComment&&t.asyncFactory}function He(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var n=t[e];if(o(n)&&(o(n.componentOptions)||$e(n)))return n}}function Ue(t,e){Fe.$on(t,e)}function We(t,e){Fe.$off(t,e)}function Ke(t,e){var n=Fe;return function r(){null!==e.apply(null,arguments)&&n.$off(t,r)}}function Ye(t,e,n){Fe=t,ae(e,n||{},Ue,We,Ke,t),Fe=void 0}var Ge=null;function Ze(t){var e=Ge;return Ge=t,function(){Ge=e}}function Je(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function Xe(t,e){if(e){if(t._directInactive=!1,Je(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var n=0;n<t.$children.length;n++)Xe(t.$children[n]);Qe(t,"activated")}}function Qe(t,e){ht();var n=t.$options[e],r=e+" hook";if(n)for(var i=0,o=n.length;i<o;i++)$t(n[i],t,null,t,r);t._hasHookEvent&&t.$emit("hook:"+e),pt()}var tn=[],en=[],nn={},rn=!1,on=!1,an=0,sn=0,un=Date.now;if(W&&!Z){var ln=window.performance;ln&&"function"==typeof ln.now&&un()>document.createEvent("Event").timeStamp&&(un=function(){return ln.now()})}function cn(){var t,e;for(sn=un(),on=!0,tn.sort((function(t,e){return t.id-e.id})),an=0;an<tn.length;an++)(t=tn[an]).before&&t.before(),e=t.id,nn[e]=null,t.run();var n=en.slice(),r=tn.slice();an=tn.length=en.length=0,nn={},rn=on=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,Xe(t[e],!0)}(n),function(t){for(var e=t.length;e--;){var n=t[e],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Qe(r,"updated")}}(r),ot&&F.devtools&&ot.emit("flush")}var fn=0,dn=function(t,e,n,r,i){this.vm=t,i&&(t._watcher=this),t._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++fn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new st,this.newDepIds=new st,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!H.test(t)){var e=t.split(".");return function(t){for(var n=0;n<e.length;n++){if(!t)return;t=t[e[n]]}return t}}}(e),this.getter||(this.getter=P)),this.value=this.lazy?void 0:this.get()};dn.prototype.get=function(){var t;ht(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Vt(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&re(t),pt(),this.cleanupDeps()}return t},dn.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},dn.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},dn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==nn[e]){if(nn[e]=!0,on){for(var n=tn.length-1;n>an&&tn[n].id>t.id;)n--;tn.splice(n+1,0,t)}else tn.push(t);rn||(rn=!0,ee(cn))}}(this)},dn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Vt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},dn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},dn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},dn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||b(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var hn={enumerable:!0,configurable:!0,get:P,set:P};function pn(t,e,n){hn.get=function(){return this[e][n]},hn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,hn)}var mn={lazy:!0};function vn(t,e,n){var r=!it();"function"==typeof n?(hn.get=r?gn(e):bn(n),hn.set=P):(hn.get=n.get?r&&!1!==n.cache?gn(e):bn(n.get):P,hn.set=n.set||P),Object.defineProperty(t,e,hn)}function gn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function bn(t){return function(){return t.call(this,this)}}function yn(t,e,n,r){return c(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var wn=0;function _n(t){var e=t.options;if(t.super){var n=_n(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var i in n)n[i]!==r[i]&&(e||(e={}),e[i]=n[i]);return e}(t);r&&E(t.extendOptions,r),(e=t.options=Nt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function kn(t){this._init(t)}function Mn(t){return t&&(t.Ctor.options.name||t.tag)}function xn(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(n=t,"[object RegExp]"===l.call(n)&&t.test(e));var n}function Sn(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Mn(a.componentOptions);s&&!e(s)&&Cn(n,o,r,i)}}}function Cn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,b(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=wn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Nt(_n(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ye(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=de(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return ze(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return ze(t,e,n,r,i,!0)};var o=n&&n.data;At(t,"$attrs",o&&o.attrs||r,null,!0),At(t,"$listeners",e._parentListeners||r,null,!0)}(e),Qe(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(xt(!1),Object.keys(e).forEach((function(n){At(t,n,e[n])})),xt(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&xt(!1);var o=function(o){i.push(o);var a=Bt(o,e,n,t);At(r,o,a),o in t||pn(t,"_props",o)};for(var a in e)o(a);xt(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?P:A(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;c(e=t._data="function"==typeof e?function(t,e){ht();try{return t.call(e,e)}catch(t){return Vt(t,e,"data()"),{}}finally{pt()}}(e,t):e||{})||(e={});for(var n,r=Object.keys(e),i=t.$options.props,o=(t.$options.methods,r.length);o--;){var a=r[o];i&&w(i,a)||(void 0,36!==(n=(a+"").charCodeAt(0))&&95!==n&&pn(t,"_data",a))}Ct(e,!0)}(t):Ct(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=it();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;r||(n[i]=new dn(t,a||P,P,mn)),i in t||vn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)yn(t,n,r[i]);else yn(t,n,r)}}(t,e.watch)}(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),Qe(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(kn),function(t){Object.defineProperty(t.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(t.prototype,"$props",{get:function(){return this._props}}),t.prototype.$set=Tt,t.prototype.$delete=Et,t.prototype.$watch=function(t,e,n){if(c(e))return yn(this,t,e,n);(n=n||{}).user=!0;var r=new dn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(t){Vt(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(kn),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i<o;i++)r.$on(t[i],n);else(r._events[t]||(r._events[t]=[])).push(n),e.test(t)&&(r._hasHookEvent=!0);return r},t.prototype.$once=function(t,e){var n=this;function r(){n.$off(t,r),e.apply(n,arguments)}return r.fn=e,n.$on(t,r),n},t.prototype.$off=function(t,e){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(t)){for(var r=0,i=t.length;r<i;r++)n.$off(t[r],e);return n}var o,a=n._events[t];if(!a)return n;if(!e)return n._events[t]=null,n;for(var s=a.length;s--;)if((o=a[s])===e||o.fn===e){a.splice(s,1);break}return n},t.prototype.$emit=function(t){var e=this._events[t];if(e){e=e.length>1?T(e):e;for(var n=T(arguments,1),r='event handler for "'+t+'"',i=0,o=e.length;i<o;i++)$t(e[i],this,n,this,r)}return this}}(kn),function(t){t.prototype._update=function(t,e){var n=this,r=n.$el,i=n._vnode,o=Ze(n);n._vnode=t,n.$el=i?n.__patch__(i,t):n.__patch__(n.$el,t,e,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){Qe(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||b(e.$children,t),t._watcher&&t._watcher.teardown();for(var n=t._watchers.length;n--;)t._watchers[n].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),Qe(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(kn),function(t){Pe(t.prototype),t.prototype.$nextTick=function(t){return ee(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&(e.$scopedSlots=pe(i.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=i;try{qe=e,t=r.call(e._renderProxy,e.$createElement)}catch(n){Vt(n,e,"render"),t=e._vnode}finally{qe=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof mt||(t=gt()),t.parent=i,t}}(kn);var An=[String,RegExp,Array],Tn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:An,exclude:An,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Cn(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",(function(e){Sn(t,(function(t){return xn(e,t)}))})),this.$watch("exclude",(function(e){Sn(t,(function(t){return!xn(e,t)}))}))},render:function(){var t=this.$slots.default,e=He(t),n=e&&e.componentOptions;if(n){var r=Mn(n),i=this.include,o=this.exclude;if(i&&(!r||!xn(i,r))||o&&r&&xn(o,r))return e;var a=this.cache,s=this.keys,u=null==e.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):e.key;a[u]?(e.componentInstance=a[u].componentInstance,b(s,u),s.push(u)):(a[u]=e,s.push(u),this.max&&s.length>parseInt(this.max)&&Cn(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return F}};Object.defineProperty(t,"config",e),t.util={warn:lt,extend:E,mergeOptions:Nt,defineReactive:At},t.set=Tt,t.delete=Et,t.nextTick=ee,t.observable=function(t){return Ct(t),t},t.options=Object.create(null),B.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,E(t.options.components,Tn),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=T(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Nt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=t.name||n.options.name,a=function(t){this._init(t)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=e++,a.options=Nt(n.options,t),a.super=n,a.options.props&&function(t){var e=t.options.props;for(var n in e)pn(t.prototype,"_props",n)}(a),a.options.computed&&function(t){var e=t.options.computed;for(var n in e)vn(t.prototype,n,e[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,B.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=E({},a.options),i[r]=a,a}}(t),function(t){B.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&c(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(kn),Object.defineProperty(kn.prototype,"$isServer",{get:it}),Object.defineProperty(kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kn,"FunctionalRenderContext",{value:Ie}),kn.version="2.6.11";var En=m("style,class"),On=m("input,textarea,option,select,progress"),Pn=function(t,e,n){return"value"===n&&On(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},In=m("contenteditable,draggable,spellcheck"),Rn=m("events,caret,typing,plaintext-only"),jn=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Dn="http://www.w3.org/1999/xlink",Nn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Ln=function(t){return Nn(t)?t.slice(6,t.length):""},Bn=function(t){return null==t||!1===t};function zn(t,e){return{staticClass:Fn(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Fn(t,e){return t?e?t+" "+e:t:e||""}function qn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r<i;r++)o(e=qn(t[r]))&&""!==e&&(n&&(n+=" "),n+=e);return n}(t):u(t)?function(t){var e="";for(var n in t)t[n]&&(e&&(e+=" "),e+=n);return e}(t):"string"==typeof t?t:""}var Vn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},$n=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Hn=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Un=function(t){return $n(t)||Hn(t)};function Wn(t){return Hn(t)?"svg":"math"===t?"math":void 0}var Kn=Object.create(null),Yn=m("text,number,password,search,email,tel,url");function Gn(t){return"string"==typeof t?document.querySelector(t)||document.createElement("div"):t}var Zn=Object.freeze({createElement:function(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(t,e){return document.createElementNS(Vn[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,n){t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),Jn={create:function(t,e){Xn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(Xn(t,!0),Xn(e))},destroy:function(t){Xn(t,!0)}};function Xn(t,e){var n=t.data.ref;if(o(n)){var r=t.context,i=t.componentInstance||t.elm,a=r.$refs;e?Array.isArray(a[n])?b(a[n],i):a[n]===i&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])?a[n].indexOf(i)<0&&a[n].push(i):a[n]=[i]:a[n]=i}}var Qn=new mt("",{},[]),tr=["create","activate","update","remove","destroy"];function er(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&function(t,e){if("input"!==t.tag)return!0;var n,r=o(n=t.data)&&o(n=n.attrs)&&n.type,i=o(n=e.data)&&o(n=n.attrs)&&n.type;return r===i||Yn(r)&&Yn(i)}(t,e)||a(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&i(e.asyncFactory.error))}function nr(t,e,n){var r,i,a={};for(r=e;r<=n;++r)o(i=t[r].key)&&(a[i]=r);return a}var rr={create:ir,update:ir,destroy:function(t){ir(t,Qn)}};function ir(t,e){(t.data.directives||e.data.directives)&&function(t,e){var n,r,i,o=t===Qn,a=e===Qn,s=ar(t.data.directives,t.context),u=ar(e.data.directives,e.context),l=[],c=[];for(n in u)r=s[n],i=u[n],r?(i.oldValue=r.value,i.oldArg=r.arg,ur(i,"update",e,t),i.def&&i.def.componentUpdated&&c.push(i)):(ur(i,"bind",e,t),i.def&&i.def.inserted&&l.push(i));if(l.length){var f=function(){for(var n=0;n<l.length;n++)ur(l[n],"inserted",e,t)};o?se(e,"insert",f):f()}if(c.length&&se(e,"postpatch",(function(){for(var n=0;n<c.length;n++)ur(c[n],"componentUpdated",e,t)})),!o)for(n in s)u[n]||ur(s[n],"unbind",t,t,a)}(t,e)}var or=Object.create(null);function ar(t,e){var n,r,i=Object.create(null);if(!t)return i;for(n=0;n<t.length;n++)(r=t[n]).modifiers||(r.modifiers=or),i[sr(r)]=r,r.def=Lt(e.$options,"directives",r.name);return i}function sr(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function ur(t,e,n,r,i){var o=t.def&&t.def[e];if(o)try{o(n.elm,t,n,r,i)}catch(r){Vt(r,n.context,"directive "+t.name+" "+e+" hook")}}var lr=[Jn,rr];function cr(t,e){var n=e.componentOptions;if(!(o(n)&&!1===n.Ctor.options.inheritAttrs||i(t.data.attrs)&&i(e.data.attrs))){var r,a,s=e.elm,u=t.data.attrs||{},l=e.data.attrs||{};for(r in o(l.__ob__)&&(l=e.data.attrs=E({},l)),l)a=l[r],u[r]!==a&&fr(s,r,a);for(r in(Z||X)&&l.value!==u.value&&fr(s,"value",l.value),u)i(l[r])&&(Nn(r)?s.removeAttributeNS(Dn,Ln(r)):In(r)||s.removeAttribute(r))}}function fr(t,e,n){t.tagName.indexOf("-")>-1?dr(t,e,n):jn(e)?Bn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):In(e)?t.setAttribute(e,function(t,e){return Bn(e)||"false"===e?"false":"contenteditable"===t&&Rn(e)?e:"true"}(e,n)):Nn(e)?Bn(n)?t.removeAttributeNS(Dn,Ln(e)):t.setAttributeNS(Dn,e,n):dr(t,e,n)}function dr(t,e,n){if(Bn(n))t.removeAttribute(e);else{if(Z&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var hr={create:cr,update:cr};function pr(t,e){var n=e.elm,r=e.data,a=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=function(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=zn(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=zn(e,n.data));return function(t,e){return o(t)||o(e)?Fn(t,qn(e)):""}(e.staticClass,e.class)}(e),u=n._transitionClasses;o(u)&&(s=Fn(s,qn(u))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var mr,vr,gr,br,yr,wr,_r={create:pr,update:pr},kr=/[\w).+\-_$\]]/;function Mr(t){var e,n,r,i,o,a=!1,s=!1,u=!1,l=!1,c=0,f=0,d=0,h=0;for(r=0;r<t.length;r++)if(n=e,e=t.charCodeAt(r),a)39===e&&92!==n&&(a=!1);else if(s)34===e&&92!==n&&(s=!1);else if(u)96===e&&92!==n&&(u=!1);else if(l)47===e&&92!==n&&(l=!1);else if(124!==e||124===t.charCodeAt(r+1)||124===t.charCodeAt(r-1)||c||f||d){switch(e){case 34:s=!0;break;case 39:a=!0;break;case 96:u=!0;break;case 40:d++;break;case 41:d--;break;case 91:f++;break;case 93:f--;break;case 123:c++;break;case 125:c--}if(47===e){for(var p=r-1,m=void 0;p>=0&&" "===(m=t.charAt(p));p--);m&&kr.test(m)||(l=!0)}}else void 0===i?(h=r+1,i=t.slice(0,r).trim()):v();function v(){(o||(o=[])).push(t.slice(h,r).trim()),h=r+1}if(void 0===i?i=t.slice(0,r).trim():0!==h&&v(),o)for(r=0;r<o.length;r++)i=xr(i,o[r]);return i}function xr(t,e){var n=e.indexOf("(");if(n<0)return'_f("'+e+'")('+t+")";var r=e.slice(0,n),i=e.slice(n+1);return'_f("'+r+'")('+t+(")"!==i?","+i:i)}function Sr(t,e){console.error("[Vue compiler]: "+t)}function Cr(t,e){return t?t.map((function(t){return t[e]})).filter((function(t){return t})):[]}function Ar(t,e,n,r,i){(t.props||(t.props=[])).push(Nr({name:e,value:n,dynamic:i},r)),t.plain=!1}function Tr(t,e,n,r,i){(i?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push(Nr({name:e,value:n,dynamic:i},r)),t.plain=!1}function Er(t,e,n,r){t.attrsMap[e]=n,t.attrsList.push(Nr({name:e,value:n},r))}function Or(t,e,n,r,i,o,a,s){(t.directives||(t.directives=[])).push(Nr({name:e,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),t.plain=!1}function Pr(t,e,n){return n?"_p("+e+',"'+t+'")':t+e}function Ir(t,e,n,i,o,a,s,u){var l;(i=i||r).right?u?e="("+e+")==='click'?'contextmenu':("+e+")":"click"===e&&(e="contextmenu",delete i.right):i.middle&&(u?e="("+e+")==='click'?'mouseup':("+e+")":"click"===e&&(e="mouseup")),i.capture&&(delete i.capture,e=Pr("!",e,u)),i.once&&(delete i.once,e=Pr("~",e,u)),i.passive&&(delete i.passive,e=Pr("&",e,u)),i.native?(delete i.native,l=t.nativeEvents||(t.nativeEvents={})):l=t.events||(t.events={});var c=Nr({value:n.trim(),dynamic:u},s);i!==r&&(c.modifiers=i);var f=l[e];Array.isArray(f)?o?f.unshift(c):f.push(c):l[e]=f?o?[c,f]:[f,c]:c,t.plain=!1}function Rr(t,e,n){var r=jr(t,":"+e)||jr(t,"v-bind:"+e);if(null!=r)return Mr(r);if(!1!==n){var i=jr(t,e);if(null!=i)return JSON.stringify(i)}}function jr(t,e,n){var r;if(null!=(r=t.attrsMap[e]))for(var i=t.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===e){i.splice(o,1);break}return n&&delete t.attrsMap[e],r}function Dr(t,e){for(var n=t.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(e.test(o.name))return n.splice(r,1),o}}function Nr(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function Lr(t,e,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var a=Br(e,o);t.model={value:"("+e+")",expression:JSON.stringify(e),callback:"function ($$v) {"+a+"}"}}function Br(t,e){var n=function(t){if(t=t.trim(),mr=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<mr-1)return(br=t.lastIndexOf("."))>-1?{exp:t.slice(0,br),key:'"'+t.slice(br+1)+'"'}:{exp:t,key:null};for(vr=t,br=yr=wr=0;!Fr();)qr(gr=zr())?$r(gr):91===gr&&Vr(gr);return{exp:t.slice(0,yr),key:t.slice(yr+1,wr)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function zr(){return vr.charCodeAt(++br)}function Fr(){return br>=mr}function qr(t){return 34===t||39===t}function Vr(t){var e=1;for(yr=br;!Fr();)if(qr(t=zr()))$r(t);else if(91===t&&e++,93===t&&e--,0===e){wr=br;break}}function $r(t){for(var e=t;!Fr()&&(t=zr())!==e;);}var Hr,Ur="__r";function Wr(t,e,n){var r=Hr;return function i(){null!==e.apply(null,arguments)&&Gr(t,i,n,r)}}var Kr=Kt&&!(tt&&Number(tt[1])<=53);function Yr(t,e,n,r){if(Kr){var i=sn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Hr.addEventListener(t,e,nt?{capture:n,passive:r}:n)}function Gr(t,e,n,r){(r||Hr).removeEventListener(t,e._wrapper||e,n)}function Zr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Hr=e.elm,function(t){if(o(t.__r)){var e=Z?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),ae(n,r,Yr,Gr,Wr,e.context),Hr=void 0}}var Jr,Xr={create:Zr,update:Zr};function Qr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,a=e.elm,s=t.data.domProps||{},u=e.data.domProps||{};for(n in o(u.__ob__)&&(u=e.data.domProps=E({},u)),s)n in u||(a[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var l=i(r)?"":String(r);ti(a,l)&&(a.value=l)}else if("innerHTML"===n&&Hn(a.tagName)&&i(a.innerHTML)){(Jr=Jr||document.createElement("div")).innerHTML="<svg>"+r+"</svg>";for(var c=Jr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}else if(r!==s[n])try{a[n]=r}catch(t){}}}}function ti(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return p(n)!==p(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var ei={create:Qr,update:Qr},ni=_((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function ri(t){var e=ii(t.style);return t.staticStyle?E(t.staticStyle,e):e}function ii(t){return Array.isArray(t)?O(t):"string"==typeof t?ni(t):t}var oi,ai=/^--/,si=/\s*!important$/,ui=function(t,e,n){if(ai.test(e))t.style.setProperty(e,n);else if(si.test(n))t.style.setProperty(C(e),n.replace(si,""),"important");else{var r=ci(e);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)t.style[r]=n[i];else t.style[r]=n}},li=["Webkit","Moz","ms"],ci=_((function(t){if(oi=oi||document.createElement("div").style,"filter"!==(t=M(t))&&t in oi)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<li.length;n++){var r=li[n]+e;if(r in oi)return r}}));function fi(t,e){var n=e.data,r=t.data;if(!(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))){var a,s,u=e.elm,l=r.staticStyle,c=r.normalizedStyle||r.style||{},f=l||c,d=ii(e.data.style)||{};e.data.normalizedStyle=o(d.__ob__)?E({},d):d;var h=function(t,e){for(var n,r={},i=t;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=ri(i.data))&&E(r,n);(n=ri(t.data))&&E(r,n);for(var o=t;o=o.parent;)o.data&&(n=ri(o.data))&&E(r,n);return r}(e);for(s in f)i(h[s])&&ui(u,s,"");for(s in h)(a=h[s])!==f[s]&&ui(u,s,null==a?"":a)}}var di={create:fi,update:fi},hi=/\s+/;function pi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(hi).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function mi(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(hi).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function vi(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&E(e,gi(t.name||"v")),E(e,t),e}return"string"==typeof t?gi(t):void 0}}var gi=_((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),bi=W&&!J,yi="transition",wi="animation",_i="transition",ki="transitionend",Mi="animation",xi="animationend";bi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(_i="WebkitTransition",ki="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Mi="WebkitAnimation",xi="webkitAnimationEnd"));var Si=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ci(t){Si((function(){Si(t)}))}function Ai(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),pi(t,e))}function Ti(t,e){t._transitionClasses&&b(t._transitionClasses,e),mi(t,e)}function Ei(t,e,n){var r=Pi(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===yi?ki:xi,u=0,l=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++u>=a&&l()};setTimeout((function(){u<a&&l()}),o+1),t.addEventListener(s,c)}var Oi=/\b(transform|all)(,|$)/;function Pi(t,e){var n,r=window.getComputedStyle(t),i=(r[_i+"Delay"]||"").split(", "),o=(r[_i+"Duration"]||"").split(", "),a=Ii(i,o),s=(r[Mi+"Delay"]||"").split(", "),u=(r[Mi+"Duration"]||"").split(", "),l=Ii(s,u),c=0,f=0;return e===yi?a>0&&(n=yi,c=a,f=o.length):e===wi?l>0&&(n=wi,c=l,f=u.length):f=(n=(c=Math.max(a,l))>0?a>l?yi:wi:null)?n===yi?o.length:u.length:0,{type:n,timeout:c,propCount:f,hasTransform:n===yi&&Oi.test(r[_i+"Property"])}}function Ii(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map((function(e,n){return Ri(e)+Ri(t[n])})))}function Ri(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function ji(t,e){var n=t.elm;o(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var r=vi(t.data.transition);if(!i(r)&&!o(n._enterCb)&&1===n.nodeType){for(var a=r.css,s=r.type,l=r.enterClass,c=r.enterToClass,f=r.enterActiveClass,d=r.appearClass,h=r.appearToClass,m=r.appearActiveClass,v=r.beforeEnter,g=r.enter,b=r.afterEnter,y=r.enterCancelled,w=r.beforeAppear,_=r.appear,k=r.afterAppear,M=r.appearCancelled,x=r.duration,S=Ge,C=Ge.$vnode;C&&C.parent;)S=C.context,C=C.parent;var A=!S._isMounted||!t.isRootInsert;if(!A||_||""===_){var T=A&&d?d:l,E=A&&m?m:f,O=A&&h?h:c,P=A&&w||v,I=A&&"function"==typeof _?_:g,R=A&&k||b,j=A&&M||y,D=p(u(x)?x.enter:x),L=!1!==a&&!J,B=Li(I),z=n._enterCb=N((function(){L&&(Ti(n,O),Ti(n,E)),z.cancelled?(L&&Ti(n,T),j&&j(n)):R&&R(n),n._enterCb=null}));t.data.show||se(t,"insert",(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),I&&I(n,z)})),P&&P(n),L&&(Ai(n,T),Ai(n,E),Ci((function(){Ti(n,T),z.cancelled||(Ai(n,O),B||(Ni(D)?setTimeout(z,D):Ei(n,s,z)))}))),t.data.show&&(e&&e(),I&&I(n,z)),L||B||z()}}}function Di(t,e){var n=t.elm;o(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=vi(t.data.transition);if(i(r)||1!==n.nodeType)return e();if(!o(n._leaveCb)){var a=r.css,s=r.type,l=r.leaveClass,c=r.leaveToClass,f=r.leaveActiveClass,d=r.beforeLeave,h=r.leave,m=r.afterLeave,v=r.leaveCancelled,g=r.delayLeave,b=r.duration,y=!1!==a&&!J,w=Li(h),_=p(u(b)?b.leave:b),k=n._leaveCb=N((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[t.key]=null),y&&(Ti(n,c),Ti(n,f)),k.cancelled?(y&&Ti(n,l),v&&v(n)):(e(),m&&m(n)),n._leaveCb=null}));g?g(M):M()}function M(){k.cancelled||(!t.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[t.key]=t),d&&d(n),y&&(Ai(n,l),Ai(n,f),Ci((function(){Ti(n,l),k.cancelled||(Ai(n,c),w||(Ni(_)?setTimeout(k,_):Ei(n,s,k)))}))),h&&h(n,k),y||w||k())}}function Ni(t){return"number"==typeof t&&!isNaN(t)}function Li(t){if(i(t))return!1;var e=t.fns;return o(e)?Li(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Bi(t,e){!0!==e.data.show&&ji(e)}var zi=function(t){var e,n,r={},u=t.modules,l=t.nodeOps;for(e=0;e<tr.length;++e)for(r[tr[e]]=[],n=0;n<u.length;++n)o(u[n][tr[e]])&&r[tr[e]].push(u[n][tr[e]]);function c(t){var e=l.parentNode(t);o(e)&&l.removeChild(e,t)}function f(t,e,n,i,s,u,c){if(o(t.elm)&&o(u)&&(t=u[c]=yt(t)),t.isRootInsert=!s,!function(t,e,n,i){var s=t.data;if(o(s)){var u=o(t.componentInstance)&&s.keepAlive;if(o(s=s.hook)&&o(s=s.init)&&s(t,!1),o(t.componentInstance))return d(t,e),h(n,t.elm,i),a(u)&&function(t,e,n,i){for(var a,s=t;s.componentInstance;)if(o(a=(s=s.componentInstance._vnode).data)&&o(a=a.transition)){for(a=0;a<r.activate.length;++a)r.activate[a](Qn,s);e.push(s);break}h(n,t.elm,i)}(t,e,n,i),!0}}(t,e,n,i)){var f=t.data,m=t.children,v=t.tag;o(v)?(t.elm=t.ns?l.createElementNS(t.ns,v):l.createElement(v,t),b(t),p(t,m,e),o(f)&&g(t,e),h(n,t.elm,i)):a(t.isComment)?(t.elm=l.createComment(t.text),h(n,t.elm,i)):(t.elm=l.createTextNode(t.text),h(n,t.elm,i))}}function d(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,v(t)?(g(t,e),b(t)):(Xn(t),e.push(t))}function h(t,e,n){o(t)&&(o(n)?l.parentNode(n)===t&&l.insertBefore(t,e,n):l.appendChild(t,e))}function p(t,e,n){if(Array.isArray(e))for(var r=0;r<e.length;++r)f(e[r],n,t.elm,null,!0,e,r);else s(t.text)&&l.appendChild(t.elm,l.createTextNode(String(t.text)))}function v(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return o(t.tag)}function g(t,n){for(var i=0;i<r.create.length;++i)r.create[i](Qn,t);o(e=t.data.hook)&&(o(e.create)&&e.create(Qn,t),o(e.insert)&&n.push(t))}function b(t){var e;if(o(e=t.fnScopeId))l.setStyleScope(t.elm,e);else for(var n=t;n;)o(e=n.context)&&o(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e),n=n.parent;o(e=Ge)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&l.setStyleScope(t.elm,e)}function y(t,e,n,r,i,o){for(;r<=i;++r)f(n[r],o,t,e,!1,n,r)}function w(t){var e,n,i=t.data;if(o(i))for(o(e=i.hook)&&o(e=e.destroy)&&e(t),e=0;e<r.destroy.length;++e)r.destroy[e](t);if(o(e=t.children))for(n=0;n<t.children.length;++n)w(t.children[n])}function _(t,e,n){for(;e<=n;++e){var r=t[e];o(r)&&(o(r.tag)?(k(r),w(r)):c(r.elm))}}function k(t,e){if(o(e)||o(t.data)){var n,i=r.remove.length+1;for(o(e)?e.listeners+=i:e=function(t,e){function n(){0==--n.listeners&&c(t)}return n.listeners=e,n}(t.elm,i),o(n=t.componentInstance)&&o(n=n._vnode)&&o(n.data)&&k(n,e),n=0;n<r.remove.length;++n)r.remove[n](t,e);o(n=t.data.hook)&&o(n=n.remove)?n(t,e):e()}else c(t.elm)}function M(t,e,n,r){for(var i=n;i<r;i++){var a=e[i];if(o(a)&&er(t,a))return i}}function x(t,e,n,s,u,c){if(t!==e){o(e.elm)&&o(s)&&(e=s[u]=yt(e));var d=e.elm=t.elm;if(a(t.isAsyncPlaceholder))o(e.asyncFactory.resolved)?A(t.elm,e,n):e.isAsyncPlaceholder=!0;else if(a(e.isStatic)&&a(t.isStatic)&&e.key===t.key&&(a(e.isCloned)||a(e.isOnce)))e.componentInstance=t.componentInstance;else{var h,p=e.data;o(p)&&o(h=p.hook)&&o(h=h.prepatch)&&h(t,e);var m=t.children,g=e.children;if(o(p)&&v(e)){for(h=0;h<r.update.length;++h)r.update[h](t,e);o(h=p.hook)&&o(h=h.update)&&h(t,e)}i(e.text)?o(m)&&o(g)?m!==g&&function(t,e,n,r,a){for(var s,u,c,d=0,h=0,p=e.length-1,m=e[0],v=e[p],g=n.length-1,b=n[0],w=n[g],k=!a;d<=p&&h<=g;)i(m)?m=e[++d]:i(v)?v=e[--p]:er(m,b)?(x(m,b,r,n,h),m=e[++d],b=n[++h]):er(v,w)?(x(v,w,r,n,g),v=e[--p],w=n[--g]):er(m,w)?(x(m,w,r,n,g),k&&l.insertBefore(t,m.elm,l.nextSibling(v.elm)),m=e[++d],w=n[--g]):er(v,b)?(x(v,b,r,n,h),k&&l.insertBefore(t,v.elm,m.elm),v=e[--p],b=n[++h]):(i(s)&&(s=nr(e,d,p)),i(u=o(b.key)?s[b.key]:M(b,e,d,p))?f(b,r,t,m.elm,!1,n,h):er(c=e[u],b)?(x(c,b,r,n,h),e[u]=void 0,k&&l.insertBefore(t,c.elm,m.elm)):f(b,r,t,m.elm,!1,n,h),b=n[++h]);d>p?y(t,i(n[g+1])?null:n[g+1].elm,n,h,g,r):h>g&&_(e,d,p)}(d,m,g,n,c):o(g)?(o(t.text)&&l.setTextContent(d,""),y(d,null,g,0,g.length-1,n)):o(m)?_(m,0,m.length-1):o(t.text)&&l.setTextContent(d,""):t.text!==e.text&&l.setTextContent(d,e.text),o(p)&&o(h=p.hook)&&o(h=h.postpatch)&&h(t,e)}}}function S(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r<e.length;++r)e[r].data.hook.insert(e[r])}var C=m("attrs,class,staticClass,staticStyle,key");function A(t,e,n,r){var i,s=e.tag,u=e.data,l=e.children;if(r=r||u&&u.pre,e.elm=t,a(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(u)&&(o(i=u.hook)&&o(i=i.init)&&i(e,!0),o(i=e.componentInstance)))return d(e,n),!0;if(o(s)){if(o(l))if(t.hasChildNodes())if(o(i=u)&&o(i=i.domProps)&&o(i=i.innerHTML)){if(i!==t.innerHTML)return!1}else{for(var c=!0,f=t.firstChild,h=0;h<l.length;h++){if(!f||!A(f,l[h],n,r)){c=!1;break}f=f.nextSibling}if(!c||f)return!1}else p(e,l,n);if(o(u)){var m=!1;for(var v in u)if(!C(v)){m=!0,g(e,n);break}!m&&u.class&&re(u.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,n,s){if(!i(e)){var u,c=!1,d=[];if(i(t))c=!0,f(e,d);else{var h=o(t.nodeType);if(!h&&er(t,e))x(t,e,d,null,null,s);else{if(h){if(1===t.nodeType&&t.hasAttribute(L)&&(t.removeAttribute(L),n=!0),a(n)&&A(t,e,d))return S(e,d,!0),t;u=t,t=new mt(l.tagName(u).toLowerCase(),{},[],void 0,u)}var p=t.elm,m=l.parentNode(p);if(f(e,d,p._leaveCb?null:m,l.nextSibling(p)),o(e.parent))for(var g=e.parent,b=v(e);g;){for(var y=0;y<r.destroy.length;++y)r.destroy[y](g);if(g.elm=e.elm,b){for(var k=0;k<r.create.length;++k)r.create[k](Qn,g);var M=g.data.hook.insert;if(M.merged)for(var C=1;C<M.fns.length;C++)M.fns[C]()}else Xn(g);g=g.parent}o(m)?_([t],0,0):o(t.tag)&&w(t)}}return S(e,d,c),e.elm}o(t)&&w(t)}}({nodeOps:Zn,modules:[hr,_r,Xr,ei,di,W?{create:Bi,activate:Bi,remove:function(t,e){!0!==t.data.show?Di(t,e):e()}}:{}].concat(lr)});J&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&Ki(t,"input")}));var Fi={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?se(n,"postpatch",(function(){Fi.componentUpdated(t,e,n)})):qi(t,e,n.context),t._vOptions=[].map.call(t.options,Hi)):("textarea"===n.tag||Yn(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",Ui),t.addEventListener("compositionend",Wi),t.addEventListener("change",Wi),J&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){qi(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,Hi);i.some((function(t,e){return!j(t,r[e])}))&&(t.multiple?e.value.some((function(t){return $i(t,i)})):e.value!==e.oldValue&&$i(e.value,i))&&Ki(t,"change")}}};function qi(t,e,n){Vi(t,e,n),(Z||X)&&setTimeout((function(){Vi(t,e,n)}),0)}function Vi(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=t.options.length;s<u;s++)if(a=t.options[s],i)o=D(r,Hi(a))>-1,a.selected!==o&&(a.selected=o);else if(j(Hi(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function $i(t,e){return e.every((function(e){return!j(e,t)}))}function Hi(t){return"_value"in t?t._value:t.value}function Ui(t){t.target.composing=!0}function Wi(t){t.target.composing&&(t.target.composing=!1,Ki(t.target,"input"))}function Ki(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Yi(t){return!t.componentInstance||t.data&&t.data.transition?t:Yi(t.componentInstance._vnode)}var Gi={model:Fi,show:{bind:function(t,e,n){var r=e.value,i=(n=Yi(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,ji(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Yi(n)).data&&n.data.transition?(n.data.show=!0,r?ji(n,(function(){t.style.display=t.__vOriginalDisplay})):Di(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},Zi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ji(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Ji(He(e.children)):t}function Xi(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[M(o)]=i[o];return e}function Qi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var to=function(t){return t.tag||$e(t)},eo=function(t){return"show"===t.name},no={name:"transition",props:Zi,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(to)).length){var r=this.mode,i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=Ji(i);if(!o)return i;if(this._leaving)return Qi(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=Xi(this),l=this._vnode,c=Ji(l);if(o.data.directives&&o.data.directives.some(eo)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!$e(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var f=c.data.transition=E({},u);if("out-in"===r)return this._leaving=!0,se(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Qi(t,i);if("in-out"===r){if($e(o))return l;var d,h=function(){d()};se(u,"afterEnter",h),se(u,"enterCancelled",h),se(f,"delayLeave",(function(t){d=t}))}}return i}}},ro=E({tag:String,moveClass:String},Zi);function io(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function oo(t){t.data.newPos=t.elm.getBoundingClientRect()}function ao(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete ro.mode;var so={Transition:no,TransitionGroup:{props:ro,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Ze(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Xi(this),s=0;s<i.length;s++){var u=i[s];u.tag&&null!=u.key&&0!==String(u.key).indexOf("__vlist")&&(o.push(u),n[u.key]=u,(u.data||(u.data={})).transition=a)}if(r){for(var l=[],c=[],f=0;f<r.length;f++){var d=r[f];d.data.transition=a,d.data.pos=d.elm.getBoundingClientRect(),n[d.key]?l.push(d):c.push(d)}this.kept=t(e,null,l),this.removed=c}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(io),t.forEach(oo),t.forEach(ao),this._reflow=document.body.offsetHeight,t.forEach((function(t){if(t.data.moved){var n=t.elm,r=n.style;Ai(n,e),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(ki,n._moveCb=function t(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(ki,t),n._moveCb=null,Ti(n,e))})}})))},methods:{hasMove:function(t,e){if(!bi)return!1;if(this._hasMove)return this._hasMove;var n=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach((function(t){mi(n,t)})),pi(n,e),n.style.display="none",this.$el.appendChild(n);var r=Pi(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};kn.config.mustUseProp=Pn,kn.config.isReservedTag=Un,kn.config.isReservedAttr=En,kn.config.getTagNamespace=Wn,kn.config.isUnknownElement=function(t){if(!W)return!0;if(Un(t))return!1;if(t=t.toLowerCase(),null!=Kn[t])return Kn[t];var e=document.createElement(t);return t.indexOf("-")>-1?Kn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Kn[t]=/HTMLUnknownElement/.test(e.toString())},E(kn.options.directives,Gi),E(kn.options.components,so),kn.prototype.__patch__=W?zi:P,kn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=gt),Qe(t,"beforeMount"),r=function(){t._update(t._render(),n)},new dn(t,r,P,{before:function(){t._isMounted&&!t._isDestroyed&&Qe(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Qe(t,"mounted")),t}(this,t=t&&W?Gn(t):void 0,e)},W&&setTimeout((function(){F.devtools&&ot&&ot.emit("init",kn)}),0);var uo,lo=/\{\{((?:.|\r?\n)+?)\}\}/g,co=/[-.*+?^${}()|[\]\/\\]/g,fo=_((function(t){var e=t[0].replace(co,"\\$&"),n=t[1].replace(co,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")})),ho={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=jr(t,"class");n&&(t.staticClass=JSON.stringify(n));var r=Rr(t,"class",!1);r&&(t.classBinding=r)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},po={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=jr(t,"style");n&&(t.staticStyle=JSON.stringify(ni(n)));var r=Rr(t,"style",!1);r&&(t.styleBinding=r)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},mo=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),vo=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),go=m("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),bo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,yo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,wo="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+q.source+"]*",_o="((?:"+wo+"\\:)?"+wo+")",ko=new RegExp("^<"+_o),Mo=/^\s*(\/?)>/,xo=new RegExp("^<\\/"+_o+"[^>]*>"),So=/^<!DOCTYPE [^>]+>/i,Co=/^<!\--/,Ao=/^<!\[/,To=m("script,style,textarea",!0),Eo={},Oo={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Po=/&(?:lt|gt|quot|amp|#39);/g,Io=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ro=m("pre,textarea",!0),jo=function(t,e){return t&&Ro(t)&&"\n"===e[0]};function Do(t,e){var n=e?Io:Po;return t.replace(n,(function(t){return Oo[t]}))}var No,Lo,Bo,zo,Fo,qo,Vo,$o,Ho=/^@|^v-on:/,Uo=/^v-|^@|^:|^#/,Wo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ko=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Yo=/^\(|\)$/g,Go=/^\[.*\]$/,Zo=/:(.*)$/,Jo=/^:|^\.|^v-bind:/,Xo=/\.[^.\]]+(?=[^\]]*$)/g,Qo=/^v-slot(:|$)|^#/,ta=/[\r\n]/,ea=/\s+/g,na=_((function(t){return(uo=uo||document.createElement("div")).innerHTML=t,uo.textContent})),ra="_empty_";function ia(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:ca(e),rawAttrsMap:{},parent:n,children:[]}}function oa(t,e){var n,r;(r=Rr(n=t,"key"))&&(n.key=r),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Rr(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=jr(t,"scope"),t.slotScope=e||jr(t,"slot-scope")):(e=jr(t,"slot-scope"))&&(t.slotScope=e);var n=Rr(t,"slot");if(n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Tr(t,"slot",n,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var r=Dr(t,Qo);if(r){var i=ua(r),o=i.name,a=i.dynamic;t.slotTarget=o,t.slotTargetDynamic=a,t.slotScope=r.value||ra}}else{var s=Dr(t,Qo);if(s){var u=t.scopedSlots||(t.scopedSlots={}),l=ua(s),c=l.name,f=l.dynamic,d=u[c]=ia("template",[],t);d.slotTarget=c,d.slotTargetDynamic=f,d.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=d,!0})),d.slotScope=s.value||ra,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Rr(t,"name"))}(t),function(t){var e;(e=Rr(t,"is"))&&(t.component=e),null!=jr(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var i=0;i<Bo.length;i++)t=Bo[i](t,e)||t;return function(t){var e,n,r,i,o,a,s,u,l=t.attrsList;for(e=0,n=l.length;e<n;e++)if(r=i=l[e].name,o=l[e].value,Uo.test(r))if(t.hasBindings=!0,(a=la(r.replace(Uo,"")))&&(r=r.replace(Xo,"")),Jo.test(r))r=r.replace(Jo,""),o=Mr(o),(u=Go.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!u&&"innerHtml"===(r=M(r))&&(r="innerHTML"),a.camel&&!u&&(r=M(r)),a.sync&&(s=Br(o,"$event"),u?Ir(t,'"update:"+('+r+")",s,null,!1,0,l[e],!0):(Ir(t,"update:"+M(r),s,null,!1,0,l[e]),C(r)!==M(r)&&Ir(t,"update:"+C(r),s,null,!1,0,l[e])))),a&&a.prop||!t.component&&Vo(t.tag,t.attrsMap.type,r)?Ar(t,r,o,l[e],u):Tr(t,r,o,l[e],u);else if(Ho.test(r))r=r.replace(Ho,""),(u=Go.test(r))&&(r=r.slice(1,-1)),Ir(t,r,o,a,!1,0,l[e],u);else{var c=(r=r.replace(Uo,"")).match(Zo),f=c&&c[1];u=!1,f&&(r=r.slice(0,-(f.length+1)),Go.test(f)&&(f=f.slice(1,-1),u=!0)),Or(t,r,i,o,f,u,a,l[e])}else Tr(t,r,JSON.stringify(o),l[e]),!t.component&&"muted"===r&&Vo(t.tag,t.attrsMap.type,r)&&Ar(t,r,"true",l[e])}(t),t}function aa(t){var e;if(e=jr(t,"v-for")){var n=function(t){var e=t.match(Wo);if(e){var n={};n.for=e[2].trim();var r=e[1].trim().replace(Yo,""),i=r.match(Ko);return i?(n.alias=r.replace(Ko,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r,n}}(e);n&&E(t,n)}}function sa(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function ua(t){var e=t.name.replace(Qo,"");return e||"#"!==t.name[0]&&(e="default"),Go.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'+e+'"',dynamic:!1}}function la(t){var e=t.match(Xo);if(e){var n={};return e.forEach((function(t){n[t.slice(1)]=!0})),n}}function ca(t){for(var e={},n=0,r=t.length;n<r;n++)e[t[n].name]=t[n].value;return e}var fa=/^xmlns:NS\d+/,da=/^NS\d+:/;function ha(t){return ia(t.tag,t.attrsList.slice(),t.parent)}var pa,ma,va=[ho,po,{preTransformNode:function(t,e){if("input"===t.tag){var n,r=t.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Rr(t,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=jr(t,"v-if",!0),o=i?"&&("+i+")":"",a=null!=jr(t,"v-else",!0),s=jr(t,"v-else-if",!0),u=ha(t);aa(u),Er(u,"type","checkbox"),oa(u,e),u.processed=!0,u.if="("+n+")==='checkbox'"+o,sa(u,{exp:u.if,block:u});var l=ha(t);jr(l,"v-for",!0),Er(l,"type","radio"),oa(l,e),sa(u,{exp:"("+n+")==='radio'"+o,block:l});var c=ha(t);return jr(c,"v-for",!0),Er(c,":type",n),oa(c,e),sa(u,{exp:i,block:c}),a?u.else=!0:s&&(u.elseif=s),u}}}}],ga={expectHTML:!0,modules:va,directives:{model:function(t,e,n){var r=e.value,i=e.modifiers,o=t.tag,a=t.attrsMap.type;if(t.component)return Lr(t,r,i),!1;if("select"===o)!function(t,e,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";Ir(t,"change",r=r+" "+Br(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}(t,r,i);else if("input"===o&&"checkbox"===a)!function(t,e,n){var r=n&&n.number,i=Rr(t,"value")||"null",o=Rr(t,"true-value")||"true",a=Rr(t,"false-value")||"false";Ar(t,"checked","Array.isArray("+e+")?_i("+e+","+i+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Ir(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Br(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Br(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Br(e,"$$c")+"}",null,!0)}(t,r,i);else if("input"===o&&"radio"===a)!function(t,e,n){var r=n&&n.number,i=Rr(t,"value")||"null";Ar(t,"checked","_q("+e+","+(i=r?"_n("+i+")":i)+")"),Ir(t,"change",Br(e,i),null,!0)}(t,r,i);else if("input"===o||"textarea"===o)!function(t,e,n){var r=t.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,u=!o&&"range"!==r,l=o?"change":"range"===r?Ur:"input",c="$event.target.value";s&&(c="$event.target.value.trim()"),a&&(c="_n("+c+")");var f=Br(e,c);u&&(f="if($event.target.composing)return;"+f),Ar(t,"value","("+e+")"),Ir(t,l,f,null,!0),(s||a)&&Ir(t,"blur","$forceUpdate()")}(t,r,i);else if(!F.isReservedTag(o))return Lr(t,r,i),!1;return!0},text:function(t,e){e.value&&Ar(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Ar(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:mo,mustUseProp:Pn,canBeLeftOpenTag:vo,isReservedTag:Un,getTagNamespace:Wn,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(va)},ba=_((function(t){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var ya=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,wa=/\([^)]*?\);*$/,_a=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ka={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ma={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},xa=function(t){return"if("+t+")return null;"},Sa={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:xa("$event.target !== $event.currentTarget"),ctrl:xa("!$event.ctrlKey"),shift:xa("!$event.shiftKey"),alt:xa("!$event.altKey"),meta:xa("!$event.metaKey"),left:xa("'button' in $event && $event.button !== 0"),middle:xa("'button' in $event && $event.button !== 1"),right:xa("'button' in $event && $event.button !== 2")};function Ca(t,e){var n=e?"nativeOn:":"on:",r="",i="";for(var o in t){var a=Aa(t[o]);t[o]&&t[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Aa(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Aa(t)})).join(",")+"]";var e=_a.test(t.value),n=ya.test(t.value),r=_a.test(t.value.replace(wa,""));if(t.modifiers){var i="",o="",a=[];for(var s in t.modifiers)if(Sa[s])o+=Sa[s],ka[s]&&a.push(s);else if("exact"===s){var u=t.modifiers;o+=xa(["ctrl","shift","alt","meta"].filter((function(t){return!u[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else a.push(s);return a.length&&(i+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Ta).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(e?"return "+t.value+"($event)":n?"return ("+t.value+")($event)":r?"return "+t.value:t.value)+"}"}return e||n?t.value:"function($event){"+(r?"return "+t.value:t.value)+"}"}function Ta(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=ka[t],r=Ma[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ea={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(n){return"_b("+n+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:P},Oa=function(t){this.options=t,this.warn=t.warn||Sr,this.transforms=Cr(t.modules,"transformCode"),this.dataGenFns=Cr(t.modules,"genData"),this.directives=E(E({},Ea),t.directives);var e=t.isReservedTag||I;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Pa(t,e){var n=new Oa(e);return{render:"with(this){return "+(t?Ia(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ia(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ra(t,e);if(t.once&&!t.onceProcessed)return ja(t,e);if(t.for&&!t.forProcessed)return Na(t,e);if(t.if&&!t.ifProcessed)return Da(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=Fa(t,e),i="_t("+n+(r?","+r:""),o=t.attrs||t.dynamicAttrs?$a((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:M(t.name),value:t.value,dynamic:t.dynamic}}))):null,a=t.attrsMap["v-bind"];return!o&&!a||r||(i+=",null"),o&&(i+=","+o),a&&(i+=(o?"":",null")+","+a),i+")"}(t,e);var n;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:Fa(e,n,!0);return"_c("+t+","+La(e,n)+(r?","+r:"")+")"}(t.component,t,e);else{var r;(!t.plain||t.pre&&e.maybeComponent(t))&&(r=La(t,e));var i=t.inlineTemplate?null:Fa(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<e.transforms.length;o++)n=e.transforms[o](t,n);return n}return Fa(t,e)||"void 0"}function Ra(t,e){t.staticProcessed=!0;var n=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return "+Ia(t,e)+"}"),e.pre=n,"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function ja(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return Da(t,e);if(t.staticInFor){for(var n="",r=t.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+Ia(t,e)+","+e.onceId+++","+n+")":Ia(t,e)}return Ra(t,e)}function Da(t,e,n,r){return t.ifProcessed=!0,function t(e,n,r,i){if(!e.length)return i||"_e()";var o=e.shift();return o.exp?"("+o.exp+")?"+a(o.block)+":"+t(e,n,r,i):""+a(o.block);function a(t){return r?r(t,n):t.once?ja(t,n):Ia(t,n)}}(t.ifConditions.slice(),e,n,r)}function Na(t,e,n,r){var i=t.for,o=t.alias,a=t.iterator1?","+t.iterator1:"",s=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||Ia)(t,e)+"})"}function La(t,e){var n="{",r=function(t,e){var n=t.directives;if(n){var r,i,o,a,s="directives:[",u=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var l=e.directives[o.name];l&&(a=!!l(t,o,e.warn)),a&&(u=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return u?s.slice(0,-1)+"]":void 0}}(t,e);r&&(n+=r+","),t.key&&(n+="key:"+t.key+","),t.ref&&(n+="ref:"+t.ref+","),t.refInFor&&(n+="refInFor:true,"),t.pre&&(n+="pre:true,"),t.component&&(n+='tag:"'+t.tag+'",');for(var i=0;i<e.dataGenFns.length;i++)n+=e.dataGenFns[i](t);if(t.attrs&&(n+="attrs:"+$a(t.attrs)+","),t.props&&(n+="domProps:"+$a(t.props)+","),t.events&&(n+=Ca(t.events,!1)+","),t.nativeEvents&&(n+=Ca(t.nativeEvents,!0)+","),t.slotTarget&&!t.slotScope&&(n+="slot:"+t.slotTarget+","),t.scopedSlots&&(n+=function(t,e,n){var r=t.for||Object.keys(e).some((function(t){var n=e[t];return n.slotTargetDynamic||n.if||n.for||Ba(n)})),i=!!t.if;if(!r)for(var o=t.parent;o;){if(o.slotScope&&o.slotScope!==ra||o.for){r=!0;break}o.if&&(i=!0),o=o.parent}var a=Object.keys(e).map((function(t){return za(e[t],n)})).join(",");return"scopedSlots:_u(["+a+"]"+(r?",null,true":"")+(!r&&i?",null,false,"+function(t){for(var e=5381,n=t.length;n;)e=33*e^t.charCodeAt(--n);return e>>>0}(a):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var n=t.children[0];if(n&&1===n.type){var r=Pa(n,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+$a(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Ba(t){return 1===t.type&&("slot"===t.tag||t.children.some(Ba))}function za(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Da(t,e,za,"null");if(t.for&&!t.forProcessed)return Na(t,e,za);var r=t.slotScope===ra?"":String(t.slotScope),i="function("+r+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(Fa(t,e)||"undefined")+":undefined":Fa(t,e)||"undefined":Ia(t,e))+"}",o=r?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+i+o+"}"}function Fa(t,e,n,r,i){var o=t.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?e.maybeComponent(a)?",1":",0":"";return""+(r||Ia)(a,e)+s}var u=n?function(t,e){for(var n=0,r=0;r<t.length;r++){var i=t[r];if(1===i.type){if(qa(i)||i.ifConditions&&i.ifConditions.some((function(t){return qa(t.block)}))){n=2;break}(e(i)||i.ifConditions&&i.ifConditions.some((function(t){return e(t.block)})))&&(n=1)}}return n}(o,e.maybeComponent):0,l=i||Va;return"["+o.map((function(t){return l(t,e)})).join(",")+"]"+(u?","+u:"")}}function qa(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function Va(t,e){return 1===t.type?Ia(t,e):3===t.type&&t.isComment?(r=t,"_e("+JSON.stringify(r.text)+")"):"_v("+(2===(n=t).type?n.expression:Ha(JSON.stringify(n.text)))+")";var n,r}function $a(t){for(var e="",n="",r=0;r<t.length;r++){var i=t[r],o=Ha(i.value);i.dynamic?n+=i.name+","+o+",":e+='"'+i.name+'":'+o+","}return e="{"+e.slice(0,-1)+"}",n?"_d("+e+",["+n.slice(0,-1)+"])":e}function Ha(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function Ua(t,e){try{return new Function(t)}catch(n){return e.push({err:n,code:t}),P}}function Wa(t){var e=Object.create(null);return function(n,r,i){(r=E({},r)).warn,delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(e[o])return e[o];var a=t(n,r),s={},u=[];return s.render=Ua(a.render,u),s.staticRenderFns=a.staticRenderFns.map((function(t){return Ua(t,u)})),e[o]=s}}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b");var Ka,Ya,Ga=(Ka=function(t,e){var n=function(t,e){No=e.warn||Sr,qo=e.isPreTag||I,Vo=e.mustUseProp||I,$o=e.getTagNamespace||I,e.isReservedTag,Bo=Cr(e.modules,"transformNode"),zo=Cr(e.modules,"preTransformNode"),Fo=Cr(e.modules,"postTransformNode"),Lo=e.delimiters;var n,r,i=[],o=!1!==e.preserveWhitespace,a=e.whitespace,s=!1,u=!1;function l(t){if(c(t),s||t.processed||(t=oa(t,e)),i.length||t===n||n.if&&(t.elseif||t.else)&&sa(n,{exp:t.elseif,block:t}),r&&!t.forbidden)if(t.elseif||t.else)a=t,(l=function(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}(r.children))&&l.if&&sa(l,{exp:a.elseif,block:a});else{if(t.slotScope){var o=t.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[o]=t}r.children.push(t),t.parent=r}var a,l;t.children=t.children.filter((function(t){return!t.slotScope})),c(t),t.pre&&(s=!1),qo(t.tag)&&(u=!1);for(var f=0;f<Fo.length;f++)Fo[f](t,e)}function c(t){if(!u)for(var e;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return function(t,e){for(var n,r,i=[],o=e.expectHTML,a=e.isUnaryTag||I,s=e.canBeLeftOpenTag||I,u=0;t;){if(n=t,r&&To(r)){var l=0,c=r.toLowerCase(),f=Eo[c]||(Eo[c]=new RegExp("([\\s\\S]*?)(</"+c+"[^>]*>)","i")),d=t.replace(f,(function(t,n,r){return l=r.length,To(c)||"noscript"===c||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),jo(c,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));u+=t.length-d.length,t=d,C(c,u-l,u)}else{var h=t.indexOf("<");if(0===h){if(Co.test(t)){var p=t.indexOf("--\x3e");if(p>=0){e.shouldKeepComment&&e.comment(t.substring(4,p),u,u+p+3),M(p+3);continue}}if(Ao.test(t)){var m=t.indexOf("]>");if(m>=0){M(m+2);continue}}var v=t.match(So);if(v){M(v[0].length);continue}var g=t.match(xo);if(g){var b=u;M(g[0].length),C(g[1],b,u);continue}var y=x();if(y){S(y),jo(y.tagName,t)&&M(1);continue}}var w=void 0,_=void 0,k=void 0;if(h>=0){for(_=t.slice(h);!(xo.test(_)||ko.test(_)||Co.test(_)||Ao.test(_)||(k=_.indexOf("<",1))<0);)h+=k,_=t.slice(h);w=t.substring(0,h)}h<0&&(w=t),w&&M(w.length),e.chars&&w&&e.chars(w,u-w.length,u)}if(t===n){e.chars&&e.chars(t);break}}function M(e){u+=e,t=t.substring(e)}function x(){var e=t.match(ko);if(e){var n,r,i={tagName:e[1],attrs:[],start:u};for(M(e[0].length);!(n=t.match(Mo))&&(r=t.match(yo)||t.match(bo));)r.start=u,M(r[0].length),r.end=u,i.attrs.push(r);if(n)return i.unarySlash=n[1],M(n[0].length),i.end=u,i}}function S(t){var n=t.tagName,u=t.unarySlash;o&&("p"===r&&go(n)&&C(r),s(n)&&r===n&&C(n));for(var l=a(n)||!!u,c=t.attrs.length,f=new Array(c),d=0;d<c;d++){var h=t.attrs[d],p=h[3]||h[4]||h[5]||"",m="a"===n&&"href"===h[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;f[d]={name:h[1],value:Do(p,m)}}l||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:f,start:t.start,end:t.end}),r=n),e.start&&e.start(n,f,l,t.start,t.end)}function C(t,n,o){var a,s;if(null==n&&(n=u),null==o&&(o=u),t)for(s=t.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var l=i.length-1;l>=a;l--)e.end&&e.end(i[l].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?e.start&&e.start(t,[],!0,n,o):"p"===s&&(e.start&&e.start(t,[],!1,n,o),e.end&&e.end(t,n,o))}C()}(t,{warn:No,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,o,a,c,f){var d=r&&r.ns||$o(t);Z&&"svg"===d&&(o=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];fa.test(r.name)||(r.name=r.name.replace(da,""),e.push(r))}return e}(o));var h,p=ia(t,o,r);d&&(p.ns=d),"style"!==(h=p).tag&&("script"!==h.tag||h.attrsMap.type&&"text/javascript"!==h.attrsMap.type)||it()||(p.forbidden=!0);for(var m=0;m<zo.length;m++)p=zo[m](p,e)||p;s||(function(t){null!=jr(t,"v-pre")&&(t.pre=!0)}(p),p.pre&&(s=!0)),qo(p.tag)&&(u=!0),s?function(t){var e=t.attrsList,n=e.length;if(n)for(var r=t.attrs=new Array(n),i=0;i<n;i++)r[i]={name:e[i].name,value:JSON.stringify(e[i].value)},null!=e[i].start&&(r[i].start=e[i].start,r[i].end=e[i].end);else t.pre||(t.plain=!0)}(p):p.processed||(aa(p),function(t){var e=jr(t,"v-if");if(e)t.if=e,sa(t,{exp:e,block:t});else{null!=jr(t,"v-else")&&(t.else=!0);var n=jr(t,"v-else-if");n&&(t.elseif=n)}}(p),function(t){null!=jr(t,"v-once")&&(t.once=!0)}(p)),n||(n=p),a?l(p):(r=p,i.push(p))},end:function(t,e,n){var o=i[i.length-1];i.length-=1,r=i[i.length-1],l(o)},chars:function(t,e,n){if(r&&(!Z||"textarea"!==r.tag||r.attrsMap.placeholder!==t)){var i,l,c,f=r.children;(t=u||t.trim()?"script"===(i=r).tag||"style"===i.tag?t:na(t):f.length?a?"condense"===a&&ta.test(t)?"":" ":o?" ":"":"")&&(u||"condense"!==a||(t=t.replace(ea," ")),!s&&" "!==t&&(l=function(t,e){var n=e?fo(e):lo;if(n.test(t)){for(var r,i,o,a=[],s=[],u=n.lastIndex=0;r=n.exec(t);){(i=r.index)>u&&(s.push(o=t.slice(u,i)),a.push(JSON.stringify(o)));var l=Mr(r[1].trim());a.push("_s("+l+")"),s.push({"@binding":l}),u=i+r[0].length}return u<t.length&&(s.push(o=t.slice(u)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(t,Lo))?c={type:2,expression:l.expression,tokens:l.tokens,text:t}:" "===t&&f.length&&" "===f[f.length-1].text||(c={type:3,text:t}),c&&f.push(c))}},comment:function(t,e,n){if(r){var i={type:3,text:t,isComment:!0};r.children.push(i)}}}),n}(t.trim(),e);!1!==e.optimize&&function(t,e){t&&(pa=ba(e.staticKeys||""),ma=e.isReservedTag||I,function t(e){if(e.static=function(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||v(t.tag)||!ma(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(pa))))}(e),1===e.type){if(!ma(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var n=0,r=e.children.length;n<r;n++){var i=e.children[n];t(i),i.static||(e.static=!1)}if(e.ifConditions)for(var o=1,a=e.ifConditions.length;o<a;o++){var s=e.ifConditions[o].block;t(s),s.static||(e.static=!1)}}}(t),function t(e,n){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=n),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var r=0,i=e.children.length;r<i;r++)t(e.children[r],n||!!e.for);if(e.ifConditions)for(var o=1,a=e.ifConditions.length;o<a;o++)t(e.ifConditions[o].block,n)}}(t,!1))}(n,e);var r=Pa(n,e);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(t){function e(e,n){var r=Object.create(t),i=[],o=[];if(n)for(var a in n.modules&&(r.modules=(t.modules||[]).concat(n.modules)),n.directives&&(r.directives=E(Object.create(t.directives||null),n.directives)),n)"modules"!==a&&"directives"!==a&&(r[a]=n[a]);r.warn=function(t,e,n){(n?o:i).push(t)};var s=Ka(e.trim(),r);return s.errors=i,s.tips=o,s}return{compile:e,compileToFunctions:Wa(e)}})(ga),Za=(Ga.compile,Ga.compileToFunctions);function Ja(t){return(Ya=Ya||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',Ya.innerHTML.indexOf("&#10;")>0}var Xa=!!W&&Ja(!1),Qa=!!W&&Ja(!0),ts=_((function(t){var e=Gn(t);return e&&e.innerHTML})),es=kn.prototype.$mount;kn.prototype.$mount=function(t,e){if((t=t&&Gn(t))===document.body||t===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ts(r));else{if(!r.nodeType)return this;r=r.innerHTML}else t&&(r=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(r){var i=Za(r,{outputSourceRange:!1,shouldDecodeNewlines:Xa,shouldDecodeNewlinesForHref:Qa,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return es.call(this,t,e)},kn.compile=Za,t.exports=kn}).call(this,n(7),n(118).setImmediate)},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,i,o,a,s,u=1,l={},c=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?r=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},r=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):r=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),r=function(e){t.postMessage(a+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var i={callback:t,args:e};return l[u]=i,r(u),u++},d.clearImmediate=h}function h(t){delete l[t]}function p(t){if(c)setTimeout(p,0,t);else{var e=l[t];if(e){c=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{h(t),c=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(this,n(7),n(5))},function(t,e,n){var r,i,o,a,s,u,l,c,f;o={id:"sifter",exports:{},loaded:!1},r="function"==typeof(i=function(){var t=function(t,e){this.items=t,this.settings=e||{diacritics:!0}};t.prototype.tokenize=function(t){if(!(t=i(String(t||"").toLowerCase()))||!t.length)return[];var e,n,r,a,u=[],l=t.split(/ +/);for(e=0,n=l.length;e<n;e++){if(r=o(l[e]),this.settings.diacritics)for(a in s)s.hasOwnProperty(a)&&(r=r.replace(new RegExp(a,"g"),s[a]));u.push({string:l[e],regex:new RegExp(r,"i")})}return u},t.prototype.iterator=function(t,e){(a(t)?Array.prototype.forEach||function(t){for(var e=0,n=this.length;e<n;e++)t(this[e],e,this)}:function(t){for(var e in this)this.hasOwnProperty(e)&&t(this[e],e,this)}).apply(t,[e])},t.prototype.getScoreFunction=function(t,e){var n,i,o,a;t=this.prepareSearch(t,e),i=t.tokens,n=t.options.fields,o=i.length,a=t.options.nesting;var s=function(t,e){var n,r;return t?-1===(r=(t=String(t||"")).search(e.regex))?0:(n=e.string.length/t.length,0===r&&(n+=.5),n):0},u=function(){var t=n.length;return t?1===t?function(t,e){return s(r(e,n[0],a),t)}:function(e,i){for(var o=0,u=0;o<t;o++)u+=s(r(i,n[o],a),e);return u/t}:function(){return 0}}();return o?1===o?function(t){return u(i[0],t)}:"and"===t.options.conjunction?function(t){for(var e,n=0,r=0;n<o;n++){if((e=u(i[n],t))<=0)return 0;r+=e}return r/o}:function(t){for(var e=0,n=0;e<o;e++)n+=u(i[e],t);return n/o}:function(){return 0}},t.prototype.getSortFunction=function(t,n){var i,o,a,s,u,l,c,f,d,h,p;if(p=!(t=(a=this).prepareSearch(t,n)).query&&n.sort_empty||n.sort,d=function(t,e){return"$score"===t?e.score:r(a.items[e.id],t,n.nesting)},u=[],p)for(i=0,o=p.length;i<o;i++)(t.query||"$score"!==p[i].field)&&u.push(p[i]);if(t.query){for(h=!0,i=0,o=u.length;i<o;i++)if("$score"===u[i].field){h=!1;break}h&&u.unshift({field:"$score",direction:"desc"})}else for(i=0,o=u.length;i<o;i++)if("$score"===u[i].field){u.splice(i,1);break}for(f=[],i=0,o=u.length;i<o;i++)f.push("desc"===u[i].direction?-1:1);return(l=u.length)?1===l?(s=u[0].field,c=f[0],function(t,n){return c*e(d(s,t),d(s,n))}):function(t,n){var r,i,o;for(r=0;r<l;r++)if(o=u[r].field,i=f[r]*e(d(o,t),d(o,n)))return i;return 0}:null},t.prototype.prepareSearch=function(t,e){if("object"==typeof t)return t;var r=(e=n({},e)).fields,i=e.sort,o=e.sort_empty;return r&&!a(r)&&(e.fields=[r]),i&&!a(i)&&(e.sort=[i]),o&&!a(o)&&(e.sort_empty=[o]),{options:e,query:String(t||"").toLowerCase(),tokens:this.tokenize(t),total:0,items:[]}},t.prototype.search=function(t,e){var n,r,i,o,a=this;return r=this.prepareSearch(t,e),e=r.options,t=r.query,o=e.score||a.getScoreFunction(r),t.length?a.iterator(a.items,(function(t,i){n=o(t),(!1===e.filter||n>0)&&r.items.push({score:n,id:i})})):a.iterator(a.items,(function(t,e){r.items.push({score:1,id:e})})),(i=a.getSortFunction(r,e))&&r.items.sort(i),r.total=r.items.length,"number"==typeof e.limit&&(r.items=r.items.slice(0,e.limit)),r};var e=function(t,e){return"number"==typeof t&&"number"==typeof e?t>e?1:t<e?-1:0:(t=u(String(t||"")))>(e=u(String(e||"")))?1:e>t?-1:0},n=function(t,e){var n,r,i,o;for(n=1,r=arguments.length;n<r;n++)if(o=arguments[n])for(i in o)o.hasOwnProperty(i)&&(t[i]=o[i]);return t},r=function(t,e,n){if(t&&e){if(!n)return t[e];for(var r=e.split(".");r.length&&(t=t[r.shift()]););return t}},i=function(t){return(t+"").replace(/^\s+|\s+$|/g,"")},o=function(t){return(t+"").replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1")},a=Array.isArray||"undefined"!=typeof $&&$.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},s={a:"[aḀḁĂăÂâǍǎȺⱥȦȧẠạÄäÀàÁáĀāÃãÅåąĄÃąĄ]",b:"[b␢βΒB฿𐌁ᛒ]",c:"[cĆćĈĉČčĊċC̄c̄ÇçḈḉȻȼƇƈɕᴄCc]",d:"[dĎďḊḋḐḑḌḍḒḓḎḏĐđD̦d̦ƉɖƊɗƋƌᵭᶁᶑȡᴅDdð]",e:"[eÉéÈèÊêḘḙĚěĔĕẼẽḚḛẺẻĖėËëĒēȨȩĘęᶒɆɇȄȅẾếỀềỄễỂểḜḝḖḗḔḕȆȇẸẹỆệⱸᴇEeɘǝƏƐε]",f:"[fƑƒḞḟ]",g:"[gɢ₲ǤǥĜĝĞğĢģƓɠĠġ]",h:"[hĤĥĦħḨḩẖẖḤḥḢḣɦʰǶƕ]",i:"[iÍíÌìĬĭÎîǏǐÏïḮḯĨĩĮįĪīỈỉȈȉȊȋỊịḬḭƗɨɨ̆ᵻᶖİiIıɪIi]",j:"[jȷĴĵɈɉʝɟʲ]",k:"[kƘƙꝀꝁḰḱǨǩḲḳḴḵκϰ₭]",l:"[lŁłĽľĻļĹĺḶḷḸḹḼḽḺḻĿŀȽƚⱠⱡⱢɫɬᶅɭȴʟLl]",n:"[nŃńǸǹŇňÑñṄṅŅņṆṇṊṋṈṉN̈n̈ƝɲȠƞᵰᶇɳȵɴNnŊŋ]",o:"[oØøÖöÓóÒòÔôǑǒŐőŎŏȮȯỌọƟɵƠơỎỏŌōÕõǪǫȌȍՕօ]",p:"[pṔṕṖṗⱣᵽƤƥᵱ]",q:"[qꝖꝗʠɊɋꝘꝙq̃]",r:"[rŔŕɌɍŘřŖŗṘṙȐȑȒȓṚṛⱤɽ]",s:"[sŚśṠṡṢṣꞨꞩŜŝŠšŞşȘșS̈s̈]",t:"[tŤťṪṫŢţṬṭƮʈȚțṰṱṮṯƬƭ]",u:"[uŬŭɄʉỤụÜüÚúÙùÛûǓǔŰűŬŭƯưỦủŪūŨũŲųȔȕ∪]",v:"[vṼṽṾṿƲʋꝞꝟⱱʋ]",w:"[wẂẃẀẁŴŵẄẅẆẇẈẉ]",x:"[xẌẍẊẋχ]",y:"[yÝýỲỳŶŷŸÿỸỹẎẏỴỵɎɏƳƴ]",z:"[zŹźẐẑŽžŻżẒẓẔẕƵƶ]"},u=function(){var t,e,n,r,i="",o={};for(n in s)if(s.hasOwnProperty(n))for(i+=r=s[n].substring(2,s[n].length-1),t=0,e=r.length;t<e;t++)o[r.charAt(t)]=n;var a=new RegExp("["+i+"]","g");return function(t){return t.replace(a,(function(t){return o[t]})).toLowerCase()}}();return t})?i.call(o.exports,n,o.exports,o):i,o.loaded=!0,void 0!==r||(r=o.exports),u={id:"microplugin",exports:{},loaded:!1},a="function"==typeof(s=function(){var t={mixin:function(t){t.plugins={},t.prototype.initializePlugins=function(t){var n,r,i,o=this,a=[];if(o.plugins={names:[],settings:{},requested:{},loaded:{}},e.isArray(t))for(n=0,r=t.length;n<r;n++)"string"==typeof t[n]?a.push(t[n]):(o.plugins.settings[t[n].name]=t[n].options,a.push(t[n].name));else if(t)for(i in t)t.hasOwnProperty(i)&&(o.plugins.settings[i]=t[i],a.push(i));for(;a.length;)o.require(a.shift())},t.prototype.loadPlugin=function(e){var n=this,r=n.plugins,i=t.plugins[e];if(!t.plugins.hasOwnProperty(e))throw new Error('Unable to find "'+e+'" plugin');r.requested[e]=!0,r.loaded[e]=i.fn.apply(n,[n.plugins.settings[e]||{}]),r.names.push(e)},t.prototype.require=function(t){var e=this,n=e.plugins;if(!e.plugins.loaded.hasOwnProperty(t)){if(n.requested[t])throw new Error('Plugin has circular dependency ("'+t+'")');e.loadPlugin(t)}return n.loaded[t]},t.define=function(e,n){t.plugins[e]={name:e,fn:n}}}},e={isArray:Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}};return t})?s.call(u.exports,n,u.exports,u):s,u.loaded=!0,void 0!==a||(a=u.exports),c=[n(69),r,a],void 0===(f="function"==typeof(l=function(t,e,n){"use strict";var r=function(t,e){if("string"!=typeof e||e.length){var n="string"==typeof e?new RegExp(e,"i"):e,r=function(t){var e=0;if(3===t.nodeType){var i=t.data.search(n);if(i>=0&&t.data.length>0){var o=t.data.match(n),a=document.createElement("span");a.className="highlight";var s=t.splitText(i),u=(s.splitText(o[0].length),s.cloneNode(!0));a.appendChild(u),s.parentNode.replaceChild(a,s),e=1}}else if(1===t.nodeType&&t.childNodes&&!/(script|style)/i.test(t.tagName)&&("highlight"!==t.className||"SPAN"!==t.tagName))for(var l=0;l<t.childNodes.length;++l)l+=r(t.childNodes[l]);return e};return t.each((function(){r(this)}))}};t.fn.removeHighlight=function(){return this.find("span.highlight").each((function(){this.parentNode.firstChild.nodeName;var t=this.parentNode;t.replaceChild(this.firstChild,this),t.normalize()})).end()};var i=function(){};i.prototype={on:function(t,e){this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)},off:function(t,e){var n=arguments.length;return 0===n?delete this._events:1===n?delete this._events[t]:(this._events=this._events||{},void(t in this._events!=0&&this._events[t].splice(this._events[t].indexOf(e),1)))},trigger:function(t){if(this._events=this._events||{},t in this._events!=0)for(var e=0;e<this._events[t].length;e++)this._events[t][e].apply(this,Array.prototype.slice.call(arguments,1))}},i.mixin=function(t){for(var e=["on","off","trigger"],n=0;n<e.length;n++)t.prototype[e[n]]=i.prototype[e[n]]};var o=/Mac/.test(navigator.userAgent),a=o?91:17,s=o?18:17,u=!/android/i.test(window.navigator.userAgent)&&!!document.createElement("input").validity,l=function(t){return void 0!==t},c=function(t){return null==t?null:"boolean"==typeof t?t?"1":"0":t+""},f=function(t){return(t+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},d={before:function(t,e,n){var r=t[e];t[e]=function(){return n.apply(t,arguments),r.apply(t,arguments)}},after:function(t,e,n){var r=t[e];t[e]=function(){var e=r.apply(t,arguments);return n.apply(t,arguments),e}}},h=function(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}},p=function(t,e){var n;return function(){var r=this,i=arguments;window.clearTimeout(n),n=window.setTimeout((function(){t.apply(r,i)}),e)}},m=function(t,e,n){var r,i=t.trigger,o={};for(r in t.trigger=function(){var n=arguments[0];if(-1===e.indexOf(n))return i.apply(t,arguments);o[n]=arguments},n.apply(t,[]),t.trigger=i,o)o.hasOwnProperty(r)&&i.apply(t,o[r])},v=function(t){var e={};if("selectionStart"in t)e.start=t.selectionStart,e.length=t.selectionEnd-e.start;else if(document.selection){t.focus();var n=document.selection.createRange(),r=document.selection.createRange().text.length;n.moveStart("character",-t.value.length),e.start=n.text.length-r,e.length=r}return e},g=function(e,n){return e?(w.$testInput||(w.$testInput=t("<span />").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).appendTo("body")),w.$testInput.text(e),function(t,e,n){var r,i,o={};if(n)for(r=0,i=n.length;r<i;r++)o[n[r]]=t.css(n[r]);else o=t.css();e.css(o)}(n,w.$testInput,["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"]),w.$testInput.width()):0},b=function(t){var e=null,n=function(n,r){var i,o,a,s,u,l,c,f;r=r||{},(n=n||window.event||{}).metaKey||n.altKey||(r.force||!1!==t.data("grow"))&&(i=t.val(),n.type&&"keydown"===n.type.toLowerCase()&&(a=(o=n.keyCode)>=48&&o<=57||o>=65&&o<=90||o>=96&&o<=111||o>=186&&o<=222||32===o,46===o||8===o?(f=v(t[0])).length?i=i.substring(0,f.start)+i.substring(f.start+f.length):8===o&&f.start?i=i.substring(0,f.start-1)+i.substring(f.start+1):46===o&&void 0!==f.start&&(i=i.substring(0,f.start)+i.substring(f.start+1)):a&&(l=n.shiftKey,c=String.fromCharCode(n.keyCode),i+=c=l?c.toUpperCase():c.toLowerCase())),s=t.attr("placeholder"),!i&&s&&(i=s),(u=g(i,t)+4)!==e&&(e=u,t.width(u),t.triggerHandler("resize")))};t.on("keydown keyup update blur",n),n()},y=function(t){var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML},w=function(n,r){var i,o,a,s,u=this;(s=n[0]).selectize=u;var l=window.getComputedStyle&&window.getComputedStyle(s,null);if(a=(a=l?l.getPropertyValue("direction"):s.currentStyle&&s.currentStyle.direction)||n.parents("[dir]:first").attr("dir")||"",t.extend(u,{order:0,settings:r,$input:n,tabIndex:n.attr("tabindex")||"",tagType:"select"===s.tagName.toLowerCase()?1:2,rtl:/rtl/i.test(a),eventNS:".selectize"+ ++w.count,highlightedValue:null,isBlurring:!1,isOpen:!1,isDisabled:!1,isRequired:n.is("[required]"),isInvalid:!1,isLocked:!1,isFocused:!1,isInputHidden:!1,isSetup:!1,isShiftDown:!1,isCmdDown:!1,isCtrlDown:!1,ignoreFocus:!1,ignoreBlur:!1,ignoreHover:!1,hasOptions:!1,currentResults:null,lastValue:"",caretPos:0,loading:0,loadedSearches:{},$activeOption:null,$activeItems:[],optgroups:{},options:{},userOptions:{},items:[],renderCache:{},onSearchChange:null===r.loadThrottle?u.onSearchChange:p(u.onSearchChange,r.loadThrottle)}),u.sifter=new e(this.options,{diacritics:r.diacritics}),u.settings.options){for(i=0,o=u.settings.options.length;i<o;i++)u.registerOption(u.settings.options[i]);delete u.settings.options}if(u.settings.optgroups){for(i=0,o=u.settings.optgroups.length;i<o;i++)u.registerOptionGroup(u.settings.optgroups[i]);delete u.settings.optgroups}u.settings.mode=u.settings.mode||(1===u.settings.maxItems?"single":"multi"),"boolean"!=typeof u.settings.hideSelected&&(u.settings.hideSelected="multi"===u.settings.mode),u.initializePlugins(u.settings.plugins),u.setupCallbacks(),u.setupTemplates(),u.setup()};return i.mixin(w),void 0!==n?n.mixin(w):function(t,e){e||(e={}),console.error("Selectize: Dependency MicroPlugin is missing"),e.explanation&&(console.group&&console.group(),console.error(e.explanation),console.group&&console.groupEnd())}(0,{explanation:'Make sure you either: (1) are using the "standalone" version of Selectize, or (2) require MicroPlugin before you load Selectize.'}),t.extend(w.prototype,{setup:function(){var e,n,r,i,l,c,f,d,h,p,m=this,v=m.settings,g=m.eventNS,y=t(window),w=t(document),_=m.$input;if(f=m.settings.mode,d=_.attr("class")||"",e=t("<div>").addClass(v.wrapperClass).addClass(d).addClass(f),n=t("<div>").addClass(v.inputClass).addClass("items").appendTo(e),r=t('<input type="text" autocomplete="off" />').appendTo(n).attr("tabindex",_.is(":disabled")?"-1":m.tabIndex),c=t(v.dropdownParent||e),i=t("<div>").addClass(v.dropdownClass).addClass(f).hide().appendTo(c),l=t("<div>").addClass(v.dropdownContentClass).appendTo(i),(p=_.attr("id"))&&(r.attr("id",p+"-selectized"),t("label[for='"+p+"']").attr("for",p+"-selectized")),m.settings.copyClassesToDropdown&&i.addClass(d),e.css({width:_[0].style.width}),m.plugins.names.length&&(h="plugin-"+m.plugins.names.join(" plugin-"),e.addClass(h),i.addClass(h)),(null===v.maxItems||v.maxItems>1)&&1===m.tagType&&_.attr("multiple","multiple"),m.settings.placeholder&&r.attr("placeholder",v.placeholder),!m.settings.splitOn&&m.settings.delimiter){var k=m.settings.delimiter.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");m.settings.splitOn=new RegExp("\\s*"+k+"+\\s*")}_.attr("autocorrect")&&r.attr("autocorrect",_.attr("autocorrect")),_.attr("autocapitalize")&&r.attr("autocapitalize",_.attr("autocapitalize")),r[0].type=_[0].type,m.$wrapper=e,m.$control=n,m.$control_input=r,m.$dropdown=i,m.$dropdown_content=l,i.on("mouseenter mousedown click","[data-disabled]>[data-selectable]",(function(t){t.stopImmediatePropagation()})),i.on("mouseenter","[data-selectable]",(function(){return m.onOptionHover.apply(m,arguments)})),i.on("mousedown click","[data-selectable]",(function(){return m.onOptionSelect.apply(m,arguments)})),function(t,e,n,r){t.on(e,n,(function(e){for(var n=e.target;n&&n.parentNode!==t[0];)n=n.parentNode;return e.currentTarget=n,r.apply(this,[e])}))}(n,"mousedown","*:not(input)",(function(){return m.onItemSelect.apply(m,arguments)})),b(r),n.on({mousedown:function(){return m.onMouseDown.apply(m,arguments)},click:function(){return m.onClick.apply(m,arguments)}}),r.on({mousedown:function(t){t.stopPropagation()},keydown:function(){return m.onKeyDown.apply(m,arguments)},keyup:function(){return m.onKeyUp.apply(m,arguments)},keypress:function(){return m.onKeyPress.apply(m,arguments)},resize:function(){m.positionDropdown.apply(m,[])},blur:function(){return m.onBlur.apply(m,arguments)},focus:function(){return m.ignoreBlur=!1,m.onFocus.apply(m,arguments)},paste:function(){return m.onPaste.apply(m,arguments)}}),w.on("keydown"+g,(function(t){m.isCmdDown=t[o?"metaKey":"ctrlKey"],m.isCtrlDown=t[o?"altKey":"ctrlKey"],m.isShiftDown=t.shiftKey})),w.on("keyup"+g,(function(t){t.keyCode===s&&(m.isCtrlDown=!1),16===t.keyCode&&(m.isShiftDown=!1),t.keyCode===a&&(m.isCmdDown=!1)})),w.on("mousedown"+g,(function(t){if(m.isFocused){if(t.target===m.$dropdown[0]||t.target.parentNode===m.$dropdown[0])return!1;m.$control.has(t.target).length||t.target===m.$control[0]||m.blur(t.target)}})),y.on(["scroll"+g,"resize"+g].join(" "),(function(){m.isOpen&&m.positionDropdown.apply(m,arguments)})),y.on("mousemove"+g,(function(){m.ignoreHover=!1})),this.revertSettings={$children:_.children().detach(),tabindex:_.attr("tabindex")},_.attr("tabindex",-1).hide().after(m.$wrapper),t.isArray(v.items)&&(m.setValue(v.items),delete v.items),u&&_.on("invalid"+g,(function(t){t.preventDefault(),m.isInvalid=!0,m.refreshState()})),m.updateOriginalInput(),m.refreshItems(),m.refreshState(),m.updatePlaceholder(),m.isSetup=!0,_.is(":disabled")&&m.disable(),m.on("change",this.onChange),_.data("selectize",m),_.addClass("selectized"),m.trigger("initialize"),!0===v.preload&&m.onSearchChange("")},setupTemplates:function(){var e=this,n=e.settings.labelField,r=e.settings.optgroupLabelField,i={optgroup:function(t){return'<div class="optgroup">'+t.html+"</div>"},optgroup_header:function(t,e){return'<div class="optgroup-header">'+e(t[r])+"</div>"},option:function(t,e){return'<div class="option">'+e(t[n])+"</div>"},item:function(t,e){return'<div class="item">'+e(t[n])+"</div>"},option_create:function(t,e){return'<div class="create">Add <strong>'+e(t.input)+"</strong>&hellip;</div>"}};e.settings.render=t.extend({},i,e.settings.render)},setupCallbacks:function(){var t,e,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(t in n)n.hasOwnProperty(t)&&(e=this.settings[n[t]])&&this.on(t,e)},onClick:function(t){var e=this;e.isFocused&&e.isOpen||(e.focus(),t.preventDefault())},onMouseDown:function(e){var n=this,r=e.isDefaultPrevented();if(t(e.target),n.isFocused){if(e.target!==n.$control_input[0])return"single"===n.settings.mode?n.isOpen?n.close():n.open():r||n.setActiveItem(null),!1}else r||window.setTimeout((function(){n.focus()}),0)},onChange:function(){this.$input.trigger("change")},onPaste:function(e){var n=this;n.isFull()||n.isInputHidden||n.isLocked?e.preventDefault():n.settings.splitOn&&setTimeout((function(){var e=n.$control_input.val();if(e.match(n.settings.splitOn))for(var r=t.trim(e).split(n.settings.splitOn),i=0,o=r.length;i<o;i++)n.createItem(r[i])}),0)},onKeyPress:function(t){if(this.isLocked)return t&&t.preventDefault();var e=String.fromCharCode(t.keyCode||t.which);return this.settings.create&&"multi"===this.settings.mode&&e===this.settings.delimiter?(this.createItem(),t.preventDefault(),!1):void 0},onKeyDown:function(t){var e=(t.target,this.$control_input[0],this);if(!e.isLocked){switch(t.keyCode){case 65:if(e.isCmdDown)return void e.selectAll();break;case 27:return void(e.isOpen&&(t.preventDefault(),t.stopPropagation(),e.close()));case 78:if(!t.ctrlKey||t.altKey)break;case 40:if(!e.isOpen&&e.hasOptions)e.open();else if(e.$activeOption){e.ignoreHover=!0;var n=e.getAdjacentOption(e.$activeOption,1);n.length&&e.setActiveOption(n,!0,!0)}return void t.preventDefault();case 80:if(!t.ctrlKey||t.altKey)break;case 38:if(e.$activeOption){e.ignoreHover=!0;var r=e.getAdjacentOption(e.$activeOption,-1);r.length&&e.setActiveOption(r,!0,!0)}return void t.preventDefault();case 13:return void(e.isOpen&&e.$activeOption&&(e.onOptionSelect({currentTarget:e.$activeOption}),t.preventDefault()));case 37:return void e.advanceSelection(-1,t);case 39:return void e.advanceSelection(1,t);case 9:return e.settings.selectOnTab&&e.isOpen&&e.$activeOption&&(e.onOptionSelect({currentTarget:e.$activeOption}),e.isFull()||t.preventDefault()),void(e.settings.create&&e.createItem()&&t.preventDefault());case 8:case 46:return void e.deleteSelection(t)}return!e.isFull()&&!e.isInputHidden||(o?t.metaKey:t.ctrlKey)?void 0:void t.preventDefault()}9!==t.keyCode&&t.preventDefault()},onKeyUp:function(t){var e=this;if(e.isLocked)return t&&t.preventDefault();var n=e.$control_input.val()||"";e.lastValue!==n&&(e.lastValue=n,e.onSearchChange(n),e.refreshOptions(),e.trigger("type",n))},onSearchChange:function(t){var e=this,n=e.settings.load;n&&(e.loadedSearches.hasOwnProperty(t)||(e.loadedSearches[t]=!0,e.load((function(r){n.apply(e,[t,r])}))))},onFocus:function(t){var e=this,n=e.isFocused;if(e.isDisabled)return e.blur(),t&&t.preventDefault(),!1;e.ignoreFocus||(e.isFocused=!0,"focus"===e.settings.preload&&e.onSearchChange(""),n||e.trigger("focus"),e.$activeItems.length||(e.showInput(),e.setActiveItem(null),e.refreshOptions(!!e.settings.openOnFocus)),e.refreshState())},onBlur:function(t,e){var n=this;if(n.isFocused&&(n.isFocused=!1,!n.ignoreFocus)){if(!n.ignoreBlur&&document.activeElement===n.$dropdown_content[0])return n.ignoreBlur=!0,void n.onFocus(t);var r=function(){n.close(),n.setTextboxValue(""),n.setActiveItem(null),n.setActiveOption(null),n.setCaret(n.items.length),n.refreshState(),e&&e.focus&&e.focus(),n.isBlurring=!1,n.ignoreFocus=!1,n.trigger("blur")};n.isBlurring=!0,n.ignoreFocus=!0,n.settings.create&&n.settings.createOnBlur?n.createItem(null,!1,r):r()}},onOptionHover:function(t){this.ignoreHover||this.setActiveOption(t.currentTarget,!1)},onOptionSelect:function(e){var n,r,i=this;e.preventDefault&&(e.preventDefault(),e.stopPropagation()),(r=t(e.currentTarget)).hasClass("create")?i.createItem(null,(function(){i.settings.closeAfterSelect&&i.close()})):void 0!==(n=r.attr("data-value"))&&(i.lastQuery=null,i.setTextboxValue(""),i.addItem(n),i.settings.closeAfterSelect?i.close():!i.settings.hideSelected&&e.type&&/mouse/.test(e.type)&&i.setActiveOption(i.getOption(n)))},onItemSelect:function(t){var e=this;e.isLocked||"multi"===e.settings.mode&&(t.preventDefault(),e.setActiveItem(t.currentTarget,t))},load:function(t){var e=this,n=e.$wrapper.addClass(e.settings.loadingClass);e.loading++,t.apply(e,[function(t){e.loading=Math.max(e.loading-1,0),t&&t.length&&(e.addOption(t),e.refreshOptions(e.isFocused&&!e.isInputHidden)),e.loading||n.removeClass(e.settings.loadingClass),e.trigger("load",t)}])},setTextboxValue:function(t){var e=this.$control_input;e.val()!==t&&(e.val(t).triggerHandler("update"),this.lastValue=t)},getValue:function(){return 1===this.tagType&&this.$input.attr("multiple")?this.items:this.items.join(this.settings.delimiter)},setValue:function(t,e){m(this,e?[]:["change"],(function(){this.clear(e),this.addItems(t,e)}))},setActiveItem:function(e,n){var r,i,o,a,s,u,l,c,f=this;if("single"!==f.settings.mode){if(!(e=t(e)).length)return t(f.$activeItems).removeClass("active"),f.$activeItems=[],void(f.isFocused&&f.showInput());if("mousedown"===(r=n&&n.type.toLowerCase())&&f.isShiftDown&&f.$activeItems.length){for(c=f.$control.children(".active:last"),(a=Array.prototype.indexOf.apply(f.$control[0].childNodes,[c[0]]))>(s=Array.prototype.indexOf.apply(f.$control[0].childNodes,[e[0]]))&&(l=a,a=s,s=l),i=a;i<=s;i++)u=f.$control[0].childNodes[i],-1===f.$activeItems.indexOf(u)&&(t(u).addClass("active"),f.$activeItems.push(u));n.preventDefault()}else"mousedown"===r&&f.isCtrlDown||"keydown"===r&&this.isShiftDown?e.hasClass("active")?(o=f.$activeItems.indexOf(e[0]),f.$activeItems.splice(o,1),e.removeClass("active")):f.$activeItems.push(e.addClass("active")[0]):(t(f.$activeItems).removeClass("active"),f.$activeItems=[e.addClass("active")[0]]);f.hideInput(),this.isFocused||f.focus()}},setActiveOption:function(e,n,r){var i,o,a,s,u,c=this;c.$activeOption&&c.$activeOption.removeClass("active"),c.$activeOption=null,(e=t(e)).length&&(c.$activeOption=e.addClass("active"),!n&&l(n)||(i=c.$dropdown_content.height(),o=c.$activeOption.outerHeight(!0),n=c.$dropdown_content.scrollTop()||0,s=a=c.$activeOption.offset().top-c.$dropdown_content.offset().top+n,u=a-i+o,a+o>i+n?c.$dropdown_content.stop().animate({scrollTop:u},r?c.settings.scrollDuration:0):a<n&&c.$dropdown_content.stop().animate({scrollTop:s},r?c.settings.scrollDuration:0)))},selectAll:function(){var t=this;"single"!==t.settings.mode&&(t.$activeItems=Array.prototype.slice.apply(t.$control.children(":not(input)").addClass("active")),t.$activeItems.length&&(t.hideInput(),t.close()),t.focus())},hideInput:function(){var t=this;t.setTextboxValue(""),t.$control_input.css({opacity:0,position:"absolute",left:t.rtl?1e4:-1e4}),t.isInputHidden=!0},showInput:function(){this.$control_input.css({opacity:1,position:"relative",left:0}),this.isInputHidden=!1},focus:function(){var t=this;t.isDisabled||(t.ignoreFocus=!0,t.$control_input[0].focus(),window.setTimeout((function(){t.ignoreFocus=!1,t.onFocus()}),0))},blur:function(t){this.$control_input[0].blur(),this.onBlur(null,t)},getScoreFunction:function(t){return this.sifter.getScoreFunction(t,this.getSearchOptions())},getSearchOptions:function(){var t=this.settings,e=t.sortField;return"string"==typeof e&&(e=[{field:e}]),{fields:t.searchField,conjunction:t.searchConjunction,sort:e,nesting:t.nesting}},search:function(e){var n,r,i,o=this,a=o.settings,s=this.getSearchOptions();if(a.score&&"function"!=typeof(i=o.settings.score.apply(this,[e])))throw new Error('Selectize "score" setting must be a function that returns a function');if(e!==o.lastQuery?(o.lastQuery=e,r=o.sifter.search(e,t.extend(s,{score:i})),o.currentResults=r):r=t.extend(!0,{},o.currentResults),a.hideSelected)for(n=r.items.length-1;n>=0;n--)-1!==o.items.indexOf(c(r.items[n].id))&&r.items.splice(n,1);return r},refreshOptions:function(e){var n,i,o,a,s,u,l,f,d,h,p,m,v,g,b,w;void 0===e&&(e=!0);var _=this,k=t.trim(_.$control_input.val()),M=_.search(k),x=_.$dropdown_content,S=_.$activeOption&&c(_.$activeOption.attr("data-value"));for(a=M.items.length,"number"==typeof _.settings.maxOptions&&(a=Math.min(a,_.settings.maxOptions)),s={},u=[],n=0;n<a;n++)for(l=_.options[M.items[n].id],f=_.render("option",l),d=l[_.settings.optgroupField]||"",i=0,o=(h=t.isArray(d)?d:[d])&&h.length;i<o;i++)d=h[i],_.optgroups.hasOwnProperty(d)||(d=""),s.hasOwnProperty(d)||(s[d]=document.createDocumentFragment(),u.push(d)),s[d].appendChild(f);for(this.settings.lockOptgroupOrder&&u.sort((function(t,e){return(_.optgroups[t].$order||0)-(_.optgroups[e].$order||0)})),p=document.createDocumentFragment(),n=0,a=u.length;n<a;n++)d=u[n],_.optgroups.hasOwnProperty(d)&&s[d].childNodes.length?((m=document.createDocumentFragment()).appendChild(_.render("optgroup_header",_.optgroups[d])),m.appendChild(s[d]),p.appendChild(_.render("optgroup",t.extend({},_.optgroups[d],{html:y(m),dom:m})))):p.appendChild(s[d]);if(x.html(p),_.settings.highlight&&(x.removeHighlight(),M.query.length&&M.tokens.length))for(n=0,a=M.tokens.length;n<a;n++)r(x,M.tokens[n].regex);if(!_.settings.hideSelected)for(n=0,a=_.items.length;n<a;n++)_.getOption(_.items[n]).addClass("selected");(v=_.canCreate(k))&&(x.prepend(_.render("option_create",{input:k})),w=t(x[0].childNodes[0])),_.hasOptions=M.items.length>0||v,_.hasOptions?(M.items.length>0?((b=S&&_.getOption(S))&&b.length?g=b:"single"===_.settings.mode&&_.items.length&&(g=_.getOption(_.items[0])),g&&g.length||(g=w&&!_.settings.addPrecedence?_.getAdjacentOption(w,1):x.find("[data-selectable]:first"))):g=w,_.setActiveOption(g),e&&!_.isOpen&&_.open()):(_.setActiveOption(null),e&&_.isOpen&&_.close())},addOption:function(e){var n,r,i,o=this;if(t.isArray(e))for(n=0,r=e.length;n<r;n++)o.addOption(e[n]);else(i=o.registerOption(e))&&(o.userOptions[i]=!0,o.lastQuery=null,o.trigger("option_add",i,e))},registerOption:function(t){var e=c(t[this.settings.valueField]);return null!=e&&!this.options.hasOwnProperty(e)&&(t.$order=t.$order||++this.order,this.options[e]=t,e)},registerOptionGroup:function(t){var e=c(t[this.settings.optgroupValueField]);return!!e&&(t.$order=t.$order||++this.order,this.optgroups[e]=t,e)},addOptionGroup:function(t,e){e[this.settings.optgroupValueField]=t,(t=this.registerOptionGroup(e))&&this.trigger("optgroup_add",t,e)},removeOptionGroup:function(t){this.optgroups.hasOwnProperty(t)&&(delete this.optgroups[t],this.renderCache={},this.trigger("optgroup_remove",t))},clearOptionGroups:function(){this.optgroups={},this.renderCache={},this.trigger("optgroup_clear")},updateOption:function(e,n){var r,i,o,a,s,u,l,f=this;if(e=c(e),o=c(n[f.settings.valueField]),null!==e&&f.options.hasOwnProperty(e)){if("string"!=typeof o)throw new Error("Value must be set in option data");l=f.options[e].$order,o!==e&&(delete f.options[e],-1!==(a=f.items.indexOf(e))&&f.items.splice(a,1,o)),n.$order=n.$order||l,f.options[o]=n,s=f.renderCache.item,u=f.renderCache.option,s&&(delete s[e],delete s[o]),u&&(delete u[e],delete u[o]),-1!==f.items.indexOf(o)&&(r=f.getItem(e),i=t(f.render("item",n)),r.hasClass("active")&&i.addClass("active"),r.replaceWith(i)),f.lastQuery=null,f.isOpen&&f.refreshOptions(!1)}},removeOption:function(t,e){var n=this;t=c(t);var r=n.renderCache.item,i=n.renderCache.option;r&&delete r[t],i&&delete i[t],delete n.userOptions[t],delete n.options[t],n.lastQuery=null,n.trigger("option_remove",t),n.removeItem(t,e)},clearOptions:function(){var e=this;e.loadedSearches={},e.userOptions={},e.renderCache={};var n=e.options;t.each(e.options,(function(t,r){-1==e.items.indexOf(t)&&delete n[t]})),e.options=e.sifter.items=n,e.lastQuery=null,e.trigger("option_clear")},getOption:function(t){return this.getElementWithValue(t,this.$dropdown_content.find("[data-selectable]"))},getAdjacentOption:function(e,n){var r=this.$dropdown.find("[data-selectable]"),i=r.index(e)+n;return i>=0&&i<r.length?r.eq(i):t()},getElementWithValue:function(e,n){if(void 0!==(e=c(e))&&null!==e)for(var r=0,i=n.length;r<i;r++)if(n[r].getAttribute("data-value")===e)return t(n[r]);return t()},getItem:function(t){return this.getElementWithValue(t,this.$control.children())},addItems:function(e,n){this.buffer=document.createDocumentFragment();for(var r=this.$control[0].childNodes,i=0;i<r.length;i++)this.buffer.appendChild(r[i]);for(var o=t.isArray(e)?e:[e],a=(i=0,o.length);i<a;i++)this.isPending=i<a-1,this.addItem(o[i],n);var s=this.$control[0];s.insertBefore(this.buffer,s.firstChild),this.buffer=null},addItem:function(e,n){m(this,n?[]:["change"],(function(){var r,i,o,a,s,u=this,l=u.settings.mode;e=c(e),-1===u.items.indexOf(e)?u.options.hasOwnProperty(e)&&("single"===l&&u.clear(n),"multi"===l&&u.isFull()||(r=t(u.render("item",u.options[e])),s=u.isFull(),u.items.splice(u.caretPos,0,e),u.insertAtCaret(r),(!u.isPending||!s&&u.isFull())&&u.refreshState(),u.isSetup&&(o=u.$dropdown_content.find("[data-selectable]"),u.isPending||(i=u.getOption(e),a=u.getAdjacentOption(i,1).attr("data-value"),u.refreshOptions(u.isFocused&&"single"!==l),a&&u.setActiveOption(u.getOption(a))),!o.length||u.isFull()?u.close():u.isPending||u.positionDropdown(),u.updatePlaceholder(),u.trigger("item_add",e,r),u.isPending||u.updateOriginalInput({silent:n})))):"single"===l&&u.close()}))},removeItem:function(e,n){var r,i,o,a=this;r=e instanceof t?e:a.getItem(e),e=c(r.attr("data-value")),-1!==(i=a.items.indexOf(e))&&(r.remove(),r.hasClass("active")&&(o=a.$activeItems.indexOf(r[0]),a.$activeItems.splice(o,1)),a.items.splice(i,1),a.lastQuery=null,!a.settings.persist&&a.userOptions.hasOwnProperty(e)&&a.removeOption(e,n),i<a.caretPos&&a.setCaret(a.caretPos-1),a.refreshState(),a.updatePlaceholder(),a.updateOriginalInput({silent:n}),a.positionDropdown(),a.trigger("item_remove",e,r))},createItem:function(e,n){var r=this,i=r.caretPos;e=e||t.trim(r.$control_input.val()||"");var o=arguments[arguments.length-1];if("function"!=typeof o&&(o=function(){}),"boolean"!=typeof n&&(n=!0),!r.canCreate(e))return o(),!1;r.lock();var a="function"==typeof r.settings.create?this.settings.create:function(t){var e={};return e[r.settings.labelField]=t,e[r.settings.valueField]=t,e},s=h((function(t){if(r.unlock(),!t||"object"!=typeof t)return o();var e=c(t[r.settings.valueField]);if("string"!=typeof e)return o();r.setTextboxValue(""),r.addOption(t),r.setCaret(i),r.addItem(e),r.refreshOptions(n&&"single"!==r.settings.mode),o(t)})),u=a.apply(this,[e,s]);return void 0!==u&&s(u),!0},refreshItems:function(){this.lastQuery=null,this.isSetup&&this.addItem(this.items),this.refreshState(),this.updateOriginalInput()},refreshState:function(){this.refreshValidityState(),this.refreshClasses()},refreshValidityState:function(){if(!this.isRequired)return!1;var t=!this.items.length;this.isInvalid=t,this.$control_input.prop("required",t),this.$input.prop("required",!t)},refreshClasses:function(){var e=this,n=e.isFull(),r=e.isLocked;e.$wrapper.toggleClass("rtl",e.rtl),e.$control.toggleClass("focus",e.isFocused).toggleClass("disabled",e.isDisabled).toggleClass("required",e.isRequired).toggleClass("invalid",e.isInvalid).toggleClass("locked",r).toggleClass("full",n).toggleClass("not-full",!n).toggleClass("input-active",e.isFocused&&!e.isInputHidden).toggleClass("dropdown-active",e.isOpen).toggleClass("has-options",!t.isEmptyObject(e.options)).toggleClass("has-items",e.items.length>0),e.$control_input.data("grow",!n&&!r)},isFull:function(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems},updateOriginalInput:function(t){var e,n,r,i,o=this;if(t=t||{},1===o.tagType){for(r=[],e=0,n=o.items.length;e<n;e++)i=o.options[o.items[e]][o.settings.labelField]||"",r.push('<option value="'+f(o.items[e])+'" selected="selected">'+f(i)+"</option>");r.length||this.$input.attr("multiple")||r.push('<option value="" selected="selected"></option>'),o.$input.html(r.join(""))}else o.$input.val(o.getValue()),o.$input.attr("value",o.$input.val());o.isSetup&&(t.silent||o.trigger("change",o.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var t=this.$control_input;this.items.length?t.removeAttr("placeholder"):t.attr("placeholder",this.settings.placeholder),t.triggerHandler("update",{force:!0})}},open:function(){var t=this;t.isLocked||t.isOpen||"multi"===t.settings.mode&&t.isFull()||(t.focus(),t.isOpen=!0,t.refreshState(),t.$dropdown.css({visibility:"hidden",display:"block"}),t.positionDropdown(),t.$dropdown.css({visibility:"visible"}),t.trigger("dropdown_open",t.$dropdown))},close:function(){var t=this,e=t.isOpen;"single"===t.settings.mode&&t.items.length&&(t.hideInput(),t.isBlurring||t.$control_input.blur()),t.isOpen=!1,t.$dropdown.hide(),t.setActiveOption(null),t.refreshState(),e&&t.trigger("dropdown_close",t.$dropdown)},positionDropdown:function(){var t=this.$control,e="body"===this.settings.dropdownParent?t.offset():t.position();e.top+=t.outerHeight(!0),this.$dropdown.css({width:t[0].getBoundingClientRect().width,top:e.top,left:e.left})},clear:function(t){var e=this;e.items.length&&(e.$control.children(":not(input)").remove(),e.items=[],e.lastQuery=null,e.setCaret(0),e.setActiveItem(null),e.updatePlaceholder(),e.updateOriginalInput({silent:t}),e.refreshState(),e.showInput(),e.trigger("clear"))},insertAtCaret:function(t){var e=Math.min(this.caretPos,this.items.length),n=t[0],r=this.buffer||this.$control[0];0===e?r.insertBefore(n,r.firstChild):r.insertBefore(n,r.childNodes[e]),this.setCaret(e+1)},deleteSelection:function(e){var n,r,i,o,a,s,u,l,c,f=this;if(i=e&&8===e.keyCode?-1:1,o=v(f.$control_input[0]),f.$activeOption&&!f.settings.hideSelected&&(u=f.getAdjacentOption(f.$activeOption,-1).attr("data-value")),a=[],f.$activeItems.length){for(c=f.$control.children(".active:"+(i>0?"last":"first")),s=f.$control.children(":not(input)").index(c),i>0&&s++,n=0,r=f.$activeItems.length;n<r;n++)a.push(t(f.$activeItems[n]).attr("data-value"));e&&(e.preventDefault(),e.stopPropagation())}else(f.isFocused||"single"===f.settings.mode)&&f.items.length&&(i<0&&0===o.start&&0===o.length?a.push(f.items[f.caretPos-1]):i>0&&o.start===f.$control_input.val().length&&a.push(f.items[f.caretPos]));if(!a.length||"function"==typeof f.settings.onDelete&&!1===f.settings.onDelete.apply(f,[a]))return!1;for(void 0!==s&&f.setCaret(s);a.length;)f.removeItem(a.pop());return f.showInput(),f.positionDropdown(),f.refreshOptions(!0),u&&(l=f.getOption(u)).length&&f.setActiveOption(l),!0},advanceSelection:function(t,e){var n,r,i,o,a,s=this;0!==t&&(s.rtl&&(t*=-1),n=t>0?"last":"first",r=v(s.$control_input[0]),s.isFocused&&!s.isInputHidden?(o=s.$control_input.val().length,(t<0?0===r.start&&0===r.length:r.start===o)&&!o&&s.advanceCaret(t,e)):(a=s.$control.children(".active:"+n)).length&&(i=s.$control.children(":not(input)").index(a),s.setActiveItem(null),s.setCaret(t>0?i+1:i)))},advanceCaret:function(t,e){var n,r,i=this;0!==t&&(n=t>0?"next":"prev",i.isShiftDown?(r=i.$control_input[n]()).length&&(i.hideInput(),i.setActiveItem(r),e&&e.preventDefault()):i.setCaret(i.caretPos+t))},setCaret:function(e){var n,r,i,o,a=this;if(e="single"===a.settings.mode?a.items.length:Math.max(0,Math.min(a.items.length,e)),!a.isPending)for(n=0,r=(i=a.$control.children(":not(input)")).length;n<r;n++)o=t(i[n]).detach(),n<e?a.$control_input.before(o):a.$control.append(o);a.caretPos=e},lock:function(){this.close(),this.isLocked=!0,this.refreshState()},unlock:function(){this.isLocked=!1,this.refreshState()},disable:function(){var t=this;t.$input.prop("disabled",!0),t.$control_input.prop("disabled",!0).prop("tabindex",-1),t.isDisabled=!0,t.lock()},enable:function(){var t=this;t.$input.prop("disabled",!1),t.$control_input.prop("disabled",!1).prop("tabindex",t.tabIndex),t.isDisabled=!1,t.unlock()},destroy:function(){var e=this,n=e.eventNS,r=e.revertSettings;e.trigger("destroy"),e.off(),e.$wrapper.remove(),e.$dropdown.remove(),e.$input.html("").append(r.$children).removeAttr("tabindex").removeClass("selectized").attr({tabindex:r.tabindex}).show(),e.$control_input.removeData("grow"),e.$input.removeData("selectize"),0==--w.count&&w.$testInput&&(w.$testInput.remove(),w.$testInput=void 0),t(window).off(n),t(document).off(n),t(document.body).off(n),delete e.$input[0].selectize},render:function(e,n){var r,i,o="",a=!1,s=this;return"option"!==e&&"item"!==e||(a=!!(r=c(n[s.settings.valueField]))),a&&(l(s.renderCache[e])||(s.renderCache[e]={}),s.renderCache[e].hasOwnProperty(r))?s.renderCache[e][r]:(o=t(s.settings.render[e].apply(this,[n,f])),"option"===e||"option_create"===e?n[s.settings.disabledField]||o.attr("data-selectable",""):"optgroup"===e&&(i=n[s.settings.optgroupValueField]||"",o.attr("data-group",i),n[s.settings.disabledField]&&o.attr("data-disabled","")),"option"!==e&&"item"!==e||o.attr("data-value",r||""),a&&(s.renderCache[e][r]=o[0]),o[0])},clearCache:function(t){void 0===t?this.renderCache={}:delete this.renderCache[t]},canCreate:function(t){var e=this;if(!e.settings.create)return!1;var n=e.settings.createFilter;return t.length&&("function"!=typeof n||n.apply(e,[t]))&&("string"!=typeof n||new RegExp(n).test(t))&&(!(n instanceof RegExp)||n.test(t))}}),w.count=0,w.defaults={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:!1,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,maxOptions:1e3,maxItems:null,hideSelected:null,addPrecedence:!1,selectOnTab:!1,preload:!1,allowEmptyOption:!1,closeAfterSelect:!1,scrollDuration:60,loadThrottle:300,loadingClass:"loading",dataAttr:"data-data",optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"selectize-control",inputClass:"selectize-input",dropdownClass:"selectize-dropdown",dropdownContentClass:"selectize-dropdown-content",dropdownParent:null,copyClassesToDropdown:!0,render:{}},t.fn.selectize=function(e){var n=t.fn.selectize.defaults,r=t.extend({},n,e),i=r.dataAttr,o=r.labelField,a=r.valueField,s=r.disabledField,u=r.optgroupField,l=r.optgroupLabelField,f=r.optgroupValueField,d=function(e,n){var s,u,l,c,f=e.attr(i);if(f)for(n.options=JSON.parse(f),s=0,u=n.options.length;s<u;s++)n.items.push(n.options[s][a]);else{var d=t.trim(e.val()||"");if(!r.allowEmptyOption&&!d.length)return;for(s=0,u=(l=d.split(r.delimiter)).length;s<u;s++)(c={})[o]=l[s],c[a]=l[s],n.options.push(c);n.items=l}},h=function(e,n){var d,h,p,m,v=n.options,g={},b=function(t){var e=i&&t.attr(i);return"string"==typeof e&&e.length?JSON.parse(e):null},y=function(e,i){e=t(e);var l=c(e.val());if(l||r.allowEmptyOption)if(g.hasOwnProperty(l)){if(i){var f=g[l][u];f?t.isArray(f)?f.push(i):g[l][u]=[f,i]:g[l][u]=i}}else{var d=b(e)||{};d[o]=d[o]||e.text(),d[a]=d[a]||l,d[s]=d[s]||e.prop("disabled"),d[u]=d[u]||i,g[l]=d,v.push(d),e.is(":selected")&&n.items.push(l)}};for(n.maxItems=e.attr("multiple")?null:1,d=0,h=(m=e.children()).length;d<h;d++)"optgroup"===(p=m[d].tagName.toLowerCase())?function(e){var r,i,o,a,u;for((o=(e=t(e)).attr("label"))&&((a=b(e)||{})[l]=o,a[f]=o,a[s]=e.prop("disabled"),n.optgroups.push(a)),r=0,i=(u=t("option",e)).length;r<i;r++)y(u[r],o)}(m[d]):"option"===p&&y(m[d])};return this.each((function(){if(!this.selectize){var i=t(this),o=this.tagName.toLowerCase(),a=i.attr("placeholder")||i.attr("data-placeholder");a||r.allowEmptyOption||(a=i.children('option[value=""]').text());var s={placeholder:a,options:[],optgroups:[],items:[]};"select"===o?h(i,s):d(i,s),new w(i,t.extend(!0,{},n,s,e))}}))},t.fn.selectize.defaults=w.defaults,t.fn.selectize.support={validity:u},w.define("drag_drop",(function(e){if(!t.fn.sortable)throw new Error('The "drag_drop" plugin requires jQuery UI "sortable".');if("multi"===this.settings.mode){var n=this;n.lock=function(){var t=n.lock;return function(){var e=n.$control.data("sortable");return e&&e.disable(),t.apply(n,arguments)}}(),n.unlock=function(){var t=n.unlock;return function(){var e=n.$control.data("sortable");return e&&e.enable(),t.apply(n,arguments)}}(),n.setup=function(){var e=n.setup;return function(){e.apply(this,arguments);var r=n.$control.sortable({items:"[data-value]",forcePlaceholderSize:!0,disabled:n.isLocked,start:function(t,e){e.placeholder.css("width",e.helper.css("width")),r.css({overflow:"visible"})},stop:function(){r.css({overflow:"hidden"});var e=n.$activeItems?n.$activeItems.slice():null,i=[];r.children("[data-value]").each((function(){i.push(t(this).attr("data-value"))})),n.setValue(i),n.setActiveItem(e)}})}}()}})),w.define("dropdown_header",(function(e){var n=this;e=t.extend({title:"Untitled",headerClass:"selectize-dropdown-header",titleRowClass:"selectize-dropdown-header-title",labelClass:"selectize-dropdown-header-label",closeClass:"selectize-dropdown-header-close",html:function(t){return'<div class="'+t.headerClass+'"><div class="'+t.titleRowClass+'"><span class="'+t.labelClass+'">'+t.title+'</span><a href="javascript:void(0)" class="'+t.closeClass+'">&times;</a></div></div>'}},e),n.setup=function(){var r=n.setup;return function(){r.apply(n,arguments),n.$dropdown_header=t(e.html(e)),n.$dropdown.prepend(n.$dropdown_header)}}()})),w.define("optgroup_columns",(function(e){var n=this;e=t.extend({equalizeWidth:!0,equalizeHeight:!0},e),this.getAdjacentOption=function(e,n){var r=e.closest("[data-group]").find("[data-selectable]"),i=r.index(e)+n;return i>=0&&i<r.length?r.eq(i):t()},this.onKeyDown=function(){var t=n.onKeyDown;return function(e){var r,i,o,a;return!this.isOpen||37!==e.keyCode&&39!==e.keyCode?t.apply(this,arguments):(n.ignoreHover=!0,r=(a=this.$activeOption.closest("[data-group]")).find("[data-selectable]").index(this.$activeOption),void((i=(o=(a=37===e.keyCode?a.prev("[data-group]"):a.next("[data-group]")).find("[data-selectable]")).eq(Math.min(o.length-1,r))).length&&this.setActiveOption(i)))}}();var r=function(){var t,e=r.width,n=document;return void 0===e&&((t=n.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',t=t.firstChild,n.body.appendChild(t),e=r.width=t.offsetWidth-t.clientWidth,n.body.removeChild(t)),e},i=function(){var i,o,a,s,u,l,c;if((o=(c=t("[data-group]",n.$dropdown_content)).length)&&n.$dropdown_content.width()){if(e.equalizeHeight){for(a=0,i=0;i<o;i++)a=Math.max(a,c.eq(i).height());c.css({height:a})}e.equalizeWidth&&(l=n.$dropdown_content.innerWidth()-r(),s=Math.round(l/o),c.css({width:s}),o>1&&(u=l-s*(o-1),c.eq(o-1).css({width:u})))}};(e.equalizeHeight||e.equalizeWidth)&&(d.after(this,"positionDropdown",i),d.after(this,"refreshOptions",i))})),w.define("remove_button",(function(e){e=t.extend({label:"&times;",title:"Remove",className:"remove",append:!0},e),"single"!==this.settings.mode?function(e,n){var r=e,i='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+f(n.title)+'">'+n.label+"</a>",o=function(t,e){var n=t.search(/(<\/[^>]+>\s*)$/);return t.substring(0,n)+e+t.substring(n)};e.setup=function(){var a=r.setup;return function(){if(n.append){var s=r.settings.render.item;r.settings.render.item=function(t){return o(s.apply(e,arguments),i)}}a.apply(e,arguments),e.$control.on("click","."+n.className,(function(e){if(e.preventDefault(),!r.isLocked){var n=t(e.currentTarget).parent();r.setActiveItem(n),r.deleteSelection()&&r.setCaret(r.items.length)}}))}}()}(this,e):function(e,n){n.className="remove-single";var r=e,i='<a href="javascript:void(0)" class="'+n.className+'" tabindex="-1" title="'+f(n.title)+'">'+n.label+"</a>",o=function(e,n){return t("<span>").append(e).append(n)};e.setup=function(){var a=r.setup;return function(){if(n.append){var s=t(r.$input.context).attr("id"),u=(t("#"+s),r.settings.render.item);r.settings.render.item=function(t){return o(u.apply(e,arguments),i)}}a.apply(e,arguments),e.$control.on("click","."+n.className,(function(t){t.preventDefault(),r.isLocked||r.clear()}))}}()}(this,e)})),w.define("restore_on_backspace",(function(t){var e=this;t.text=t.text||function(t){return t[this.settings.labelField]},this.onKeyDown=function(){var n=e.onKeyDown;return function(e){var r,i;return 8===e.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&(r=this.caretPos-1)>=0&&r<this.items.length?(i=this.options[this.items[r]],this.deleteSelection(e)&&(this.setTextboxValue(t.text.apply(this,[i])),this.refreshOptions(!0)),void e.preventDefault()):n.apply(this,arguments)}}()})),w})?l.apply(e,c):l)||(t.exports=f)},function(t,e,n){var r=n(8),i=n(241);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){(e=n(9)(!1)).push([t.i,'.selectize-control.plugin-drag_drop.multi>.selectize-input>div.ui-sortable-placeholder{visibility:visible!important;background:#f2f2f2!important;background:rgba(0,0,0,.06)!important;border:0!important;box-shadow:inset 0 0 12px 4px #fff}.selectize-control.plugin-drag_drop .ui-sortable-placeholder:after{content:"!";visibility:hidden}.selectize-control.plugin-drag_drop .ui-sortable-helper{box-shadow:0 2px 5px rgba(0,0,0,.2)}.selectize-dropdown-header{position:relative;padding:5px 8px;border-bottom:1px solid #d0d0d0;background:#f8f8f8;border-radius:3px 3px 0 0}.selectize-dropdown-header-close{position:absolute;right:8px;top:50%;color:#303030;opacity:.4;margin-top:-12px;line-height:20px;font-size:20px!important}.selectize-dropdown-header-close:hover{color:#000}.selectize-dropdown.plugin-optgroup_columns .optgroup{border-right:1px solid #f2f2f2;border-top:0;float:left;box-sizing:border-box}.selectize-dropdown.plugin-optgroup_columns .optgroup:last-child{border-right:0}.selectize-dropdown.plugin-optgroup_columns .optgroup:before{display:none}.selectize-dropdown.plugin-optgroup_columns .optgroup-header{border-top:0}.selectize-control.plugin-remove_button [data-value]{position:relative;padding-right:24px!important}.selectize-control.plugin-remove_button [data-value] .remove{z-index:1;position:absolute;top:0;right:0;bottom:0;width:17px;text-align:center;font-weight:700;font-size:12px;color:inherit;text-decoration:none;vertical-align:middle;display:inline-block;padding:2px 0 0;border-left:1px solid #d0d0d0;border-radius:0 2px 2px 0;box-sizing:border-box}.selectize-control.plugin-remove_button [data-value] .remove:hover{background:rgba(0,0,0,.05)}.selectize-control.plugin-remove_button [data-value].active .remove{border-left-color:#cacaca}.selectize-control.plugin-remove_button .disabled [data-value] .remove:hover{background:none}.selectize-control.plugin-remove_button .disabled [data-value] .remove{border-left-color:#fff}.selectize-control.plugin-remove_button .remove-single{position:absolute;right:0;top:0;font-size:23px}.selectize-control{position:relative}.selectize-dropdown,.selectize-input,.selectize-input input{color:#303030;font-family:inherit;font-size:13px;line-height:18px;-webkit-font-smoothing:inherit}.selectize-control.single .selectize-input.input-active,.selectize-input{background:#fff;cursor:text;display:inline-block}.selectize-input{border:1px solid #d0d0d0;padding:8px;display:inline-block;width:100%;overflow:hidden;position:relative;z-index:1;box-sizing:border-box;box-shadow:inset 0 1px 1px rgba(0,0,0,.1);border-radius:3px}.selectize-control.multi .selectize-input.has-items{padding:6px 8px 3px}.selectize-input.full{background-color:#fff}.selectize-input.disabled,.selectize-input.disabled *{cursor:default!important}.selectize-input.focus{box-shadow:inset 0 1px 2px rgba(0,0,0,.15)}.selectize-input.dropdown-active{border-radius:3px 3px 0 0}.selectize-input>*{vertical-align:baseline;display:-moz-inline-stack;display:inline-block;zoom:1;*display:inline}.selectize-control.multi .selectize-input>div{cursor:pointer;margin:0 3px 3px 0;padding:2px 6px;background:#f2f2f2;color:#303030;border:0 solid #d0d0d0}.selectize-control.multi .selectize-input>div.active{background:#e8e8e8;color:#303030;border:0 solid #cacaca}.selectize-control.multi .selectize-input.disabled>div,.selectize-control.multi .selectize-input.disabled>div.active{color:#7d7d7d;background:#fff;border:0 solid #fff}.selectize-input>input{display:inline-block!important;padding:0!important;min-height:0!important;max-height:none!important;max-width:100%!important;margin:0 2px 0 0!important;text-indent:0!important;border:0!important;background:none!important;line-height:inherit!important;-webkit-user-select:auto!important;box-shadow:none!important}.selectize-input>input::-ms-clear{display:none}.selectize-input>input:focus{outline:none!important}.selectize-input:after{content:" ";display:block;clear:left}.selectize-input.dropdown-active:before{content:" ";display:block;position:absolute;background:#f0f0f0;height:1px;bottom:0;left:0;right:0}.selectize-dropdown{position:absolute;z-index:10;background:#fff;margin:-1px 0 0;border:1px solid #d0d0d0;border-top:0;box-sizing:border-box;box-shadow:0 1px 3px rgba(0,0,0,.1);border-radius:0 0 3px 3px}.selectize-dropdown [data-selectable]{cursor:pointer;overflow:hidden}.selectize-dropdown [data-selectable] .highlight{background:rgba(125,168,208,.2);border-radius:1px}.selectize-dropdown .optgroup-header,.selectize-dropdown .option{padding:5px 8px}.selectize-dropdown .option,.selectize-dropdown [data-disabled],.selectize-dropdown [data-disabled] [data-selectable].option{cursor:inherit;opacity:.5}.selectize-dropdown [data-selectable].option{opacity:1}.selectize-dropdown .optgroup:first-child .optgroup-header{border-top:0}.selectize-dropdown .optgroup-header{color:#303030;background:#fff;cursor:default}.selectize-dropdown .active{background-color:#f5fafd;color:#495c68}.selectize-dropdown .active.create{color:#495c68}.selectize-dropdown .create{color:rgba(48,48,48,.5)}.selectize-dropdown-content{overflow-y:auto;overflow-x:hidden;max-height:200px;-webkit-overflow-scrolling:touch}.selectize-control.single .selectize-input,.selectize-control.single .selectize-input input{cursor:pointer}.selectize-control.single .selectize-input.input-active,.selectize-control.single .selectize-input.input-active input{cursor:text}.selectize-control.single .selectize-input:after{content:" ";display:block;position:absolute;top:50%;right:15px;margin-top:-3px;width:0;height:0;border-color:grey transparent transparent;border-style:solid;border-width:5px 5px 0}.selectize-control.single .selectize-input.dropdown-active:after{margin-top:-4px;border-width:0 5px 5px;border-color:transparent transparent grey}.selectize-control.rtl.single .selectize-input:after{left:15px;right:auto}.selectize-control.rtl .selectize-input>input{margin:0 4px 0 -2px!important}.selectize-control .selectize-input.disabled{opacity:.5;background-color:#fafafa}',""]),t.exports=e},function(t,e,n){var r=n(8),i=n(243);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){var r=n(9),i=n(244),o=n(245),a=n(246),s=n(247),u=n(248),l=n(249),c=n(250),f=n(251),d=n(252),h=n(253),p=n(254),m=n(255),v=n(256),g=n(257),b=n(258),y=n(259);e=r(!1);var w=i(o),_=i(o,{hash:"?#iefix"}),k=i(a),M=i(s),x=i(u),S=i(l,{hash:"#fontawesome"}),C=i(c),A=i(c,{hash:"?#iefix"}),T=i(f),E=i(d),O=i(h),P=i(p,{hash:"#fontawesome"}),I=i(m),R=i(m,{hash:"?#iefix"}),j=i(v),D=i(g),N=i(b),L=i(y,{hash:"#fontawesome"});e.push([t.i,'/*!\n * Font Awesome Free 5.13.0 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */.fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";transform:scaleX(-1)}.fa-flip-vertical{transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\\f26e"}.fa-accessible-icon:before{content:"\\f368"}.fa-accusoft:before{content:"\\f369"}.fa-acquisitions-incorporated:before{content:"\\f6af"}.fa-ad:before{content:"\\f641"}.fa-address-book:before{content:"\\f2b9"}.fa-address-card:before{content:"\\f2bb"}.fa-adjust:before{content:"\\f042"}.fa-adn:before{content:"\\f170"}.fa-adobe:before{content:"\\f778"}.fa-adversal:before{content:"\\f36a"}.fa-affiliatetheme:before{content:"\\f36b"}.fa-air-freshener:before{content:"\\f5d0"}.fa-airbnb:before{content:"\\f834"}.fa-algolia:before{content:"\\f36c"}.fa-align-center:before{content:"\\f037"}.fa-align-justify:before{content:"\\f039"}.fa-align-left:before{content:"\\f036"}.fa-align-right:before{content:"\\f038"}.fa-alipay:before{content:"\\f642"}.fa-allergies:before{content:"\\f461"}.fa-amazon:before{content:"\\f270"}.fa-amazon-pay:before{content:"\\f42c"}.fa-ambulance:before{content:"\\f0f9"}.fa-american-sign-language-interpreting:before{content:"\\f2a3"}.fa-amilia:before{content:"\\f36d"}.fa-anchor:before{content:"\\f13d"}.fa-android:before{content:"\\f17b"}.fa-angellist:before{content:"\\f209"}.fa-angle-double-down:before{content:"\\f103"}.fa-angle-double-left:before{content:"\\f100"}.fa-angle-double-right:before{content:"\\f101"}.fa-angle-double-up:before{content:"\\f102"}.fa-angle-down:before{content:"\\f107"}.fa-angle-left:before{content:"\\f104"}.fa-angle-right:before{content:"\\f105"}.fa-angle-up:before{content:"\\f106"}.fa-angry:before{content:"\\f556"}.fa-angrycreative:before{content:"\\f36e"}.fa-angular:before{content:"\\f420"}.fa-ankh:before{content:"\\f644"}.fa-app-store:before{content:"\\f36f"}.fa-app-store-ios:before{content:"\\f370"}.fa-apper:before{content:"\\f371"}.fa-apple:before{content:"\\f179"}.fa-apple-alt:before{content:"\\f5d1"}.fa-apple-pay:before{content:"\\f415"}.fa-archive:before{content:"\\f187"}.fa-archway:before{content:"\\f557"}.fa-arrow-alt-circle-down:before{content:"\\f358"}.fa-arrow-alt-circle-left:before{content:"\\f359"}.fa-arrow-alt-circle-right:before{content:"\\f35a"}.fa-arrow-alt-circle-up:before{content:"\\f35b"}.fa-arrow-circle-down:before{content:"\\f0ab"}.fa-arrow-circle-left:before{content:"\\f0a8"}.fa-arrow-circle-right:before{content:"\\f0a9"}.fa-arrow-circle-up:before{content:"\\f0aa"}.fa-arrow-down:before{content:"\\f063"}.fa-arrow-left:before{content:"\\f060"}.fa-arrow-right:before{content:"\\f061"}.fa-arrow-up:before{content:"\\f062"}.fa-arrows-alt:before{content:"\\f0b2"}.fa-arrows-alt-h:before{content:"\\f337"}.fa-arrows-alt-v:before{content:"\\f338"}.fa-artstation:before{content:"\\f77a"}.fa-assistive-listening-systems:before{content:"\\f2a2"}.fa-asterisk:before{content:"\\f069"}.fa-asymmetrik:before{content:"\\f372"}.fa-at:before{content:"\\f1fa"}.fa-atlas:before{content:"\\f558"}.fa-atlassian:before{content:"\\f77b"}.fa-atom:before{content:"\\f5d2"}.fa-audible:before{content:"\\f373"}.fa-audio-description:before{content:"\\f29e"}.fa-autoprefixer:before{content:"\\f41c"}.fa-avianex:before{content:"\\f374"}.fa-aviato:before{content:"\\f421"}.fa-award:before{content:"\\f559"}.fa-aws:before{content:"\\f375"}.fa-baby:before{content:"\\f77c"}.fa-baby-carriage:before{content:"\\f77d"}.fa-backspace:before{content:"\\f55a"}.fa-backward:before{content:"\\f04a"}.fa-bacon:before{content:"\\f7e5"}.fa-bahai:before{content:"\\f666"}.fa-balance-scale:before{content:"\\f24e"}.fa-balance-scale-left:before{content:"\\f515"}.fa-balance-scale-right:before{content:"\\f516"}.fa-ban:before{content:"\\f05e"}.fa-band-aid:before{content:"\\f462"}.fa-bandcamp:before{content:"\\f2d5"}.fa-barcode:before{content:"\\f02a"}.fa-bars:before{content:"\\f0c9"}.fa-baseball-ball:before{content:"\\f433"}.fa-basketball-ball:before{content:"\\f434"}.fa-bath:before{content:"\\f2cd"}.fa-battery-empty:before{content:"\\f244"}.fa-battery-full:before{content:"\\f240"}.fa-battery-half:before{content:"\\f242"}.fa-battery-quarter:before{content:"\\f243"}.fa-battery-three-quarters:before{content:"\\f241"}.fa-battle-net:before{content:"\\f835"}.fa-bed:before{content:"\\f236"}.fa-beer:before{content:"\\f0fc"}.fa-behance:before{content:"\\f1b4"}.fa-behance-square:before{content:"\\f1b5"}.fa-bell:before{content:"\\f0f3"}.fa-bell-slash:before{content:"\\f1f6"}.fa-bezier-curve:before{content:"\\f55b"}.fa-bible:before{content:"\\f647"}.fa-bicycle:before{content:"\\f206"}.fa-biking:before{content:"\\f84a"}.fa-bimobject:before{content:"\\f378"}.fa-binoculars:before{content:"\\f1e5"}.fa-biohazard:before{content:"\\f780"}.fa-birthday-cake:before{content:"\\f1fd"}.fa-bitbucket:before{content:"\\f171"}.fa-bitcoin:before{content:"\\f379"}.fa-bity:before{content:"\\f37a"}.fa-black-tie:before{content:"\\f27e"}.fa-blackberry:before{content:"\\f37b"}.fa-blender:before{content:"\\f517"}.fa-blender-phone:before{content:"\\f6b6"}.fa-blind:before{content:"\\f29d"}.fa-blog:before{content:"\\f781"}.fa-blogger:before{content:"\\f37c"}.fa-blogger-b:before{content:"\\f37d"}.fa-bluetooth:before{content:"\\f293"}.fa-bluetooth-b:before{content:"\\f294"}.fa-bold:before{content:"\\f032"}.fa-bolt:before{content:"\\f0e7"}.fa-bomb:before{content:"\\f1e2"}.fa-bone:before{content:"\\f5d7"}.fa-bong:before{content:"\\f55c"}.fa-book:before{content:"\\f02d"}.fa-book-dead:before{content:"\\f6b7"}.fa-book-medical:before{content:"\\f7e6"}.fa-book-open:before{content:"\\f518"}.fa-book-reader:before{content:"\\f5da"}.fa-bookmark:before{content:"\\f02e"}.fa-bootstrap:before{content:"\\f836"}.fa-border-all:before{content:"\\f84c"}.fa-border-none:before{content:"\\f850"}.fa-border-style:before{content:"\\f853"}.fa-bowling-ball:before{content:"\\f436"}.fa-box:before{content:"\\f466"}.fa-box-open:before{content:"\\f49e"}.fa-box-tissue:before{content:"\\f95b"}.fa-boxes:before{content:"\\f468"}.fa-braille:before{content:"\\f2a1"}.fa-brain:before{content:"\\f5dc"}.fa-bread-slice:before{content:"\\f7ec"}.fa-briefcase:before{content:"\\f0b1"}.fa-briefcase-medical:before{content:"\\f469"}.fa-broadcast-tower:before{content:"\\f519"}.fa-broom:before{content:"\\f51a"}.fa-brush:before{content:"\\f55d"}.fa-btc:before{content:"\\f15a"}.fa-buffer:before{content:"\\f837"}.fa-bug:before{content:"\\f188"}.fa-building:before{content:"\\f1ad"}.fa-bullhorn:before{content:"\\f0a1"}.fa-bullseye:before{content:"\\f140"}.fa-burn:before{content:"\\f46a"}.fa-buromobelexperte:before{content:"\\f37f"}.fa-bus:before{content:"\\f207"}.fa-bus-alt:before{content:"\\f55e"}.fa-business-time:before{content:"\\f64a"}.fa-buy-n-large:before{content:"\\f8a6"}.fa-buysellads:before{content:"\\f20d"}.fa-calculator:before{content:"\\f1ec"}.fa-calendar:before{content:"\\f133"}.fa-calendar-alt:before{content:"\\f073"}.fa-calendar-check:before{content:"\\f274"}.fa-calendar-day:before{content:"\\f783"}.fa-calendar-minus:before{content:"\\f272"}.fa-calendar-plus:before{content:"\\f271"}.fa-calendar-times:before{content:"\\f273"}.fa-calendar-week:before{content:"\\f784"}.fa-camera:before{content:"\\f030"}.fa-camera-retro:before{content:"\\f083"}.fa-campground:before{content:"\\f6bb"}.fa-canadian-maple-leaf:before{content:"\\f785"}.fa-candy-cane:before{content:"\\f786"}.fa-cannabis:before{content:"\\f55f"}.fa-capsules:before{content:"\\f46b"}.fa-car:before{content:"\\f1b9"}.fa-car-alt:before{content:"\\f5de"}.fa-car-battery:before{content:"\\f5df"}.fa-car-crash:before{content:"\\f5e1"}.fa-car-side:before{content:"\\f5e4"}.fa-caravan:before{content:"\\f8ff"}.fa-caret-down:before{content:"\\f0d7"}.fa-caret-left:before{content:"\\f0d9"}.fa-caret-right:before{content:"\\f0da"}.fa-caret-square-down:before{content:"\\f150"}.fa-caret-square-left:before{content:"\\f191"}.fa-caret-square-right:before{content:"\\f152"}.fa-caret-square-up:before{content:"\\f151"}.fa-caret-up:before{content:"\\f0d8"}.fa-carrot:before{content:"\\f787"}.fa-cart-arrow-down:before{content:"\\f218"}.fa-cart-plus:before{content:"\\f217"}.fa-cash-register:before{content:"\\f788"}.fa-cat:before{content:"\\f6be"}.fa-cc-amazon-pay:before{content:"\\f42d"}.fa-cc-amex:before{content:"\\f1f3"}.fa-cc-apple-pay:before{content:"\\f416"}.fa-cc-diners-club:before{content:"\\f24c"}.fa-cc-discover:before{content:"\\f1f2"}.fa-cc-jcb:before{content:"\\f24b"}.fa-cc-mastercard:before{content:"\\f1f1"}.fa-cc-paypal:before{content:"\\f1f4"}.fa-cc-stripe:before{content:"\\f1f5"}.fa-cc-visa:before{content:"\\f1f0"}.fa-centercode:before{content:"\\f380"}.fa-centos:before{content:"\\f789"}.fa-certificate:before{content:"\\f0a3"}.fa-chair:before{content:"\\f6c0"}.fa-chalkboard:before{content:"\\f51b"}.fa-chalkboard-teacher:before{content:"\\f51c"}.fa-charging-station:before{content:"\\f5e7"}.fa-chart-area:before{content:"\\f1fe"}.fa-chart-bar:before{content:"\\f080"}.fa-chart-line:before{content:"\\f201"}.fa-chart-pie:before{content:"\\f200"}.fa-check:before{content:"\\f00c"}.fa-check-circle:before{content:"\\f058"}.fa-check-double:before{content:"\\f560"}.fa-check-square:before{content:"\\f14a"}.fa-cheese:before{content:"\\f7ef"}.fa-chess:before{content:"\\f439"}.fa-chess-bishop:before{content:"\\f43a"}.fa-chess-board:before{content:"\\f43c"}.fa-chess-king:before{content:"\\f43f"}.fa-chess-knight:before{content:"\\f441"}.fa-chess-pawn:before{content:"\\f443"}.fa-chess-queen:before{content:"\\f445"}.fa-chess-rook:before{content:"\\f447"}.fa-chevron-circle-down:before{content:"\\f13a"}.fa-chevron-circle-left:before{content:"\\f137"}.fa-chevron-circle-right:before{content:"\\f138"}.fa-chevron-circle-up:before{content:"\\f139"}.fa-chevron-down:before{content:"\\f078"}.fa-chevron-left:before{content:"\\f053"}.fa-chevron-right:before{content:"\\f054"}.fa-chevron-up:before{content:"\\f077"}.fa-child:before{content:"\\f1ae"}.fa-chrome:before{content:"\\f268"}.fa-chromecast:before{content:"\\f838"}.fa-church:before{content:"\\f51d"}.fa-circle:before{content:"\\f111"}.fa-circle-notch:before{content:"\\f1ce"}.fa-city:before{content:"\\f64f"}.fa-clinic-medical:before{content:"\\f7f2"}.fa-clipboard:before{content:"\\f328"}.fa-clipboard-check:before{content:"\\f46c"}.fa-clipboard-list:before{content:"\\f46d"}.fa-clock:before{content:"\\f017"}.fa-clone:before{content:"\\f24d"}.fa-closed-captioning:before{content:"\\f20a"}.fa-cloud:before{content:"\\f0c2"}.fa-cloud-download-alt:before{content:"\\f381"}.fa-cloud-meatball:before{content:"\\f73b"}.fa-cloud-moon:before{content:"\\f6c3"}.fa-cloud-moon-rain:before{content:"\\f73c"}.fa-cloud-rain:before{content:"\\f73d"}.fa-cloud-showers-heavy:before{content:"\\f740"}.fa-cloud-sun:before{content:"\\f6c4"}.fa-cloud-sun-rain:before{content:"\\f743"}.fa-cloud-upload-alt:before{content:"\\f382"}.fa-cloudscale:before{content:"\\f383"}.fa-cloudsmith:before{content:"\\f384"}.fa-cloudversify:before{content:"\\f385"}.fa-cocktail:before{content:"\\f561"}.fa-code:before{content:"\\f121"}.fa-code-branch:before{content:"\\f126"}.fa-codepen:before{content:"\\f1cb"}.fa-codiepie:before{content:"\\f284"}.fa-coffee:before{content:"\\f0f4"}.fa-cog:before{content:"\\f013"}.fa-cogs:before{content:"\\f085"}.fa-coins:before{content:"\\f51e"}.fa-columns:before{content:"\\f0db"}.fa-comment:before{content:"\\f075"}.fa-comment-alt:before{content:"\\f27a"}.fa-comment-dollar:before{content:"\\f651"}.fa-comment-dots:before{content:"\\f4ad"}.fa-comment-medical:before{content:"\\f7f5"}.fa-comment-slash:before{content:"\\f4b3"}.fa-comments:before{content:"\\f086"}.fa-comments-dollar:before{content:"\\f653"}.fa-compact-disc:before{content:"\\f51f"}.fa-compass:before{content:"\\f14e"}.fa-compress:before{content:"\\f066"}.fa-compress-alt:before{content:"\\f422"}.fa-compress-arrows-alt:before{content:"\\f78c"}.fa-concierge-bell:before{content:"\\f562"}.fa-confluence:before{content:"\\f78d"}.fa-connectdevelop:before{content:"\\f20e"}.fa-contao:before{content:"\\f26d"}.fa-cookie:before{content:"\\f563"}.fa-cookie-bite:before{content:"\\f564"}.fa-copy:before{content:"\\f0c5"}.fa-copyright:before{content:"\\f1f9"}.fa-cotton-bureau:before{content:"\\f89e"}.fa-couch:before{content:"\\f4b8"}.fa-cpanel:before{content:"\\f388"}.fa-creative-commons:before{content:"\\f25e"}.fa-creative-commons-by:before{content:"\\f4e7"}.fa-creative-commons-nc:before{content:"\\f4e8"}.fa-creative-commons-nc-eu:before{content:"\\f4e9"}.fa-creative-commons-nc-jp:before{content:"\\f4ea"}.fa-creative-commons-nd:before{content:"\\f4eb"}.fa-creative-commons-pd:before{content:"\\f4ec"}.fa-creative-commons-pd-alt:before{content:"\\f4ed"}.fa-creative-commons-remix:before{content:"\\f4ee"}.fa-creative-commons-sa:before{content:"\\f4ef"}.fa-creative-commons-sampling:before{content:"\\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\\f4f1"}.fa-creative-commons-share:before{content:"\\f4f2"}.fa-creative-commons-zero:before{content:"\\f4f3"}.fa-credit-card:before{content:"\\f09d"}.fa-critical-role:before{content:"\\f6c9"}.fa-crop:before{content:"\\f125"}.fa-crop-alt:before{content:"\\f565"}.fa-cross:before{content:"\\f654"}.fa-crosshairs:before{content:"\\f05b"}.fa-crow:before{content:"\\f520"}.fa-crown:before{content:"\\f521"}.fa-crutch:before{content:"\\f7f7"}.fa-css3:before{content:"\\f13c"}.fa-css3-alt:before{content:"\\f38b"}.fa-cube:before{content:"\\f1b2"}.fa-cubes:before{content:"\\f1b3"}.fa-cut:before{content:"\\f0c4"}.fa-cuttlefish:before{content:"\\f38c"}.fa-d-and-d:before{content:"\\f38d"}.fa-d-and-d-beyond:before{content:"\\f6ca"}.fa-dailymotion:before{content:"\\f952"}.fa-dashcube:before{content:"\\f210"}.fa-database:before{content:"\\f1c0"}.fa-deaf:before{content:"\\f2a4"}.fa-delicious:before{content:"\\f1a5"}.fa-democrat:before{content:"\\f747"}.fa-deploydog:before{content:"\\f38e"}.fa-deskpro:before{content:"\\f38f"}.fa-desktop:before{content:"\\f108"}.fa-dev:before{content:"\\f6cc"}.fa-deviantart:before{content:"\\f1bd"}.fa-dharmachakra:before{content:"\\f655"}.fa-dhl:before{content:"\\f790"}.fa-diagnoses:before{content:"\\f470"}.fa-diaspora:before{content:"\\f791"}.fa-dice:before{content:"\\f522"}.fa-dice-d20:before{content:"\\f6cf"}.fa-dice-d6:before{content:"\\f6d1"}.fa-dice-five:before{content:"\\f523"}.fa-dice-four:before{content:"\\f524"}.fa-dice-one:before{content:"\\f525"}.fa-dice-six:before{content:"\\f526"}.fa-dice-three:before{content:"\\f527"}.fa-dice-two:before{content:"\\f528"}.fa-digg:before{content:"\\f1a6"}.fa-digital-ocean:before{content:"\\f391"}.fa-digital-tachograph:before{content:"\\f566"}.fa-directions:before{content:"\\f5eb"}.fa-discord:before{content:"\\f392"}.fa-discourse:before{content:"\\f393"}.fa-disease:before{content:"\\f7fa"}.fa-divide:before{content:"\\f529"}.fa-dizzy:before{content:"\\f567"}.fa-dna:before{content:"\\f471"}.fa-dochub:before{content:"\\f394"}.fa-docker:before{content:"\\f395"}.fa-dog:before{content:"\\f6d3"}.fa-dollar-sign:before{content:"\\f155"}.fa-dolly:before{content:"\\f472"}.fa-dolly-flatbed:before{content:"\\f474"}.fa-donate:before{content:"\\f4b9"}.fa-door-closed:before{content:"\\f52a"}.fa-door-open:before{content:"\\f52b"}.fa-dot-circle:before{content:"\\f192"}.fa-dove:before{content:"\\f4ba"}.fa-download:before{content:"\\f019"}.fa-draft2digital:before{content:"\\f396"}.fa-drafting-compass:before{content:"\\f568"}.fa-dragon:before{content:"\\f6d5"}.fa-draw-polygon:before{content:"\\f5ee"}.fa-dribbble:before{content:"\\f17d"}.fa-dribbble-square:before{content:"\\f397"}.fa-dropbox:before{content:"\\f16b"}.fa-drum:before{content:"\\f569"}.fa-drum-steelpan:before{content:"\\f56a"}.fa-drumstick-bite:before{content:"\\f6d7"}.fa-drupal:before{content:"\\f1a9"}.fa-dumbbell:before{content:"\\f44b"}.fa-dumpster:before{content:"\\f793"}.fa-dumpster-fire:before{content:"\\f794"}.fa-dungeon:before{content:"\\f6d9"}.fa-dyalog:before{content:"\\f399"}.fa-earlybirds:before{content:"\\f39a"}.fa-ebay:before{content:"\\f4f4"}.fa-edge:before{content:"\\f282"}.fa-edit:before{content:"\\f044"}.fa-egg:before{content:"\\f7fb"}.fa-eject:before{content:"\\f052"}.fa-elementor:before{content:"\\f430"}.fa-ellipsis-h:before{content:"\\f141"}.fa-ellipsis-v:before{content:"\\f142"}.fa-ello:before{content:"\\f5f1"}.fa-ember:before{content:"\\f423"}.fa-empire:before{content:"\\f1d1"}.fa-envelope:before{content:"\\f0e0"}.fa-envelope-open:before{content:"\\f2b6"}.fa-envelope-open-text:before{content:"\\f658"}.fa-envelope-square:before{content:"\\f199"}.fa-envira:before{content:"\\f299"}.fa-equals:before{content:"\\f52c"}.fa-eraser:before{content:"\\f12d"}.fa-erlang:before{content:"\\f39d"}.fa-ethereum:before{content:"\\f42e"}.fa-ethernet:before{content:"\\f796"}.fa-etsy:before{content:"\\f2d7"}.fa-euro-sign:before{content:"\\f153"}.fa-evernote:before{content:"\\f839"}.fa-exchange-alt:before{content:"\\f362"}.fa-exclamation:before{content:"\\f12a"}.fa-exclamation-circle:before{content:"\\f06a"}.fa-exclamation-triangle:before{content:"\\f071"}.fa-expand:before{content:"\\f065"}.fa-expand-alt:before{content:"\\f424"}.fa-expand-arrows-alt:before{content:"\\f31e"}.fa-expeditedssl:before{content:"\\f23e"}.fa-external-link-alt:before{content:"\\f35d"}.fa-external-link-square-alt:before{content:"\\f360"}.fa-eye:before{content:"\\f06e"}.fa-eye-dropper:before{content:"\\f1fb"}.fa-eye-slash:before{content:"\\f070"}.fa-facebook:before{content:"\\f09a"}.fa-facebook-f:before{content:"\\f39e"}.fa-facebook-messenger:before{content:"\\f39f"}.fa-facebook-square:before{content:"\\f082"}.fa-fan:before{content:"\\f863"}.fa-fantasy-flight-games:before{content:"\\f6dc"}.fa-fast-backward:before{content:"\\f049"}.fa-fast-forward:before{content:"\\f050"}.fa-faucet:before{content:"\\f905"}.fa-fax:before{content:"\\f1ac"}.fa-feather:before{content:"\\f52d"}.fa-feather-alt:before{content:"\\f56b"}.fa-fedex:before{content:"\\f797"}.fa-fedora:before{content:"\\f798"}.fa-female:before{content:"\\f182"}.fa-fighter-jet:before{content:"\\f0fb"}.fa-figma:before{content:"\\f799"}.fa-file:before{content:"\\f15b"}.fa-file-alt:before{content:"\\f15c"}.fa-file-archive:before{content:"\\f1c6"}.fa-file-audio:before{content:"\\f1c7"}.fa-file-code:before{content:"\\f1c9"}.fa-file-contract:before{content:"\\f56c"}.fa-file-csv:before{content:"\\f6dd"}.fa-file-download:before{content:"\\f56d"}.fa-file-excel:before{content:"\\f1c3"}.fa-file-export:before{content:"\\f56e"}.fa-file-image:before{content:"\\f1c5"}.fa-file-import:before{content:"\\f56f"}.fa-file-invoice:before{content:"\\f570"}.fa-file-invoice-dollar:before{content:"\\f571"}.fa-file-medical:before{content:"\\f477"}.fa-file-medical-alt:before{content:"\\f478"}.fa-file-pdf:before{content:"\\f1c1"}.fa-file-powerpoint:before{content:"\\f1c4"}.fa-file-prescription:before{content:"\\f572"}.fa-file-signature:before{content:"\\f573"}.fa-file-upload:before{content:"\\f574"}.fa-file-video:before{content:"\\f1c8"}.fa-file-word:before{content:"\\f1c2"}.fa-fill:before{content:"\\f575"}.fa-fill-drip:before{content:"\\f576"}.fa-film:before{content:"\\f008"}.fa-filter:before{content:"\\f0b0"}.fa-fingerprint:before{content:"\\f577"}.fa-fire:before{content:"\\f06d"}.fa-fire-alt:before{content:"\\f7e4"}.fa-fire-extinguisher:before{content:"\\f134"}.fa-firefox:before{content:"\\f269"}.fa-firefox-browser:before{content:"\\f907"}.fa-first-aid:before{content:"\\f479"}.fa-first-order:before{content:"\\f2b0"}.fa-first-order-alt:before{content:"\\f50a"}.fa-firstdraft:before{content:"\\f3a1"}.fa-fish:before{content:"\\f578"}.fa-fist-raised:before{content:"\\f6de"}.fa-flag:before{content:"\\f024"}.fa-flag-checkered:before{content:"\\f11e"}.fa-flag-usa:before{content:"\\f74d"}.fa-flask:before{content:"\\f0c3"}.fa-flickr:before{content:"\\f16e"}.fa-flipboard:before{content:"\\f44d"}.fa-flushed:before{content:"\\f579"}.fa-fly:before{content:"\\f417"}.fa-folder:before{content:"\\f07b"}.fa-folder-minus:before{content:"\\f65d"}.fa-folder-open:before{content:"\\f07c"}.fa-folder-plus:before{content:"\\f65e"}.fa-font:before{content:"\\f031"}.fa-font-awesome:before{content:"\\f2b4"}.fa-font-awesome-alt:before{content:"\\f35c"}.fa-font-awesome-flag:before{content:"\\f425"}.fa-font-awesome-logo-full:before{content:"\\f4e6"}.fa-fonticons:before{content:"\\f280"}.fa-fonticons-fi:before{content:"\\f3a2"}.fa-football-ball:before{content:"\\f44e"}.fa-fort-awesome:before{content:"\\f286"}.fa-fort-awesome-alt:before{content:"\\f3a3"}.fa-forumbee:before{content:"\\f211"}.fa-forward:before{content:"\\f04e"}.fa-foursquare:before{content:"\\f180"}.fa-free-code-camp:before{content:"\\f2c5"}.fa-freebsd:before{content:"\\f3a4"}.fa-frog:before{content:"\\f52e"}.fa-frown:before{content:"\\f119"}.fa-frown-open:before{content:"\\f57a"}.fa-fulcrum:before{content:"\\f50b"}.fa-funnel-dollar:before{content:"\\f662"}.fa-futbol:before{content:"\\f1e3"}.fa-galactic-republic:before{content:"\\f50c"}.fa-galactic-senate:before{content:"\\f50d"}.fa-gamepad:before{content:"\\f11b"}.fa-gas-pump:before{content:"\\f52f"}.fa-gavel:before{content:"\\f0e3"}.fa-gem:before{content:"\\f3a5"}.fa-genderless:before{content:"\\f22d"}.fa-get-pocket:before{content:"\\f265"}.fa-gg:before{content:"\\f260"}.fa-gg-circle:before{content:"\\f261"}.fa-ghost:before{content:"\\f6e2"}.fa-gift:before{content:"\\f06b"}.fa-gifts:before{content:"\\f79c"}.fa-git:before{content:"\\f1d3"}.fa-git-alt:before{content:"\\f841"}.fa-git-square:before{content:"\\f1d2"}.fa-github:before{content:"\\f09b"}.fa-github-alt:before{content:"\\f113"}.fa-github-square:before{content:"\\f092"}.fa-gitkraken:before{content:"\\f3a6"}.fa-gitlab:before{content:"\\f296"}.fa-gitter:before{content:"\\f426"}.fa-glass-cheers:before{content:"\\f79f"}.fa-glass-martini:before{content:"\\f000"}.fa-glass-martini-alt:before{content:"\\f57b"}.fa-glass-whiskey:before{content:"\\f7a0"}.fa-glasses:before{content:"\\f530"}.fa-glide:before{content:"\\f2a5"}.fa-glide-g:before{content:"\\f2a6"}.fa-globe:before{content:"\\f0ac"}.fa-globe-africa:before{content:"\\f57c"}.fa-globe-americas:before{content:"\\f57d"}.fa-globe-asia:before{content:"\\f57e"}.fa-globe-europe:before{content:"\\f7a2"}.fa-gofore:before{content:"\\f3a7"}.fa-golf-ball:before{content:"\\f450"}.fa-goodreads:before{content:"\\f3a8"}.fa-goodreads-g:before{content:"\\f3a9"}.fa-google:before{content:"\\f1a0"}.fa-google-drive:before{content:"\\f3aa"}.fa-google-play:before{content:"\\f3ab"}.fa-google-plus:before{content:"\\f2b3"}.fa-google-plus-g:before{content:"\\f0d5"}.fa-google-plus-square:before{content:"\\f0d4"}.fa-google-wallet:before{content:"\\f1ee"}.fa-gopuram:before{content:"\\f664"}.fa-graduation-cap:before{content:"\\f19d"}.fa-gratipay:before{content:"\\f184"}.fa-grav:before{content:"\\f2d6"}.fa-greater-than:before{content:"\\f531"}.fa-greater-than-equal:before{content:"\\f532"}.fa-grimace:before{content:"\\f57f"}.fa-grin:before{content:"\\f580"}.fa-grin-alt:before{content:"\\f581"}.fa-grin-beam:before{content:"\\f582"}.fa-grin-beam-sweat:before{content:"\\f583"}.fa-grin-hearts:before{content:"\\f584"}.fa-grin-squint:before{content:"\\f585"}.fa-grin-squint-tears:before{content:"\\f586"}.fa-grin-stars:before{content:"\\f587"}.fa-grin-tears:before{content:"\\f588"}.fa-grin-tongue:before{content:"\\f589"}.fa-grin-tongue-squint:before{content:"\\f58a"}.fa-grin-tongue-wink:before{content:"\\f58b"}.fa-grin-wink:before{content:"\\f58c"}.fa-grip-horizontal:before{content:"\\f58d"}.fa-grip-lines:before{content:"\\f7a4"}.fa-grip-lines-vertical:before{content:"\\f7a5"}.fa-grip-vertical:before{content:"\\f58e"}.fa-gripfire:before{content:"\\f3ac"}.fa-grunt:before{content:"\\f3ad"}.fa-guitar:before{content:"\\f7a6"}.fa-gulp:before{content:"\\f3ae"}.fa-h-square:before{content:"\\f0fd"}.fa-hacker-news:before{content:"\\f1d4"}.fa-hacker-news-square:before{content:"\\f3af"}.fa-hackerrank:before{content:"\\f5f7"}.fa-hamburger:before{content:"\\f805"}.fa-hammer:before{content:"\\f6e3"}.fa-hamsa:before{content:"\\f665"}.fa-hand-holding:before{content:"\\f4bd"}.fa-hand-holding-heart:before{content:"\\f4be"}.fa-hand-holding-medical:before{content:"\\f95c"}.fa-hand-holding-usd:before{content:"\\f4c0"}.fa-hand-holding-water:before{content:"\\f4c1"}.fa-hand-lizard:before{content:"\\f258"}.fa-hand-middle-finger:before{content:"\\f806"}.fa-hand-paper:before{content:"\\f256"}.fa-hand-peace:before{content:"\\f25b"}.fa-hand-point-down:before{content:"\\f0a7"}.fa-hand-point-left:before{content:"\\f0a5"}.fa-hand-point-right:before{content:"\\f0a4"}.fa-hand-point-up:before{content:"\\f0a6"}.fa-hand-pointer:before{content:"\\f25a"}.fa-hand-rock:before{content:"\\f255"}.fa-hand-scissors:before{content:"\\f257"}.fa-hand-sparkles:before{content:"\\f95d"}.fa-hand-spock:before{content:"\\f259"}.fa-hands:before{content:"\\f4c2"}.fa-hands-helping:before{content:"\\f4c4"}.fa-hands-wash:before{content:"\\f95e"}.fa-handshake:before{content:"\\f2b5"}.fa-handshake-alt-slash:before{content:"\\f95f"}.fa-handshake-slash:before{content:"\\f960"}.fa-hanukiah:before{content:"\\f6e6"}.fa-hard-hat:before{content:"\\f807"}.fa-hashtag:before{content:"\\f292"}.fa-hat-cowboy:before{content:"\\f8c0"}.fa-hat-cowboy-side:before{content:"\\f8c1"}.fa-hat-wizard:before{content:"\\f6e8"}.fa-hdd:before{content:"\\f0a0"}.fa-head-side-cough:before{content:"\\f961"}.fa-head-side-cough-slash:before{content:"\\f962"}.fa-head-side-mask:before{content:"\\f963"}.fa-head-side-virus:before{content:"\\f964"}.fa-heading:before{content:"\\f1dc"}.fa-headphones:before{content:"\\f025"}.fa-headphones-alt:before{content:"\\f58f"}.fa-headset:before{content:"\\f590"}.fa-heart:before{content:"\\f004"}.fa-heart-broken:before{content:"\\f7a9"}.fa-heartbeat:before{content:"\\f21e"}.fa-helicopter:before{content:"\\f533"}.fa-highlighter:before{content:"\\f591"}.fa-hiking:before{content:"\\f6ec"}.fa-hippo:before{content:"\\f6ed"}.fa-hips:before{content:"\\f452"}.fa-hire-a-helper:before{content:"\\f3b0"}.fa-history:before{content:"\\f1da"}.fa-hockey-puck:before{content:"\\f453"}.fa-holly-berry:before{content:"\\f7aa"}.fa-home:before{content:"\\f015"}.fa-hooli:before{content:"\\f427"}.fa-hornbill:before{content:"\\f592"}.fa-horse:before{content:"\\f6f0"}.fa-horse-head:before{content:"\\f7ab"}.fa-hospital:before{content:"\\f0f8"}.fa-hospital-alt:before{content:"\\f47d"}.fa-hospital-symbol:before{content:"\\f47e"}.fa-hospital-user:before{content:"\\f80d"}.fa-hot-tub:before{content:"\\f593"}.fa-hotdog:before{content:"\\f80f"}.fa-hotel:before{content:"\\f594"}.fa-hotjar:before{content:"\\f3b1"}.fa-hourglass:before{content:"\\f254"}.fa-hourglass-end:before{content:"\\f253"}.fa-hourglass-half:before{content:"\\f252"}.fa-hourglass-start:before{content:"\\f251"}.fa-house-damage:before{content:"\\f6f1"}.fa-house-user:before{content:"\\f965"}.fa-houzz:before{content:"\\f27c"}.fa-hryvnia:before{content:"\\f6f2"}.fa-html5:before{content:"\\f13b"}.fa-hubspot:before{content:"\\f3b2"}.fa-i-cursor:before{content:"\\f246"}.fa-ice-cream:before{content:"\\f810"}.fa-icicles:before{content:"\\f7ad"}.fa-icons:before{content:"\\f86d"}.fa-id-badge:before{content:"\\f2c1"}.fa-id-card:before{content:"\\f2c2"}.fa-id-card-alt:before{content:"\\f47f"}.fa-ideal:before{content:"\\f913"}.fa-igloo:before{content:"\\f7ae"}.fa-image:before{content:"\\f03e"}.fa-images:before{content:"\\f302"}.fa-imdb:before{content:"\\f2d8"}.fa-inbox:before{content:"\\f01c"}.fa-indent:before{content:"\\f03c"}.fa-industry:before{content:"\\f275"}.fa-infinity:before{content:"\\f534"}.fa-info:before{content:"\\f129"}.fa-info-circle:before{content:"\\f05a"}.fa-instagram:before{content:"\\f16d"}.fa-instagram-square:before{content:"\\f955"}.fa-intercom:before{content:"\\f7af"}.fa-internet-explorer:before{content:"\\f26b"}.fa-invision:before{content:"\\f7b0"}.fa-ioxhost:before{content:"\\f208"}.fa-italic:before{content:"\\f033"}.fa-itch-io:before{content:"\\f83a"}.fa-itunes:before{content:"\\f3b4"}.fa-itunes-note:before{content:"\\f3b5"}.fa-java:before{content:"\\f4e4"}.fa-jedi:before{content:"\\f669"}.fa-jedi-order:before{content:"\\f50e"}.fa-jenkins:before{content:"\\f3b6"}.fa-jira:before{content:"\\f7b1"}.fa-joget:before{content:"\\f3b7"}.fa-joint:before{content:"\\f595"}.fa-joomla:before{content:"\\f1aa"}.fa-journal-whills:before{content:"\\f66a"}.fa-js:before{content:"\\f3b8"}.fa-js-square:before{content:"\\f3b9"}.fa-jsfiddle:before{content:"\\f1cc"}.fa-kaaba:before{content:"\\f66b"}.fa-kaggle:before{content:"\\f5fa"}.fa-key:before{content:"\\f084"}.fa-keybase:before{content:"\\f4f5"}.fa-keyboard:before{content:"\\f11c"}.fa-keycdn:before{content:"\\f3ba"}.fa-khanda:before{content:"\\f66d"}.fa-kickstarter:before{content:"\\f3bb"}.fa-kickstarter-k:before{content:"\\f3bc"}.fa-kiss:before{content:"\\f596"}.fa-kiss-beam:before{content:"\\f597"}.fa-kiss-wink-heart:before{content:"\\f598"}.fa-kiwi-bird:before{content:"\\f535"}.fa-korvue:before{content:"\\f42f"}.fa-landmark:before{content:"\\f66f"}.fa-language:before{content:"\\f1ab"}.fa-laptop:before{content:"\\f109"}.fa-laptop-code:before{content:"\\f5fc"}.fa-laptop-house:before{content:"\\f966"}.fa-laptop-medical:before{content:"\\f812"}.fa-laravel:before{content:"\\f3bd"}.fa-lastfm:before{content:"\\f202"}.fa-lastfm-square:before{content:"\\f203"}.fa-laugh:before{content:"\\f599"}.fa-laugh-beam:before{content:"\\f59a"}.fa-laugh-squint:before{content:"\\f59b"}.fa-laugh-wink:before{content:"\\f59c"}.fa-layer-group:before{content:"\\f5fd"}.fa-leaf:before{content:"\\f06c"}.fa-leanpub:before{content:"\\f212"}.fa-lemon:before{content:"\\f094"}.fa-less:before{content:"\\f41d"}.fa-less-than:before{content:"\\f536"}.fa-less-than-equal:before{content:"\\f537"}.fa-level-down-alt:before{content:"\\f3be"}.fa-level-up-alt:before{content:"\\f3bf"}.fa-life-ring:before{content:"\\f1cd"}.fa-lightbulb:before{content:"\\f0eb"}.fa-line:before{content:"\\f3c0"}.fa-link:before{content:"\\f0c1"}.fa-linkedin:before{content:"\\f08c"}.fa-linkedin-in:before{content:"\\f0e1"}.fa-linode:before{content:"\\f2b8"}.fa-linux:before{content:"\\f17c"}.fa-lira-sign:before{content:"\\f195"}.fa-list:before{content:"\\f03a"}.fa-list-alt:before{content:"\\f022"}.fa-list-ol:before{content:"\\f0cb"}.fa-list-ul:before{content:"\\f0ca"}.fa-location-arrow:before{content:"\\f124"}.fa-lock:before{content:"\\f023"}.fa-lock-open:before{content:"\\f3c1"}.fa-long-arrow-alt-down:before{content:"\\f309"}.fa-long-arrow-alt-left:before{content:"\\f30a"}.fa-long-arrow-alt-right:before{content:"\\f30b"}.fa-long-arrow-alt-up:before{content:"\\f30c"}.fa-low-vision:before{content:"\\f2a8"}.fa-luggage-cart:before{content:"\\f59d"}.fa-lungs:before{content:"\\f604"}.fa-lungs-virus:before{content:"\\f967"}.fa-lyft:before{content:"\\f3c3"}.fa-magento:before{content:"\\f3c4"}.fa-magic:before{content:"\\f0d0"}.fa-magnet:before{content:"\\f076"}.fa-mail-bulk:before{content:"\\f674"}.fa-mailchimp:before{content:"\\f59e"}.fa-male:before{content:"\\f183"}.fa-mandalorian:before{content:"\\f50f"}.fa-map:before{content:"\\f279"}.fa-map-marked:before{content:"\\f59f"}.fa-map-marked-alt:before{content:"\\f5a0"}.fa-map-marker:before{content:"\\f041"}.fa-map-marker-alt:before{content:"\\f3c5"}.fa-map-pin:before{content:"\\f276"}.fa-map-signs:before{content:"\\f277"}.fa-markdown:before{content:"\\f60f"}.fa-marker:before{content:"\\f5a1"}.fa-mars:before{content:"\\f222"}.fa-mars-double:before{content:"\\f227"}.fa-mars-stroke:before{content:"\\f229"}.fa-mars-stroke-h:before{content:"\\f22b"}.fa-mars-stroke-v:before{content:"\\f22a"}.fa-mask:before{content:"\\f6fa"}.fa-mastodon:before{content:"\\f4f6"}.fa-maxcdn:before{content:"\\f136"}.fa-mdb:before{content:"\\f8ca"}.fa-medal:before{content:"\\f5a2"}.fa-medapps:before{content:"\\f3c6"}.fa-medium:before{content:"\\f23a"}.fa-medium-m:before{content:"\\f3c7"}.fa-medkit:before{content:"\\f0fa"}.fa-medrt:before{content:"\\f3c8"}.fa-meetup:before{content:"\\f2e0"}.fa-megaport:before{content:"\\f5a3"}.fa-meh:before{content:"\\f11a"}.fa-meh-blank:before{content:"\\f5a4"}.fa-meh-rolling-eyes:before{content:"\\f5a5"}.fa-memory:before{content:"\\f538"}.fa-mendeley:before{content:"\\f7b3"}.fa-menorah:before{content:"\\f676"}.fa-mercury:before{content:"\\f223"}.fa-meteor:before{content:"\\f753"}.fa-microblog:before{content:"\\f91a"}.fa-microchip:before{content:"\\f2db"}.fa-microphone:before{content:"\\f130"}.fa-microphone-alt:before{content:"\\f3c9"}.fa-microphone-alt-slash:before{content:"\\f539"}.fa-microphone-slash:before{content:"\\f131"}.fa-microscope:before{content:"\\f610"}.fa-microsoft:before{content:"\\f3ca"}.fa-minus:before{content:"\\f068"}.fa-minus-circle:before{content:"\\f056"}.fa-minus-square:before{content:"\\f146"}.fa-mitten:before{content:"\\f7b5"}.fa-mix:before{content:"\\f3cb"}.fa-mixcloud:before{content:"\\f289"}.fa-mixer:before{content:"\\f956"}.fa-mizuni:before{content:"\\f3cc"}.fa-mobile:before{content:"\\f10b"}.fa-mobile-alt:before{content:"\\f3cd"}.fa-modx:before{content:"\\f285"}.fa-monero:before{content:"\\f3d0"}.fa-money-bill:before{content:"\\f0d6"}.fa-money-bill-alt:before{content:"\\f3d1"}.fa-money-bill-wave:before{content:"\\f53a"}.fa-money-bill-wave-alt:before{content:"\\f53b"}.fa-money-check:before{content:"\\f53c"}.fa-money-check-alt:before{content:"\\f53d"}.fa-monument:before{content:"\\f5a6"}.fa-moon:before{content:"\\f186"}.fa-mortar-pestle:before{content:"\\f5a7"}.fa-mosque:before{content:"\\f678"}.fa-motorcycle:before{content:"\\f21c"}.fa-mountain:before{content:"\\f6fc"}.fa-mouse:before{content:"\\f8cc"}.fa-mouse-pointer:before{content:"\\f245"}.fa-mug-hot:before{content:"\\f7b6"}.fa-music:before{content:"\\f001"}.fa-napster:before{content:"\\f3d2"}.fa-neos:before{content:"\\f612"}.fa-network-wired:before{content:"\\f6ff"}.fa-neuter:before{content:"\\f22c"}.fa-newspaper:before{content:"\\f1ea"}.fa-nimblr:before{content:"\\f5a8"}.fa-node:before{content:"\\f419"}.fa-node-js:before{content:"\\f3d3"}.fa-not-equal:before{content:"\\f53e"}.fa-notes-medical:before{content:"\\f481"}.fa-npm:before{content:"\\f3d4"}.fa-ns8:before{content:"\\f3d5"}.fa-nutritionix:before{content:"\\f3d6"}.fa-object-group:before{content:"\\f247"}.fa-object-ungroup:before{content:"\\f248"}.fa-odnoklassniki:before{content:"\\f263"}.fa-odnoklassniki-square:before{content:"\\f264"}.fa-oil-can:before{content:"\\f613"}.fa-old-republic:before{content:"\\f510"}.fa-om:before{content:"\\f679"}.fa-opencart:before{content:"\\f23d"}.fa-openid:before{content:"\\f19b"}.fa-opera:before{content:"\\f26a"}.fa-optin-monster:before{content:"\\f23c"}.fa-orcid:before{content:"\\f8d2"}.fa-osi:before{content:"\\f41a"}.fa-otter:before{content:"\\f700"}.fa-outdent:before{content:"\\f03b"}.fa-page4:before{content:"\\f3d7"}.fa-pagelines:before{content:"\\f18c"}.fa-pager:before{content:"\\f815"}.fa-paint-brush:before{content:"\\f1fc"}.fa-paint-roller:before{content:"\\f5aa"}.fa-palette:before{content:"\\f53f"}.fa-palfed:before{content:"\\f3d8"}.fa-pallet:before{content:"\\f482"}.fa-paper-plane:before{content:"\\f1d8"}.fa-paperclip:before{content:"\\f0c6"}.fa-parachute-box:before{content:"\\f4cd"}.fa-paragraph:before{content:"\\f1dd"}.fa-parking:before{content:"\\f540"}.fa-passport:before{content:"\\f5ab"}.fa-pastafarianism:before{content:"\\f67b"}.fa-paste:before{content:"\\f0ea"}.fa-patreon:before{content:"\\f3d9"}.fa-pause:before{content:"\\f04c"}.fa-pause-circle:before{content:"\\f28b"}.fa-paw:before{content:"\\f1b0"}.fa-paypal:before{content:"\\f1ed"}.fa-peace:before{content:"\\f67c"}.fa-pen:before{content:"\\f304"}.fa-pen-alt:before{content:"\\f305"}.fa-pen-fancy:before{content:"\\f5ac"}.fa-pen-nib:before{content:"\\f5ad"}.fa-pen-square:before{content:"\\f14b"}.fa-pencil-alt:before{content:"\\f303"}.fa-pencil-ruler:before{content:"\\f5ae"}.fa-penny-arcade:before{content:"\\f704"}.fa-people-arrows:before{content:"\\f968"}.fa-people-carry:before{content:"\\f4ce"}.fa-pepper-hot:before{content:"\\f816"}.fa-percent:before{content:"\\f295"}.fa-percentage:before{content:"\\f541"}.fa-periscope:before{content:"\\f3da"}.fa-person-booth:before{content:"\\f756"}.fa-phabricator:before{content:"\\f3db"}.fa-phoenix-framework:before{content:"\\f3dc"}.fa-phoenix-squadron:before{content:"\\f511"}.fa-phone:before{content:"\\f095"}.fa-phone-alt:before{content:"\\f879"}.fa-phone-slash:before{content:"\\f3dd"}.fa-phone-square:before{content:"\\f098"}.fa-phone-square-alt:before{content:"\\f87b"}.fa-phone-volume:before{content:"\\f2a0"}.fa-photo-video:before{content:"\\f87c"}.fa-php:before{content:"\\f457"}.fa-pied-piper:before{content:"\\f2ae"}.fa-pied-piper-alt:before{content:"\\f1a8"}.fa-pied-piper-hat:before{content:"\\f4e5"}.fa-pied-piper-pp:before{content:"\\f1a7"}.fa-pied-piper-square:before{content:"\\f91e"}.fa-piggy-bank:before{content:"\\f4d3"}.fa-pills:before{content:"\\f484"}.fa-pinterest:before{content:"\\f0d2"}.fa-pinterest-p:before{content:"\\f231"}.fa-pinterest-square:before{content:"\\f0d3"}.fa-pizza-slice:before{content:"\\f818"}.fa-place-of-worship:before{content:"\\f67f"}.fa-plane:before{content:"\\f072"}.fa-plane-arrival:before{content:"\\f5af"}.fa-plane-departure:before{content:"\\f5b0"}.fa-plane-slash:before{content:"\\f969"}.fa-play:before{content:"\\f04b"}.fa-play-circle:before{content:"\\f144"}.fa-playstation:before{content:"\\f3df"}.fa-plug:before{content:"\\f1e6"}.fa-plus:before{content:"\\f067"}.fa-plus-circle:before{content:"\\f055"}.fa-plus-square:before{content:"\\f0fe"}.fa-podcast:before{content:"\\f2ce"}.fa-poll:before{content:"\\f681"}.fa-poll-h:before{content:"\\f682"}.fa-poo:before{content:"\\f2fe"}.fa-poo-storm:before{content:"\\f75a"}.fa-poop:before{content:"\\f619"}.fa-portrait:before{content:"\\f3e0"}.fa-pound-sign:before{content:"\\f154"}.fa-power-off:before{content:"\\f011"}.fa-pray:before{content:"\\f683"}.fa-praying-hands:before{content:"\\f684"}.fa-prescription:before{content:"\\f5b1"}.fa-prescription-bottle:before{content:"\\f485"}.fa-prescription-bottle-alt:before{content:"\\f486"}.fa-print:before{content:"\\f02f"}.fa-procedures:before{content:"\\f487"}.fa-product-hunt:before{content:"\\f288"}.fa-project-diagram:before{content:"\\f542"}.fa-pump-medical:before{content:"\\f96a"}.fa-pump-soap:before{content:"\\f96b"}.fa-pushed:before{content:"\\f3e1"}.fa-puzzle-piece:before{content:"\\f12e"}.fa-python:before{content:"\\f3e2"}.fa-qq:before{content:"\\f1d6"}.fa-qrcode:before{content:"\\f029"}.fa-question:before{content:"\\f128"}.fa-question-circle:before{content:"\\f059"}.fa-quidditch:before{content:"\\f458"}.fa-quinscape:before{content:"\\f459"}.fa-quora:before{content:"\\f2c4"}.fa-quote-left:before{content:"\\f10d"}.fa-quote-right:before{content:"\\f10e"}.fa-quran:before{content:"\\f687"}.fa-r-project:before{content:"\\f4f7"}.fa-radiation:before{content:"\\f7b9"}.fa-radiation-alt:before{content:"\\f7ba"}.fa-rainbow:before{content:"\\f75b"}.fa-random:before{content:"\\f074"}.fa-raspberry-pi:before{content:"\\f7bb"}.fa-ravelry:before{content:"\\f2d9"}.fa-react:before{content:"\\f41b"}.fa-reacteurope:before{content:"\\f75d"}.fa-readme:before{content:"\\f4d5"}.fa-rebel:before{content:"\\f1d0"}.fa-receipt:before{content:"\\f543"}.fa-record-vinyl:before{content:"\\f8d9"}.fa-recycle:before{content:"\\f1b8"}.fa-red-river:before{content:"\\f3e3"}.fa-reddit:before{content:"\\f1a1"}.fa-reddit-alien:before{content:"\\f281"}.fa-reddit-square:before{content:"\\f1a2"}.fa-redhat:before{content:"\\f7bc"}.fa-redo:before{content:"\\f01e"}.fa-redo-alt:before{content:"\\f2f9"}.fa-registered:before{content:"\\f25d"}.fa-remove-format:before{content:"\\f87d"}.fa-renren:before{content:"\\f18b"}.fa-reply:before{content:"\\f3e5"}.fa-reply-all:before{content:"\\f122"}.fa-replyd:before{content:"\\f3e6"}.fa-republican:before{content:"\\f75e"}.fa-researchgate:before{content:"\\f4f8"}.fa-resolving:before{content:"\\f3e7"}.fa-restroom:before{content:"\\f7bd"}.fa-retweet:before{content:"\\f079"}.fa-rev:before{content:"\\f5b2"}.fa-ribbon:before{content:"\\f4d6"}.fa-ring:before{content:"\\f70b"}.fa-road:before{content:"\\f018"}.fa-robot:before{content:"\\f544"}.fa-rocket:before{content:"\\f135"}.fa-rocketchat:before{content:"\\f3e8"}.fa-rockrms:before{content:"\\f3e9"}.fa-route:before{content:"\\f4d7"}.fa-rss:before{content:"\\f09e"}.fa-rss-square:before{content:"\\f143"}.fa-ruble-sign:before{content:"\\f158"}.fa-ruler:before{content:"\\f545"}.fa-ruler-combined:before{content:"\\f546"}.fa-ruler-horizontal:before{content:"\\f547"}.fa-ruler-vertical:before{content:"\\f548"}.fa-running:before{content:"\\f70c"}.fa-rupee-sign:before{content:"\\f156"}.fa-sad-cry:before{content:"\\f5b3"}.fa-sad-tear:before{content:"\\f5b4"}.fa-safari:before{content:"\\f267"}.fa-salesforce:before{content:"\\f83b"}.fa-sass:before{content:"\\f41e"}.fa-satellite:before{content:"\\f7bf"}.fa-satellite-dish:before{content:"\\f7c0"}.fa-save:before{content:"\\f0c7"}.fa-schlix:before{content:"\\f3ea"}.fa-school:before{content:"\\f549"}.fa-screwdriver:before{content:"\\f54a"}.fa-scribd:before{content:"\\f28a"}.fa-scroll:before{content:"\\f70e"}.fa-sd-card:before{content:"\\f7c2"}.fa-search:before{content:"\\f002"}.fa-search-dollar:before{content:"\\f688"}.fa-search-location:before{content:"\\f689"}.fa-search-minus:before{content:"\\f010"}.fa-search-plus:before{content:"\\f00e"}.fa-searchengin:before{content:"\\f3eb"}.fa-seedling:before{content:"\\f4d8"}.fa-sellcast:before{content:"\\f2da"}.fa-sellsy:before{content:"\\f213"}.fa-server:before{content:"\\f233"}.fa-servicestack:before{content:"\\f3ec"}.fa-shapes:before{content:"\\f61f"}.fa-share:before{content:"\\f064"}.fa-share-alt:before{content:"\\f1e0"}.fa-share-alt-square:before{content:"\\f1e1"}.fa-share-square:before{content:"\\f14d"}.fa-shekel-sign:before{content:"\\f20b"}.fa-shield-alt:before{content:"\\f3ed"}.fa-shield-virus:before{content:"\\f96c"}.fa-ship:before{content:"\\f21a"}.fa-shipping-fast:before{content:"\\f48b"}.fa-shirtsinbulk:before{content:"\\f214"}.fa-shoe-prints:before{content:"\\f54b"}.fa-shopify:before{content:"\\f957"}.fa-shopping-bag:before{content:"\\f290"}.fa-shopping-basket:before{content:"\\f291"}.fa-shopping-cart:before{content:"\\f07a"}.fa-shopware:before{content:"\\f5b5"}.fa-shower:before{content:"\\f2cc"}.fa-shuttle-van:before{content:"\\f5b6"}.fa-sign:before{content:"\\f4d9"}.fa-sign-in-alt:before{content:"\\f2f6"}.fa-sign-language:before{content:"\\f2a7"}.fa-sign-out-alt:before{content:"\\f2f5"}.fa-signal:before{content:"\\f012"}.fa-signature:before{content:"\\f5b7"}.fa-sim-card:before{content:"\\f7c4"}.fa-simplybuilt:before{content:"\\f215"}.fa-sistrix:before{content:"\\f3ee"}.fa-sitemap:before{content:"\\f0e8"}.fa-sith:before{content:"\\f512"}.fa-skating:before{content:"\\f7c5"}.fa-sketch:before{content:"\\f7c6"}.fa-skiing:before{content:"\\f7c9"}.fa-skiing-nordic:before{content:"\\f7ca"}.fa-skull:before{content:"\\f54c"}.fa-skull-crossbones:before{content:"\\f714"}.fa-skyatlas:before{content:"\\f216"}.fa-skype:before{content:"\\f17e"}.fa-slack:before{content:"\\f198"}.fa-slack-hash:before{content:"\\f3ef"}.fa-slash:before{content:"\\f715"}.fa-sleigh:before{content:"\\f7cc"}.fa-sliders-h:before{content:"\\f1de"}.fa-slideshare:before{content:"\\f1e7"}.fa-smile:before{content:"\\f118"}.fa-smile-beam:before{content:"\\f5b8"}.fa-smile-wink:before{content:"\\f4da"}.fa-smog:before{content:"\\f75f"}.fa-smoking:before{content:"\\f48d"}.fa-smoking-ban:before{content:"\\f54d"}.fa-sms:before{content:"\\f7cd"}.fa-snapchat:before{content:"\\f2ab"}.fa-snapchat-ghost:before{content:"\\f2ac"}.fa-snapchat-square:before{content:"\\f2ad"}.fa-snowboarding:before{content:"\\f7ce"}.fa-snowflake:before{content:"\\f2dc"}.fa-snowman:before{content:"\\f7d0"}.fa-snowplow:before{content:"\\f7d2"}.fa-soap:before{content:"\\f96e"}.fa-socks:before{content:"\\f696"}.fa-solar-panel:before{content:"\\f5ba"}.fa-sort:before{content:"\\f0dc"}.fa-sort-alpha-down:before{content:"\\f15d"}.fa-sort-alpha-down-alt:before{content:"\\f881"}.fa-sort-alpha-up:before{content:"\\f15e"}.fa-sort-alpha-up-alt:before{content:"\\f882"}.fa-sort-amount-down:before{content:"\\f160"}.fa-sort-amount-down-alt:before{content:"\\f884"}.fa-sort-amount-up:before{content:"\\f161"}.fa-sort-amount-up-alt:before{content:"\\f885"}.fa-sort-down:before{content:"\\f0dd"}.fa-sort-numeric-down:before{content:"\\f162"}.fa-sort-numeric-down-alt:before{content:"\\f886"}.fa-sort-numeric-up:before{content:"\\f163"}.fa-sort-numeric-up-alt:before{content:"\\f887"}.fa-sort-up:before{content:"\\f0de"}.fa-soundcloud:before{content:"\\f1be"}.fa-sourcetree:before{content:"\\f7d3"}.fa-spa:before{content:"\\f5bb"}.fa-space-shuttle:before{content:"\\f197"}.fa-speakap:before{content:"\\f3f3"}.fa-speaker-deck:before{content:"\\f83c"}.fa-spell-check:before{content:"\\f891"}.fa-spider:before{content:"\\f717"}.fa-spinner:before{content:"\\f110"}.fa-splotch:before{content:"\\f5bc"}.fa-spotify:before{content:"\\f1bc"}.fa-spray-can:before{content:"\\f5bd"}.fa-square:before{content:"\\f0c8"}.fa-square-full:before{content:"\\f45c"}.fa-square-root-alt:before{content:"\\f698"}.fa-squarespace:before{content:"\\f5be"}.fa-stack-exchange:before{content:"\\f18d"}.fa-stack-overflow:before{content:"\\f16c"}.fa-stackpath:before{content:"\\f842"}.fa-stamp:before{content:"\\f5bf"}.fa-star:before{content:"\\f005"}.fa-star-and-crescent:before{content:"\\f699"}.fa-star-half:before{content:"\\f089"}.fa-star-half-alt:before{content:"\\f5c0"}.fa-star-of-david:before{content:"\\f69a"}.fa-star-of-life:before{content:"\\f621"}.fa-staylinked:before{content:"\\f3f5"}.fa-steam:before{content:"\\f1b6"}.fa-steam-square:before{content:"\\f1b7"}.fa-steam-symbol:before{content:"\\f3f6"}.fa-step-backward:before{content:"\\f048"}.fa-step-forward:before{content:"\\f051"}.fa-stethoscope:before{content:"\\f0f1"}.fa-sticker-mule:before{content:"\\f3f7"}.fa-sticky-note:before{content:"\\f249"}.fa-stop:before{content:"\\f04d"}.fa-stop-circle:before{content:"\\f28d"}.fa-stopwatch:before{content:"\\f2f2"}.fa-stopwatch-20:before{content:"\\f96f"}.fa-store:before{content:"\\f54e"}.fa-store-alt:before{content:"\\f54f"}.fa-store-alt-slash:before{content:"\\f970"}.fa-store-slash:before{content:"\\f971"}.fa-strava:before{content:"\\f428"}.fa-stream:before{content:"\\f550"}.fa-street-view:before{content:"\\f21d"}.fa-strikethrough:before{content:"\\f0cc"}.fa-stripe:before{content:"\\f429"}.fa-stripe-s:before{content:"\\f42a"}.fa-stroopwafel:before{content:"\\f551"}.fa-studiovinari:before{content:"\\f3f8"}.fa-stumbleupon:before{content:"\\f1a4"}.fa-stumbleupon-circle:before{content:"\\f1a3"}.fa-subscript:before{content:"\\f12c"}.fa-subway:before{content:"\\f239"}.fa-suitcase:before{content:"\\f0f2"}.fa-suitcase-rolling:before{content:"\\f5c1"}.fa-sun:before{content:"\\f185"}.fa-superpowers:before{content:"\\f2dd"}.fa-superscript:before{content:"\\f12b"}.fa-supple:before{content:"\\f3f9"}.fa-surprise:before{content:"\\f5c2"}.fa-suse:before{content:"\\f7d6"}.fa-swatchbook:before{content:"\\f5c3"}.fa-swift:before{content:"\\f8e1"}.fa-swimmer:before{content:"\\f5c4"}.fa-swimming-pool:before{content:"\\f5c5"}.fa-symfony:before{content:"\\f83d"}.fa-synagogue:before{content:"\\f69b"}.fa-sync:before{content:"\\f021"}.fa-sync-alt:before{content:"\\f2f1"}.fa-syringe:before{content:"\\f48e"}.fa-table:before{content:"\\f0ce"}.fa-table-tennis:before{content:"\\f45d"}.fa-tablet:before{content:"\\f10a"}.fa-tablet-alt:before{content:"\\f3fa"}.fa-tablets:before{content:"\\f490"}.fa-tachometer-alt:before{content:"\\f3fd"}.fa-tag:before{content:"\\f02b"}.fa-tags:before{content:"\\f02c"}.fa-tape:before{content:"\\f4db"}.fa-tasks:before{content:"\\f0ae"}.fa-taxi:before{content:"\\f1ba"}.fa-teamspeak:before{content:"\\f4f9"}.fa-teeth:before{content:"\\f62e"}.fa-teeth-open:before{content:"\\f62f"}.fa-telegram:before{content:"\\f2c6"}.fa-telegram-plane:before{content:"\\f3fe"}.fa-temperature-high:before{content:"\\f769"}.fa-temperature-low:before{content:"\\f76b"}.fa-tencent-weibo:before{content:"\\f1d5"}.fa-tenge:before{content:"\\f7d7"}.fa-terminal:before{content:"\\f120"}.fa-text-height:before{content:"\\f034"}.fa-text-width:before{content:"\\f035"}.fa-th:before{content:"\\f00a"}.fa-th-large:before{content:"\\f009"}.fa-th-list:before{content:"\\f00b"}.fa-the-red-yeti:before{content:"\\f69d"}.fa-theater-masks:before{content:"\\f630"}.fa-themeco:before{content:"\\f5c6"}.fa-themeisle:before{content:"\\f2b2"}.fa-thermometer:before{content:"\\f491"}.fa-thermometer-empty:before{content:"\\f2cb"}.fa-thermometer-full:before{content:"\\f2c7"}.fa-thermometer-half:before{content:"\\f2c9"}.fa-thermometer-quarter:before{content:"\\f2ca"}.fa-thermometer-three-quarters:before{content:"\\f2c8"}.fa-think-peaks:before{content:"\\f731"}.fa-thumbs-down:before{content:"\\f165"}.fa-thumbs-up:before{content:"\\f164"}.fa-thumbtack:before{content:"\\f08d"}.fa-ticket-alt:before{content:"\\f3ff"}.fa-times:before{content:"\\f00d"}.fa-times-circle:before{content:"\\f057"}.fa-tint:before{content:"\\f043"}.fa-tint-slash:before{content:"\\f5c7"}.fa-tired:before{content:"\\f5c8"}.fa-toggle-off:before{content:"\\f204"}.fa-toggle-on:before{content:"\\f205"}.fa-toilet:before{content:"\\f7d8"}.fa-toilet-paper:before{content:"\\f71e"}.fa-toilet-paper-slash:before{content:"\\f972"}.fa-toolbox:before{content:"\\f552"}.fa-tools:before{content:"\\f7d9"}.fa-tooth:before{content:"\\f5c9"}.fa-torah:before{content:"\\f6a0"}.fa-torii-gate:before{content:"\\f6a1"}.fa-tractor:before{content:"\\f722"}.fa-trade-federation:before{content:"\\f513"}.fa-trademark:before{content:"\\f25c"}.fa-traffic-light:before{content:"\\f637"}.fa-trailer:before{content:"\\f941"}.fa-train:before{content:"\\f238"}.fa-tram:before{content:"\\f7da"}.fa-transgender:before{content:"\\f224"}.fa-transgender-alt:before{content:"\\f225"}.fa-trash:before{content:"\\f1f8"}.fa-trash-alt:before{content:"\\f2ed"}.fa-trash-restore:before{content:"\\f829"}.fa-trash-restore-alt:before{content:"\\f82a"}.fa-tree:before{content:"\\f1bb"}.fa-trello:before{content:"\\f181"}.fa-tripadvisor:before{content:"\\f262"}.fa-trophy:before{content:"\\f091"}.fa-truck:before{content:"\\f0d1"}.fa-truck-loading:before{content:"\\f4de"}.fa-truck-monster:before{content:"\\f63b"}.fa-truck-moving:before{content:"\\f4df"}.fa-truck-pickup:before{content:"\\f63c"}.fa-tshirt:before{content:"\\f553"}.fa-tty:before{content:"\\f1e4"}.fa-tumblr:before{content:"\\f173"}.fa-tumblr-square:before{content:"\\f174"}.fa-tv:before{content:"\\f26c"}.fa-twitch:before{content:"\\f1e8"}.fa-twitter:before{content:"\\f099"}.fa-twitter-square:before{content:"\\f081"}.fa-typo3:before{content:"\\f42b"}.fa-uber:before{content:"\\f402"}.fa-ubuntu:before{content:"\\f7df"}.fa-uikit:before{content:"\\f403"}.fa-umbraco:before{content:"\\f8e8"}.fa-umbrella:before{content:"\\f0e9"}.fa-umbrella-beach:before{content:"\\f5ca"}.fa-underline:before{content:"\\f0cd"}.fa-undo:before{content:"\\f0e2"}.fa-undo-alt:before{content:"\\f2ea"}.fa-uniregistry:before{content:"\\f404"}.fa-unity:before{content:"\\f949"}.fa-universal-access:before{content:"\\f29a"}.fa-university:before{content:"\\f19c"}.fa-unlink:before{content:"\\f127"}.fa-unlock:before{content:"\\f09c"}.fa-unlock-alt:before{content:"\\f13e"}.fa-untappd:before{content:"\\f405"}.fa-upload:before{content:"\\f093"}.fa-ups:before{content:"\\f7e0"}.fa-usb:before{content:"\\f287"}.fa-user:before{content:"\\f007"}.fa-user-alt:before{content:"\\f406"}.fa-user-alt-slash:before{content:"\\f4fa"}.fa-user-astronaut:before{content:"\\f4fb"}.fa-user-check:before{content:"\\f4fc"}.fa-user-circle:before{content:"\\f2bd"}.fa-user-clock:before{content:"\\f4fd"}.fa-user-cog:before{content:"\\f4fe"}.fa-user-edit:before{content:"\\f4ff"}.fa-user-friends:before{content:"\\f500"}.fa-user-graduate:before{content:"\\f501"}.fa-user-injured:before{content:"\\f728"}.fa-user-lock:before{content:"\\f502"}.fa-user-md:before{content:"\\f0f0"}.fa-user-minus:before{content:"\\f503"}.fa-user-ninja:before{content:"\\f504"}.fa-user-nurse:before{content:"\\f82f"}.fa-user-plus:before{content:"\\f234"}.fa-user-secret:before{content:"\\f21b"}.fa-user-shield:before{content:"\\f505"}.fa-user-slash:before{content:"\\f506"}.fa-user-tag:before{content:"\\f507"}.fa-user-tie:before{content:"\\f508"}.fa-user-times:before{content:"\\f235"}.fa-users:before{content:"\\f0c0"}.fa-users-cog:before{content:"\\f509"}.fa-usps:before{content:"\\f7e1"}.fa-ussunnah:before{content:"\\f407"}.fa-utensil-spoon:before{content:"\\f2e5"}.fa-utensils:before{content:"\\f2e7"}.fa-vaadin:before{content:"\\f408"}.fa-vector-square:before{content:"\\f5cb"}.fa-venus:before{content:"\\f221"}.fa-venus-double:before{content:"\\f226"}.fa-venus-mars:before{content:"\\f228"}.fa-viacoin:before{content:"\\f237"}.fa-viadeo:before{content:"\\f2a9"}.fa-viadeo-square:before{content:"\\f2aa"}.fa-vial:before{content:"\\f492"}.fa-vials:before{content:"\\f493"}.fa-viber:before{content:"\\f409"}.fa-video:before{content:"\\f03d"}.fa-video-slash:before{content:"\\f4e2"}.fa-vihara:before{content:"\\f6a7"}.fa-vimeo:before{content:"\\f40a"}.fa-vimeo-square:before{content:"\\f194"}.fa-vimeo-v:before{content:"\\f27d"}.fa-vine:before{content:"\\f1ca"}.fa-virus:before{content:"\\f974"}.fa-virus-slash:before{content:"\\f975"}.fa-viruses:before{content:"\\f976"}.fa-vk:before{content:"\\f189"}.fa-vnv:before{content:"\\f40b"}.fa-voicemail:before{content:"\\f897"}.fa-volleyball-ball:before{content:"\\f45f"}.fa-volume-down:before{content:"\\f027"}.fa-volume-mute:before{content:"\\f6a9"}.fa-volume-off:before{content:"\\f026"}.fa-volume-up:before{content:"\\f028"}.fa-vote-yea:before{content:"\\f772"}.fa-vr-cardboard:before{content:"\\f729"}.fa-vuejs:before{content:"\\f41f"}.fa-walking:before{content:"\\f554"}.fa-wallet:before{content:"\\f555"}.fa-warehouse:before{content:"\\f494"}.fa-water:before{content:"\\f773"}.fa-wave-square:before{content:"\\f83e"}.fa-waze:before{content:"\\f83f"}.fa-weebly:before{content:"\\f5cc"}.fa-weibo:before{content:"\\f18a"}.fa-weight:before{content:"\\f496"}.fa-weight-hanging:before{content:"\\f5cd"}.fa-weixin:before{content:"\\f1d7"}.fa-whatsapp:before{content:"\\f232"}.fa-whatsapp-square:before{content:"\\f40c"}.fa-wheelchair:before{content:"\\f193"}.fa-whmcs:before{content:"\\f40d"}.fa-wifi:before{content:"\\f1eb"}.fa-wikipedia-w:before{content:"\\f266"}.fa-wind:before{content:"\\f72e"}.fa-window-close:before{content:"\\f410"}.fa-window-maximize:before{content:"\\f2d0"}.fa-window-minimize:before{content:"\\f2d1"}.fa-window-restore:before{content:"\\f2d2"}.fa-windows:before{content:"\\f17a"}.fa-wine-bottle:before{content:"\\f72f"}.fa-wine-glass:before{content:"\\f4e3"}.fa-wine-glass-alt:before{content:"\\f5ce"}.fa-wix:before{content:"\\f5cf"}.fa-wizards-of-the-coast:before{content:"\\f730"}.fa-wolf-pack-battalion:before{content:"\\f514"}.fa-won-sign:before{content:"\\f159"}.fa-wordpress:before{content:"\\f19a"}.fa-wordpress-simple:before{content:"\\f411"}.fa-wpbeginner:before{content:"\\f297"}.fa-wpexplorer:before{content:"\\f2de"}.fa-wpforms:before{content:"\\f298"}.fa-wpressr:before{content:"\\f3e4"}.fa-wrench:before{content:"\\f0ad"}.fa-x-ray:before{content:"\\f497"}.fa-xbox:before{content:"\\f412"}.fa-xing:before{content:"\\f168"}.fa-xing-square:before{content:"\\f169"}.fa-y-combinator:before{content:"\\f23b"}.fa-yahoo:before{content:"\\f19e"}.fa-yammer:before{content:"\\f840"}.fa-yandex:before{content:"\\f413"}.fa-yandex-international:before{content:"\\f414"}.fa-yarn:before{content:"\\f7e3"}.fa-yelp:before{content:"\\f1e9"}.fa-yen-sign:before{content:"\\f157"}.fa-yin-yang:before{content:"\\f6ad"}.fa-yoast:before{content:"\\f2b1"}.fa-youtube:before{content:"\\f167"}.fa-youtube-square:before{content:"\\f431"}.fa-zhihu:before{content:"\\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:Font Awesome\\ 5 Brands;font-style:normal;font-weight:400;font-display:block;src:url('+w+");src:url("+_+') format("embedded-opentype"),url('+k+') format("woff2"),url('+M+') format("woff"),url('+x+') format("truetype"),url('+S+') format("svg")}.fab{font-family:Font Awesome\\ 5 Brands}@font-face{font-family:Font Awesome\\ 5 Free;font-style:normal;font-weight:400;font-display:block;src:url('+C+");src:url("+A+') format("embedded-opentype"),url('+T+') format("woff2"),url('+E+') format("woff"),url('+O+') format("truetype"),url('+P+') format("svg")}.fab,.far{font-weight:400}@font-face{font-family:Font Awesome\\ 5 Free;font-style:normal;font-weight:900;font-display:block;src:url('+I+");src:url("+R+') format("embedded-opentype"),url('+j+') format("woff2"),url('+D+') format("woff"),url('+N+') format("truetype"),url('+L+') format("svg")}.fa,.far,.fas{font-family:Font Awesome\\ 5 Free}.fa,.fas{font-weight:900}',""]),t.exports=e},function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot?c1868c9545d2de1cf8488f1dadd8c9d0"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2?a06da7f0950f9dd366fc9db9d56d618a"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff?ec3cfddedb8bebd2d7a3fdf511f7c1cc"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf?13685372945d816a2b474fc082fd9aaa"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.svg?0cb5a5c0d251c109458c85c6afeffbaa"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot?261d666b0147c6c5cda07265f98b8f8c"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2?c20b5b7362d8d7bb7eddf94344ace33e"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff?f89ea91ecd1ca2db7e09baa2c4b156d1"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf?db78b9359171f24936b16d84f63af378"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.svg?89ffa3aba80d30ee0a9371b25c968bbb"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot?a0369ea57eb6d3843d6474c035111f29"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2?b15db15f746f29ffa02638cb455b8ec0"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff?bea989e82b07e9687c26fc58a4805021"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf?1ab236ed440ee51810c56bd16628aef0"},function(t,e){t.exports="/fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.svg?ec763292e583294612f124c0b0def500"},,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";var r=n(107),i=n(134),o=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},s=Array.isArray,u=Array.prototype.push,l=function(t,e){u.apply(t,s(e)?e:[e])},c=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,formatter:i.formatters[i.default],indices:!1,serializeDate:function(t){return c.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,n,i,o,a,u,c,d,h,p,m,v,g){var b=e;if("function"==typeof c?b=c(n,b):b instanceof Date?b=p(b):"comma"===i&&s(b)&&(b=b.join(",")),null===b){if(o)return u&&!v?u(n,f.encoder,g):n;b=""}if("string"==typeof b||"number"==typeof b||"boolean"==typeof b||r.isBuffer(b))return u?[m(v?n:u(n,f.encoder,g))+"="+m(u(b,f.encoder,g))]:[m(n)+"="+m(String(b))];var y,w=[];if(void 0===b)return w;if(s(c))y=c;else{var _=Object.keys(b);y=d?_.sort(d):_}for(var k=0;k<y.length;++k){var M=y[k];a&&null===b[M]||(s(b)?l(w,t(b[M],"function"==typeof i?i(n,M):n,i,o,a,u,c,d,h,p,m,v,g)):l(w,t(b[M],n+(h?"."+M:"["+M+"]"),i,o,a,u,c,d,h,p,m,v,g)))}return w};t.exports=function(t,e){var n,r=t,u=function(t){if(!t)return f;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||f.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==t.format){if(!o.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=i.formatters[n],a=f.filter;return("function"==typeof t.filter||s(t.filter))&&(a=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===t.allowDots?f.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:f.charsetSentinel,delimiter:void 0===t.delimiter?f.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:f.encode,encoder:"function"==typeof t.encoder?t.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:f.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:f.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:f.strictNullHandling}}(e);"function"==typeof u.filter?r=(0,u.filter)("",r):s(u.filter)&&(n=u.filter);var c,h=[];if("object"!=typeof r||null===r)return"";c=e&&e.arrayFormat in a?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices";var p=a[c];n||(n=Object.keys(r)),u.sort&&n.sort(u.sort);for(var m=0;m<n.length;++m){var v=n[m];u.skipNulls&&null===r[v]||l(h,d(r[v],v,p,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var g=h.join(u.delimiter),b=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),g.length>0?b+g:""}},function(t,e,n){"use strict";var r=n(107),i=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},s=function(t,e,n){if(t){var r=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),s=a?r.slice(0,a.index):r,u=[];if(s){if(!n.plainObjects&&i.call(Object.prototype,s)&&!n.allowPrototypes)return;u.push(s)}for(var l=0;null!==(a=o.exec(r))&&l<n.depth;){if(l+=1,!n.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+r.slice(a.index)+"]"),function(t,e,n){for(var r=e,i=t.length-1;i>=0;--i){var o,a=t[i];if("[]"===a&&n.parseArrays)o=[].concat(r);else{o=n.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(s,10);n.parseArrays||""!==s?!isNaN(u)&&a!==s&&String(u)===s&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(o=[])[u]=r:o[s]=r:o={0:r}}r=o}return r}(u,e,n)}};t.exports=function(t,e){var n=function(t){if(!t)return o;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?o.charset:t.charset;return{allowDots:void 0===t.allowDots?o.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:o.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:o.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:o.comma,decoder:"function"==typeof t.decoder?t.decoder:o.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:o.delimiter,depth:"number"==typeof t.depth?t.depth:o.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:o.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:o.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var u="string"==typeof t?function(t,e){var n,s={},u=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,l=e.parameterLimit===1/0?void 0:e.parameterLimit,c=u.split(e.delimiter,l),f=-1,d=e.charset;if(e.charsetSentinel)for(n=0;n<c.length;++n)0===c[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===c[n]?d="utf-8":"utf8=%26%2310003%3B"===c[n]&&(d="iso-8859-1"),f=n,n=c.length);for(n=0;n<c.length;++n)if(n!==f){var h,p,m=c[n],v=m.indexOf("]="),g=-1===v?m.indexOf("="):v+1;-1===g?(h=e.decoder(m,o.decoder,d),p=e.strictNullHandling?null:""):(h=e.decoder(m.slice(0,g),o.decoder,d),p=e.decoder(m.slice(g+1),o.decoder,d)),p&&e.interpretNumericEntities&&"iso-8859-1"===d&&(p=a(p)),p&&e.comma&&p.indexOf(",")>-1&&(p=p.split(",")),i.call(s,h)?s[h]=r.combine(s[h],p):s[h]=p}return s}(t,n):t,l=n.plainObjects?Object.create(null):{},c=Object.keys(u),f=0;f<c.length;++f){var d=c[f],h=s(d,u[d],n);l=r.merge(l,h,n)}return r.compact(l)}},function(t,e,n){var r={"./components/ActuLabos/ActuLaboInstantSearch.vue":488,"./components/ActuLabos/ActuLabosHit.vue":489,"./components/AdCampaign/CampaignHit.vue":490,"./components/AdCampaign/CampaignInstantSearch.vue":491,"./components/FileSearch/FileHit.vue":492,"./components/FileSearch/FileInstantSearch.vue":493,"./components/Home/cover.vue":494,"./components/LiveStats.vue":495,"./components/PollAnswers/PollAnswers.vue":496,"./components/Publish/HeadlineRepeater.vue":497,"./components/Publish/PublishLetter.vue":498,"./components/Publish/PublishNewsletter.vue":499,"./components/Publish/Step1UploadFile.vue":94,"./components/Publish/Step1WriteNewsletter.vue":96,"./components/Publish/Step2PrepareMail.vue":95,"./components/Publish/Step3Send.vue":40,"./components/Stats/EmailStatistics.vue":500,"./components/Stats/MgStats.vue":501,"./components/Stripe/StripeModal.vue":502};function i(t){var e=o(t);return n(e)}function o(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}i.keys=function(){return Object.keys(r)},i.resolve=o,t.exports=i,i.id=287},function(t,e,n){"use strict";var r=n(50);n.n(r).a},function(t,e,n){(e=n(9)(!1)).push([t.i,"h4[data-v-6009d5bd]{font-variant:small-caps}",""]),t.exports=e},function(t,e,n){"use strict";var r=n(51);n.n(r).a},function(t,e,n){(e=n(9)(!1)).push([t.i,'.title[data-v-1a8b3214]{font-family:Raleway;font-size:24px;font-weight:700;color:#5d4037;text-align:center}*[data-v-1a8b3214]{-webkit-font-smoothing:antialiased}p[data-v-1a8b3214]{line-height:1.5em}h1+p[data-v-1a8b3214],p+p[data-v-1a8b3214]{margin-top:10px}.card-wrap[data-v-1a8b3214]{transform:perspective(800px);transform-style:preserve-3d;cursor:pointer}.card-wrap:hover .card-info[data-v-1a8b3214]{transform:translateY(0)}.card-wrap:hover .card-info p[data-v-1a8b3214]{opacity:1}.card-wrap:hover .card-info[data-v-1a8b3214],.card-wrap:hover .card-info p[data-v-1a8b3214]{transition:.6s cubic-bezier(.23,1,.32,1)}.card-wrap:hover .card-info[data-v-1a8b3214]:after{transition:5s cubic-bezier(.23,1,.32,1);opacity:1;transform:translateY(0)}.card-wrap:hover .card-bg[data-v-1a8b3214]{transition:.6s cubic-bezier(.23,1,.32,1),opacity 5s cubic-bezier(.23,1,.32,1);opacity:.8}.card-wrap:hover .cover[data-v-1a8b3214]{transition:.6s cubic-bezier(.23,1,.32,1),box-shadow 2s cubic-bezier(.23,1,.32,1);box-shadow:0 0 40px 5px hsla(0,0%,100%,.2),0 30px 60px 0 rgba(0,0,0,.3),inset 0 0 0 5px #333}.cover[data-v-1a8b3214]{position:relative;flex:0 0 100%;background-color:#333;overflow:hidden;box-shadow:0 30px 60px 0 rgba(0,0,0,.3),inset 0 0 0 5px #333;transition:.5s cubic-bezier(.445,.05,.55,.95)}.card-bg[data-v-1a8b3214],.cover[data-v-1a8b3214]{width:100%;height:100%}.card-bg[data-v-1a8b3214]{opacity:.8;position:absolute;background-repeat:no-repeat;background-position:50%;background-size:cover;transition:1s cubic-bezier(.445,.05,.55,.95),opacity 5s cubic-bezier(.445,.05,.55,.95) 1s;pointer-events:none}.card-bg[data-v-1a8b3214] :hover{opacity:.5}.card-info[data-v-1a8b3214]{padding:10px;position:absolute;bottom:0;color:#fff;transform:translateY(40%);box-sizing:border-box!important}.card-info[data-v-1a8b3214],.card-info p[data-v-1a8b3214]{transition:.6s cubic-bezier(.215,.61,.355,1) 1.6s}.card-info p[data-v-1a8b3214]{opacity:0;text-shadow:#000 0 2px 3px}.card-info *[data-v-1a8b3214]{position:relative;z-index:1}.card-info[data-v-1a8b3214]:after{content:"";position:absolute;top:0;left:0;z-index:0;width:100%;height:100%;background-image:linear-gradient(180deg,transparent,rgba(0,0,0,.6));background-blend-mode:overlay;opacity:0;transform:translateY(100%);transition:5s cubic-bezier(.445,.05,.55,.95) 1s}.card-info h1[data-v-1a8b3214]{font-family:Playfair Display;font-size:36px;font-weight:700;text-shadow:rgba(0,0,0,.5) 0 10px 10px}',""]),t.exports=e},function(t,e,n){"use strict";var r=n(52);n.n(r).a},function(t,e,n){(e=n(9)(!1)).push([t.i,".stepper-box[data-v-0cd2e8d8]{background-color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24);min-height:200px}.stepper-box .top[data-v-0cd2e8d8]{display:flex;align-items:center;position:relative;justify-content:center}.stepper-box .top .stepper-button-top[data-v-0cd2e8d8]{z-index:20;padding:.4rem;border-radius:100rem;cursor:pointer;position:absolute;display:flex;align-items:center;justify-content:space-between}.stepper-box .top .stepper-button-top.next[data-v-0cd2e8d8]{border:2px solid #3383c8;color:#3383c8;right:1%}.stepper-box .top .stepper-button-top.next.deactivated[data-v-0cd2e8d8]{border:2px solid #ccc!important;color:#ccc;cursor:not-allowed!important}.stepper-box .top .stepper-button-top.previous[data-v-0cd2e8d8]{color:#333;left:1%}.stepper-box .top .divider-line[data-v-0cd2e8d8]{border-bottom:1px solid #ccc;height:2px;position:absolute}@media (max-width:767px){.stepper-box .top .divider-line[data-v-0cd2e8d8]{width:90%}}.stepper-box .top .steps-wrapper[data-v-0cd2e8d8]{display:flex;align-items:center;justify-content:space-between;position:relative;width:95%;left:0;padding:2% 4%}@media (max-width:767px){.stepper-box .top .steps-wrapper[data-v-0cd2e8d8]{width:90%;justify-content:center}}.stepper-box .top .steps-wrapper .step[data-v-0cd2e8d8]{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}@media (max-width:767px){.stepper-box .top .steps-wrapper .step[data-v-0cd2e8d8]{width:100%!important}}@media (max-width:767px){.stepper-box .top .steps-wrapper .step.deactivated[data-v-0cd2e8d8]{display:none}}.stepper-box .top .steps-wrapper .step.deactivated .circle i[data-v-0cd2e8d8]{background-color:#bbb!important}.stepper-box .top .steps-wrapper .step.deactivated .step-title[data-v-0cd2e8d8]{opacity:.35}.stepper-box .top .steps-wrapper .step .circle[data-v-0cd2e8d8]{margin-bottom:1rem;padding:0 1rem;background-color:#fff}.stepper-box .top .steps-wrapper .step .circle i[data-v-0cd2e8d8]{background-color:#3383c8;color:#fff;border-radius:100rem;padding:1rem}.stepper-box .top .steps-wrapper .step .step-title[data-v-0cd2e8d8]{position:absolute;top:90%;width:100%}.stepper-box .top .steps-wrapper .step .step-title h1[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h2[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h3[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h4[data-v-0cd2e8d8],.stepper-box .top .steps-wrapper .step .step-title h5[data-v-0cd2e8d8]{margin:0 0 .2rem;color:#333;font-weight:700}.stepper-box .top .steps-wrapper .step .step-title .step-subtitle[data-v-0cd2e8d8]{font-weight:lighter;margin:0;color:#555}.stepper-box .content[data-v-0cd2e8d8]{overflow:hidden;margin:1.5rem 0}.stepper-box .bottom[data-v-0cd2e8d8]{position:relative;display:flex;justify-content:space-between;align-items:center;padding:2rem;border-top:1px solid #ccc}.stepper-box .bottom.only-next[data-v-0cd2e8d8]{justify-content:flex-end}.stepper-box .bottom .stepper-button[data-v-0cd2e8d8]{padding:.5rem 1rem;cursor:pointer;display:flex;align-items:center;justify-content:space-between}.stepper-box .bottom .stepper-button.next[data-v-0cd2e8d8]{background-color:#3383c8;color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.24)}.stepper-box .bottom .stepper-button.next.deactivated[data-v-0cd2e8d8]{background-color:#ccc!important;cursor:not-allowed!important}.stepper-box .bottom .stepper-button.previous[data-v-0cd2e8d8]{color:#333}",""]),t.exports=e},function(t,e,n){"use strict";var r=n(53);n.n(r).a},function(t,e,n){(e=n(9)(!1)).push([t.i,'@font-face{font-family:Material Icons;font-style:normal;font-weight:400;src:local("Material Icons"),local("MaterialIcons-Regular"),url(https://fonts.gstatic.com/s/materialicons/v17/2fcrYFNaTjcS6g4U3t-Y5ZjZjT5FdEJ140U2DJYC3mY.woff2) format("woff2")}.material-icons[data-v-0cd2e8d8]{font-family:Material Icons;font-weight:400;font-style:normal;font-size:24px;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:"liga";-webkit-font-smoothing:antialiased}',""]),t.exports=e},function(t,e,n){"use strict";var r=n(54);n.n(r).a},function(t,e,n){(e=n(9)(!1)).push([t.i,".repeater[data-v-4a9146e1]{margin-left:-18px;margin-right:-16px;margin-top:-20px}a[data-v-4a9146e1]{color:inherit!important}a.btn[data-v-4a9146e1]{color:#fff!important}.file-selected>div[data-v-4a9146e1]{margin-bottom:2rem}.file-upload label.btn[data-v-4a9146e1]{margin-bottom:0;margin-right:1rem}.file-upload .drop-active[data-v-4a9146e1]{top:0;bottom:0;right:0;left:0;position:fixed;z-index:9999;opacity:.6;text-align:center;background:#000}.file-upload .drop-active h3[data-v-4a9146e1]{margin:-.5em 0 0;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%);font-size:40px;color:#fff;padding:0}",""]),t.exports=e},function(t,e,n){"use strict";(function(t){var e,r,i=n(0),o=n.n(i);function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=x(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function u(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||f(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||f(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=f(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function f(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),t}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&M(t,e)}function g(t){var e=k();return function(){var n,r=x(t);if(e){var i=x(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==S(e)&&"function"!=typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){var e="function"==typeof Map?new Map:void 0;return(w=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return _(t,arguments,x(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),M(r,t)})(t)}function _(t,e,n){return(_=k()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&M(i,n.prototype),i}).apply(null,arguments)}function k(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function M(t,e){return(M=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e=window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}),(r=e.fr=e.fr||{}).dictionary=Object.assign(r.dictionary||{},{"%0 of %1":"%0 sur %1","Align center":"Centrer","Align left":"Aligner à gauche","Align right":"Aligner à droite",Aquamarine:"Bleu vert",Big:"Grand",Black:"Noir",Blue:"Bleu",Bold:"Gras","Bulleted List":"Liste à puces",Cancel:"Annuler","Cannot upload file:":"Envoi du fichier échoué :","Centered image":"Image centrée","Change image text alternative":"Changer le texte alternatif à l’image","Characters: %0":"Caractères : %0","Choose heading":"Choisir l'en-tête",Column:"Colonne","Could not insert image at the current position.":"Impossible d'insérer l'image à la position courante.","Could not obtain resized image URL.":"Impossible d'obtenir l'image redimensionnée","Decrease indent":"Diminuer le retrait",Default:"Par défaut","Delete column":"Supprimer la colonne","Delete row":"Supprimer la ligne","Dim grey":"Gris pâle","Document colors":"Couleurs du document",Downloadable:"Fichier téléchargeable","Dropdown toolbar":"Barre d'outils dans un menu déroulant","Edit link":"Modifier le lien","Editor toolbar":"Barre d'outils de l'éditeur","Enter image caption":"Saisir la légende de l’image","Font Color":"Couleur de police","Font Size":"Taille de police","Full size image":"Image taille réelle",Green:"Vert",Grey:"Gris","Header column":"Colonne d'entête","Header row":"Ligne d'entête",Heading:"En-tête","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4","Heading 5":"Titre 5","Heading 6":"Titre 6","Horizontal line":"Ligne horizontale",Huge:"Enorme","Image resize list":"","Image toolbar":"Barre d'outils des images","image widget":"Objet image","Increase indent":"Augmenter le retrait",Insert:"","Insert column left":"Insérer une colonne à gauche","Insert column right":"Insérer une colonne à droite","Insert image":"Insérer une image","Insert image or file":"Insérer une image ou un fichier","Insert image via URL":"","Insert media":"Insérer un média","Insert paragraph after block":"","Insert paragraph before block":"","Insert row above":"Insérer une ligne au-dessus","Insert row below":"Insérer une ligne en-dessous","Insert table":"Insérer un tableau","Inserting image failed":"L'insertion d'image a échoué.",Italic:"Italique",Justify:"Justifier","Left aligned image":"Image alignée à gauche","Light blue":"Bleu clair","Light green":"Vert clair","Light grey":"Gris clair",Link:"Lien","Link image":"","Link URL":"URL du lien","Media URL":"URL de média","media widget":"widget média","Merge cell down":"Fusionner la cellule en-dessous","Merge cell left":"Fusionner la cellule à gauche","Merge cell right":"Fusionner la cellule à droite","Merge cell up":"Fusionner la cellule au-dessus","Merge cells":"Fusionner les cellules",Next:"Suivant","Numbered List":"Liste numérotée","Open in a new tab":"Ouvrir dans un nouvel onglet","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Orange:"Orange",Original:"",Paragraph:"Paragraphe","Paste the image source URL.":"","Paste the media URL in the input.":"Coller l'URL du média",Previous:"Précedent",Purple:"Violet",Red:"Rouge",Redo:"Restaurer","Remove color":"Enlever la couleur","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Rich Text Editor":"Éditeur de texte enrichi","Rich Text Editor, %0":"Éditeur de texte enrichi, %0","Right aligned image":"Image alignée à droite",Row:"Ligne",Save:"Enregistrer","Select column":"","Select row":"","Selecting resized image failed":"La sélection de l'image redimensionnée a échoué.","Show more items":"Montrer plus d'éléments","Side image":"Image latérale",Small:"Petit","Split cell horizontally":"Scinder la cellule horizontalement","Split cell vertically":"Scinder la cellule verticalement","Table toolbar":"Barre d'outils des tableaux","Text alignment":"Alignement du texte","Text alignment toolbar":"Barre d'outils d'alignement du texte","Text alternative":"Texte alternatif","The URL must not be empty.":"L'URL ne doit pas être vide.","This link has no URL":"Ce lien n'a pas d'URL","This media URL is not supported.":"Cette URL de média n'est pas supportée.",Tiny:"Minuscule","Tip: Paste the URL into the content to embed faster.":"Astuce : Copier l'URL du média dans le contenu pour l'insérer plus rapidement",Turquoise:"Turquoise",Undo:"Annuler",Unlink:"Supprimer le lien",Update:"","Upload failed":"Échec de l'envoi","Upload in progress":"Téléchargement en cours",White:"Blanc","Widget toolbar":"Barre d'outils du widget","Words: %0":"Mots : %0",Yellow:"Jaune"}),r.getPluralForm=function(t){return t>1},function(e,r){"object"==("undefined"==typeof exports?"undefined":S(exports))&&"object"==S(t)?t.exports=r():"function"==typeof define&&n(301)?define([],r):"object"==("undefined"==typeof exports?"undefined":S(exports))?exports.ClassicEditor=r():e.ClassicEditor=r()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==S(t)&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=112)}([function(t,e,n){n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}));var r=function(t){v(n,t);var e=g(n);function n(t,r,o){var a;return h(this,n),t=i(t),o&&(t+=" "+JSON.stringify(o)),(a=e.call(this,t)).name="CKEditorError",a.context=r,a.data=o,a}return m(n,[{key:"is",value:function(t){return"CKEditorError"===t}}],[{key:"rethrowUnexpectedError",value:function(t,e){if(t.is&&t.is("CKEditorError"))throw t;var r=new n(t.message,e);throw r.stack=t.stack,r}}]),n}(w(Error));function i(t){var e=t.match(/^([^:]+):/);return e?t+" Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-".concat(e[1],"\n"):t}},function(t,e,n){var r,i=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),o=[];function a(t){for(var e=-1,n=0;n<o.length;n++)if(o[n].identifier===t){e=n;break}return e}function s(t,e){for(var n={},r=[],i=0;i<t.length;i++){var s=t[i],u=e.base?s[0]+e.base:s[0],l=n[u]||0,c="".concat(u," ").concat(l);n[u]=l+1;var f=a(c),d={css:s[1],media:s[2],sourceMap:s[3]};-1!==f?(o[f].references++,o[f].updater(d)):o.push({identifier:c,updater:m(d,e),references:1}),r.push(c)}return r}function u(t){var e=document.createElement("style"),r=t.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach((function(t){e.setAttribute(t,r[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var l,c=(l=[],function(t,e){return l[t]=e,l.filter(Boolean).join("\n")});function f(t,e,n,r){var i=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(t.styleSheet)t.styleSheet.cssText=c(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function d(t,e,n){var r=n.css,i=n.media,o=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}var h=null,p=0;function m(t,e){var n,r,i;if(e.singleton){var o=p++;n=h||(h=u(e)),r=f.bind(null,n,o,!1),i=f.bind(null,n,o,!0)}else n=u(e),r=d.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return r(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;r(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var n=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var r=0;r<n.length;r++){var i=a(n[r]);o[i].references--}for(var u=s(t,e),l=0;l<n.length;l++){var c=a(n[l]);0===o[c].references&&(o[c].updater(),o.splice(c,1))}n=u}}}},,function(t,e,n){var r=n(7),i="object"==("undefined"==typeof self?"undefined":S(self))&&self&&self.Object===Object&&self,o=r.a||i||Function("return this")();e.a=o},function(t,e,n){(function(t){var r=n(3),i=n(12),o="object"==("undefined"==typeof exports?"undefined":S(exports))&&exports&&!exports.nodeType&&exports,a=o&&"object"==S(t)&&t&&!t.nodeType&&t,s=a&&a.exports===o?r.a.Buffer:void 0,u=(s?s.isBuffer:void 0)||i.a;e.a=u}).call(this,n(9)(t))},function(t,e,n){(function(t){var r=n(7),i="object"==("undefined"==typeof exports?"undefined":S(exports))&&exports&&!exports.nodeType&&exports,o=i&&"object"==S(t)&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.a.process,s=function(){try{return o&&o.require&&o.require("util").types||a&&a.binding&&a.binding("util")}catch(t){}}();e.a=s}).call(this,n(9)(t))},function(t,e,n){(function(t){var e=n(0),r="object"==("undefined"==typeof window?"undefined":S(window))?window:t;if(r.CKEDITOR_VERSION)throw new e.b("ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated.",null);r.CKEDITOR_VERSION="22.0.0"}).call(this,n(10))},function(t,e,n){(function(t){var n="object"==S(t)&&t&&t.Object===Object&&t;e.a=n}).call(this,n(10))},function(t,e,n){(function(t){var r=n(3),i="object"==("undefined"==typeof exports?"undefined":S(exports))&&exports&&!exports.nodeType&&exports,o=i&&"object"==S(t)&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.a.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.a=function(t,e){if(e)return t.slice();var n=t.length,r=s?s(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(9)(t))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==("undefined"==typeof window?"undefined":S(window))&&(n=window)}t.exports=n},function(t,e,n){var r=n(1),i=n(55);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e,n){e.a=function(){return!1}},function(t,e,n){var r=n(1),i=n(14);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-placeholder:before,.ck .ck-placeholder:before{content:attr(data-placeholder);pointer-events:none}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-placeholder:before,.ck .ck-placeholder:before{cursor:text;color:var(--ck-color-engine-placeholder-text)}"},function(t,e,n){var r=n(1),i=n(16);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{box-sizing:border-box;width:auto;height:auto;position:static}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999);--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#5c5c5c;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-color-link-fake-selection:rgba(31,177,255,0.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none;word-wrap:break-word}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}"},function(t,e,n){var r=n(1),i=n(18);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}"},function(t,e,n){var r=n(1),i=n(20);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(t,e,n){var r=n(1),i=n(22);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}"},function(t,e,n){var r=n(1),i=n(24);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(0.5*var(--ck-icon-size))}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}"},function(t,e,n){var r=n(1),i=n(26);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}"},function(t,e,n){var r=n(1),i=n(28);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports='.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_n{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}'},function(t,e,n){var r=n(1),i=n(30);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(-1*var(--ck-spacing-small));margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(-1*var(--ck-spacing-small));margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}"},function(t,e,n){var r=n(1),i=n(32);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(0.2*var(--ck-line-height-base)*var(--ck-font-size-base)) calc(0.4*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(1.2*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}"},function(t,e,n){var r=n(1),i=n(34);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2*var(--ck-switch-button-toggle-spacing))}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(2*var(--ck-spacing-large))}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(2*var(--ck-spacing-large))}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(0.5*var(--ck-border-radius))}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(-1*var(--ck-switch-button-translation)))}"},function(t,e,n){var r=n(1),i=n(36);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-toolbar-dropdown .ck.ck-toolbar .ck.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}"},function(t,e,n){var r=n(1),i=n(38);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}"},function(t,e,n){var r=n(1),i=n(40);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items>*{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>*,.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}"},function(t,e,n){var r=n(1),i=n(42);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}"},function(t,e,n){var r=n(1),i=n(44);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}'},function(t,e,n){var r=n(1),i=n(46);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}"},function(t,e,n){var r=n(1),i=n(48);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck-editor__editable .ck-horizontal-line{display:flow-root}.ck-content hr{margin:15px 0;height:4px;background:#dedede;border:0}"},function(t,e,n){var r=n(1),i=n(50);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#000}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{width:var(--ck-color-grid-tile-size);height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;border:0}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{display:none;color:var(--ck-color-color-grid-check-icon)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}"},function(t,e,n){var r=n(1),i=n(52);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck .ck-button.ck-color-table__remove-color{display:flex;align-items:center;width:100%}label.ck.ck-color-grid__label{font-weight:unset}.ck .ck-button.ck-color-table__remove-color{padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck .ck-button.ck-color-table__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-base-border)}[dir=ltr] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard)}"},function(t,e,n){var r=n(1),i=n(54);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}"},function(t,e){t.exports=".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}"},function(t,e,n){var r=n(1),i=n(57);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports='.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(-0.5*var(--ck-widget-outline-thickness));left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(-0.5*var(--ck-widget-outline-thickness));right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(-1*var(--ck-widget-outline-thickness));right:calc(-1*var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(-1*var(--ck-widget-outline-thickness) - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(-1*var(--ck-widget-outline-thickness) - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}'},function(t,e,n){var r=n(1),i=n(59);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-resizer-size:10px;--ck-resizer-border-width:1px;--ck-resizer-border-radius:2px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-tooltip-offset:10px;--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}"},function(t,e,n){var r=n(1),i=n(61);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view>.ck.ck-label{width:100%;text-overflow:ellipsis;overflow:hidden}"},function(t,e,n){var r=n(1),i=n(63);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{box-shadow:var(--ck-inner-shadow),0 0;background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .2s ease-in-out,border .2s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),var(--ck-inner-shadow)}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}"},function(t,e,n){var r=n(1),i=n(65);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}.ck.ck-text-alternative-form{padding:var(--ck-spacing-standard)}.ck.ck-text-alternative-form:focus{outline:none}[dir=ltr] .ck.ck-text-alternative-form>:not(:first-child),[dir=rtl] .ck.ck-text-alternative-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-text-alternative-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-text-alternative-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-text-alternative-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-text-alternative-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-text-alternative-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-text-alternative-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(t,e,n){var r=n(1),i=n(67);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}"},function(t,e,n){var r=n(1),i=n(69);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}"},function(t,e,n){var r=n(1),i=n(71);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:50px}"},function(t,e,n){var r=n(1),i=n(73);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}"},function(t,e,n){var r=n(1),i=n(75);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;position:absolute;pointer-events:none;left:0;top:0;outline:1px solid var(--ck-color-resizer)}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{position:absolute;pointer-events:all;width:var(--ck-resizer-size);height:var(--ck-resizer-size);background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{top:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{top:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nesw-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nesw-resize}"},function(t,e,n){var r=n(1),i=n(77);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck-content .image.image_resized{max-width:100%;display:block;box-sizing:border-box}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}"},function(t,e,n){var r=n(1),i=n(79);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}"},function(t,e,n){var r=n(1),i=n(81);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-radius:0}.ck-rounded-corners [dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow,[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-left-color:var(--ck-color-split-button-hover-border)}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-right-color:var(--ck-color-split-button-hover-border)}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}"},function(t,e,n){var r=n(1),i=n(83);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-upload-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-upload-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-upload-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-upload-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}"},function(t,e,n){var r=n(1),i=n(85);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-image-upload__panel{padding:var(--ck-spacing-standard)}.ck.ck-image-upload__ck-finder-button{display:block;width:100%;margin:var(--ck-spacing-standard) auto;border:1px solid #ccc;border-radius:var(--ck-border-radius)}"},function(t,e,n){var r=n(1),i=n(87);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}"},function(t,e,n){var r=n(1),i=n(89);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}'},function(t,e,n){var r=n(1),i=n(91);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports='.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}'},function(t,e,n){var r=n(1),i=n(93);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form{padding:var(--ck-spacing-standard)}.ck.ck-link-form:focus{outline:none}[dir=ltr] .ck.ck-link-form>:not(:first-child),[dir=rtl] .ck.ck-link-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin-left:0}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}"},function(t,e,n){var r=n(1),i=n(95);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions{padding:var(--ck-spacing-standard)}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}.ck.ck-link-actions:focus{outline:none}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(t,e,n){var r=n(1),i=n(97);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-link-image_icon{position:absolute;top:var(--ck-spacing-medium);right:var(--ck-spacing-medium);width:28px;height:28px;padding:4px;box-sizing:border-box;border-radius:var(--ck-border-radius)}.ck.ck-link-image_icon svg{fill:currentColor}.ck.ck-link-image_icon{color:#fff;background:rgba(0,0,0,.4)}"},function(t,e,n){var r=n(1),i=n(99);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports='.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(3*var(--ck-spacing-standard));background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}'},function(t,e,n){var r=n(1),i=n(101);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}.ck.ck-media-form{padding:var(--ck-spacing-standard)}.ck.ck-media-form:focus{outline:none}[dir=ltr] .ck.ck-media-form>:not(:first-child),[dir=rtl] .ck.ck-media-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-media-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-media-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-media-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-media-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-media-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-media-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-media-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-media-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-media-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(t,e,n){var r=n(1),i=n(103);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}"},function(t,e,n){var r=n(1),i=n(105);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}"},function(t,e,n){var r=n(1),i=n(107);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}"},function(t,e,n){var r=n(1),i=n(109);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}'},function(t,e,n){var r=n(1),i=n(111);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);r(i,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),t.exports=i.locals||{}},function(t,e){t.exports=".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}"},function(t,e,n){var r=o.a.mark(os),i=o.a.mark(as),f=o.a.mark(Jf);n.r(e);var d=n(3),p=d.a.Symbol,w=Object.prototype,k=w.hasOwnProperty,M=w.toString,C=p?p.toStringTag:void 0,A=Object.prototype.toString,T=p?p.toStringTag:void 0,E=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":T&&T in Object(t)?function(t){var e=k.call(t,C),n=t[C];try{t[C]=void 0;var r=!0}catch(t){}var i=M.call(t);return r&&(e?t[C]=n:delete t[C]),i}(t):function(t){return A.call(t)}(t)},O=function(t,e){return function(n){return t(e(n))}},P=O(Object.getPrototypeOf,Object),I=function(t){return null!=t&&"object"==S(t)},R=Function.prototype,j=Object.prototype,D=R.toString,N=j.hasOwnProperty,L=D.call(Object),B=function(t){if(!I(t)||"[object Object]"!=E(t))return!1;var e=P(t);if(null===e)return!0;var n=N.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&D.call(n)==L},z=function(t,e){return t===e||t!=t&&e!=e},F=function(t,e){for(var n=t.length;n--;)if(z(t[n][0],e))return n;return-1},q=Array.prototype.splice;function V(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}V.prototype.clear=function(){this.__data__=[],this.size=0},V.prototype.delete=function(t){var e=this.__data__,n=F(e,t);return!(n<0||(n==e.length-1?e.pop():q.call(e,n,1),--this.size,0))},V.prototype.get=function(t){var e=this.__data__,n=F(e,t);return n<0?void 0:e[n][1]},V.prototype.has=function(t){return F(this.__data__,t)>-1},V.prototype.set=function(t,e){var n=this.__data__,r=F(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var $,H=V,U=function(t){var e=S(t);return null!=t&&("object"==e||"function"==e)},W=function(t){if(!U(t))return!1;var e=E(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},K=d.a["__core-js_shared__"],Y=($=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||""))?"Symbol(src)_1."+$:"",G=Function.prototype.toString,Z=function(t){if(null!=t){try{return G.call(t)}catch(t){}try{return t+""}catch(t){}}return""},J=/^\[object .+?Constructor\]$/,X=Function.prototype,Q=Object.prototype,tt=X.toString,et=Q.hasOwnProperty,nt=RegExp("^"+tt.call(et).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),rt=function(t){return!(!U(t)||function(t){return!!Y&&Y in t}(t))&&(W(t)?nt:J).test(Z(t))},it=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return rt(n)?n:void 0},ot=it(d.a,"Map"),at=it(Object,"create"),st=Object.prototype.hasOwnProperty,ut=Object.prototype.hasOwnProperty;function lt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}lt.prototype.clear=function(){this.__data__=at?at(null):{},this.size=0},lt.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},lt.prototype.get=function(t){var e=this.__data__;if(at){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return st.call(e,t)?e[t]:void 0},lt.prototype.has=function(t){var e=this.__data__;return at?void 0!==e[t]:ut.call(e,t)},lt.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=at&&void 0===e?"__lodash_hash_undefined__":e,this};var ct=lt,ft=function(t,e){var n=t.__data__;return function(t){var e=S(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map};function dt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}dt.prototype.clear=function(){this.size=0,this.__data__={hash:new ct,map:new(ot||H),string:new ct}},dt.prototype.delete=function(t){var e=ft(this,t).delete(t);return this.size-=e?1:0,e},dt.prototype.get=function(t){return ft(this,t).get(t)},dt.prototype.has=function(t){return ft(this,t).has(t)},dt.prototype.set=function(t,e){var n=ft(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this};var ht=dt;function pt(t){var e=this.__data__=new H(t);this.size=e.size}pt.prototype.clear=function(){this.__data__=new H,this.size=0},pt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},pt.prototype.get=function(t){return this.__data__.get(t)},pt.prototype.has=function(t){return this.__data__.has(t)},pt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof H){var r=n.__data__;if(!ot||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new ht(r)}return n.set(t,e),this.size=n.size,this};var mt=pt,vt=function(){try{var t=it(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),gt=function(t,e,n){"__proto__"==e&&vt?vt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},bt=Object.prototype.hasOwnProperty,yt=function(t,e,n){var r=t[e];bt.call(t,e)&&z(r,n)&&(void 0!==n||e in t)||gt(t,e,n)},wt=function(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?gt(n,s,u):yt(n,s,u)}return n},_t=function(t){return I(t)&&"[object Arguments]"==E(t)},kt=Object.prototype,Mt=kt.hasOwnProperty,xt=kt.propertyIsEnumerable,St=_t(function(){return arguments}())?_t:function(t){return I(t)&&Mt.call(t,"callee")&&!xt.call(t,"callee")},Ct=Array.isArray,At=n(4),Tt=/^(?:0|[1-9]\d*)$/,Et=function(t,e){var n=S(t);return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Tt.test(t))&&t>-1&&t%1==0&&t<e},Ot=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Pt={};Pt["[object Float32Array]"]=Pt["[object Float64Array]"]=Pt["[object Int8Array]"]=Pt["[object Int16Array]"]=Pt["[object Int32Array]"]=Pt["[object Uint8Array]"]=Pt["[object Uint8ClampedArray]"]=Pt["[object Uint16Array]"]=Pt["[object Uint32Array]"]=!0,Pt["[object Arguments]"]=Pt["[object Array]"]=Pt["[object ArrayBuffer]"]=Pt["[object Boolean]"]=Pt["[object DataView]"]=Pt["[object Date]"]=Pt["[object Error]"]=Pt["[object Function]"]=Pt["[object Map]"]=Pt["[object Number]"]=Pt["[object Object]"]=Pt["[object RegExp]"]=Pt["[object Set]"]=Pt["[object String]"]=Pt["[object WeakMap]"]=!1;var It=function(t){return function(e){return t(e)}},Rt=n(5),jt=Rt.a&&Rt.a.isTypedArray,Dt=jt?It(jt):function(t){return I(t)&&Ot(t.length)&&!!Pt[E(t)]},Nt=Object.prototype.hasOwnProperty,Lt=function(t,e){var n=Ct(t),r=!n&&St(t),i=!n&&!r&&Object(At.a)(t),o=!n&&!r&&!i&&Dt(t),a=n||r||i||o,s=a?function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}(t.length,String):[],u=s.length;for(var l in t)!e&&!Nt.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Et(l,u))||s.push(l);return s},Bt=Object.prototype,zt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Bt)},Ft=O(Object.keys,Object),qt=Object.prototype.hasOwnProperty,Vt=function(t){return null!=t&&Ot(t.length)&&!W(t)},$t=function(t){return Vt(t)?Lt(t):function(t){if(!zt(t))return Ft(t);var e=[];for(var n in Object(t))qt.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)},Ht=Object.prototype.hasOwnProperty,Ut=function(t){if(!U(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=zt(t),n=[];for(var r in t)("constructor"!=r||!e&&Ht.call(t,r))&&n.push(r);return n},Wt=function(t){return Vt(t)?Lt(t,!0):Ut(t)},Kt=n(8),Yt=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e},Gt=function(){return[]},Zt=Object.prototype.propertyIsEnumerable,Jt=Object.getOwnPropertySymbols,Xt=Jt?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}(Jt(t),(function(e){return Zt.call(t,e)})))}:Gt,Qt=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t},te=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Qt(e,Xt(t)),t=P(t);return e}:Gt,ee=function(t,e,n){var r=e(t);return Ct(t)?r:Qt(r,n(t))},ne=function(t){return ee(t,$t,Xt)},re=function(t){return ee(t,Wt,te)},ie=it(d.a,"DataView"),oe=it(d.a,"Promise"),ae=it(d.a,"Set"),se=it(d.a,"WeakMap"),ue="[object Map]",le="[object Promise]",ce="[object Set]",fe="[object WeakMap]",de="[object DataView]",he=Z(ie),pe=Z(ot),me=Z(oe),ve=Z(ae),ge=Z(se),be=E;(ie&&be(new ie(new ArrayBuffer(1)))!=de||ot&&be(new ot)!=ue||oe&&be(oe.resolve())!=le||ae&&be(new ae)!=ce||se&&be(new se)!=fe)&&(be=function(t){var e=E(t),n="[object Object]"==e?t.constructor:void 0,r=n?Z(n):"";if(r)switch(r){case he:return de;case pe:return ue;case me:return le;case ve:return ce;case ge:return fe}return e});var ye=be,we=Object.prototype.hasOwnProperty,_e=d.a.Uint8Array,ke=function(t){var e=new t.constructor(t.byteLength);return new _e(e).set(new _e(t)),e},Me=/\w*$/,xe=p?p.prototype:void 0,Se=xe?xe.valueOf:void 0,Ce=function(t,e){var n=e?ke(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},Ae=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return ke(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return function(t,e){var n=e?ke(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Ce(t,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,Me.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Set]":return new r;case"[object Symbol]":return function(t){return Se?Object(Se.call(t)):{}}(t)}},Te=Object.create,Ee=function(){function t(){}return function(e){if(!U(e))return{};if(Te)return Te(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Oe=function(t){return"function"!=typeof t.constructor||zt(t)?{}:Ee(P(t))},Pe=Rt.a&&Rt.a.isMap,Ie=Pe?It(Pe):function(t){return I(t)&&"[object Map]"==ye(t)},Re=Rt.a&&Rt.a.isSet,je=Re?It(Re):function(t){return I(t)&&"[object Set]"==ye(t)},De="[object Arguments]",Ne="[object Function]",Le={};Le[De]=Le["[object Array]"]=Le["[object ArrayBuffer]"]=Le["[object DataView]"]=Le["[object Boolean]"]=Le["[object Date]"]=Le["[object Float32Array]"]=Le["[object Float64Array]"]=Le["[object Int8Array]"]=Le["[object Int16Array]"]=Le["[object Int32Array]"]=Le["[object Map]"]=Le["[object Number]"]=Le["[object Object]"]=Le["[object RegExp]"]=Le["[object Set]"]=Le["[object String]"]=Le["[object Symbol]"]=Le["[object Uint8Array]"]=Le["[object Uint8ClampedArray]"]=Le["[object Uint16Array]"]=Le["[object Uint32Array]"]=!0,Le["[object Error]"]=Le[Ne]=Le["[object WeakMap]"]=!1;var Be=function t(e,n,r,i,o,a){var s,u=1&n,l=2&n,c=4&n;if(r&&(s=o?r(e,i,o,a):r(e)),void 0!==s)return s;if(!U(e))return e;var f=Ct(e);if(f){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&we.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!u)return Yt(e,s)}else{var d=ye(e),h=d==Ne||"[object GeneratorFunction]"==d;if(Object(At.a)(e))return Object(Kt.a)(e,u);if("[object Object]"==d||d==De||h&&!o){if(s=l||h?{}:Oe(e),!u)return l?function(t,e){return wt(t,te(t),e)}(e,function(t,e){return t&&wt(e,Wt(e),t)}(s,e)):function(t,e){return wt(t,Xt(t),e)}(e,function(t,e){return t&&wt(e,$t(e),t)}(s,e))}else{if(!Le[d])return o?e:{};s=Ae(e,d,u)}}a||(a=new mt);var p=a.get(e);if(p)return p;a.set(e,s),je(e)?e.forEach((function(i){s.add(t(i,n,r,i,e,a))})):Ie(e)&&e.forEach((function(i,o){s.set(o,t(i,n,r,o,e,a))}));var m=c?l?re:ne:l?keysIn:$t,v=f?void 0:m(e);return function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););}(v||e,(function(i,o){v&&(i=e[o=i]),yt(s,o,t(i,n,r,o,e,a))})),s},ze=function(t,e){return Be(t,5,e="function"==typeof e?e:void 0)},Fe=function(t){return I(t)&&1===t.nodeType&&!B(t)},qe=function(){function t(e,n){h(this,t),this._config={},n&&this.define(Ve(n)),e&&this._setObjectToTarget(this._config,e)}return m(t,[{key:"set",value:function(t,e){this._setToTarget(this._config,t,e)}},{key:"define",value:function(t,e){this._setToTarget(this._config,t,e,!0)}},{key:"get",value:function(t){return this._getFromSource(this._config,t)}},{key:"names",value:o.a.mark((function t(){var e,n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=0,n=Object.keys(this._config);case 1:if(!(e<n.length)){t.next=8;break}return r=n[e],t.next=5,r;case 5:e++,t.next=1;break;case 8:case"end":return t.stop()}}),t,this)}))},{key:"_setToTarget",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(B(e))this._setObjectToTarget(t,e,r);else{var i=e.split(".");e=i.pop();var o,a=c(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;B(t[s])||(t[s]={}),t=t[s]}}catch(t){a.e(t)}finally{a.f()}if(B(n))return B(t[e])||(t[e]={}),t=t[e],void this._setObjectToTarget(t,n,r);r&&void 0!==t[e]||(t[e]=n)}}},{key:"_getFromSource",value:function(t,e){var n=e.split(".");e=n.pop();var r,i=c(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(!B(t[o])){t=null;break}t=t[o]}}catch(t){i.e(t)}finally{i.f()}return t?Ve(t[e]):void 0}},{key:"_setObjectToTarget",value:function(t,e,n){var r=this;Object.keys(e).forEach((function(i){r._setToTarget(t,i,e[i],n)}))}}]),t}();function Ve(t){return ze(t,$e)}function $e(t){return Fe(t)?t:void 0}var He=function t(e,n){h(this,t),this.source=e,this.name=n,this.path=[],this.stop=function t(){t.called=!0},this.off=function t(){t.called=!0}},Ue=new Array(256).fill().map((function(t,e){return("0"+e.toString(16)).slice(-2)}));function We(){var t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0;return"e"+Ue[t>>0&255]+Ue[t>>8&255]+Ue[t>>16&255]+Ue[t>>24&255]+Ue[e>>0&255]+Ue[e>>8&255]+Ue[e>>16&255]+Ue[e>>24&255]+Ue[n>>0&255]+Ue[n>>8&255]+Ue[n>>16&255]+Ue[n>>24&255]+Ue[r>>0&255]+Ue[r>>8&255]+Ue[r>>16&255]+Ue[r>>24&255]}var Ke={get:function(t){return"number"!=typeof t?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},Ye=(n(6),n(0)),Ge=Symbol("listeningTo"),Ze=Symbol("emitterId"),Je={on:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,t,e,n)},once:function(t,e,n){var r=!1;this.listenTo(this,t,(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=!0,t.off(),e.call.apply(e,[this,t].concat(i)))}),n)},off:function(t,e){this.stopListening(this,t,e)},listenTo:function(t,e,n){var r,i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this[Ge]||(this[Ge]={});var a=this[Ge];Qe(t)||Xe(t);var s=Qe(t);(r=a[s])||(r=a[s]={emitter:t,callbacks:{}}),(i=r.callbacks[e])||(i=r.callbacks[e]=[]),i.push(n),function(t,e){var n=tn(t);if(!n[e]){for(var r=e,i=null,o=[];""!==r&&!n[r];)n[r]={callbacks:[],childEvents:[]},o.push(n[r]),i&&n[r].childEvents.push(i),i=r,r=r.substr(0,r.lastIndexOf(":"));if(""!==r){var a,s=c(o);try{for(s.s();!(a=s.n()).done;){a.value.callbacks=n[r].callbacks.slice()}}catch(t){s.e(t)}finally{s.f()}n[r].childEvents.push(i)}}}(t,e);var u,l=en(t,e),f=Ke.get(o.priority),d={callback:n,priority:f},h=c(l);try{for(h.s();!(u=h.n()).done;){for(var p=u.value,m=!1,v=0;v<p.length;v++)if(p[v].priority<f){p.splice(v,0,d),m=!0;break}m||p.push(d)}}catch(t){h.e(t)}finally{h.f()}},stopListening:function(t,e,n){var r=this[Ge],i=t&&Qe(t),o=r&&i&&r[i],a=o&&e&&o.callbacks[e];if(!(!r||t&&!o||e&&!a))if(n)rn(t,e,n);else if(a){for(;n=a.pop();)rn(t,e,n);delete o.callbacks[e]}else if(o){for(e in o.callbacks)this.stopListening(t,e);delete r[i]}else{for(i in r)this.stopListening(r[i].emitter);delete this[Ge]}},fire:function(t){try{for(var e=t instanceof He?t:new He(this,t),n=e.name,r=function t(e,n){var r;return e._events&&(r=e._events[n])&&r.callbacks.length?r.callbacks:n.indexOf(":")>-1?t(e,n.substr(0,n.lastIndexOf(":"))):null}(this,n),i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];if(e.path.push(this),r){var s=[e].concat(o);r=Array.from(r);for(var u=0;u<r.length&&(r[u].callback.apply(this,s),e.off.called&&(delete e.off.called,rn(this,n,r[u].callback)),!e.stop.called);u++);}if(this._delegations){var l=this._delegations.get(n),c=this._delegations.get("*");l&&nn(l,e,o),c&&nn(c,e,o)}return e.return}catch(t){Ye.b.rethrowUnexpectedError(t,this)}},delegate:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return{to:function(e,r){t._delegations||(t._delegations=new Map),n.forEach((function(n){var i=t._delegations.get(n);i?i.set(e,r):t._delegations.set(n,new Map([[e,r]]))}))}}},stopDelegating:function(t,e){if(this._delegations)if(t)if(e){var n=this._delegations.get(t);n&&n.delete(e)}else this._delegations.delete(t);else this._delegations.clear()}};function Xe(t,e){t[Ze]||(t[Ze]=e||We())}function Qe(t){return t[Ze]}function tn(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function en(t,e){var n=tn(t)[e];if(!n)return[];for(var r=[n.callbacks],i=0;i<n.childEvents.length;i++){var o=en(t,n.childEvents[i]);r=r.concat(o)}return r}function nn(t,e,n){var r,i=c(t);try{for(i.s();!(r=i.n()).done;){var o=l(r.value,2),a=o[0],s=o[1];s?"function"==typeof s&&(s=s(e.name)):s=e.name;var f=new He(e.source,s);f.path=u(e.path),a.fire.apply(a,[f].concat(u(n)))}}catch(t){i.e(t)}finally{i.f()}}function rn(t,e,n){var r,i=c(en(t,e));try{for(i.s();!(r=i.n()).done;)for(var o=r.value,a=0;a<o.length;a++)o[a].callback==n&&(o.splice(a,1),a--)}catch(t){i.e(t)}finally{i.f()}}function on(t){return!(!t||!t[Symbol.iterator])}function an(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];n.forEach((function(e){Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)).forEach((function(n){if(!(n in t.prototype)){var r=Object.getOwnPropertyDescriptor(e,n);r.enumerable=!1,Object.defineProperty(t.prototype,n,r)}}))}))}var sn=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,t);var r=on(e);if(r||(n=e),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],r){var i,o=c(e);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._items.push(a),this._itemMap.set(this._getItemIdBeforeAdding(a),a)}}catch(t){o.e(t)}finally{o.f()}}}return m(t,[{key:"add",value:function(t,e){return this.addMany([t],e)}},{key:"addMany",value:function(t,e){if(void 0===e)e=this._items.length;else if(e>this._items.length||e<0)throw new Ye.b("collection-add-item-invalid-index: The index passed to Collection#addMany() is invalid.",this);for(var n=0;n<t.length;n++){var r=t[n],i=this._getItemIdBeforeAdding(r),o=e+n;this._items.splice(o,0,r),this._itemMap.set(i,r),this.fire("add",r,o)}return this.fire("change",{added:t,removed:[],index:e}),this}},{key:"get",value:function(t){var e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new Ye.b("collection-get-invalid-arg: Index or id must be given.",this);e=this._items[t]}return e||null}},{key:"has",value:function(t){if("string"==typeof t)return this._itemMap.has(t);var e=t[this._idProperty];return this._itemMap.has(e)}},{key:"getIndex",value:function(t){var e;return e="string"==typeof t?this._itemMap.get(t):t,this._items.indexOf(e)}},{key:"remove",value:function(t){var e=l(this._remove(t),2),n=e[0],r=e[1];return this.fire("change",{added:[],removed:[n],index:r}),n}},{key:"map",value:function(t,e){return this._items.map(t,e)}},{key:"find",value:function(t,e){return this._items.find(t,e)}},{key:"filter",value:function(t,e){return this._items.filter(t,e)}},{key:"clear",value:function(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);for(var t=Array.from(this._items);this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}},{key:"bindTo",value:function(t){var e=this;if(this._bindToCollection)throw new Ye.b("collection-bind-to-rebind: The collection cannot be bound more than once.",this);return this._bindToCollection=t,{as:function(t){e._setUpBindToBinding((function(e){return new t(e)}))},using:function(t){"function"==typeof t?e._setUpBindToBinding((function(e){return t(e)})):e._setUpBindToBinding((function(e){return e[t]}))}}}},{key:"_setUpBindToBinding",value:function(t){var e,n=this,r=this._bindToCollection,i=function(e,i,o){var a=r._bindToCollection==n,s=r._bindToInternalToExternalMap.get(i);if(a&&s)n._bindToExternalToInternalMap.set(i,s),n._bindToInternalToExternalMap.set(s,i);else{var u=t(i);if(!u)return void n._skippedIndexesFromExternal.push(o);var l,f=o,d=c(n._skippedIndexesFromExternal);try{for(d.s();!(l=d.n()).done;){o>l.value&&f--}}catch(t){d.e(t)}finally{d.f()}var h,p=c(r._skippedIndexesFromExternal);try{for(p.s();!(h=p.n()).done;){f>=h.value&&f++}}catch(t){p.e(t)}finally{p.f()}n._bindToExternalToInternalMap.set(i,u),n._bindToInternalToExternalMap.set(u,i),n.add(u,f);for(var m=0;m<r._skippedIndexesFromExternal.length;m++)f<=r._skippedIndexesFromExternal[m]&&r._skippedIndexesFromExternal[m]++}},o=c(r);try{for(o.s();!(e=o.n()).done;){var a=e.value;i(0,a,r.getIndex(a))}}catch(t){o.e(t)}finally{o.f()}this.listenTo(r,"add",i),this.listenTo(r,"remove",(function(t,e,r){var i=n._bindToExternalToInternalMap.get(e);i&&n.remove(i),n._skippedIndexesFromExternal=n._skippedIndexesFromExternal.reduce((function(t,e){return r<e&&t.push(e-1),r>e&&t.push(e),t}),[])}))}},{key:"_getItemIdBeforeAdding",value:function(t){var e,n=this._idProperty;if(n in t){if("string"!=typeof(e=t[n]))throw new Ye.b("collection-add-invalid-id: This item's id should be a string.",this);if(this.get(e))throw new Ye.b("collection-add-item-already-exists: This item already exists in the collection.",this)}else t[n]=e=We();return e}},{key:"_remove",value:function(t){var e,n,r,i=!1,o=this._idProperty;if("string"==typeof t?(n=t,i=!(r=this._itemMap.get(n)),r&&(e=this._items.indexOf(r))):"number"==typeof t?(e=t,i=!(r=this._items[e]),r&&(n=r[o])):(n=(r=t)[o],i=-1==(e=this._items.indexOf(r))||!this._itemMap.get(n)),i)throw new Ye.b("collection-remove-404: Item not found.",this);this._items.splice(e,1),this._itemMap.delete(n);var a=this._bindToInternalToExternalMap.get(r);return this._bindToInternalToExternalMap.delete(r),this._bindToExternalToInternalMap.delete(a),this.fire("remove",r,e),[r,e]}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"length",get:function(){return this._items.length}},{key:"first",get:function(){return this._items[0]||null}},{key:"last",get:function(){return this._items[this.length-1]||null}}]),t}();an(sn,Je);var un=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];h(this,t),this._context=e,this._plugins=new Map,this._availablePlugins=new Map;var i,o=c(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;a.pluginName&&this._availablePlugins.set(a.pluginName,a)}}catch(t){o.e(t)}finally{o.f()}this._contextPlugins=new Map;var s,u=c(r);try{for(u.s();!(s=u.n()).done;){var f=l(s.value,2),d=f[0],p=f[1];this._contextPlugins.set(d,p),this._contextPlugins.set(p,d),d.pluginName&&this._availablePlugins.set(d.pluginName,d)}}catch(t){u.e(t)}finally{u.f()}}return m(t,[{key:Symbol.iterator,value:o.a.mark((function t(){var e,n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=c(this._plugins),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=11;break}if(r=n.value,t.t0="function"==typeof r[0],!t.t0){t.next=9;break}return t.next=9,r;case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),e.e(t.t1);case 16:return t.prev=16,e.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,13,16,19]])}))},{key:"get",value:function(t){var e=this._plugins.get(t);if(!e){var n=t;throw"function"==typeof t&&(n=t.pluginName||t.name),new Ye.b("plugincollection-plugin-not-loaded: The requested plugin is not loaded.",this._context,{plugin:n})}return e}},{key:"has",value:function(t){return this._plugins.has(t)}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this,r=this._context,i=new Set,o=[],a=p(t),s=p(e),u=function(t){var e,n=[],r=c(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;h(i)||n.push(i)}}catch(t){r.e(t)}finally{r.f()}return n.length?n:null}(t);if(u){var l="plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.";return console.error(Object(Ye.a)(l),{plugins:u}),Promise.reject(new Ye.b(l,r,{plugins:u}))}return Promise.all(a.map(f)).then((function(){return d(o,"init")})).then((function(){return d(o,"afterInit")})).then((function(){return o}));function f(t){if(!s.includes(t)&&!n._plugins.has(t)&&!i.has(t))return function(t){return new Promise((function(a){i.add(t),t.requires&&t.requires.forEach((function(n){var i=h(n);if(t.isContextPlugin&&!i.isContextPlugin)throw new Ye.b("plugincollection-context-required: Context plugin can not require plugin which is not a context plugin",null,{plugin:i.name,requiredBy:t.name});if(e.includes(i))throw new Ye.b("plugincollection-required: Cannot load a plugin because one of its dependencies is listed inthe `removePlugins` option.",r,{plugin:i.name,requiredBy:t.name});f(i)}));var s=n._contextPlugins.get(t)||new t(r);n._add(t,s),o.push(s),a()}))}(t).catch((function(e){throw console.error(Object(Ye.a)("plugincollection-load: It was not possible to load the plugin."),{plugin:t}),e}))}function d(t,e){return t.reduce((function(t,r){return r[e]?n._contextPlugins.has(r)?t:t.then(r[e].bind(r)):t}),Promise.resolve())}function h(t){return"function"==typeof t?t:n._availablePlugins.get(t)}function p(t){return t.map((function(t){return h(t)})).filter((function(t){return!!t}))}}},{key:"destroy",value:function(){var t,e=[],n=c(this);try{for(n.s();!(t=n.n()).done;){var r=l(t.value,2)[1];"function"!=typeof r.destroy||this._contextPlugins.has(r)||e.push(r.destroy())}}catch(t){n.e(t)}finally{n.f()}return Promise.all(e)}},{key:"_add",value:function(t,e){this._plugins.set(t,e);var n=t.pluginName;if(n){if(this._plugins.has(n))throw new Ye.b("plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}]),t}();function ln(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof n)throw new Ye.b("translation-service-quantity-not-a-number: Expecting `quantity` to be a number.",null,{quantity:n});var r=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===r&&(t=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);var i=e.id||e.string;if(0===r||!function(t,e){return!!window.CKEDITOR_TRANSLATIONS[t]&&!!window.CKEDITOR_TRANSLATIONS[t].dictionary[e]}(t,i))return 1!==n?e.plural:e.string;var o=window.CKEDITOR_TRANSLATIONS[t].dictionary,a=window.CKEDITOR_TRANSLATIONS[t].getPluralForm||function(t){return 1===t?0:1};if("string"==typeof o[i])return o[i];var s=Number(a(n));return o[i][s]}an(un,Je),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});var cn=["ar","fa","he","ku","ug"],fn=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,t),this.uiLanguage=n.uiLanguage||"en",this.contentLanguage=n.contentLanguage||this.uiLanguage,this.uiLanguageDirection=dn(this.uiLanguage),this.contentLanguageDirection=dn(this.contentLanguage),this.t=function(t,n){return e._t(t,n)}}return m(t,[{key:"_t",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(e)||(e=[e]),"string"==typeof t&&(t={string:t});var n=t.plural?e[0]:1;return function(t,e){return t.replace(/%(\d+)/g,(function(t,n){return n<e.length?e[n]:t}))}(ln(this.uiLanguage,t,n),e)}},{key:"language",get:function(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}}]),t}();function dn(t){return cn.includes(t)?"rtl":"ltr"}var hn=function(){function t(e){h(this,t),this.config=new qe(e,this.constructor.defaultConfig);var n=this.constructor.builtinPlugins;this.config.define("plugins",n),this.plugins=new un(this,n);var r=this.config.get("language")||{};this.locale=new fn({uiLanguage:"string"==typeof r?r:r.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new sn,this._contextOwner=null}return m(t,[{key:"initPlugins",value:function(){var t,e=this.config.get("plugins")||[],n=c(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if("function"!=typeof r)throw new Ye.b("context-initplugins-constructor-only: Only a constructor function is allowed as a context plugin.",null,{Plugin:r});if(!0!==r.isContextPlugin)throw new Ye.b("context-initplugins-invalid-plugin: Only a plugin marked as a context plugin is allowed to be used with a context.",null,{Plugin:r})}}catch(t){n.e(t)}finally{n.f()}return this.plugins.init(e)}},{key:"destroy",value:function(){var t=this;return Promise.all(Array.from(this.editors,(function(t){return t.destroy()}))).then((function(){return t.plugins.destroy()}))}},{key:"_addEditor",value:function(t,e){if(this._contextOwner)throw new Ye.b("context-addEditor-private-context: Cannot add multiple editors to the context which is created by the editor.");this.editors.add(t),e&&(this._contextOwner=t)}},{key:"_removeEditor",value:function(t){return this.editors.has(t)&&this.editors.remove(t),this._contextOwner===t?this.destroy():Promise.resolve()}},{key:"_getEditorConfig",value:function(){var t,e={},n=c(this.config.names());try{for(n.s();!(t=n.n()).done;){var r=t.value;["plugins","removePlugins","extraPlugins"].includes(r)||(e[r]=this.config.get(r))}}catch(t){n.e(t)}finally{n.f()}return e}}],[{key:"create",value:function(t){var e=this;return new Promise((function(n){var r=new e(t);n(r.initPlugins().then((function(){return r})))}))}}]),t}();function pn(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++)if(t[r]!=e[r])return r;return t.length==e.length?"same":t.length<e.length?"prefix":"extension"}var mn=function(t){return Be(t,4)},vn=function(){function t(e){h(this,t),this.document=e,this.parent=null}return m(t,[{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var t=[],e=this;e.parent;)t.unshift(e.index),e=e.parent;return t}},{key:"getAncestors",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},e=[],n=t.includeSelf?this:this.parent;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}},{key:"getCommonAncestor",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(e),r=t.getAncestors(e),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}},{key:"isBefore",value:function(t){if(this==t)return!1;if(this.root!==t.root)return!1;var e=this.getPath(),n=t.getPath(),r=pn(e,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return e[r]<n[r]}}},{key:"isAfter",value:function(t){return this!=t&&this.root===t.root&&!this.isBefore(t)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_fireChange",value:function(t,e){this.fire("change:"+t,e),this.parent&&this.parent._fireChange(t,e)}},{key:"toJSON",value:function(){var t=mn(this);return delete t.parent,t}},{key:"is",value:function(t){return"node"===t||"view:node"===t}},{key:"index",get:function(){var t;if(!this.parent)return null;if(-1==(t=this.parent.getChildIndex(this)))throw new Ye.b("view-node-not-found-in-parent: The node's parent does not contain this node.",this);return t}},{key:"nextSibling",get:function(){var t=this.index;return null!==t&&this.parent.getChild(t+1)||null}},{key:"previousSibling",get:function(){var t=this.index;return null!==t&&this.parent.getChild(t-1)||null}},{key:"root",get:function(){for(var t=this;t.parent;)t=t.parent;return t}}]),t}();an(vn,Je);var gn=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),(i=e.call(this,t))._textData=r,i}return m(n,[{key:"is",value:function(t){return"$text"===t||"view:$text"===t||"text"===t||"view:text"===t||"node"===t||"view:node"===t}},{key:"isSimilar",value:function(t){return t instanceof n&&(this===t||this.data===t.data)}},{key:"_clone",value:function(){return new n(this.document,this.data)}},{key:"data",get:function(){return this._textData}},{key:"_data",get:function(){return this.data},set:function(t){this._fireChange("text",this),this._textData=t}}]),n}(vn),bn=function(){function t(e,n,r){if(h(this,t),this.textNode=e,n<0||n>e.data.length)throw new Ye.b("view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(r<0||n+r>e.data.length)throw new Ye.b("view-textproxy-wrong-length: Given length value is incorrect.",this);this.data=e.data.substring(n,n+r),this.offsetInText=n}return m(t,[{key:"is",value:function(t){return"$textProxy"===t||"view:$textProxy"===t||"textProxy"===t||"view:textProxy"===t}},{key:"getAncestors",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},e=[],n=t.includeSelf?this.textNode:this.parent;null!==n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}},{key:"offsetSize",get:function(){return this.data.length}},{key:"isPartial",get:function(){return this.data.length!==this.textNode.data.length}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"document",get:function(){return this.textNode.document}}]),t}();function yn(t){return on(t)?new Map(t):function(t){var e=new Map;for(var n in t)e.set(n,t[n]);return e}(t)}var wn=function(){function t(){h(this,t),this._patterns=[],this.add.apply(this,arguments)}return m(t,[{key:"add",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];("string"==typeof o||o instanceof RegExp)&&(o={name:o}),o.classes&&("string"==typeof o.classes||o.classes instanceof RegExp)&&(o.classes=[o.classes]),this._patterns.push(o)}}},{key:"match",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o,a=i[r],s=c(this._patterns);try{for(s.s();!(o=s.n()).done;){var u=o.value,l=_n(a,u);if(l)return{element:a,pattern:u,match:l}}}catch(t){s.e(t)}finally{s.f()}}return null}},{key:"matchAll",value:function(){for(var t=[],e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a,s=o[i],u=c(this._patterns);try{for(u.s();!(a=u.n()).done;){var l=a.value,f=_n(s,l);f&&t.push({element:s,pattern:l,match:f})}}catch(t){u.e(t)}finally{u.f()}}return t.length>0?t:null}},{key:"getElementName",value:function(){if(1!==this._patterns.length)return null;var t=this._patterns[0],e=t.name;return"function"==typeof t||!e||e instanceof RegExp?null:e}}]),t}();function _n(t,e){if("function"==typeof e)return e(t);var n={};return e.name&&(n.name=function(t,e){return t instanceof RegExp?t.test(e):t===e}(e.name,t.name),!n.name)||e.attributes&&(n.attributes=function(t,e){var n=[];for(var r in t){var i=t[r];if(!e.hasAttribute(r))return null;var o=e.getAttribute(r);if(!0===i)n.push(r);else if(i instanceof RegExp){if(!i.test(o))return null;n.push(r)}else{if(o!==i)return null;n.push(r)}}return n}(e.attributes,t),!n.attributes)?null:!(e.classes&&(n.classes=function(t,e){var n,r=[],i=c(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o instanceof RegExp){var a,s=c(e.getClassNames());try{for(s.s();!(a=s.n()).done;){var u=a.value;o.test(u)&&r.push(u)}}catch(t){s.e(t)}finally{s.f()}if(0===r.length)return null}else{if(!e.hasClass(o))return null;r.push(o)}}}catch(t){i.e(t)}finally{i.f()}return r}(e.classes,t),!n.classes))&&!(e.styles&&(n.styles=function(t,e){var n=[];for(var r in t){var i=t[r];if(!e.hasStyle(r))return null;var o=e.getStyle(r);if(i instanceof RegExp){if(!i.test(o))return null;n.push(r)}else{if(o!==i)return null;n.push(r)}}return n}(e.styles,t),!n.styles))&&n}var kn=function(t){return"symbol"==S(t)||I(t)&&"[object Symbol]"==E(t)},Mn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xn=/^\w*$/;function Sn(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Sn.Cache||ht),n}Sn.Cache=ht;var Cn=Sn,An=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Tn=/\\(\\)?/g,En=function(t){var e=Cn((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(An,(function(t,n,r,i){e.push(r?i.replace(Tn,"$1"):n||t)})),e}),(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}(),On=p?p.prototype:void 0,Pn=On?On.toString:void 0,In=function t(e){if("string"==typeof e)return e;if(Ct(e))return function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}(e,t)+"";if(kn(e))return Pn?Pn.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},Rn=function(t){return null==t?"":In(t)},jn=function(t,e){return Ct(t)?t:function(t,e){if(Ct(t))return!1;var n=S(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!kn(t))||xn.test(t)||!Mn.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:En(Rn(t))},Dn=function(t){if("string"==typeof t||kn(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},Nn=function(t,e){for(var n=0,r=(e=jn(e,t)).length;null!=t&&n<r;)t=t[Dn(e[n++])];return n&&n==r?t:void 0},Ln=function(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o},Bn=function(t,e){return null==(t=function(t,e){return e.length<2?t:Nn(t,Ln(e,0,-1))}(t,e=jn(e,t)))||delete t[Dn(function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}(e))]},zn=function(t,e,n){var r=null==t?void 0:Nn(t,e);return void 0===r?n:r},Fn=function(t,e,n){(void 0!==n&&!z(t[e],n)||void 0===n&&!(e in t))&&gt(t,e,n)},qn=function(t,e,n){for(var r=-1,i=Object(t),o=n(t),a=o.length;a--;){var s=o[++r];if(!1===e(i[s],s,i))break}return t},Vn=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},$n=function(t,e,n,r,i,o,a){var s=Vn(t,n),u=Vn(e,n),l=a.get(u);if(l)Fn(t,n,l);else{var c=o?o(s,u,n+"",t,e,a):void 0,f=void 0===c;if(f){var d=Ct(u),h=!d&&Object(At.a)(u),p=!d&&!h&&Dt(u);c=u,d||h||p?Ct(s)?c=s:function(t){return I(t)&&Vt(t)}(s)?c=Yt(s):h?(f=!1,c=Object(Kt.a)(u,!0)):p?(f=!1,c=Ce(u,!0)):c=[]:B(u)||St(u)?(c=s,St(s)?c=function(t){return wt(t,Wt(t))}(s):U(s)&&!W(s)||(c=Oe(u))):f=!1}f&&(a.set(u,c),i(c,u,r,o,a),a.delete(u)),Fn(t,n,c)}},Hn=function(t){return t},Un=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},Wn=Math.max,Kn=function(t){return function(){return t}},Yn=vt?function(t,e){return vt(t,"toString",{configurable:!0,enumerable:!1,value:Kn(e),writable:!0})}:Hn,Gn=Date.now,Zn=function(t){var e=0,n=0;return function(){var r=Gn(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Yn),Jn=function(t,e){return Zn(function(t,e,n){return e=Wn(void 0===e?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Wn(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),Un(t,this,s)}}(t,e,Hn),t+"")},Xn=function(t){return Jn((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(t,e,n){if(!U(n))return!1;var r=S(e);return!!("number"==r?Vt(n)&&Et(e,n.length):"string"==r&&e in n)&&z(n[e],t)}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e}))},Qn=Xn((function(t,e,n){!function t(e,n,r,i,o){e!==n&&qn(n,(function(a,s){if(o||(o=new mt),U(a))$n(e,n,s,r,t,i,o);else{var u=i?i(Vn(e,s),a,s+"",e,n,o):void 0;void 0===u&&(u=a),Fn(e,s,u)}}),Wt)}(t,e,n)})),tr=function(t,e,n){return null==t?t:function(t,e,n,r){if(!U(t))return t;for(var i=-1,o=(e=jn(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var u=Dn(e[i]),l=n;if(i!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=U(c)?c:Et(e[i+1])?[]:{})}yt(s,u,l),s=s[u]}return t}(t,e,n)},er=function(){function t(e){h(this,t),this._styles={},this._styleProcessor=e}return m(t,[{key:"setTo",value:function(t){this.clear();for(var e=0,n=Array.from(function(t){var e=null,n=0,r=0,i=null,o=new Map;if(""===t)return o;";"!=t.charAt(t.length-1)&&(t+=";");for(var a=0;a<t.length;a++){var s=t.charAt(a);if(null===e)switch(s){case":":i||(i=t.substr(n,a-n),r=a+1);break;case'"':case"'":e=s;break;case";":var u=t.substr(r,a-r);i&&o.set(i.trim(),u.trim()),i=null,n=a+1}else s===e&&(e=null)}return o}(t).entries());e<n.length;e++){var r=l(n[e],2),i=r[0],o=r[1];this._styleProcessor.toNormalizedForm(i,o,this._styles)}}},{key:"has",value:function(t){if(this.isEmpty)return!1;var e=this._styleProcessor.getReducedForm(t,this._styles).find((function(e){return l(e,1)[0]===t}));return Array.isArray(e)}},{key:"set",value:function(t,e){if(U(t))for(var n=0,r=Object.entries(t);n<r.length;n++){var i=l(r[n],2),o=i[0],a=i[1];this._styleProcessor.toNormalizedForm(o,a,this._styles)}else this._styleProcessor.toNormalizedForm(t,e,this._styles)}},{key:"remove",value:function(t){var e=rr(t);(function(t,e){null==t||Bn(t,e)})(this._styles,e),delete this._styles[t],this._cleanEmptyObjectsOnPath(e)}},{key:"getNormalized",value:function(t){return this._styleProcessor.getNormalized(t,this._styles)}},{key:"toString",value:function(){return this.isEmpty?"":this._getStylesEntries().map((function(t){return t.join(":")})).sort().join(";")+";"}},{key:"getAsString",value:function(t){if(!this.isEmpty){if(this._styles[t]&&!U(this._styles[t]))return this._styles[t];var e=this._styleProcessor.getReducedForm(t,this._styles).find((function(e){return l(e,1)[0]===t}));return Array.isArray(e)?e[1]:void 0}}},{key:"getStyleNames",value:function(){return this.isEmpty?[]:this._getStylesEntries().map((function(t){return l(t,1)[0]}))}},{key:"clear",value:function(){this._styles={}}},{key:"_getStylesEntries",value:function(){for(var t=[],e=0,n=Object.keys(this._styles);e<n.length;e++){var r=n[e];t.push.apply(t,u(this._styleProcessor.getReducedForm(r,this._styles)))}return t}},{key:"_cleanEmptyObjectsOnPath",value:function(t){var e=t.split(".");if(e.length>1){var n=e.splice(0,e.length-1).join("."),r=zn(this._styles,n);r&&!Array.from(Object.keys(r)).length&&this.remove(n)}}},{key:"isEmpty",get:function(){var t=Object.entries(this._styles);return!Array.from(t).length}},{key:"size",get:function(){return this.isEmpty?0:this.getStyleNames().length}}]),t}(),nr=function(){function t(){h(this,t),this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}return m(t,[{key:"toNormalizedForm",value:function(t,e,n){if(U(e))ir(n,rr(t),e);else if(this._normalizers.has(t)){var r=this._normalizers.get(t)(e);ir(n,r.path,r.value)}else ir(n,t,e)}},{key:"getNormalized",value:function(t,e){if(!t)return Qn({},e);if(void 0!==e[t])return e[t];if(this._extractors.has(t)){var n=this._extractors.get(t);if("string"==typeof n)return zn(e,n);var r=n(t,e);if(r)return r}return zn(e,rr(t))}},{key:"getReducedForm",value:function(t,e){var n=this.getNormalized(t,e);return void 0===n?[]:this._reducers.has(t)?this._reducers.get(t)(n):[[t,n]]}},{key:"getRelatedStyles",value:function(t){return this._consumables.get(t)||[]}},{key:"setNormalizer",value:function(t,e){this._normalizers.set(t,e)}},{key:"setExtractor",value:function(t,e){this._extractors.set(t,e)}},{key:"setReducer",value:function(t,e){this._reducers.set(t,e)}},{key:"setStyleRelation",value:function(t,e){this._mapStyleNames(t,e);var n,r=c(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._mapStyleNames(i,[t])}}catch(t){r.e(t)}finally{r.f()}}},{key:"_mapStyleNames",value:function(t,e){var n;this._consumables.has(t)||this._consumables.set(t,[]),(n=this._consumables.get(t)).push.apply(n,u(e))}}]),t}();function rr(t){return t.replace("-",".")}function ir(t,e,n){var r=n;U(n)&&(r=Qn({},zn(t,e),n)),tr(t,e,r)}var or=function(t){v(n,t);var e=g(n);function n(t,r,i,o){var a;if(h(this,n),(a=e.call(this,t)).name=r,a._attrs=function(t){var e,n=c(t=yn(t));try{for(n.s();!(e=n.n()).done;){var r=l(e.value,2),i=r[0],o=r[1];null===o?t.delete(i):"string"!=typeof o&&t.set(i,String(o))}}catch(t){n.e(t)}finally{n.f()}return t}(i),a._children=[],o&&a._insertChild(0,o),a._classes=new Set,a._attrs.has("class")){var s=a._attrs.get("class");ar(a._classes,s),a._attrs.delete("class")}return a._styles=new er(a.document.stylesProcessor),a._attrs.has("style")&&(a._styles.setTo(a._attrs.get("style")),a._attrs.delete("style")),a._customProperties=new Map,b(a)}return m(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?e===this.name&&("element"===t||"view:element"===t):"element"===t||"view:element"===t||"node"===t||"view:node"===t}},{key:"getChild",value:function(t){return this._children[t]}},{key:"getChildIndex",value:function(t){return this._children.indexOf(t)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getAttributeKeys",value:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this._classes.size>0,!t.t0){t.next=4;break}return t.next=4,"class";case 4:if(t.t1=this._styles.isEmpty,t.t1){t.next=8;break}return t.next=8,"style";case 8:return t.delegateYield(this._attrs.keys(),"t2",9);case 9:case"end":return t.stop()}}),t,this)}))},{key:"getAttributes",value:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._attrs.entries(),"t0",1);case 1:if(t.t1=this._classes.size>0,!t.t1){t.next=5;break}return t.next=5,["class",this.getAttribute("class")];case 5:if(t.t2=this._styles.isEmpty,t.t2){t.next=9;break}return t.next=9,["style",this.getAttribute("style")];case 9:case"end":return t.stop()}}),t,this)}))},{key:"getAttribute",value:function(t){if("class"==t)return this._classes.size>0?u(this._classes).join(" "):void 0;if("style"==t){var e=this._styles.toString();return""==e?void 0:e}return this._attrs.get(t)}},{key:"hasAttribute",value:function(t){return"class"==t?this._classes.size>0:"style"==t?!this._styles.isEmpty:this._attrs.has(t)}},{key:"isSimilar",value:function(t){if(!(t instanceof n))return!1;if(this===t)return!0;if(this.name!=t.name)return!1;if(this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;var e,r=c(this._attrs);try{for(r.s();!(e=r.n()).done;){var i=l(e.value,2),o=i[0],a=i[1];if(!t._attrs.has(o)||t._attrs.get(o)!==a)return!1}}catch(t){r.e(t)}finally{r.f()}var s,u=c(this._classes);try{for(u.s();!(s=u.n()).done;){var f=s.value;if(!t._classes.has(f))return!1}}catch(t){u.e(t)}finally{u.f()}var d,h=c(this._styles.getStyleNames());try{for(h.s();!(d=h.n()).done;){var p=d.value;if(!t._styles.has(p)||t._styles.getAsString(p)!==this._styles.getAsString(p))return!1}}catch(t){h.e(t)}finally{h.f()}return!0}},{key:"hasClass",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];if(!this._classes.has(o))return!1}return!0}},{key:"getClassNames",value:function(){return this._classes.keys()}},{key:"getStyle",value:function(t){return this._styles.getAsString(t)}},{key:"getNormalizedStyle",value:function(t){return this._styles.getNormalized(t)}},{key:"getStyleNames",value:function(){return this._styles.getStyleNames()}},{key:"hasStyle",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];if(!this._styles.has(o))return!1}return!0}},{key:"findAncestor",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=_(wn,e),i=this.parent;i;){if(r.match(i))return i;i=i.parent}return null}},{key:"getCustomProperty",value:function(t){return this._customProperties.get(t)}},{key:"getCustomProperties",value:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._customProperties.entries(),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"getIdentity",value:function(){var t=Array.from(this._classes).sort().join(","),e=this._styles.toString(),n=Array.from(this._attrs).map((function(t){return"".concat(t[0],'="').concat(t[1],'"')})).sort().join(" ");return this.name+(""==t?"":' class="'.concat(t,'"'))+(e?' style="'.concat(e,'"'):"")+(""==n?"":" "+n)}},{key:"_clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];if(t){var n,r=c(this.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;e.push(i._clone(t))}}catch(t){r.e(t)}finally{r.f()}}var o=new this.constructor(this.document,this.name,this._attrs,e);return o._classes=new Set(this._classes),o._styles.set(this._styles.getNormalized()),o._customProperties=new Map(this._customProperties),o.getFillerOffset=this.getFillerOffset,o}},{key:"_appendChild",value:function(t){return this._insertChild(this.childCount,t)}},{key:"_insertChild",value:function(t,e){this._fireChange("children",this);var n,r=0,i=c(function(t,e){return"string"==typeof e?[new gn(t,e)]:(on(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new gn(t,e):e instanceof bn?new gn(t,e.data):e})))}(this.document,e));try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this,o.document=this.document,this._children.splice(t,0,o),t++,r++}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"_removeChildren",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}},{key:"_setAttribute",value:function(t,e){e=String(e),this._fireChange("attributes",this),"class"==t?ar(this._classes,e):"style"==t?this._styles.setTo(e):this._attrs.set(t,e)}},{key:"_removeAttribute",value:function(t){return this._fireChange("attributes",this),"class"==t?this._classes.size>0&&(this._classes.clear(),!0):"style"==t?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(t)}},{key:"_addClass",value:function(t){var e=this;this._fireChange("attributes",this),(t=Array.isArray(t)?t:[t]).forEach((function(t){return e._classes.add(t)}))}},{key:"_removeClass",value:function(t){var e=this;this._fireChange("attributes",this),(t=Array.isArray(t)?t:[t]).forEach((function(t){return e._classes.delete(t)}))}},{key:"_setStyle",value:function(t,e){this._fireChange("attributes",this),this._styles.set(t,e)}},{key:"_removeStyle",value:function(t){var e=this;this._fireChange("attributes",this),(t=Array.isArray(t)?t:[t]).forEach((function(t){return e._styles.remove(t)}))}},{key:"_setCustomProperty",value:function(t,e){this._customProperties.set(t,e)}},{key:"_removeCustomProperty",value:function(t){return this._customProperties.delete(t)}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this._children.length}}]),n}(vn);function ar(t,e){var n=e.split(/\s+/);t.clear(),n.forEach((function(e){return t.add(e)}))}var sr=function(t){v(n,t);var e=g(n);function n(t,r,i,o){var a;return h(this,n),(a=e.call(this,t,r,i,o)).getFillerOffset=ur,a}return m(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?e===this.name&&("containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}}]),n}(or);function ur(){var t=u(this.getChildren()),e=t[this.childCount-1];if(e&&e.is("element","br"))return this.childCount;var n,r=c(t);try{for(r.s();!(n=r.n()).done;){if(!n.value.is("uiElement"))return null}}catch(t){r.e(t)}finally{r.f()}return this.childCount}var lr=Xn((function(t,e){wt(e,Wt(e),t)})),cr=Symbol("observableProperties"),fr=Symbol("boundObservables"),dr=Symbol("boundProperties"),hr={set:function(t,e){var n=this;if(U(t))Object.keys(t).forEach((function(e){n.set(e,t[e])}),this);else{mr(this);var r=this[cr];if(t in this&&!r.has(t))throw new Ye.b("observable-set-cannot-override: Cannot override an existing property.",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:function(){return r.get(t)},set:function(e){var n=r.get(t),i=this.fire("set:"+t,t,e,n);void 0===i&&(i=e),n===i&&r.has(t)||(r.set(t,i),this.fire("change:"+t,t,i,n))}}),this[t]=e}},bind:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!n.length||!br(n))throw new Ye.b("observable-bind-wrong-properties: All properties must be strings.",this);if(new Set(n).size!==n.length)throw new Ye.b("observable-bind-duplicate-properties: Properties must be unique.",this);mr(this);var i=this[dr];n.forEach((function(e){if(i.has(e))throw new Ye.b("observable-bind-rebind: Cannot bind the same property more than once.",t)}));var o=new Map;return n.forEach((function(t){var e={property:t,to:[]};i.set(t,e),o.set(t,e)})),{to:vr,toMany:gr,_observable:this,_bindProperties:n,_to:[],_bindings:o}},unbind:function(){var t=this;if(this[cr]){for(var e=this[dr],n=this[fr],r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];if(i.length){if(!br(i))throw new Ye.b("observable-unbind-wrong-properties: Properties must be strings.",this);i.forEach((function(r){var i,o,a,s,u=e.get(r);u&&(u.to.forEach((function(e){i=e[0],o=e[1],a=n.get(i),(s=a[o]).delete(u),s.size||delete a[o],Object.keys(a).length||(n.delete(i),t.stopListening(i,"change"))})),e.delete(r))}))}else n.forEach((function(e,n){t.stopListening(n,"change")})),n.clear(),e.clear()}},decorate:function(t){var e=this,n=this[t];if(!n)throw new Ye.b("observablemixin-cannot-decorate-undefined: Cannot decorate an undefined method.",this,{object:this,methodName:t});this.on(t,(function(t,r){t.return=n.apply(e,r)})),this[t]=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return this.fire(t,n)}}};lr(hr,Je);var pr=hr;function mr(t){t[cr]||(Object.defineProperty(t,cr,{value:new Map}),Object.defineProperty(t,fr,{value:new Map}),Object.defineProperty(t,dr,{value:new Map}))}function vr(){var t,e=this,n=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new Ye.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);var r,i={to:[]};return"function"==typeof e[e.length-1]&&(i.callback=e.pop()),e.forEach((function(t){if("string"==typeof t)r.properties.push(t);else{if("object"!=S(t))throw new Ye.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);r={observable:t,properties:[]},i.to.push(r)}})),i}.apply(void 0,arguments),r=Array.from(this._bindings.keys()),i=r.length;if(!n.callback&&n.to.length>1)throw new Ye.b("observable-bind-to-no-callback: Binding multiple observables only possible with callback.",this);if(i>1&&n.callback)throw new Ye.b("observable-bind-to-extra-callback: Cannot bind multiple properties and use a callback in one binding.",this);n.to.forEach((function(t){if(t.properties.length&&t.properties.length!==i)throw new Ye.b("observable-bind-to-properties-length: The number of properties must match.",e);t.properties.length||(t.properties=e._bindProperties)})),this._to=n.to,n.callback&&(this._bindings.get(r[0]).callback=n.callback),t=this._observable,this._to.forEach((function(e){var n,r=t[fr];r.get(e.observable)||t.listenTo(e.observable,"change",(function(i,o){(n=r.get(e.observable)[o])&&n.forEach((function(e){yr(t,e.property)}))}))})),function(t){var e;t._bindings.forEach((function(n,r){t._to.forEach((function(i){e=i.properties[n.callback?0:t._bindProperties.indexOf(r)],n.to.push([i.observable,e]),function(t,e,n,r){var i=t[fr],o=i.get(n),a=o||{};a[r]||(a[r]=new Set),a[r].add(e),o||i.set(n,a)}(t._observable,n,i.observable,e)}))}))}(this),this._bindProperties.forEach((function(t){yr(e._observable,t)}))}function gr(t,e,n){if(this._bindings.size>1)throw new Ye.b("observable-bind-to-many-not-one-binding: Cannot bind multiple properties with toMany().",this);this.to.apply(this,u(function(t,e){var n=t.map((function(t){return[t,e]}));return Array.prototype.concat.apply([],n)}(t,e)).concat([n]))}function br(t){return t.every((function(t){return"string"==typeof t}))}function yr(t,e){var n,r=t[dr].get(e);r.callback?n=r.callback.apply(t,r.to.map((function(t){return t[0][t[1]]}))):n=(n=r.to[0])[0][n[1]],Object.prototype.hasOwnProperty.call(t,e)?t[e]=n:t.set(e,n)}var wr=function(t){v(n,t);var e=g(n);function n(t,r,i,o){var a;return h(this,n),(a=e.call(this,t,r,i,o)).set("isReadOnly",!1),a.set("isFocused",!1),a.bind("isReadOnly").to(t),a.bind("isFocused").to(t,"isFocused",(function(e){return e&&t.selection.editableElement==y(a)})),a.listenTo(t.selection,"change",(function(){a.isFocused=t.isFocused&&t.selection.editableElement==y(a)})),a}return m(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?e===this.name&&("editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}},{key:"destroy",value:function(){this.stopListening()}}]),n}(sr);an(wr,pr);var _r=Symbol("rootName"),kr=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),(i=e.call(this,t,r)).rootName="main",i}return m(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?e===this.name&&("rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}},{key:"rootName",get:function(){return this.getCustomProperty(_r)},set:function(t){this._setCustomProperty(_r,t)}},{key:"_name",set:function(t){this.name=t}}]),n}(wr),Mr=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(h(this,t),!e.boundaries&&!e.startPosition)throw new Ye.b("view-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);if(e.direction&&"forward"!=e.direction&&"backward"!=e.direction)throw new Ye.b("view-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this.position=xr._createAt(e.startPosition):this.position=xr._createAt(e.boundaries["backward"==e.direction?"end":"start"]),this.direction=e.direction||"forward",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}return m(t,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(t){var e,n,r;do{var i;r=this.position,e=(i=this.next()).done,n=i.value}while(!e&&t(n));e||(this.position=r)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var t,e=this.position.clone(),n=this.position,r=e.parent;if(null===r.parent&&e.offset===r.childCount)return{done:!0};if(r===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0};if(r instanceof gn){if(e.isAtEnd)return this.position=xr._createAfter(r),this._next();t=r.data[e.offset]}else t=r.getChild(e.offset);if(t instanceof or)return this.shallow?e.offset++:e=new xr(t,0),this.position=e,this._formatReturnValue("elementStart",t,n,e,1);if(t instanceof gn){if(this.singleCharacters)return e=new xr(t,0),this.position=e,this._next();var i,o=t.data.length;return t==this._boundaryEndParent?(o=this.boundaries.end.offset,i=new bn(t,0,o),e=xr._createAfter(i)):(i=new bn(t,0,t.data.length),e.offset++),this.position=e,this._formatReturnValue("text",i,n,e,o)}if("string"==typeof t){var a;a=this.singleCharacters?1:(r===this._boundaryEndParent?this.boundaries.end.offset:r.data.length)-e.offset;var s=new bn(r,e.offset,a);return e.offset+=a,this.position=e,this._formatReturnValue("text",s,n,e,a)}return e=xr._createAfter(r),this.position=e,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",r,n,e)}},{key:"_previous",value:function(){var t,e=this.position.clone(),n=this.position,r=e.parent;if(null===r.parent&&0===e.offset)return{done:!0};if(r==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0};if(r instanceof gn){if(e.isAtStart)return this.position=xr._createBefore(r),this._previous();t=r.data[e.offset-1]}else t=r.getChild(e.offset-1);if(t instanceof or)return this.shallow?(e.offset--,this.position=e,this._formatReturnValue("elementStart",t,n,e,1)):(e=new xr(t,t.childCount),this.position=e,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",t,n,e));if(t instanceof gn){if(this.singleCharacters)return e=new xr(t,t.data.length),this.position=e,this._previous();var i,o=t.data.length;if(t==this._boundaryStartParent){var a=this.boundaries.start.offset;o=(i=new bn(t,a,t.data.length-a)).data.length,e=xr._createBefore(i)}else i=new bn(t,0,t.data.length),e.offset--;return this.position=e,this._formatReturnValue("text",i,n,e,o)}if("string"==typeof t){var s;if(this.singleCharacters)s=1;else{var u=r===this._boundaryStartParent?this.boundaries.start.offset:0;s=e.offset-u}e.offset-=s;var l=new bn(r,e.offset,s);return this.position=e,this._formatReturnValue("text",l,n,e,s)}return e=xr._createBefore(r),this.position=e,this._formatReturnValue("elementStart",r,n,e,1)}},{key:"_formatReturnValue",value:function(t,e,n,r,i){return e instanceof bn&&(e.offsetInText+e.data.length==e.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=xr._createAfter(e.textNode):(r=xr._createAfter(e.textNode),this.position=r)),0===e.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=xr._createBefore(e.textNode):(r=xr._createBefore(e.textNode),this.position=r))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:r,length:i}}}}]),t}(),xr=function(){function t(e,n){h(this,t),this.parent=e,this.offset=n}return m(t,[{key:"getShiftedBy",value:function(e){var n=t._createAt(this),r=n.offset+e;return n.offset=r<0?0:r,n}},{key:"getLastMatchingPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.startPosition=this;var n=new Mr(e);return n.skip(t),n.position}},{key:"getAncestors",value:function(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}},{key:"getCommonAncestor",value:function(t){for(var e=this.getAncestors(),n=t.getAncestors(),r=0;e[r]==n[r]&&e[r];)r++;return 0===r?null:e[r-1]}},{key:"is",value:function(t){return"position"===t||"view:position"===t}},{key:"isEqual",value:function(t){return this.parent==t.parent&&this.offset==t.offset}},{key:"isBefore",value:function(t){return"before"==this.compareWith(t)}},{key:"isAfter",value:function(t){return"after"==this.compareWith(t)}},{key:"compareWith",value:function(t){if(this.root!==t.root)return"different";if(this.isEqual(t))return"same";var e=this.parent.is("node")?this.parent.getPath():[],n=t.parent.is("node")?t.parent.getPath():[];e.push(this.offset),n.push(t.offset);var r=pn(e,n);switch(r){case"prefix":return"before";case"extension":return"after";default:return e[r]<n[r]?"before":"after"}}},{key:"getWalker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.startPosition=this,new Mr(t)}},{key:"clone",value:function(){return new t(this.parent,this.offset)}},{key:"nodeAfter",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}},{key:"nodeBefore",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){var t=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===t}},{key:"root",get:function(){return this.parent.root}},{key:"editableElement",get:function(){for(var t=this.parent;!(t instanceof wr);){if(!t.parent)return null;t=t.parent}return t}}],[{key:"_createAt",value:function(e,n){if(e instanceof t)return new this(e.parent,e.offset);var r=e;if("end"==n)n=r.is("$text")?r.data.length:r.childCount;else{if("before"==n)return this._createBefore(r);if("after"==n)return this._createAfter(r);if(0!==n&&!n)throw new Ye.b("view-createPositionAt-offset-required: View#createPositionAt() requires the offset when the first parameter is a view item.",r)}return new t(r,n)}},{key:"_createAfter",value:function(e){if(e.is("$textProxy"))return new t(e.textNode,e.offsetInText+e.data.length);if(!e.parent)throw new Ye.b("view-position-after-root: You can not make position after root.",e,{root:e});return new t(e.parent,e.index+1)}},{key:"_createBefore",value:function(e){if(e.is("$textProxy"))return new t(e.textNode,e.offsetInText);if(!e.parent)throw new Ye.b("view-position-before-root: You can not make position before root.",e,{root:e});return new t(e.parent,e.index)}}]),t}(),Sr=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;h(this,t),this.start=e.clone(),this.end=n?n.clone():e.clone()}return m(t,[{key:Symbol.iterator,value:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(new Mr({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"getEnlarged",value:function(){var e=this.start.getLastMatchingPosition(Cr,{direction:"backward"}),n=this.end.getLastMatchingPosition(Cr);return e.parent.is("$text")&&e.isAtStart&&(e=xr._createBefore(e.parent)),n.parent.is("$text")&&n.isAtEnd&&(n=xr._createAfter(n.parent)),new t(e,n)}},{key:"getTrimmed",value:function(){var e=this.start.getLastMatchingPosition(Cr);if(e.isAfter(this.end)||e.isEqual(this.end))return new t(e,e);var n=this.end.getLastMatchingPosition(Cr,{direction:"backward"}),r=e.nodeAfter,i=n.nodeBefore;return r&&r.is("$text")&&(e=new xr(r,0)),i&&i.is("$text")&&(n=new xr(i,i.data.length)),new t(e,n)}},{key:"isEqual",value:function(t){return this==t||this.start.isEqual(t.start)&&this.end.isEqual(t.end)}},{key:"containsPosition",value:function(t){return t.isAfter(this.start)&&t.isBefore(this.end)}},{key:"containsRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.isCollapsed&&(e=!1);var n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),r=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&r}},{key:"getDifference",value:function(e){var n=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&n.push(new t(this.start,e.start)),this.containsPosition(e.end)&&n.push(new t(e.end,this.end))):n.push(this.clone()),n}},{key:"getIntersection",value:function(e){if(this.isIntersecting(e)){var n=this.start,r=this.end;return this.containsPosition(e.start)&&(n=e.start),this.containsPosition(e.end)&&(r=e.end),new t(n,r)}return null}},{key:"getWalker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.boundaries=this,new Mr(t)}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var t=this.start.nodeAfter,e=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(t=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(e=this.end.parent.previousSibling),t&&t.is("element")&&t===e?t:null}},{key:"clone",value:function(){return new t(this.start,this.end)}},{key:"getItems",value:o.a.mark((function t(){var e,n,r,i,a,s=arguments;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(e=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,e.ignoreElementEnd=!0,n=new Mr(e),r=c(n),t.prev=4,r.s();case 6:if((i=r.n()).done){t.next=12;break}return a=i.value,t.next=10,a.item;case 10:t.next=6;break;case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),r.e(t.t0);case 17:return t.prev=17,r.f(),t.finish(17);case 20:case"end":return t.stop()}}),t,this,[[4,14,17,20]])}))},{key:"getPositions",value:o.a.mark((function t(){var e,n,r,i,a,s=arguments;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,n=new Mr(e),t.next=5,n.position;case 5:r=c(n),t.prev=6,r.s();case 8:if((i=r.n()).done){t.next=14;break}return a=i.value,t.next=12,a.nextPosition;case 12:t.next=8;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(6),r.e(t.t0);case 19:return t.prev=19,r.f(),t.finish(19);case 22:case"end":return t.stop()}}),t,this,[[6,16,19,22]])}))},{key:"is",value:function(t){return"range"===t||"view:range"===t}},{key:"isIntersecting",value:function(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return this.start.parent===this.end.parent}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromParentsAndOffsets",value:function(t,e,n,r){return new this(new xr(t,e),new xr(n,r))}},{key:"_createFromPositionAndShift",value:function(t,e){var n=t,r=t.getShiftedBy(e);return e>0?new this(n,r):new this(r,n)}},{key:"_createIn",value:function(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}},{key:"_createOn",value:function(t){var e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(xr._createBefore(t),e)}}]),t}();function Cr(t){return!(!t.item.is("attributeElement")&&!t.item.is("uiElement"))}function Ar(t){var e,n=0,r=c(t);try{for(r.s();!(e=r.n()).done;){e.value;n++}}catch(t){r.e(t)}finally{r.f()}return n}var Tr=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;h(this,t),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(e,n,r)}return m(t,[{key:"getRanges",value:o.a.mark((function t(){var e,n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=c(this._ranges),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return r=n.value,t.next=7,r.clone();case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var t,e=null,n=c(this._ranges);try{for(n.s();!(t=n.n()).done;){var r=t.value;e&&!r.start.isBefore(e.start)||(e=r)}}catch(t){n.e(t)}finally{n.f()}return e?e.clone():null}},{key:"getLastRange",value:function(){var t,e=null,n=c(this._ranges);try{for(n.s();!(t=n.n()).done;){var r=t.value;e&&!r.end.isAfter(e.end)||(e=r)}}catch(t){n.e(t)}finally{n.f()}return e?e.clone():null}},{key:"getFirstPosition",value:function(){var t=this.getFirstRange();return t?t.start.clone():null}},{key:"getLastPosition",value:function(){var t=this.getLastRange();return t?t.end.clone():null}},{key:"isEqual",value:function(t){if(this.isFake!=t.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=t.fakeSelectionLabel)return!1;if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;var e,n=c(this._ranges);try{for(n.s();!(e=n.n()).done;){var r,i=e.value,o=!1,a=c(t._ranges);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(i.isEqual(s)){o=!0;break}}}catch(t){a.e(t)}finally{a.f()}if(!o)return!1}}catch(t){n.e(t)}finally{n.f()}return!0}},{key:"isSimilar",value:function(t){if(this.isBackward!=t.isBackward)return!1;var e=Ar(this.getRanges());if(e!=Ar(t.getRanges()))return!1;if(0==e)return!0;var n,r=c(this.getRanges());try{for(r.s();!(n=r.n()).done;){var i=n.value;i=i.getTrimmed();var o,a=!1,s=c(t.getRanges());try{for(s.s();!(o=s.n()).done;){var u=o.value;if(u=u.getTrimmed(),i.start.isEqual(u.start)&&i.end.isEqual(u.end)){a=!0;break}}}catch(t){s.e(t)}finally{s.f()}if(!a)return!1}}catch(t){r.e(t)}finally{r.f()}return!0}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"setTo",value:function(e,n,r){if(null===e)this._setRanges([]),this._setFakeOptions(n);else if(e instanceof t||e instanceof Er)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof Sr)this._setRanges([e],n&&n.backward),this._setFakeOptions(n);else if(e instanceof xr)this._setRanges([new Sr(e)]),this._setFakeOptions(n);else if(e instanceof vn){var i,o=!!r&&!!r.backward;if(void 0===n)throw new Ye.b("view-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",this);i="in"==n?Sr._createIn(e):"on"==n?Sr._createOn(e):new Sr(xr._createAt(e,n)),this._setRanges([i],o),this._setFakeOptions(r)}else{if(!on(e))throw new Ye.b("view-selection-setTo-not-selectable: Cannot set selection to given place.",this);this._setRanges(e,n&&n.backward),this._setFakeOptions(n)}this.fire("change")}},{key:"setFocus",value:function(t,e){if(null===this.anchor)throw new Ye.b("view-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",this);var n=xr._createAt(t,e);if("same"!=n.compareWith(this.focus)){var r=this.anchor;this._ranges.pop(),"before"==n.compareWith(r)?this._addRange(new Sr(n,r),!0):this._addRange(new Sr(r,n)),this.fire("change")}}},{key:"is",value:function(t){return"selection"===t||"view:selection"===t}},{key:"_setRanges",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=Array.from(t),this._ranges=[];var n,r=c(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._addRange(i)}}catch(t){r.e(t)}finally{r.f()}this._lastRangeBackward=!!e}},{key:"_setFakeOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}},{key:"_addRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(t instanceof Sr))throw new Ye.b("view-selection-add-range-not-range: Selection range set to an object that is not an instance of view.Range",this);this._pushRange(t),this._lastRangeBackward=!!e}},{key:"_pushRange",value:function(t){var e,n=c(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(t.isIntersecting(r))throw new Ye.b("view-selection-range-intersects: Trying to add a range that intersects with another range from selection.",this,{addedRange:t,intersectingRange:r})}}catch(t){n.e(t)}finally{n.f()}this._ranges.push(new Sr(t.start,t.end))}},{key:"isFake",get:function(){return this._isFake}},{key:"fakeSelectionLabel",get:function(){return this._fakeSelectionLabel}},{key:"anchor",get:function(){if(!this._ranges.length)return null;var t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone()}},{key:"focus",get:function(){if(!this._ranges.length)return null;var t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.start:t.end).clone()}},{key:"isCollapsed",get:function(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"editableElement",get:function(){return this.anchor?this.anchor.editableElement:null}}]),t}();an(Tr,Je);var Er=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;h(this,t),this._selection=new Tr,this._selection.delegate("change").to(this),this._selection.setTo(e,n,r)}return m(t,[{key:"getRanges",value:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._selection.getRanges(),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"isEqual",value:function(t){return this._selection.isEqual(t)}},{key:"isSimilar",value:function(t){return this._selection.isSimilar(t)}},{key:"is",value:function(t){return"selection"===t||"documentSelection"==t||"view:selection"==t||"view:documentSelection"==t}},{key:"_setTo",value:function(t,e,n){this._selection.setTo(t,e,n)}},{key:"_setFocus",value:function(t,e){this._selection.setFocus(t,e)}},{key:"isFake",get:function(){return this._selection.isFake}},{key:"fakeSelectionLabel",get:function(){return this._selection.fakeSelectionLabel}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"editableElement",get:function(){return this._selection.editableElement}},{key:"_ranges",get:function(){return this._selection._ranges}}]),t}();an(Er,Je);var Or=function(){function t(e){h(this,t),this.selection=new Er,this.roots=new sn({idProperty:"rootName"}),this.stylesProcessor=e,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}return m(t,[{key:"getRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(t)}},{key:"registerPostFixer",value:function(t){this._postFixers.add(t)}},{key:"destroy",value:function(){this.roots.map((function(t){return t.destroy()})),this.stopListening()}},{key:"_callPostFixers",value:function(t){var e=!1;do{var n,r=c(this._postFixers);try{for(r.s();!(n=r.n()).done;){if(e=(0,n.value)(t))break}}catch(t){r.e(t)}finally{r.f()}}while(e)}}]),t}();an(Or,pr);var Pr=function(t){v(n,t);var e=g(n);function n(t,r,i,o){var a;return h(this,n),(a=e.call(this,t,r,i,o)).getFillerOffset=Ir,a._priority=10,a._id=null,a._clonesGroup=null,a}return m(n,[{key:"getElementsWithSameId",value:function(){if(null===this.id)throw new Ye.b("attribute-element-get-elements-with-same-id-no-id: Cannot get elements with the same id for an attribute element without id.",this);return new Set(this._clonesGroup)}},{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?e===this.name&&("attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t):"attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}},{key:"isSimilar",value:function(t){return null!==this.id||null!==t.id?this.id===t.id:s(x(n.prototype),"isSimilar",this).call(this,t)&&this.priority==t.priority}},{key:"_clone",value:function(t){var e=s(x(n.prototype),"_clone",this).call(this,t);return e._priority=this._priority,e._id=this._id,e}},{key:"priority",get:function(){return this._priority}},{key:"id",get:function(){return this._id}}]),n}(or);function Ir(){if(Rr(this))return null;for(var t=this.parent;t&&t.is("attributeElement");){if(Rr(t)>1)return null;t=t.parent}return!t||Rr(t)>1?null:this.childCount}function Rr(t){return Array.from(t.getChildren()).filter((function(t){return!t.is("uiElement")})).length}Pr.DEFAULT_PRIORITY=10;var jr=function(t){v(n,t);var e=g(n);function n(t,r,i,o){var a;return h(this,n),(a=e.call(this,t,r,i,o)).getFillerOffset=Dr,a}return m(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?e===this.name&&("emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t):"emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}},{key:"_insertChild",value:function(t,e){if(e&&(e instanceof vn||Array.from(e).length>0))throw new Ye.b("view-emptyelement-cannot-add: Cannot add child nodes to EmptyElement instance.",[this,e])}}]),n}(or);function Dr(){return null}var Nr=navigator.userAgent.toLowerCase(),Lr=function(t){return t.indexOf("macintosh")>-1}(Nr),Br=function(t){return!!t.match(/gecko\/\d+/)}(Nr),zr=function(t){return t.indexOf(" applewebkit/")>-1&&-1===t.indexOf("chrome")}(Nr),Fr=function(t){return t.indexOf("android")>-1}(Nr),qr={isRegExpUnicodePropertySupported:function(){var t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}return t}()},Vr={"⌘":"ctrl","⇧":"shift","⌥":"alt"},$r={ctrl:"⌘",shift:"⇧",alt:"⌥"},Hr=function(){for(var t={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448},e=65;e<=90;e++){t[String.fromCharCode(e).toLowerCase()]=e}for(var n=48;n<=57;n++)t[n-48]=n;for(var r=112;r<=123;r++)t["f"+(r-111)]=r;return t}();function Ur(t){var e;if("string"==typeof t){if(!(e=Hr[t.toLowerCase()]))throw new Ye.b("keyboard-unknown-key: Unknown key name.",null,{key:t})}else e=t.keyCode+(t.altKey?Hr.alt:0)+(t.ctrlKey?Hr.ctrl:0)+(t.shiftKey?Hr.shift:0);return e}function Wr(t){return"string"==typeof t&&(t=Jr(t)),t.map((function(t){return"string"==typeof t?Ur(t):t})).reduce((function(t,e){return e+t}),0)}function Kr(t){return Lr?Jr(t).map((function(t){return $r[t.toLowerCase()]||t})).reduce((function(t,e){return t.slice(-1)in Vr?t+e:t+"+"+e})):t}function Yr(t){return t==Hr.arrowright||t==Hr.arrowleft||t==Hr.arrowup||t==Hr.arrowdown}function Gr(t,e){var n="ltr"===e;switch(t){case Hr.arrowleft:return n?"left":"right";case Hr.arrowright:return n?"right":"left";case Hr.arrowup:return"up";case Hr.arrowdown:return"down"}}function Zr(t,e){var n=Gr(t,e);return"down"===n||"right"===n}function Jr(t){return t.split(/\s*\+\s*/)}var Xr=function(t){v(n,t);var e=g(n);function n(t,r,i,o){var a;return h(this,n),(a=e.call(this,t,r,i,o)).getFillerOffset=Qr,a}return m(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?e===this.name&&("uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t):"uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t}},{key:"_insertChild",value:function(t,e){if(e&&(e instanceof vn||Array.from(e).length>0))throw new Ye.b("view-uielement-cannot-add: Cannot add child nodes to UIElement instance.",this)}},{key:"render",value:function(t){return this.toDomElement(t)}},{key:"toDomElement",value:function(t){var e,n=t.createElement(this.name),r=c(this.getAttributeKeys());try{for(r.s();!(e=r.n()).done;){var i=e.value;n.setAttribute(i,this.getAttribute(i))}}catch(t){r.e(t)}finally{r.f()}return n}}]),n}(or);function Qr(){return null}var ti=function(t){v(n,t);var e=g(n);function n(t,r,i,o){var a;return h(this,n),(a=e.call(this,t,r,i,o)).getFillerOffset=ei,a}return m(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?e===this.name&&("rawElement"===t||"view:rawElement"===t||"element"===t||"view:element"===t):"rawElement"===t||"view:rawElement"===t||t===this.name||t==="view:"+this.name||"element"===t||"view:element"===t||"node"===t||"view:node"===t}},{key:"_insertChild",value:function(t,e){if(e&&(e instanceof vn||Array.from(e).length>0))throw new Ye.b("view-rawelement-cannot-add: Cannot add child nodes to a RawElement instance.",[this,e])}}]),n}(or);function ei(){return null}var ni=function(){function t(e,n){h(this,t),this.document=e,this._children=[],n&&this._insertChild(0,n)}return m(t,[{key:Symbol.iterator,value:function(){return this._children[Symbol.iterator]()}},{key:"is",value:function(t){return"documentFragment"===t||"view:documentFragment"===t}},{key:"_appendChild",value:function(t){return this._insertChild(this.childCount,t)}},{key:"getChild",value:function(t){return this._children[t]}},{key:"getChildIndex",value:function(t){return this._children.indexOf(t)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"_insertChild",value:function(t,e){this._fireChange("children",this);var n,r=0,i=c(function(t,e){return"string"==typeof e?[new gn(t,e)]:(on(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new gn(t,e):e instanceof bn?new gn(t,e.data):e})))}(this.document,e));try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this,this._children.splice(t,0,o),t++,r++}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"_removeChildren",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}},{key:"_fireChange",value:function(t,e){this.fire("change:"+t,e)}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}}]),t}();an(ni,Je);var ri=function(){function t(e){h(this,t),this.document=e,this._cloneGroups=new Map}return m(t,[{key:"setSelection",value:function(t,e,n){this.document.selection._setTo(t,e,n)}},{key:"setSelectionFocus",value:function(t,e){this.document.selection._setFocus(t,e)}},{key:"createText",value:function(t){return new gn(this.document,t)}},{key:"createAttributeElement",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Pr(this.document,t,e);return n.priority&&(r._priority=n.priority),n.id&&(r._id=n.id),r}},{key:"createContainerElement",value:function(t,e){return new sr(this.document,t,e)}},{key:"createEditableElement",value:function(t,e){var n=new wr(this.document,t,e);return n._document=this.document,n}},{key:"createEmptyElement",value:function(t,e){return new jr(this.document,t,e)}},{key:"createUIElement",value:function(t,e,n){var r=new Xr(this.document,t,e);return n&&(r.render=n),r}},{key:"createRawElement",value:function(t,e,n){var r=new ti(this.document,t,e);return r.render=n||function(){},r}},{key:"setAttribute",value:function(t,e,n){n._setAttribute(t,e)}},{key:"removeAttribute",value:function(t,e){e._removeAttribute(t)}},{key:"addClass",value:function(t,e){e._addClass(t)}},{key:"removeClass",value:function(t,e){e._removeClass(t)}},{key:"setStyle",value:function(t,e,n){B(t)&&void 0===n&&(n=e),n._setStyle(t,e)}},{key:"removeStyle",value:function(t,e){e._removeStyle(t)}},{key:"setCustomProperty",value:function(t,e,n){n._setCustomProperty(t,e)}},{key:"removeCustomProperty",value:function(t,e){return e._removeCustomProperty(t)}},{key:"breakAttributes",value:function(t){return t instanceof xr?this._breakAttributes(t):this._breakAttributesRange(t)}},{key:"breakContainer",value:function(t){var e=t.parent;if(!e.is("containerElement"))throw new Ye.b("view-writer-break-non-container-element: Trying to break an element which is not a container element.",this.document);if(!e.parent)throw new Ye.b("view-writer-break-root: Trying to break root element.",this.document);if(t.isAtStart)return xr._createBefore(e);if(!t.isAtEnd){var n=e._clone(!1);this.insert(xr._createAfter(e),n);var r=new Sr(t,xr._createAt(e,"end")),i=new xr(n,0);this.move(r,i)}return xr._createAfter(e)}},{key:"mergeAttributes",value:function(t){var e=t.offset,n=t.parent;if(n.is("$text"))return t;if(n.is("attributeElement")&&0===n.childCount){var r=n.parent,i=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new xr(r,i))}var o=n.getChild(e-1),a=n.getChild(e);if(!o||!a)return t;if(o.is("$text")&&a.is("$text"))return ui(o,a);if(o.is("attributeElement")&&a.is("attributeElement")&&o.isSimilar(a)){var s=o.childCount;return o._appendChild(a.getChildren()),a._remove(),this._removeFromClonedElementsGroup(a),this.mergeAttributes(new xr(o,s))}return t}},{key:"mergeContainers",value:function(t){var e=t.nodeBefore,n=t.nodeAfter;if(!(e&&n&&e.is("containerElement")&&n.is("containerElement")))throw new Ye.b("view-writer-merge-containers-invalid-position: Element before and after given position cannot be merged.",this.document);var r=e.getChild(e.childCount-1),i=r instanceof gn?xr._createAt(r,"end"):xr._createAt(e,"end");return this.move(Sr._createIn(n),xr._createAt(e,"end")),this.remove(Sr._createOn(n)),i}},{key:"insert",value:function(t,e){!function t(e,n){var r,i=c(e);try{var o=function(){var e=r.value;if(!li.some((function(t){return e instanceof t})))throw new Ye.b("view-writer-insert-invalid-node-type: One of the nodes to be inserted is of invalid type.",n);e.is("$text")||t(e.getChildren(),n)};for(i.s();!(r=i.n()).done;)o()}catch(t){i.e(t)}finally{i.f()}}(e=on(e)?u(e):[e],this.document);var n=ii(t);if(!n)throw new Ye.b("view-writer-invalid-position-container: Position's parent container cannot be found.",this.document);var r,i=this._breakAttributes(t,!0),o=n._insertChild(i.offset,e),a=c(e);try{for(a.s();!(r=a.n()).done;){var s=r.value;this._addToClonedElementsGroup(s)}}catch(t){a.e(t)}finally{a.f()}var l=i.getShiftedBy(o),f=this.mergeAttributes(i);if(0===o)return new Sr(f,f);f.isEqual(i)||l.offset--;var d=this.mergeAttributes(l);return new Sr(f,d)}},{key:"remove",value:function(t){var e=t instanceof Sr?t:Sr._createOn(t);if(fi(e,this.document),e.isCollapsed)return new ni(this.document);var n,r=this._breakAttributesRange(e,!0),i=r.start,o=r.end,a=i.parent,s=o.offset-i.offset,u=a._removeChildren(i.offset,s),l=c(u);try{for(l.s();!(n=l.n()).done;){var f=n.value;this._removeFromClonedElementsGroup(f)}}catch(t){l.e(t)}finally{l.f()}var d=this.mergeAttributes(i);return e.start=d,e.end=d.clone(),new ni(this.document,u)}},{key:"clear",value:function(t,e){fi(t,this.document);var n,r=c(t.getWalker({direction:"backward",ignoreElementEnd:!0}));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.item,a=void 0;if(o.is("element")&&e.isSimilar(o))a=Sr._createOn(o);else if(!i.nextPosition.isAfter(t.start)&&o.is("$textProxy")){var s=o.getAncestors().find((function(t){return t.is("element")&&e.isSimilar(t)}));s&&(a=Sr._createIn(s))}a&&(a.end.isAfter(t.end)&&(a.end=t.end),a.start.isBefore(t.start)&&(a.start=t.start),this.remove(a))}}catch(t){r.e(t)}finally{r.f()}}},{key:"move",value:function(t,e){var n;if(e.isAfter(t.end)){var r=(e=this._breakAttributes(e,!0)).parent,i=r.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=r.childCount-i}else n=this.remove(t);return this.insert(e,n)}},{key:"wrap",value:function(t,e){if(!(e instanceof Pr))throw new Ye.b("view-writer-wrap-invalid-attribute: DowncastWriter#wrap() must be called with an attribute element.",this.document);if(fi(t,this.document),t.isCollapsed){var n=t.start;n.parent.is("element")&&(i=n.parent,!Array.from(i.getChildren()).some((function(t){return!t.is("uiElement")})))&&(n=n.getLastMatchingPosition((function(t){return t.item.is("uiElement")}))),n=this._wrapPosition(n,e);var r=this.document.selection;return r.isCollapsed&&r.getFirstPosition().isEqual(t.start)&&this.setSelection(n),new Sr(n)}return this._wrapRange(t,e);var i}},{key:"unwrap",value:function(t,e){if(!(e instanceof Pr))throw new Ye.b("view-writer-unwrap-invalid-attribute: DowncastWriter#unwrap() must be called with an attribute element.",this.document);if(fi(t,this.document),t.isCollapsed)return t;var n=this._breakAttributesRange(t,!0),r=n.start,i=n.end,o=r.parent,a=this._unwrapChildren(o,r.offset,i.offset,e),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var u=this.mergeAttributes(a.end);return new Sr(s,u)}},{key:"rename",value:function(t,e){var n=new sr(this.document,t,e.getAttributes());return this.insert(xr._createAfter(e),n),this.move(Sr._createIn(e),xr._createAt(n,0)),this.remove(Sr._createOn(e)),n}},{key:"clearClonedElementsGroup",value:function(t){this._cloneGroups.delete(t)}},{key:"createPositionAt",value:function(t,e){return xr._createAt(t,e)}},{key:"createPositionAfter",value:function(t){return xr._createAfter(t)}},{key:"createPositionBefore",value:function(t){return xr._createBefore(t)}},{key:"createRange",value:function(t,e){return new Sr(t,e)}},{key:"createRangeOn",value:function(t){return Sr._createOn(t)}},{key:"createRangeIn",value:function(t){return Sr._createIn(t)}},{key:"createSelection",value:function(t,e,n){return new Tr(t,e,n)}},{key:"_wrapChildren",value:function(t,e,n,r){for(var i=e,o=[];i<n;){var a=t.getChild(i),s=a.is("$text"),u=a.is("attributeElement"),l=a.is("emptyElement"),c=a.is("uiElement"),f=a.is("rawElement");if(u&&this._wrapAttributeElement(r,a))o.push(new xr(t,i));else if(s||l||c||f||u&&oi(r,a)){var d=r._clone();a._remove(),d._appendChild(a),t._insertChild(i,d),this._addToClonedElementsGroup(d),o.push(new xr(t,i))}else u&&this._wrapChildren(a,0,a.childCount,r);i++}for(var h=0,p=0,m=o;p<m.length;p++){var v=m[p];(v.offset-=h,v.offset!=e)&&(this.mergeAttributes(v).isEqual(v)||(h++,n--))}return Sr._createFromParentsAndOffsets(t,e,t,n)}},{key:"_unwrapChildren",value:function(t,e,n,r){for(var i=e,o=[];i<n;){var a=t.getChild(i);if(a.is("attributeElement"))if(a.isSimilar(r)){var s=a.getChildren(),u=a.childCount;a._remove(),t._insertChild(i,s),this._removeFromClonedElementsGroup(a),o.push(new xr(t,i),new xr(t,i+u)),i+=u,n+=u-1}else this._unwrapAttributeElement(r,a)?(o.push(new xr(t,i),new xr(t,i+1)),i++):(this._unwrapChildren(a,0,a.childCount,r),i++);else i++}for(var l=0,c=0,f=o;c<f.length;c++){var d=f[c];(d.offset-=l,d.offset!=e&&d.offset!=n)&&(this.mergeAttributes(d).isEqual(d)||(l++,n--))}return Sr._createFromParentsAndOffsets(t,e,t,n)}},{key:"_wrapRange",value:function(t,e){var n=this._breakAttributesRange(t,!0),r=n.start,i=n.end,o=r.parent,a=this._wrapChildren(o,r.offset,i.offset,e),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var u=this.mergeAttributes(a.end);return new Sr(s,u)}},{key:"_wrapPosition",value:function(t,e){if(e.isSimilar(t.parent))return ai(t.clone());t.parent.is("$text")&&(t=si(t));var n=this.createAttributeElement();n._priority=Number.POSITIVE_INFINITY,n.isSimilar=function(){return!1},t.parent._insertChild(t.offset,n);var r=new Sr(t,t.getShiftedBy(1));this.wrap(r,e);var i=new xr(n.parent,n.index);n._remove();var o=i.nodeBefore,a=i.nodeAfter;return o instanceof gn&&a instanceof gn?ui(o,a):ai(i)}},{key:"_wrapAttributeElement",value:function(t,e){if(!di(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;var n,r=c(t.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var i=n.value;if("class"!==i&&"style"!==i&&e.hasAttribute(i)&&e.getAttribute(i)!==t.getAttribute(i))return!1}}catch(t){r.e(t)}finally{r.f()}var o,a=c(t.getStyleNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(e.hasStyle(s)&&e.getStyle(s)!==t.getStyle(s))return!1}}catch(t){a.e(t)}finally{a.f()}var u,l=c(t.getAttributeKeys());try{for(l.s();!(u=l.n()).done;){var f=u.value;"class"!==f&&"style"!==f&&(e.hasAttribute(f)||this.setAttribute(f,t.getAttribute(f),e))}}catch(t){l.e(t)}finally{l.f()}var d,h=c(t.getStyleNames());try{for(h.s();!(d=h.n()).done;){var p=d.value;e.hasStyle(p)||this.setStyle(p,t.getStyle(p),e)}}catch(t){h.e(t)}finally{h.f()}var m,v=c(t.getClassNames());try{for(v.s();!(m=v.n()).done;){var g=m.value;e.hasClass(g)||this.addClass(g,e)}}catch(t){v.e(t)}finally{v.f()}return!0}},{key:"_unwrapAttributeElement",value:function(t,e){if(!di(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;var n,r=c(t.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var i=n.value;if("class"!==i&&"style"!==i&&(!e.hasAttribute(i)||e.getAttribute(i)!==t.getAttribute(i)))return!1}}catch(t){r.e(t)}finally{r.f()}if(!e.hasClass.apply(e,u(t.getClassNames())))return!1;var o,a=c(t.getStyleNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(!e.hasStyle(s)||e.getStyle(s)!==t.getStyle(s))return!1}}catch(t){a.e(t)}finally{a.f()}var l,f=c(t.getAttributeKeys());try{for(f.s();!(l=f.n()).done;){var d=l.value;"class"!==d&&"style"!==d&&this.removeAttribute(d,e)}}catch(t){f.e(t)}finally{f.f()}return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0}},{key:"_breakAttributesRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.start,r=t.end;if(fi(t,this.document),t.isCollapsed){var i=this._breakAttributes(t.start,e);return new Sr(i,i)}var o=this._breakAttributes(r,e),a=o.parent.childCount,s=this._breakAttributes(n,e);return o.offset+=o.parent.childCount-a,new Sr(s,o)}},{key:"_breakAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.offset,r=t.parent;if(t.parent.is("emptyElement"))throw new Ye.b("view-writer-cannot-break-empty-element: Cannot break an EmptyElement instance.",this.document);if(t.parent.is("uiElement"))throw new Ye.b("view-writer-cannot-break-ui-element: Cannot break a UIElement instance.",this.document);if(t.parent.is("rawElement"))throw new Ye.b("view-writer-cannot-break-raw-element: Cannot break a RawElement instance.",this.document);if(!e&&r.is("$text")&&ci(r.parent))return t.clone();if(ci(r))return t.clone();if(r.is("$text"))return this._breakAttributes(si(t),e);if(n==r.childCount){var i=new xr(r.parent,r.index+1);return this._breakAttributes(i,e)}if(0===n){var o=new xr(r.parent,r.index);return this._breakAttributes(o,e)}var a=r.index+1,s=r._clone();r.parent._insertChild(a,s),this._addToClonedElementsGroup(s);var u=r.childCount-n,l=r._removeChildren(n,u);s._appendChild(l);var c=new xr(r.parent,a);return this._breakAttributes(c,e)}},{key:"_addToClonedElementsGroup",value:function(t){if(t.root.is("rootElement")){if(t.is("element")){var e,n=c(t.getChildren());try{for(n.s();!(e=n.n()).done;){var r=e.value;this._addToClonedElementsGroup(r)}}catch(t){n.e(t)}finally{n.f()}}var i=t.id;if(i){var o=this._cloneGroups.get(i);o||(o=new Set,this._cloneGroups.set(i,o)),o.add(t),t._clonesGroup=o}}}},{key:"_removeFromClonedElementsGroup",value:function(t){if(t.is("element")){var e,n=c(t.getChildren());try{for(n.s();!(e=n.n()).done;){var r=e.value;this._removeFromClonedElementsGroup(r)}}catch(t){n.e(t)}finally{n.f()}}var i=t.id;if(i){var o=this._cloneGroups.get(i);o&&o.delete(t)}}}]),t}();function ii(t){for(var e=t.parent;!ci(e);){if(!e)return;e=e.parent}return e}function oi(t,e){return t.priority<e.priority||!(t.priority>e.priority)&&t.getIdentity()<e.getIdentity()}function ai(t){var e=t.nodeBefore;if(e&&e.is("$text"))return new xr(e,e.data.length);var n=t.nodeAfter;return n&&n.is("$text")?new xr(n,0):t}function si(t){if(t.offset==t.parent.data.length)return new xr(t.parent.parent,t.parent.index+1);if(0===t.offset)return new xr(t.parent.parent,t.parent.index);var e=t.parent.data.slice(t.offset);return t.parent._data=t.parent.data.slice(0,t.offset),t.parent.parent._insertChild(t.parent.index+1,new gn(t.root.document,e)),new xr(t.parent.parent,t.parent.index+1)}function ui(t,e){var n=t.data.length;return t._data+=e.data,e._remove(),new xr(t,n)}var li=[gn,Pr,sr,jr,ti,Xr];function ci(t){return t&&(t.is("containerElement")||t.is("documentFragment"))}function fi(t,e){var n=ii(t.start),r=ii(t.end);if(!n||!r||n!==r)throw new Ye.b("view-writer-invalid-range-container: The container of the given range is invalid.",e)}function di(t,e){return null===t.id&&null===e.id}function hi(t){return"[object Text]"==Object.prototype.toString.call(t)}var pi=function(t){return t.createTextNode(" ")},mi=function(t){var e=t.createElement("br");return e.dataset.ckeFiller=!0,e},vi=function(){for(var t="",e=0;e<7;e++)t+="​";return t}();function gi(t){return hi(t)&&t.data.substr(0,7)===vi}function bi(t){return 7==t.data.length&&gi(t)}function yi(t){return gi(t)?t.data.slice(7):t.data}function wi(t,e){if(e.keyCode==Hr.arrowleft){var n=e.domTarget.ownerDocument.defaultView.getSelection();if(1==n.rangeCount&&n.getRangeAt(0).collapsed){var r=n.getRangeAt(0).startContainer,i=n.getRangeAt(0).startOffset;gi(r)&&i<=7&&n.collapse(r,0)}}}function _i(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=n||function(t,e){return t===e},Array.isArray(t)||(t=Array.prototype.slice.call(t)),Array.isArray(e)||(e=Array.prototype.slice.call(e));var i=function(t,e,n){var r=ki(t,e,n);if(-1===r)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};var i=ki(Mi(t,r),Mi(e,r),n);return{firstIndex:r,lastIndexOld:t.length-i,lastIndexNew:e.length-i}}(t,e,n);return r?function(t,e){var n=t.firstIndex,r=t.lastIndexOld,i=t.lastIndexNew;if(-1===n)return Array(e).fill("equal");var o=[];return n>0&&(o=o.concat(Array(n).fill("equal"))),i-n>0&&(o=o.concat(Array(i-n).fill("insert"))),r-n>0&&(o=o.concat(Array(r-n).fill("delete"))),i<e&&(o=o.concat(Array(e-i).fill("equal"))),o}(i,e.length):function(t,e){var n=[],r=e.firstIndex,i=e.lastIndexOld,o=e.lastIndexNew;return o-r>0&&n.push({index:r,type:"insert",values:t.slice(r,o)}),i-r>0&&n.push({index:r+(o-r),type:"delete",howMany:i-r}),n}(e,i)}function ki(t,e,n){for(var r=0;r<Math.max(t.length,e.length);r++)if(void 0===t[r]||void 0===e[r]||!n(t[r],e[r]))return r;return-1}function Mi(t,e){return t.slice(e).reverse()}function xi(t,e,n){n=n||function(t,e){return t===e};var r,i,o=t.length,a=e.length;if(o>200||a>200||o+a>300)return xi.fastDiff(t,e,n,!0);if(a<o){var s=t;t=e,e=s,r="delete",i="insert"}else r="insert",i="delete";var u=t.length,l=e.length,c=l-u,f={},d={};function h(o){var a=(void 0!==d[o-1]?d[o-1]:-1)+1,s=void 0!==d[o+1]?d[o+1]:-1,c=a>s?-1:1;f[o+c]&&(f[o]=f[o+c].slice(0)),f[o]||(f[o]=[]),f[o].push(a>s?r:i);for(var h=Math.max(a,s),p=h-o;p<u&&h<l&&n(t[p],e[h]);)p++,h++,f[o].push("equal");return h}var p,m=0;do{for(p=-m;p<c;p++)d[p]=h(p);for(p=c+m;p>c;p--)d[p]=h(p);d[c]=h(c),m++}while(d[c]!==l);return f[c].slice(1)}function Si(t,e,n){t.insertBefore(n,t.childNodes[e]||null)}function Ci(t){var e=t.parentNode;e&&e.removeChild(t)}function Ai(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node}return!1}xi.fastDiff=_i;var Ti=function(){function t(e,n){h(this,t),this.domDocuments=new Set,this.domConverter=e,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=n,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}return m(t,[{key:"markToSync",value:function(t,e){if("text"===t)this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if("attributes"===t)this.markedAttributes.add(e);else{if("children"!==t)throw new Ye.b("view-renderer-unknown-type: Unknown type passed to Renderer.markToSync.",this);this.markedChildren.add(e)}}}},{key:"render",value:function(){var t,e,n=c(this.markedChildren);try{for(n.s();!(e=n.n()).done;){var r=e.value;this._updateChildrenMappings(r)}}catch(t){n.e(t)}finally{n.f()}this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?t=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(t=this.selection.getFirstPosition(),this.markedChildren.add(t.parent));var i,o=c(this.markedAttributes);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._updateAttrs(a)}}catch(t){o.e(t)}finally{o.f()}var s,u=c(this.markedChildren);try{for(u.s();!(s=u.n()).done;){var l=s.value;this._updateChildren(l,{inlineFillerPosition:t})}}catch(t){u.e(t)}finally{u.f()}var f,d=c(this.markedTexts);try{for(d.s();!(f=d.n()).done;){var h=f.value;!this.markedChildren.has(h.parent)&&this.domConverter.mapViewToDom(h.parent)&&this._updateText(h,{inlineFillerPosition:t})}}catch(t){d.e(t)}finally{d.f()}if(t){var p=this.domConverter.viewPositionToDom(t),m=p.parent.ownerDocument;gi(p.parent)?this._inlineFiller=p.parent:this._inlineFiller=Ei(m,p.parent,p.offset)}else this._inlineFiller=null;this._updateSelection(),this._updateFocus(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}},{key:"_updateChildrenMappings",value:function(t){var e=this.domConverter.mapViewToDom(t);if(e){var n=this.domConverter.mapViewToDom(t).childNodes,r=Array.from(this.domConverter.viewChildrenToDom(t,e.ownerDocument,{withChildren:!1})),i=this._diffNodeLists(n,r),o=this._findReplaceActions(i,n,r);if(-1!==o.indexOf("replace")){var a,s={equal:0,insert:0,delete:0},u=c(o);try{for(u.s();!(a=u.n()).done;){var l=a.value;if("replace"===l){var f=s.equal+s.insert,d=s.equal+s.delete,h=t.getChild(f);!h||h.is("uiElement")||h.is("rawElement")||this._updateElementMappings(h,n[d]),Ci(r[f]),s.equal++}else s[l]++}}catch(t){u.e(t)}finally{u.f()}}}}},{key:"_updateElementMappings",value:function(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}},{key:"_getInlineFillerPosition",value:function(){var t=this.selection.getFirstPosition();return t.parent.is("$text")?xr._createBefore(this.selection.getFirstPosition().parent):t}},{key:"_isSelectionInInlineFiller",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&hi(e.parent)&&gi(e.parent))}},{key:"_removeInlineFiller",value:function(){var t=this._inlineFiller;if(!gi(t))throw new Ye.b("view-renderer-filler-was-lost: The inline filler node was lost.",this);bi(t)?t.parentNode.removeChild(t):t.data=t.data.substr(7),this._inlineFiller=null}},{key:"_needsInlineFillerAtSelection",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root))return!1;if(!e.is("element"))return!1;if(!function(t){if("false"==t.getAttribute("contenteditable"))return!1;var e=t.findAncestor((function(t){return t.hasAttribute("contenteditable")}));return!e||"true"==e.getAttribute("contenteditable")}(e))return!1;if(n===e.getFillerOffset())return!1;var r=t.nodeBefore,i=t.nodeAfter;return!(r instanceof gn||i instanceof gn)}},{key:"_updateText",value:function(t,e){var n=this.domConverter.findCorrespondingDomText(t),r=this.domConverter.viewToDom(t,n.ownerDocument),i=n.data,o=r.data,a=e.inlineFillerPosition;if(a&&a.parent==t.parent&&a.offset==t.index&&(o=vi+o),i!=o){var s,u=c(_i(i,o));try{for(u.s();!(s=u.n()).done;){var l=s.value;"insert"===l.type?n.insertData(l.index,l.values.join("")):n.deleteData(l.index,l.howMany)}}catch(t){u.e(t)}finally{u.f()}}}},{key:"_updateAttrs",value:function(t){var e=this.domConverter.mapViewToDom(t);if(e){var n,r=Array.from(e.attributes).map((function(t){return t.name})),i=c(t.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var o=n.value;e.setAttribute(o,t.getAttribute(o))}}catch(t){i.e(t)}finally{i.f()}var a,s=c(r);try{for(s.s();!(a=s.n()).done;){var u=a.value;t.hasAttribute(u)||e.removeAttribute(u)}}catch(t){s.e(t)}finally{s.f()}}}},{key:"_updateChildren",value:function(t,e){var n=this.domConverter.mapViewToDom(t);if(n){var r=e.inlineFillerPosition,i=this.domConverter.mapViewToDom(t).childNodes,o=Array.from(this.domConverter.viewChildrenToDom(t,n.ownerDocument,{bind:!0,inlineFillerPosition:r}));r&&r.parent===t&&Ei(n.ownerDocument,o,r.offset);var a,s=this._diffNodeLists(i,o),u=0,l=new Set,f=c(s);try{for(f.s();!(a=f.n()).done;){var d=a.value;"delete"===d?(l.add(i[u]),Ci(i[u])):"equal"===d&&u++}}catch(t){f.e(t)}finally{f.f()}u=0;var h,p=c(s);try{for(p.s();!(h=p.n()).done;){var m=h.value;"insert"===m?(Si(n,u,o[u]),u++):"equal"===m&&(this._markDescendantTextToSync(this.domConverter.domToView(o[u])),u++)}}catch(t){p.e(t)}finally{p.f()}var v,g=c(l);try{for(g.s();!(v=g.n()).done;){var b=v.value;b.parentNode||this.domConverter.unbindDomElement(b)}}catch(t){g.e(t)}finally{g.f()}}}},{key:"_diffNodeLists",value:function(t,e){return xi(t=function(t,e){var n=Array.from(t);return 0!=n.length&&e?(n[n.length-1]==e&&n.pop(),n):n}(t,this._fakeSelectionContainer),e,Pi.bind(null,this.domConverter))}},{key:"_findReplaceActions",value:function(t,e,n){if(-1===t.indexOf("insert")||-1===t.indexOf("delete"))return t;var r,i=[],o=[],a=[],s={equal:0,insert:0,delete:0},u=c(t);try{for(u.s();!(r=u.n()).done;){var l=r.value;"insert"===l?a.push(n[s.equal+s.insert]):"delete"===l?o.push(e[s.equal+s.delete]):((i=i.concat(xi(o,a,Oi).map((function(t){return"equal"===t?"replace":t})))).push("equal"),o=[],a=[]),s[l]++}}catch(t){u.e(t)}finally{u.f()}return i.concat(xi(o,a,Oi).map((function(t){return"equal"===t?"replace":t})))}},{key:"_markDescendantTextToSync",value:function(t){if(t)if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element")){var e,n=c(t.getChildren());try{for(n.s();!(e=n.n()).done;){var r=e.value;this._markDescendantTextToSync(r)}}catch(t){n.e(t)}finally{n.f()}}}},{key:"_updateSelection",value:function(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();var t=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&t&&(this.selection.isFake?this._updateFakeSelection(t):(this._removeFakeSelection(),this._updateDomSelection(t)))}},{key:"_updateFakeSelection",value:function(t){var e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(t){var e=t.createElement("div");return Object.assign(e.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),e.textContent=" ",e}(e));var n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),this._fakeSelectionNeedsUpdate(t)){n.parentElement&&n.parentElement==t||t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";var r=e.getSelection(),i=e.createRange();r.removeAllRanges(),i.selectNodeContents(n),r.addRange(i)}}},{key:"_updateDomSelection",value:function(t){var e=t.ownerDocument.defaultView.getSelection();if(this._domSelectionNeedsUpdate(e)){var n=this.domConverter.viewPositionToDom(this.selection.anchor),r=this.domConverter.viewPositionToDom(this.selection.focus);t.focus(),e.collapse(n.parent,n.offset),e.extend(r.parent,r.offset),Br&&function(t,e){var n=t.parent;if(n.nodeType==Node.ELEMENT_NODE&&t.offset==n.childNodes.length-1){var r=n.childNodes[t.offset];r&&"BR"==r.tagName&&e.addRange(e.getRangeAt(0))}}(r,e)}}},{key:"_domSelectionNeedsUpdate",value:function(t){if(!this.domConverter.isDomSelectionCorrect(t))return!0;var e=t&&this.domConverter.domSelectionToView(t);return!(e&&this.selection.isEqual(e)||!this.selection.isCollapsed&&this.selection.isSimilar(e))}},{key:"_fakeSelectionNeedsUpdate",value:function(t){var e=this._fakeSelectionContainer,n=t.ownerDocument.getSelection();return!e||e.parentElement!==t||n.anchorNode!==e&&!e.contains(n.anchorNode)||e.textContent!==this.selection.fakeSelectionLabel}},{key:"_removeDomSelection",value:function(){var t,e=c(this.domDocuments);try{for(e.s();!(t=e.n()).done;){var n=t.value;if(n.getSelection().rangeCount){var r=n.activeElement,i=this.domConverter.mapDomToView(r);r&&i&&n.getSelection().removeAllRanges()}}}catch(t){e.e(t)}finally{e.f()}}},{key:"_removeFakeSelection",value:function(){var t=this._fakeSelectionContainer;t&&t.remove()}},{key:"_updateFocus",value:function(){if(this.isFocused){var t=this.selection.editableElement;t&&this.domConverter.focus(t)}}}]),t}();function Ei(t,e,n){var r=e instanceof Array?e:e.childNodes,i=r[n];if(hi(i))return i.data=vi+i.data,i;var o=t.createTextNode(vi);return Array.isArray(e)?r.splice(n,0,o):Si(e,n,o),o}function Oi(t,e){return Ai(t)&&Ai(e)&&!hi(t)&&!hi(e)&&t.nodeType!==Node.COMMENT_NODE&&e.nodeType!==Node.COMMENT_NODE&&t.tagName.toLowerCase()===e.tagName.toLowerCase()}function Pi(t,e,n){return e===n||(hi(e)&&hi(n)?e.data===n.data:!(!t.isBlockFiller(e)||!t.isBlockFiller(n)))}an(Ti,pr);var Ii={window:window,document:document};function Ri(t){for(var e=0;t.previousSibling;)t=t.previousSibling,e++;return e}function ji(t){for(var e=[];t&&t.nodeType!=Node.DOCUMENT_NODE;)e.unshift(t),t=t.parentNode;return e}var Di=mi(document),Ni=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,t),this.document=e,this.blockFillerMode=n.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6","li","dd","dt","figcaption","td","th"],this._blockFiller="br"==this.blockFillerMode?mi:pi,this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}return m(t,[{key:"bindFakeSelection",value:function(t,e){this._fakeSelectionMapping.set(t,new Tr(e))}},{key:"fakeSelectionToView",value:function(t){return this._fakeSelectionMapping.get(t)}},{key:"bindElements",value:function(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}},{key:"unbindDomElement",value:function(t){var e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);var n,r=c(t.childNodes);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.unbindDomElement(i)}}catch(t){r.e(t)}finally{r.f()}}}},{key:"bindDocumentFragments",value:function(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}},{key:"viewToDom",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.is("$text")){var i=this._processDataFromViewText(t);return e.createTextNode(i)}if(this.mapViewToDom(t))return this.mapViewToDom(t);if(t.is("documentFragment"))n=e.createDocumentFragment(),r.bind&&this.bindDocumentFragments(n,t);else{if(t.is("uiElement"))return n=t.render(e),r.bind&&this.bindElements(n,t),n;n=t.hasAttribute("xmlns")?e.createElementNS(t.getAttribute("xmlns"),t.name):e.createElement(t.name),t.is("rawElement")&&t.render(n),r.bind&&this.bindElements(n,t);var o,a=c(t.getAttributeKeys());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.setAttribute(s,t.getAttribute(s))}}catch(t){a.e(t)}finally{a.f()}}if(r.withChildren||void 0===r.withChildren){var u,l=c(this.viewChildrenToDom(t,e,r));try{for(l.s();!(u=l.n()).done;){var f=u.value;n.appendChild(f)}}catch(t){l.e(t)}finally{l.f()}}return n}},{key:"viewChildrenToDom",value:o.a.mark((function t(e,n){var r,i,a,s,u,l,f=arguments;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=f.length>2&&void 0!==f[2]?f[2]:{},i=e.getFillerOffset&&e.getFillerOffset(),a=0,s=c(e.getChildren()),t.prev=4,s.s();case 6:if((u=s.n()).done){t.next=17;break}if(l=u.value,t.t0=i===a,!t.t0){t.next=12;break}return t.next=12,this._blockFiller(n);case 12:return t.next=14,this.viewToDom(l,n,r);case 14:a++;case 15:t.next=6;break;case 17:t.next=22;break;case 19:t.prev=19,t.t1=t.catch(4),s.e(t.t1);case 22:return t.prev=22,s.f(),t.finish(22);case 25:if(t.t2=i===a,!t.t2){t.next=29;break}return t.next=29,this._blockFiller(n);case 29:case"end":return t.stop()}}),t,this,[[4,19,22,25]])}))},{key:"viewRangeToDom",value:function(t){var e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),r=document.createRange();return r.setStart(e.parent,e.offset),r.setEnd(n.parent,n.offset),r}},{key:"viewPositionToDom",value:function(t){var e,n,r,i=t.parent;if(i.is("$text")){var o=this.findCorrespondingDomText(i);if(!o)return null;var a=t.offset;return gi(o)&&(a+=7),{parent:o,offset:a}}if(0===t.offset){if(!(e=this.mapViewToDom(i)))return null;r=e.childNodes[0]}else{var s=t.nodeBefore;if(!(n=s.is("$text")?this.findCorrespondingDomText(s):this.mapViewToDom(t.nodeBefore)))return null;e=n.parentNode,r=n.nextSibling}return hi(r)&&gi(r)?{parent:r,offset:7}:{parent:e,offset:n?Ri(n)+1:0}}},{key:"domToView",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(t,this.blockFillerMode))return null;var n,r=this.getHostViewElement(t,this._domToViewMapping);if(r)return r;if(hi(t)){if(bi(t))return null;var i=this._processDataFromDomText(t);return""===i?null:new gn(this.document,i)}if(this.isComment(t))return null;if(this.mapDomToView(t))return this.mapDomToView(t);if(this.isDocumentFragment(t))n=new ni(this.document),e.bind&&this.bindDocumentFragments(t,n);else{var o=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();n=new or(this.document,o),e.bind&&this.bindElements(t,n);for(var a=t.attributes,s=a.length-1;s>=0;s--)n._setAttribute(a[s].name,a[s].value)}if(e.withChildren||void 0===e.withChildren){var u,l=c(this.domChildrenToView(t,e));try{for(l.s();!(u=l.n()).done;){var f=u.value;n._appendChild(f)}}catch(t){l.e(t)}finally{l.f()}}return n}},{key:"domChildrenToView",value:o.a.mark((function t(e){var n,r,i,a,s=arguments;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=s.length>1&&void 0!==s[1]?s[1]:{},r=0;case 2:if(!(r<e.childNodes.length)){t.next=11;break}if(i=e.childNodes[r],a=this.domToView(i,n),t.t0=null!==a,!t.t0){t.next=8;break}return t.next=8,a;case 8:r++,t.next=2;break;case 11:case"end":return t.stop()}}),t,this)}))},{key:"domSelectionToView",value:function(t){if(1===t.rangeCount){var e=t.getRangeAt(0).startContainer;hi(e)&&(e=e.parentNode);var n=this.fakeSelectionToView(e);if(n)return n}for(var r=this.isDomSelectionBackward(t),i=[],o=0;o<t.rangeCount;o++){var a=t.getRangeAt(o),s=this.domRangeToView(a);s&&i.push(s)}return new Tr(i,{backward:r})}},{key:"domRangeToView",value:function(t){var e=this.domPositionToView(t.startContainer,t.startOffset),n=this.domPositionToView(t.endContainer,t.endOffset);return e&&n?new Sr(e,n):null}},{key:"domPositionToView",value:function(t,e){if(this.isBlockFiller(t,this.blockFillerMode))return this.domPositionToView(t.parentNode,Ri(t));var n=this.mapDomToView(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return xr._createBefore(n);if(hi(t)){if(bi(t))return this.domPositionToView(t.parentNode,Ri(t));var r=this.findCorrespondingViewText(t),i=e;return r?(gi(t)&&(i=(i-=7)<0?0:i),new xr(r,i)):null}if(0===e){var o=this.mapDomToView(t);if(o)return new xr(o,0)}else{var a=t.childNodes[e-1],s=hi(a)?this.findCorrespondingViewText(a):this.mapDomToView(a);if(s&&s.parent)return new xr(s.parent,s.index+1)}return null}},{key:"mapDomToView",value:function(t){return this.getHostViewElement(t)||this._domToViewMapping.get(t)}},{key:"findCorrespondingViewText",value:function(t){if(bi(t))return null;var e=this.getHostViewElement(t);if(e)return e;var n=t.previousSibling;if(n){if(!this.isElement(n))return null;var r=this.mapDomToView(n);if(r)return r.nextSibling instanceof gn?r.nextSibling:null}else{var i=this.mapDomToView(t.parentNode);if(i){var o=i.getChild(0);return o instanceof gn?o:null}}return null}},{key:"mapViewToDom",value:function(t){return this._viewToDomMapping.get(t)}},{key:"findCorrespondingDomText",value:function(t){var e=t.previousSibling;return e&&this.mapViewToDom(e)?this.mapViewToDom(e).nextSibling:!e&&t.parent&&this.mapViewToDom(t.parent)?this.mapViewToDom(t.parent).childNodes[0]:null}},{key:"focus",value:function(t){var e=this.mapViewToDom(t);if(e&&e.ownerDocument.activeElement!==e){var n=Ii.window,r=n.scrollX,i=n.scrollY,o=[];Bi(e,(function(t){var e=t.scrollLeft,n=t.scrollTop;o.push([e,n])})),e.focus(),Bi(e,(function(t){var e=l(o.shift(),2),n=e[0],r=e[1];t.scrollLeft=n,t.scrollTop=r})),Ii.window.scrollTo(r,i)}}},{key:"isElement",value:function(t){return t&&t.nodeType==Node.ELEMENT_NODE}},{key:"isDocumentFragment",value:function(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE}},{key:"isComment",value:function(t){return t&&t.nodeType==Node.COMMENT_NODE}},{key:"isBlockFiller",value:function(t){return"br"==this.blockFillerMode?t.isEqualNode(Di):!("BR"!==t.tagName||!zi(t,this.blockElements)||1!==t.parentNode.childNodes.length)||function(t,e){return hi(t)&&" "==t.data&&zi(t,e)&&1===t.parentNode.childNodes.length}(t,this.blockElements)}},{key:"isDomSelectionBackward",value:function(t){if(t.isCollapsed)return!1;var e=document.createRange();e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset);var n=e.collapsed;return e.detach(),n}},{key:"getHostViewElement",value:function(t){var e=ji(t);for(e.pop();e.length;){var n=e.pop(),r=this._domToViewMapping.get(n);if(r&&(r.is("uiElement")||r.is("rawElement")))return r}return null}},{key:"isDomSelectionCorrect",value:function(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset)}},{key:"_isDomSelectionPositionCorrect",value:function(t,e){if(hi(t)&&gi(t)&&e<7)return!1;if(this.isElement(t)&&gi(t.childNodes[e]))return!1;var n=this.mapDomToView(t);return!n||!n.is("uiElement")&&!n.is("rawElement")}},{key:"_processDataFromViewText",value:function(t){var e=this,n=t.data;if(t.getAncestors().some((function(t){return e.preElements.includes(t.name)})))return n;if(" "==n.charAt(0)){var r=this._getTouchingViewTextNode(t,!1);(!r||!this._nodeEndsWithSpace(r))&&r||(n=" "+n.substr(1))}if(" "==n.charAt(n.length-1)){var i=this._getTouchingViewTextNode(t,!0);" "!=n.charAt(n.length-2)&&i&&" "!=i.data.charAt(0)||(n=n.substr(0,n.length-1)+" ")}return n.replace(/ {2}/g,"  ")}},{key:"_nodeEndsWithSpace",value:function(t){var e=this;if(t.getAncestors().some((function(t){return e.preElements.includes(t.name)})))return!1;var n=this._processDataFromViewText(t);return" "==n.charAt(n.length-1)}},{key:"_processDataFromDomText",value:function(t){var e=t.data;if(Li(t,this.preElements))return yi(t);e=e.replace(/[ \n\t\r]{1,}/g," ");var n=this._getTouchingInlineDomNode(t,!1),r=this._getTouchingInlineDomNode(t,!0),i=this._checkShouldLeftTrimDomText(n),o=this._checkShouldRightTrimDomText(t,r);return i&&(e=e.replace(/^ /,"")),o&&(e=e.replace(/ $/,"")),e=(e=yi(new Text(e))).replace(/ \u00A0/g,"  "),(/( |\u00A0)\u00A0$/.test(e)||!r||r.data&&" "==r.data.charAt(0))&&(e=e.replace(/\u00A0$/," ")),i&&(e=e.replace(/^\u00A0/," ")),e}},{key:"_checkShouldLeftTrimDomText",value:function(t){return!t||!!Fe(t)||/[^\S\u00A0]/.test(t.data.charAt(t.data.length-1))}},{key:"_checkShouldRightTrimDomText",value:function(t,e){return!e&&!gi(t)}},{key:"_getTouchingViewTextNode",value:function(t,e){var n,r=c(new Mr({startPosition:e?xr._createAfter(t):xr._createBefore(t),direction:e?"forward":"backward"}));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.item.is("containerElement"))return null;if(i.item.is("element","br"))return null;if(i.item.is("$textProxy"))return i.item}}catch(t){r.e(t)}finally{r.f()}return null}},{key:"_getTouchingInlineDomNode",value:function(t,e){if(!t.parentNode)return null;var n=e?"nextNode":"previousNode",r=t.ownerDocument,i=ji(t)[0],o=r.createTreeWalker(i,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:function(t){return hi(t)||"BR"==t.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});o.currentNode=t;var a=o[n]();if(null!==a){var s=function(t,e){for(var n=ji(t),r=ji(e),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}(t,a);if(s&&!Li(t,this.blockElements,s)&&!Li(a,this.blockElements,s))return a}return null}}]),t}();function Li(t,e,n){var r=ji(t);return n&&(r=r.slice(r.indexOf(n)+1)),r.some((function(t){return t.tagName&&e.includes(t.tagName.toLowerCase())}))}function Bi(t,e){for(;t&&t!=Ii.document;)e(t),t=t.parentNode}function zi(t,e){var n=t.parentNode;return n&&n.tagName&&e.includes(n.tagName.toLowerCase())}function Fi(t){var e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e}var qi=lr({},Je,{listenTo:function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];if(Ai(t)||Fi(t)){var o=this._getProxyEmitter(t)||new Vi(t);o.attach.apply(o,r),t=o}(e=Je.listenTo).call.apply(e,[this,t].concat(r))},stopListening:function(t,e,n){if(Ai(t)||Fi(t)){var r=this._getProxyEmitter(t);if(!r)return;t=r}Je.stopListening.call(this,t,e,n),t instanceof Vi&&t.detach(e)},_getProxyEmitter:function(t){return e=this,n=$i(t),e[Ge]&&e[Ge][n]?e[Ge][n].emitter:null;var e,n}}),Vi=function t(e){h(this,t),Xe(this,$i(e)),this._domNode=e};function $i(t){return t["data-ck-expando"]||(t["data-ck-expando"]=We())}lr(Vi.prototype,Je,{attach:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._domListeners||!this._domListeners[t]){var r={capture:!!n.useCapture,passive:!!n.usePassive},i=this._createDomListener(t,r);this._domNode.addEventListener(t,i,r),this._domListeners||(this._domListeners={}),this._domListeners[t]=i}},detach:function(t){var e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()},_createDomListener:function(t,e){var n=this,r=function(e){n.fire(t,e)};return r.removeListener=function(){n._domNode.removeEventListener(t,r,e),delete n._domListeners[t]},r}});var Hi=function(){function t(e){h(this,t),this.view=e,this.document=e.document,this.isEnabled=!1}return m(t,[{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"destroy",value:function(){this.disable(),this.stopListening()}}]),t}();an(Hi,qi);function Ui(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new ht;++e<n;)this.add(t[e])}Ui.prototype.add=Ui.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Ui.prototype.has=function(t){return this.__data__.has(t)};var Wi=Ui,Ki=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1},Yi=function(t,e){return t.has(e)},Gi=function(t,e,n,r,i,o){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(t);if(l&&o.get(e))return l==e;var c=-1,f=!0,d=2&n?new Wi:void 0;for(o.set(t,e),o.set(e,t);++c<s;){var h=t[c],p=e[c];if(r)var m=a?r(p,h,c,e,t,o):r(h,p,c,t,e,o);if(void 0!==m){if(m)continue;f=!1;break}if(d){if(!Ki(e,(function(t,e){if(!Yi(d,e)&&(h===t||i(h,t,n,r,o)))return d.push(e)}))){f=!1;break}}else if(h!==p&&!i(h,p,n,r,o)){f=!1;break}}return o.delete(t),o.delete(e),f},Zi=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n},Ji=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},Xi=p?p.prototype:void 0,Qi=Xi?Xi.valueOf:void 0,to=Object.prototype.hasOwnProperty,eo="[object Arguments]",no="[object Array]",ro="[object Object]",io=Object.prototype.hasOwnProperty,oo=function(t,e,n,r,i,o){var a=Ct(t),s=Ct(e),u=a?no:ye(t),l=s?no:ye(e),c=(u=u==eo?ro:u)==ro,f=(l=l==eo?ro:l)==ro,d=u==l;if(d&&Object(At.a)(t)){if(!Object(At.a)(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new mt),a||Dt(t)?Gi(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!o(new _e(t),new _e(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return z(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=Zi;case"[object Set]":var u=1&r;if(s||(s=Ji),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var c=Gi(s(t),s(e),r,i,o,a);return a.delete(t),c;case"[object Symbol]":if(Qi)return Qi.call(t)==Qi.call(e)}return!1}(t,e,u,n,r,i,o);if(!(1&n)){var h=c&&io.call(t,"__wrapped__"),p=f&&io.call(e,"__wrapped__");if(h||p){var m=h?t.value():t,v=p?e.value():e;return o||(o=new mt),i(m,v,n,r,o)}}return!!d&&(o||(o=new mt),function(t,e,n,r,i,o){var a=1&n,s=ne(t),u=s.length;if(u!=ne(e).length&&!a)return!1;for(var l=u;l--;){var c=s[l];if(!(a?c in e:to.call(e,c)))return!1}var f=o.get(t);if(f&&o.get(e))return f==e;var d=!0;o.set(t,e),o.set(e,t);for(var h=a;++l<u;){var p=t[c=s[l]],m=e[c];if(r)var v=a?r(m,p,c,e,t,o):r(p,m,c,t,e,o);if(!(void 0===v?p===m||i(p,m,n,r,o):v)){d=!1;break}h||(h="constructor"==c)}if(d&&!h){var g=t.constructor,b=e.constructor;g==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(d=!1)}return o.delete(t),o.delete(e),d}(t,e,n,r,i,o))},ao=function t(e,n,r,i,o){return e===n||(null==e||null==n||!I(e)&&!I(n)?e!=e&&n!=n:oo(e,n,r,i,t,o))},so=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?ao(t,e,void 0,n):!!r},uo=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t))._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},r.domConverter=t.domConverter,r.renderer=t._renderer,r._domElements=[],r._mutationObserver=new window.MutationObserver(r._onMutations.bind(y(r))),r}return m(n,[{key:"flush",value:function(){this._onMutations(this._mutationObserver.takeRecords())}},{key:"observe",value:function(t){this._domElements.push(t),this.isEnabled&&this._mutationObserver.observe(t,this._config)}},{key:"enable",value:function(){s(x(n.prototype),"enable",this).call(this);var t,e=c(this._domElements);try{for(e.s();!(t=e.n()).done;){var r=t.value;this._mutationObserver.observe(r,this._config)}}catch(t){e.e(t)}finally{e.f()}}},{key:"disable",value:function(){s(x(n.prototype),"disable",this).call(this),this._mutationObserver.disconnect()}},{key:"destroy",value:function(){s(x(n.prototype),"destroy",this).call(this),this._mutationObserver.disconnect()}},{key:"_onMutations",value:function(t){if(0!==t.length){var e,n=this.domConverter,r=new Map,i=new Set,o=c(t);try{for(o.s();!(e=o.n()).done;){var a=e.value;if("childList"===a.type){var s=n.mapDomToView(a.target);if(s&&(s.is("uiElement")||s.is("rawElement")))continue;s&&!this._isBogusBrMutation(a)&&i.add(s)}}}catch(t){o.e(t)}finally{o.f()}var u,l=c(t);try{for(l.s();!(u=l.n()).done;){var f=u.value,d=n.mapDomToView(f.target);if((!d||!d.is("uiElement")&&!d.is("rawElement"))&&"characterData"===f.type){var h=n.findCorrespondingViewText(f.target);h&&!i.has(h.parent)?r.set(h,{type:"text",oldText:h.data,newText:yi(f.target),node:h}):!h&&gi(f.target)&&i.add(n.mapDomToView(f.target.parentNode))}}}catch(t){l.e(t)}finally{l.f()}var p,m=[],v=c(r.values());try{for(v.s();!(p=v.n()).done;){var g=p.value;this.renderer.markToSync("text",g.node),m.push(g)}}catch(t){v.e(t)}finally{v.f()}var b,y=c(i);try{for(y.s();!(b=y.n()).done;){var w=b.value,_=n.mapViewToDom(w),k=Array.from(w.getChildren()),M=Array.from(n.domChildrenToView(_,{withChildren:!1}));so(k,M,T)||(this.renderer.markToSync("children",w),m.push({type:"children",oldChildren:k,newChildren:M,node:w}))}}catch(t){y.e(t)}finally{y.f()}var x=t[0].target.ownerDocument.getSelection(),S=null;if(x&&x.anchorNode){var C=n.domPositionToView(x.anchorNode,x.anchorOffset),A=n.domPositionToView(x.focusNode,x.focusOffset);C&&A&&(S=new Tr(C)).setFocus(A)}m.length&&(this.document.fire("mutations",m,S),this.view.forceRender())}function T(t,e){if(!Array.isArray(t))return t===e||!(!t.is("$text")||!e.is("$text"))&&t.data===e.data}}},{key:"_isBogusBrMutation",value:function(t){var e=null;return null===t.nextSibling&&0===t.removedNodes.length&&1==t.addedNodes.length&&(e=this.domConverter.domToView(t.addedNodes[0],{withChildren:!1})),e&&e.is("element","br")}}]),n}(Hi),lo=function(){function t(e,n,r){h(this,t),this.view=e,this.document=e.document,this.domEvent=n,this.domTarget=n.target,lr(this,r)}return m(t,[{key:"preventDefault",value:function(){this.domEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.domEvent.stopPropagation()}},{key:"target",get:function(){return this.view.domConverter.mapDomToView(this.domTarget)}}]),t}(),co=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).useCapture=!1,r}return m(n,[{key:"observe",value:function(t){var e=this;("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((function(n){e.listenTo(t,n,(function(t,n){e.isEnabled&&e.onDomEvent(n)}),{useCapture:e.useCapture})}))}},{key:"fire",value:function(t,e,n){this.isEnabled&&this.document.fire(t,new lo(this.view,e,n))}}]),n}(Hi),fo=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).domEventType=["keydown","keyup"],r}return m(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t,{keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey||t.metaKey,shiftKey:t.shiftKey,get keystroke(){return Ur(this)}})}}]),n}(co),ho=function(){return d.a.Date.now()},po=/^\s+|\s+$/g,mo=/^[-+]0x[0-9a-f]+$/i,vo=/^0b[01]+$/i,go=/^0o[0-7]+$/i,bo=parseInt,yo=function(t){if("number"==typeof t)return t;if(kn(t))return NaN;if(U(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=U(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(po,"");var n=vo.test(t);return n||go.test(t)?bo(t.slice(2),n?2:8):mo.test(t)?NaN:+t},wo=Math.max,_o=Math.min,ko=function(t,e,n){var r,i,o,a,s,u,l=0,c=!1,f=!1,d=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function h(e){var n=r,o=i;return r=i=void 0,l=e,a=t.apply(o,n)}function p(t){return l=t,s=setTimeout(v,e),c?h(t):a}function m(t){var n=t-u;return void 0===u||n>=e||n<0||f&&t-l>=o}function v(){var t=ho();if(m(t))return g(t);s=setTimeout(v,function(t){var n=e-(t-u);return f?_o(n,o-(t-l)):n}(t))}function g(t){return s=void 0,d&&r?h(t):(r=i=void 0,a)}function b(){var t=ho(),n=m(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return p(u);if(f)return clearTimeout(s),s=setTimeout(v,e),h(u)}return void 0===s&&(s=setTimeout(v,e)),a}return e=yo(e)||0,U(n)&&(c=!!n.leading,o=(f="maxWait"in n)?wo(yo(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==s&&clearTimeout(s),l=0,r=u=i=s=void 0},b.flush=function(){return void 0===s?a:g(ho())},b},Mo=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t))._fireSelectionChangeDoneDebounced=ko((function(t){return r.document.fire("selectionChangeDone",t)}),200),r}return m(n,[{key:"observe",value:function(){var t=this,e=this.document;e.on("keydown",(function(n,r){var i;e.selection.isFake&&((i=r.keyCode)==Hr.arrowright||i==Hr.arrowleft||i==Hr.arrowup||i==Hr.arrowdown)&&t.isEnabled&&(r.preventDefault(),t._handleSelectionMove(r.keyCode))}),{priority:"lowest"})}},{key:"destroy",value:function(){s(x(n.prototype),"destroy",this).call(this),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionMove",value:function(t){var e=this.document.selection,n=new Tr(e.getRanges(),{backward:e.isBackward,fake:!1});t!=Hr.arrowleft&&t!=Hr.arrowup||n.setTo(n.getFirstPosition()),t!=Hr.arrowright&&t!=Hr.arrowdown||n.setTo(n.getLastPosition());var r={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}]),n}(Hi),xo=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).mutationObserver=t.getObserver(uo),r.selection=r.document.selection,r.domConverter=t.domConverter,r._documents=new WeakSet,r._fireSelectionChangeDoneDebounced=ko((function(t){return r.document.fire("selectionChangeDone",t)}),200),r._clearInfiniteLoopInterval=setInterval((function(){return r._clearInfiniteLoop()}),1e3),r._loopbackCounter=0,r}return m(n,[{key:"observe",value:function(t){var e=this,n=t.ownerDocument;this._documents.has(n)||(this.listenTo(n,"selectionchange",(function(){e._handleSelectionChange(n)})),this._documents.add(n))}},{key:"destroy",value:function(){s(x(n.prototype),"destroy",this).call(this),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionChange",value:function(t){if(this.isEnabled){this.mutationObserver.flush();var e=t.defaultView.getSelection(),n=this.domConverter.domSelectionToView(e);if(0!=n.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(n)&&this.domConverter.isDomSelectionCorrect(e)||++this._loopbackCounter>60))if(this.selection.isSimilar(n))this.view.forceRender();else{var r={oldSelection:this.selection,newSelection:n,domSelection:e};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}else this.view.hasDomSelection=!1}}},{key:"_clearInfiniteLoop",value:function(){this._loopbackCounter=0}}]),n}(Hi),So=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n),(r=e.call(this,t)).domEventType=["focus","blur"],r.useCapture=!0;var i=r.document;return i.on("focus",(function(){i.isFocused=!0,r._renderTimeoutId=setTimeout((function(){return t.forceRender()}),50)})),i.on("blur",(function(e,n){var r=i.selection.editableElement;null!==r&&r!==n.target||(i.isFocused=!1,t.forceRender())})),r}return m(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}},{key:"destroy",value:function(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),s(x(n.prototype),"destroy",this).call(this)}}]),n}(co),Co=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n),(r=e.call(this,t)).domEventType=["compositionstart","compositionupdate","compositionend"];var i=r.document;return i.on("compositionstart",(function(){i.isComposing=!0})),i.on("compositionend",(function(){i.isComposing=!1})),r}return m(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}]),n}(co),Ao=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).domEventType=["beforeinput"],r}return m(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}]),n}(co);function To(t){return"[object Range]"==Object.prototype.toString.apply(t)}function Eo(t){var e=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(e.borderTopWidth,10),right:parseInt(e.borderRightWidth,10),bottom:parseInt(e.borderBottomWidth,10),left:parseInt(e.borderLeftWidth,10)}}var Oo=["top","right","bottom","left","width","height"],Po=function(){function t(e){h(this,t);var n=To(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),Fe(e)||n)if(n){var r=t.getDomRangeRects(e);Io(this,t.getBoundingRect(r))}else Io(this,e.getBoundingClientRect());else if(Fi(e)){var i=e.innerWidth,o=e.innerHeight;Io(this,{top:0,right:i,bottom:o,left:0,width:i,height:o})}else Io(this,e)}return m(t,[{key:"clone",value:function(){return new t(this)}},{key:"moveTo",value:function(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}},{key:"moveBy",value:function(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}},{key:"getIntersection",value:function(e){var n={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0?null:new t(n)}},{key:"getIntersectionArea",value:function(t){var e=this.getIntersection(t);return e?e.getArea():0}},{key:"getArea",value:function(){return this.width*this.height}},{key:"getVisible",value:function(){var e=this._source,n=this.clone();if(!Ro(e))for(var r=e.parentNode||e.commonAncestorContainer;r&&!Ro(r);){var i=new t(r),o=n.getIntersection(i);if(!o)return null;o.getArea()<n.getArea()&&(n=o),r=r.parentNode}return n}},{key:"isEqual",value:function(t){var e,n=c(Oo);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(this[r]!==t[r])return!1}}catch(t){n.e(t)}finally{n.f()}return!0}},{key:"contains",value:function(t){var e=this.getIntersection(t);return!(!e||!e.isEqual(t))}},{key:"excludeScrollbarsAndBorders",value:function(){var t,e,n,r=this._source;if(Fi(r))t=r.innerWidth-r.document.documentElement.clientWidth,e=r.innerHeight-r.document.documentElement.clientHeight,n=r.getComputedStyle(r.document.documentElement).direction;else{var i=Eo(this._source);t=r.offsetWidth-r.clientWidth-i.left-i.right,e=r.offsetHeight-r.clientHeight-i.top-i.bottom,n=r.ownerDocument.defaultView.getComputedStyle(r).direction,this.left+=i.left,this.top+=i.top,this.right-=i.right,this.bottom-=i.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,"ltr"===n?this.right-=t:this.left+=t,this.height-=e,this.bottom-=e,this}}],[{key:"getDomRangeRects",value:function(e){var n=[],r=Array.from(e.getClientRects());if(r.length){var i,o=c(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;n.push(new t(a))}}catch(t){o.e(t)}finally{o.f()}}else{var s=e.startContainer;hi(s)&&(s=s.parentNode);var u=new t(s.getBoundingClientRect());u.right=u.left,u.width=0,n.push(u)}return n}},{key:"getBoundingRect",value:function(e){var n,r={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY},i=0,o=c(e);try{for(o.s();!(n=o.n()).done;){var a=n.value;i++,r.left=Math.min(r.left,a.left),r.top=Math.min(r.top,a.top),r.right=Math.max(r.right,a.right),r.bottom=Math.max(r.bottom,a.bottom)}}catch(t){o.e(t)}finally{o.f()}return 0==i?null:(r.width=r.right-r.left,r.height=r.bottom-r.top,new t(r))}}]),t}();function Io(t,e){var n,r=c(Oo);try{for(r.s();!(n=r.n()).done;){var i=n.value;t[i]=e[i]}}catch(t){r.e(t)}finally{r.f()}}function Ro(t){return!!Fe(t)&&t===t.ownerDocument.body}function jo(t){for(var e=t.target,n=t.viewportOffset,r=void 0===n?0:n,i=qo(e),o=i,a=null;o;){No(Vo(o==i?e:a),(function(){return $o(e,o)}));var s=$o(e,o);if(Do(o,s,r),o.parent!=o){if(a=o.frameElement,o=o.parent,!a)return}else o=null}}function Do(t,e,n){var r=e.clone().moveBy(0,n),i=e.clone().moveBy(0,-n),o=new Po(t).excludeScrollbarsAndBorders();if(![i,r].every((function(t){return o.contains(t)}))){var a=t.scrollX,s=t.scrollY;Bo(i,o)?s-=o.top-e.top+n:Lo(r,o)&&(s+=e.bottom-o.bottom+n),zo(e,o)?a-=o.left-e.left+n:Fo(e,o)&&(a+=e.right-o.right+n),t.scrollTo(a,s)}}function No(t,e){for(var n,r,i=qo(t);t!=i.document.body;)r=e(),(n=new Po(t).excludeScrollbarsAndBorders()).contains(r)||(Bo(r,n)?t.scrollTop-=n.top-r.top:Lo(r,n)&&(t.scrollTop+=r.bottom-n.bottom),zo(r,n)?t.scrollLeft-=n.left-r.left:Fo(r,n)&&(t.scrollLeft+=r.right-n.right)),t=t.parentNode}function Lo(t,e){return t.bottom>e.bottom}function Bo(t,e){return t.top<e.top}function zo(t,e){return t.left<e.left}function Fo(t,e){return t.right>e.right}function qo(t){return To(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView}function Vo(t){if(To(t)){var e=t.commonAncestorContainer;return hi(e)&&(e=e.parentNode),e}return t.parentNode}function $o(t,e){var n=qo(t),r=new Po(t);if(n===e)return r;for(var i=n;i!=e;){var o=i.frameElement,a=new Po(o).excludeScrollbarsAndBorders();r.moveBy(a.left,a.top),i=i.parent}return r}Object.assign({},{scrollViewportToShowTarget:jo,scrollAncestorsToShowTarget:function(t){No(Vo(t),(function(){return new Po(t)}))}});var Ho=function(){function t(e){var n=this;h(this,t),this.document=new Or(e),this.domConverter=new Ni(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new Ti(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new ri(this.document),this.addObserver(uo),this.addObserver(xo),this.addObserver(So),this.addObserver(fo),this.addObserver(Mo),this.addObserver(Co),Fr&&this.addObserver(Ao),this.document.on("keydown",wi),function(t){t.document.on("keydown",(function(e,n){return function(t,e,n){if(e.keyCode==Hr.arrowright){var r=e.domTarget.ownerDocument.defaultView.getSelection(),i=1==r.rangeCount&&r.getRangeAt(0).collapsed;if(i||e.shiftKey){var o=r.focusNode,a=r.focusOffset,s=n.domPositionToView(o,a);if(null===s)return;var u=!1,l=s.getLastMatchingPosition((function(t){return t.item.is("uiElement")&&(u=!0),!(!t.item.is("uiElement")&&!t.item.is("attributeElement"))}));if(u){var c=n.viewPositionToDom(l);i?r.collapse(c.parent,c.offset):r.extend(c.parent,c.offset)}}}}(0,n,t.domConverter)}))}(this),this.on("render",(function(){n._render(),n.document.fire("layoutChanged"),n._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(function(){n._hasChangedSinceTheLastRendering=!0}))}return m(t,[{key:"attachDomRoot",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",r=this.document.getRoot(n);r._name=t.tagName.toLowerCase();for(var i={},o=0,a=Array.from(t.attributes);o<a.length;o++){var s=a[o],u=s.name,l=s.value;i[u]=l,"class"===u?this._writer.addClass(l.split(" "),r):this._writer.setAttribute(u,l,r)}this._initialDomRootAttributes.set(t,i);var f=function(){e._writer.setAttribute("contenteditable",!r.isReadOnly,r),r.isReadOnly?e._writer.addClass("ck-read-only",r):e._writer.removeClass("ck-read-only",r)};f(),this.domRoots.set(n,t),this.domConverter.bindElements(t,r),this._renderer.markToSync("children",r),this._renderer.markToSync("attributes",r),this._renderer.domDocuments.add(t.ownerDocument),r.on("change:children",(function(t,n){return e._renderer.markToSync("children",n)})),r.on("change:attributes",(function(t,n){return e._renderer.markToSync("attributes",n)})),r.on("change:text",(function(t,n){return e._renderer.markToSync("text",n)})),r.on("change:isReadOnly",(function(){return e.change(f)})),r.on("change",(function(){e._hasChangedSinceTheLastRendering=!0}));var d,h=c(this._observers.values());try{for(h.s();!(d=h.n()).done;){var p=d.value;p.observe(t,n)}}catch(t){h.e(t)}finally{h.f()}}},{key:"detachDomRoot",value:function(t){var e=this.domRoots.get(t);Array.from(e.attributes).forEach((function(t){var n=t.name;return e.removeAttribute(n)}));var n=this._initialDomRootAttributes.get(e);for(var r in n)e.setAttribute(r,n[r]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e)}},{key:"getDomRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(t)}},{key:"addObserver",value:function(t){var e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);var n,r=c(this.domRoots);try{for(r.s();!(n=r.n()).done;){var i=l(n.value,2),o=i[0],a=i[1];e.observe(a,o)}}catch(t){r.e(t)}finally{r.f()}return e.enable(),e}},{key:"getObserver",value:function(t){return this._observers.get(t)}},{key:"disableObservers",value:function(){var t,e=c(this._observers.values());try{for(e.s();!(t=e.n()).done;){t.value.disable()}}catch(t){e.e(t)}finally{e.f()}}},{key:"enableObservers",value:function(){var t,e=c(this._observers.values());try{for(e.s();!(t=e.n()).done;){t.value.enable()}}catch(t){e.e(t)}finally{e.f()}}},{key:"scrollToTheSelection",value:function(){var t=this.document.selection.getFirstRange();t&&jo({target:this.domConverter.viewRangeToDom(t),viewportOffset:20})}},{key:"focus",value:function(){if(!this.document.isFocused){var t=this.document.selection.editableElement;t&&(this.domConverter.focus(t),this.forceRender())}}},{key:"change",value:function(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new Ye.b("cannot-change-view-tree: Attempting to make changes to the view when it is in an incorrect state: rendering or post-fixers are in progress. This may cause some unexpected behavior and inconsistency between the DOM and the view.",this);try{if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;var e=t(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),e}catch(t){Ye.b.rethrowUnexpectedError(t,this)}}},{key:"forceRender",value:function(){this._hasChangedSinceTheLastRendering=!0,this.change((function(){}))}},{key:"destroy",value:function(){var t,e=c(this._observers.values());try{for(e.s();!(t=e.n()).done;){t.value.destroy()}}catch(t){e.e(t)}finally{e.f()}this.document.destroy(),this.stopListening()}},{key:"createPositionAt",value:function(t,e){return xr._createAt(t,e)}},{key:"createPositionAfter",value:function(t){return xr._createAfter(t)}},{key:"createPositionBefore",value:function(t){return xr._createBefore(t)}},{key:"createRange",value:function(t,e){return new Sr(t,e)}},{key:"createRangeOn",value:function(t){return Sr._createOn(t)}},{key:"createRangeIn",value:function(t){return Sr._createIn(t)}},{key:"createSelection",value:function(t,e,n){return new Tr(t,e,n)}},{key:"_disableRendering",value:function(t){this._renderingDisabled=t,0==t&&this.change((function(){}))}},{key:"_render",value:function(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}]),t}();an(Ho,pr);var Uo=function(){function t(e){h(this,t),this.parent=null,this._attrs=yn(e)}return m(t,[{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var t=[],e=this;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}},{key:"getAncestors",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},e=[],n=t.includeSelf?this:this.parent;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}},{key:"getCommonAncestor",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(e),r=t.getAncestors(e),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}},{key:"isBefore",value:function(t){if(this==t)return!1;if(this.root!==t.root)return!1;var e=this.getPath(),n=t.getPath(),r=pn(e,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return e[r]<n[r]}}},{key:"isAfter",value:function(t){return this!=t&&this.root===t.root&&!this.isBefore(t)}},{key:"hasAttribute",value:function(t){return this._attrs.has(t)}},{key:"getAttribute",value:function(t){return this._attrs.get(t)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"toJSON",value:function(){var t={};return this._attrs.size&&(t.attributes=Array.from(this._attrs).reduce((function(t,e){return t[e[0]]=e[1],t}),{})),t}},{key:"is",value:function(t){return"node"===t||"model:node"===t}},{key:"_clone",value:function(){return new t(this._attrs)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_setAttribute",value:function(t,e){this._attrs.set(t,e)}},{key:"_setAttributesTo",value:function(t){this._attrs=yn(t)}},{key:"_removeAttribute",value:function(t){return this._attrs.delete(t)}},{key:"_clearAttributes",value:function(){this._attrs.clear()}},{key:"index",get:function(){var t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new Ye.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return t}},{key:"startOffset",get:function(){var t;if(!this.parent)return null;if(null===(t=this.parent.getChildStartOffset(this)))throw new Ye.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return t}},{key:"offsetSize",get:function(){return 1}},{key:"endOffset",get:function(){return this.parent?this.startOffset+this.offsetSize:null}},{key:"nextSibling",get:function(){var t=this.index;return null!==t&&this.parent.getChild(t+1)||null}},{key:"previousSibling",get:function(){var t=this.index;return null!==t&&this.parent.getChild(t-1)||null}},{key:"root",get:function(){for(var t=this;t.parent;)t=t.parent;return t}}]),t}(),Wo=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),(i=e.call(this,r))._data=t||"",i}return m(n,[{key:"is",value:function(t){return"$text"===t||"model:$text"===t||"text"===t||"model:text"===t||"node"===t||"model:node"===t}},{key:"toJSON",value:function(){var t=s(x(n.prototype),"toJSON",this).call(this);return t.data=this.data,t}},{key:"_clone",value:function(){return new n(this.data,this.getAttributes())}},{key:"offsetSize",get:function(){return this.data.length}},{key:"data",get:function(){return this._data}}],[{key:"fromJSON",value:function(t){return new n(t.data,t.attributes)}}]),n}(Uo),Ko=function(){function t(e,n,r){if(h(this,t),this.textNode=e,n<0||n>e.offsetSize)throw new Ye.b("model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(r<0||n+r>e.offsetSize)throw new Ye.b("model-textproxy-wrong-length: Given length value is incorrect.",this);this.data=e.data.substring(n,n+r),this.offsetInText=n}return m(t,[{key:"is",value:function(t){return"$textProxy"===t||"model:$textProxy"===t||"textProxy"===t||"model:textProxy"===t}},{key:"getPath",value:function(){var t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}},{key:"getAncestors",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},e=[],n=t.includeSelf?this:this.parent;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}},{key:"hasAttribute",value:function(t){return this.textNode.hasAttribute(t)}},{key:"getAttribute",value:function(t){return this.textNode.getAttribute(t)}},{key:"getAttributes",value:function(){return this.textNode.getAttributes()}},{key:"getAttributeKeys",value:function(){return this.textNode.getAttributeKeys()}},{key:"startOffset",get:function(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}},{key:"offsetSize",get:function(){return this.data.length}},{key:"endOffset",get:function(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}},{key:"isPartial",get:function(){return this.offsetSize!==this.textNode.offsetSize}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}}]),t}(),Yo=function(){function t(e){h(this,t),this._nodes=[],e&&this._insertNodes(0,e)}return m(t,[{key:Symbol.iterator,value:function(){return this._nodes[Symbol.iterator]()}},{key:"getNode",value:function(t){return this._nodes[t]||null}},{key:"getNodeIndex",value:function(t){var e=this._nodes.indexOf(t);return-1==e?null:e}},{key:"getNodeStartOffset",value:function(t){var e=this.getNodeIndex(t);return null===e?null:this._nodes.slice(0,e).reduce((function(t,e){return t+e.offsetSize}),0)}},{key:"indexToOffset",value:function(t){if(t==this._nodes.length)return this.maxOffset;var e=this._nodes[t];if(!e)throw new Ye.b("model-nodelist-index-out-of-bounds: Given index cannot be found in the node list.",this);return this.getNodeStartOffset(e)}},{key:"offsetToIndex",value:function(t){var e,n=0,r=c(this._nodes);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(t>=n&&t<n+i.offsetSize)return this.getNodeIndex(i);n+=i.offsetSize}}catch(t){r.e(t)}finally{r.f()}if(n!=t)throw new Ye.b("model-nodelist-offset-out-of-bounds: Given offset cannot be found in the node list.",this,{offset:t,nodeList:this});return this.length}},{key:"_insertNodes",value:function(t,e){var n,r,i=c(e);try{for(i.s();!(r=i.n()).done;){if(!(r.value instanceof Uo))throw new Ye.b("model-nodelist-insertNodes-not-node: Trying to insert an object which is not a Node instance.",this)}}catch(t){i.e(t)}finally{i.f()}(n=this._nodes).splice.apply(n,[t,0].concat(u(e)))}},{key:"_removeNodes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(t,e)}},{key:"toJSON",value:function(){return this._nodes.map((function(t){return t.toJSON()}))}},{key:"length",get:function(){return this._nodes.length}},{key:"maxOffset",get:function(){return this._nodes.reduce((function(t,e){return t+e.offsetSize}),0)}}]),t}(),Go=function(t){v(n,t);var e=g(n);function n(t,r,i){var o;return h(this,n),(o=e.call(this,r)).name=t,o._children=new Yo,i&&o._insertChild(0,i),o}return m(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?e===this.name&&("element"===t||"model:element"===t):"element"===t||"model:element"===t||"node"===t||"model:node"===t}},{key:"getChild",value:function(t){return this._children.getNode(t)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(t){return this._children.getNodeIndex(t)}},{key:"getChildStartOffset",value:function(t){return this._children.getNodeStartOffset(t)}},{key:"offsetToIndex",value:function(t){return this._children.offsetToIndex(t)}},{key:"getNodeByPath",value:function(t){var e,n=this,r=c(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n=n.getChild(n.offsetToIndex(i))}}catch(t){r.e(t)}finally{r.f()}return n}},{key:"findAncestor",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1},n=e.includeSelf?this:this.parent;n;){if(n.name===t)return n;n=n.parent}return null}},{key:"toJSON",value:function(){var t=s(x(n.prototype),"toJSON",this).call(this);if(t.name=this.name,this._children.length>0){t.children=[];var e,r=c(this._children);try{for(r.s();!(e=r.n()).done;){var i=e.value;t.children.push(i.toJSON())}}catch(t){r.e(t)}finally{r.f()}}return t}},{key:"_clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=t?Array.from(this._children).map((function(t){return t._clone(!0)})):null;return new n(this.name,this.getAttributes(),e)}},{key:"_appendChild",value:function(t){this._insertChild(this.childCount,t)}},{key:"_insertChild",value:function(t,e){var n,r=function(t){return"string"==typeof t?[new Wo(t)]:(on(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new Wo(t):t instanceof Ko?new Wo(t.data,t.getAttributes()):t})))}(e),i=c(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(t){i.e(t)}finally{i.f()}this._children._insertNodes(t,r)}},{key:"_removeChildren",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this._children._removeNodes(t,n),i=c(r);try{for(i.s();!(e=i.n()).done;){var o=e.value;o.parent=null}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}}],[{key:"fromJSON",value:function(t){var e=null;if(t.children){e=[];var r,i=c(t.children);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.name?e.push(n.fromJSON(o)):e.push(Wo.fromJSON(o))}}catch(t){i.e(t)}finally{i.f()}}return new n(t.name,t.attributes,e)}}]),n}(Uo),Zo=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(h(this,t),!e.boundaries&&!e.startPosition)throw new Ye.b("model-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);var n=e.direction||"forward";if("forward"!=n&&"backward"!=n)throw new Ye.b("model-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",e,{direction:n});this.direction=n,this.boundaries=e.boundaries||null,e.startPosition?this.position=e.startPosition.clone():this.position=Xo._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}return m(t,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(t){var e,n,r,i;do{var o;r=this.position,i=this._visitedParent,e=(o=this.next()).done,n=o.value}while(!e&&t(n));e||(this.position=r,this._visitedParent=i)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&e.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0};var r=e.parent,i=Qo(e,r),o=i||ta(e,r,i);if(o instanceof Go)return this.shallow?e.offset++:(e.path.push(0),this._visitedParent=o),this.position=e,Jo("elementStart",o,t,e,1);if(o instanceof Wo){var a;if(this.singleCharacters)a=1;else{var s=o.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<s&&(s=this.boundaries.end.offset),a=s-e.offset}var u=e.offset-o.startOffset,l=new Ko(o,u,a);return e.offset+=a,this.position=e,Jo("text",l,t,e,a)}return e.path.pop(),e.offset++,this.position=e,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():Jo("elementEnd",n,t,e)}},{key:"_previous",value:function(){var t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===e.offset)return{done:!0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0};var r=e.parent,i=Qo(e,r),o=i||ea(e,r,i);if(o instanceof Go)return e.offset--,this.shallow?(this.position=e,Jo("elementStart",o,t,e,1)):(e.path.push(o.maxOffset),this.position=e,this._visitedParent=o,this.ignoreElementEnd?this._previous():Jo("elementEnd",o,t,e));if(o instanceof Wo){var a;if(this.singleCharacters)a=1;else{var s=o.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>s&&(s=this.boundaries.start.offset),a=e.offset-s}var u=e.offset-o.startOffset,l=new Ko(o,u-a,a);return e.offset-=a,this.position=e,Jo("text",l,t,e,a)}return e.path.pop(),this.position=e,this._visitedParent=n.parent,Jo("elementStart",n,t,e,1)}}]),t}();function Jo(t,e,n,r,i){return{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:r,length:i}}}var Xo=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(h(this,t),!e.is("element")&&!e.is("documentFragment"))throw new Ye.b("model-position-root-invalid: Position root invalid.",e);if(!(n instanceof Array)||0===n.length)throw new Ye.b("model-position-path-incorrect-format: Position path must be an array with at least one item.",e,{path:n});e.is("rootElement")?n=n.slice():(n=[].concat(u(e.getPath()),u(n)),e=e.root),this.root=e,this.path=n,this.stickiness=r}return m(t,[{key:"compareWith",value:function(t){if(this.root!=t.root)return"different";var e=pn(this.path,t.path);switch(e){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[e]<t.path[e]?"before":"after"}}},{key:"getLastMatchingPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.startPosition=this;var n=new Zo(e);return n.skip(t),n.position}},{key:"getParentPath",value:function(){return this.path.slice(0,-1)}},{key:"getAncestors",value:function(){var t=this.parent;return t.is("documentFragment")?[t]:t.getAncestors({includeSelf:!0})}},{key:"findAncestor",value:function(t){var e=this.parent;return e.is("element")?e.findAncestor(t,{includeSelf:!0}):null}},{key:"getCommonPath",value:function(t){if(this.root!=t.root)return[];var e=pn(this.path,t.path),n="string"==typeof e?Math.min(this.path.length,t.path.length):e;return this.path.slice(0,n)}},{key:"getCommonAncestor",value:function(t){for(var e=this.getAncestors(),n=t.getAncestors(),r=0;e[r]==n[r]&&e[r];)r++;return 0===r?null:e[r-1]}},{key:"getShiftedBy",value:function(t){var e=this.clone(),n=e.offset+t;return e.offset=n<0?0:n,e}},{key:"isAfter",value:function(t){return"after"==this.compareWith(t)}},{key:"isBefore",value:function(t){return"before"==this.compareWith(t)}},{key:"isEqual",value:function(t){return"same"==this.compareWith(t)}},{key:"isTouching",value:function(e){var n=null,r=null;switch(this.compareWith(e)){case"same":return!0;case"before":n=t._createAt(this),r=t._createAt(e);break;case"after":n=t._createAt(e),r=t._createAt(this);break;default:return!1}for(var i=n.parent;n.path.length+r.path.length;){if(n.isEqual(r))return!0;if(n.path.length>r.path.length){if(n.offset!==i.maxOffset)return!1;n.path=n.path.slice(0,-1),i=i.parent,n.offset++}else{if(0!==r.offset)return!1;r.path=r.path.slice(0,-1)}}}},{key:"is",value:function(t){return"position"===t||"model:position"===t}},{key:"hasSameParentAs",value:function(t){return this.root===t.root&&"same"==pn(this.getParentPath(),t.getParentPath())}},{key:"getTransformedByOperation",value:function(e){var n;switch(e.type){case"insert":n=this._getTransformedByInsertOperation(e);break;case"move":case"remove":case"reinsert":n=this._getTransformedByMoveOperation(e);break;case"split":n=this._getTransformedBySplitOperation(e);break;case"merge":n=this._getTransformedByMergeOperation(e);break;default:n=t._createAt(this)}return n}},{key:"_getTransformedByInsertOperation",value:function(t){return this._getTransformedByInsertion(t.position,t.howMany)}},{key:"_getTransformedByMoveOperation",value:function(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}},{key:"_getTransformedBySplitOperation",value:function(t){var e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1)}},{key:"_getTransformedByMergeOperation",value:function(e){var n,r=e.movedRange;return r.containsPosition(this)||r.start.isEqual(this)?(n=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(n=n._getTransformedByDeletion(e.deletionPosition,1))):n=this.isEqual(e.deletionPosition)?t._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),n}},{key:"_getTransformedByDeletion",value:function(e,n){var r=t._createAt(this);if(this.root!=e.root)return r;if("same"==pn(e.getParentPath(),this.getParentPath())){if(e.offset<this.offset){if(e.offset+n>this.offset)return null;r.offset-=n}}else if("prefix"==pn(e.getParentPath(),this.getParentPath())){var i=e.path.length-1;if(e.offset<=this.path[i]){if(e.offset+n>this.path[i])return null;r.path[i]-=n}}return r}},{key:"_getTransformedByInsertion",value:function(e,n){var r=t._createAt(this);if(this.root!=e.root)return r;if("same"==pn(e.getParentPath(),this.getParentPath()))(e.offset<this.offset||e.offset==this.offset&&"toPrevious"!=this.stickiness)&&(r.offset+=n);else if("prefix"==pn(e.getParentPath(),this.getParentPath())){var i=e.path.length-1;e.offset<=this.path[i]&&(r.path[i]+=n)}return r}},{key:"_getTransformedByMove",value:function(e,n,r){if(n=n._getTransformedByDeletion(e,r),e.isEqual(n))return t._createAt(this);var i=this._getTransformedByDeletion(e,r);return null===i||e.isEqual(this)&&"toNext"==this.stickiness||e.getShiftedBy(r).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(e,n):i._getTransformedByInsertion(n,r)}},{key:"_getCombined",value:function(e,n){var r=e.path.length-1,i=t._createAt(n);return i.stickiness=this.stickiness,i.offset=i.offset+this.path[r]-e.offset,i.path=[].concat(u(i.path),u(this.path.slice(r+1))),i}},{key:"toJSON",value:function(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}},{key:"clone",value:function(){return new this.constructor(this.root,this.path,this.stickiness)}},{key:"offset",get:function(){return this.path[this.path.length-1]},set:function(t){this.path[this.path.length-1]=t}},{key:"parent",get:function(){for(var t=this.root,e=0;e<this.path.length-1;e++)if(!(t=t.getChild(t.offsetToIndex(this.path[e]))))throw new Ye.b("model-position-path-incorrect: The position's path is incorrect.",this,{position:this});if(t.is("$text"))throw new Ye.b("model-position-path-incorrect: The position's path is incorrect.",this,{position:this});return t}},{key:"index",get:function(){return this.parent.offsetToIndex(this.offset)}},{key:"textNode",get:function(){return Qo(this,this.parent)}},{key:"nodeAfter",get:function(){var t=this.parent;return ta(this,t,Qo(this,t))}},{key:"nodeBefore",get:function(){var t=this.parent;return ea(this,t,Qo(this,t))}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){return this.offset==this.parent.maxOffset}}],[{key:"_createAt",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(e instanceof t)return new t(e.root,e.path,e.stickiness);var i=e;if("end"==n)n=i.maxOffset;else{if("before"==n)return this._createBefore(i,r);if("after"==n)return this._createAfter(i,r);if(0!==n&&!n)throw new Ye.b("model-createPositionAt-offset-required: Model#createPositionAt() requires the offset when the first parameter is a model item.",[this,e])}if(!i.is("element")&&!i.is("documentFragment"))throw new Ye.b("model-position-parent-incorrect: Position parent have to be a element or document fragment.",[this,e]);var o=i.getPath();return o.push(n),new this(i.root,o,r)}},{key:"_createAfter",value:function(t,e){if(!t.parent)throw new Ye.b("model-position-after-root: You cannot make a position after root.",[this,t],{root:t});return this._createAt(t.parent,t.endOffset,e)}},{key:"_createBefore",value:function(t,e){if(!t.parent)throw new Ye.b("model-position-before-root: You cannot make a position before root.",t,{root:t});return this._createAt(t.parent,t.startOffset,e)}},{key:"fromJSON",value:function(e,n){if("$graveyard"===e.root){var r=new t(n.graveyard,e.path);return r.stickiness=e.stickiness,r}if(!n.getRoot(e.root))throw new Ye.b("model-position-fromjson-no-root: Cannot create position for document. Root with specified name does not exist.",n,{rootName:e.root});return new t(n.getRoot(e.root),e.path,e.stickiness)}}]),t}();function Qo(t,e){var n=e.getChild(e.offsetToIndex(t.offset));return n&&n.is("$text")&&n.startOffset<t.offset?n:null}function ta(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset))}function ea(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset)-1)}var na=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;h(this,t),this.start=Xo._createAt(e),this.end=n?Xo._createAt(n):Xo._createAt(e),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}return m(t,[{key:Symbol.iterator,value:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(new Zo({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"containsPosition",value:function(t){return t.isAfter(this.start)&&t.isBefore(this.end)}},{key:"containsRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.isCollapsed&&(e=!1);var n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),r=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&r}},{key:"containsItem",value:function(t){var e=Xo._createBefore(t);return this.containsPosition(e)||this.start.isEqual(e)}},{key:"is",value:function(t){return"range"===t||"model:range"===t}},{key:"isEqual",value:function(t){return this.start.isEqual(t.start)&&this.end.isEqual(t.end)}},{key:"isIntersecting",value:function(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}},{key:"getDifference",value:function(e){var n=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&n.push(new t(this.start,e.start)),this.containsPosition(e.end)&&n.push(new t(e.end,this.end))):n.push(new t(this.start,this.end)),n}},{key:"getIntersection",value:function(e){if(this.isIntersecting(e)){var n=this.start,r=this.end;return this.containsPosition(e.start)&&(n=e.start),this.containsPosition(e.end)&&(r=e.end),new t(n,r)}return null}},{key:"getJoined",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.isIntersecting(e);if(r||(r=this.start.isBefore(e.start)?n?this.end.isTouching(e.start):this.end.isEqual(e.start):n?e.end.isTouching(this.start):e.end.isEqual(this.start)),!r)return null;var i=this.start,o=this.end;return e.start.isBefore(i)&&(i=e.start),e.end.isAfter(o)&&(o=e.end),new t(i,o)}},{key:"getMinimalFlatRanges",value:function(){for(var e=[],n=this.start.getCommonPath(this.end).length,r=Xo._createAt(this.start),i=r.parent;r.path.length>n+1;){var o=i.maxOffset-r.offset;0!==o&&e.push(new t(r,r.getShiftedBy(o))),r.path=r.path.slice(0,-1),r.offset++,i=i.parent}for(;r.path.length<=this.end.path.length;){var a=this.end.path[r.path.length-1],s=a-r.offset;0!==s&&e.push(new t(r,r.getShiftedBy(s))),r.offset=a,r.path.push(0)}return e}},{key:"getWalker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.boundaries=this,new Zo(t)}},{key:"getItems",value:o.a.mark((function t(){var e,n,r,i,a,s=arguments;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(e=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,e.ignoreElementEnd=!0,n=new Zo(e),r=c(n),t.prev=4,r.s();case 6:if((i=r.n()).done){t.next=12;break}return a=i.value,t.next=10,a.item;case 10:t.next=6;break;case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(4),r.e(t.t0);case 17:return t.prev=17,r.f(),t.finish(17);case 20:case"end":return t.stop()}}),t,this,[[4,14,17,20]])}))},{key:"getPositions",value:o.a.mark((function t(){var e,n,r,i,a,s=arguments;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(e=s.length>0&&void 0!==s[0]?s[0]:{}).boundaries=this,n=new Zo(e),t.next=5,n.position;case 5:r=c(n),t.prev=6,r.s();case 8:if((i=r.n()).done){t.next=14;break}return a=i.value,t.next=12,a.nextPosition;case 12:t.next=8;break;case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(6),r.e(t.t0);case 19:return t.prev=19,r.f(),t.finish(19);case 22:case"end":return t.stop()}}),t,this,[[6,16,19,22]])}))},{key:"getTransformedByOperation",value:function(e){switch(e.type){case"insert":return this._getTransformedByInsertOperation(e);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(e);case"split":return[this._getTransformedBySplitOperation(e)];case"merge":return[this._getTransformedByMergeOperation(e)]}return[new t(this.start,this.end)]}},{key:"getTransformedByOperations",value:function(e){var n,r=[new t(this.start,this.end)],i=c(e);try{for(i.s();!(n=i.n()).done;)for(var o=n.value,a=0;a<r.length;a++){var s=r[a].getTransformedByOperation(o);r.splice.apply(r,[a,1].concat(u(s))),a+=s.length-1}}catch(t){i.e(t)}finally{i.f()}for(var l=0;l<r.length;l++)for(var f=r[l],d=l+1;d<r.length;d++){var h=r[d];(f.containsRange(h)||h.containsRange(f)||f.isEqual(h))&&r.splice(d,1)}return r}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var t=this.start.nodeAfter,e=this.end.nodeBefore;return t&&t.is("element")&&t===e?t:null}},{key:"toJSON",value:function(){return{start:this.start.toJSON(),end:this.end.toJSON()}}},{key:"clone",value:function(){return new this.constructor(this.start,this.end)}},{key:"_getTransformedByInsertOperation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(t.position,t.howMany,e)}},{key:"_getTransformedByMoveOperation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.sourcePosition,r=t.howMany,i=t.targetPosition;return this._getTransformedByMove(n,i,r,e)}},{key:"_getTransformedBySplitOperation",value:function(e){var n=this.start._getTransformedBySplitOperation(e),r=this.end._getTransformedBySplitOperation(e);return this.end.isEqual(e.insertionPosition)&&(r=this.end.getShiftedBy(1)),n.root!=r.root&&(r=this.end.getShiftedBy(-1)),new t(n,r)}},{key:"_getTransformedByMergeOperation",value:function(e){if(this.start.isEqual(e.targetPosition)&&this.end.isEqual(e.deletionPosition))return new t(this.start);var n=this.start._getTransformedByMergeOperation(e),r=this.end._getTransformedByMergeOperation(e);return n.root!=r.root&&(r=this.end.getShiftedBy(-1)),n.isAfter(r)?(e.sourcePosition.isBefore(e.targetPosition)?(n=Xo._createAt(r)).offset=0:(e.deletionPosition.isEqual(n)||(r=e.deletionPosition),n=e.targetPosition),new t(n,r)):new t(n,r)}},{key:"_getTransformedByInsertion",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(r&&this.containsPosition(e))return[new t(this.start,e),new t(e.getShiftedBy(n),this.end._getTransformedByInsertion(e,n))];var i=new t(this.start,this.end);return i.start=i.start._getTransformedByInsertion(e,n),i.end=i.end._getTransformedByInsertion(e,n),[i]}},{key:"_getTransformedByMove",value:function(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){var o=this.start._getTransformedByMove(e,n,r);return[new t(o)]}var a,s=t._createFromPositionAndShift(e,r),u=n._getTransformedByDeletion(e,r);if(this.containsPosition(n)&&!i&&(s.containsPosition(this.start)||s.containsPosition(this.end))){var l=this.start._getTransformedByMove(e,n,r),c=this.end._getTransformedByMove(e,n,r);return[new t(l,c)]}var f=this.getDifference(s),d=null,h=this.getIntersection(s);if(1==f.length?d=new t(f[0].start._getTransformedByDeletion(e,r),f[0].end._getTransformedByDeletion(e,r)):2==f.length&&(d=new t(this.start,this.end._getTransformedByDeletion(e,r))),a=d?d._getTransformedByInsertion(u,r,null!==h||i):[],h){var p=new t(h.start._getCombined(s.start,u),h.end._getCombined(s.start,u));2==a.length?a.splice(1,0,p):a.push(p)}return a}},{key:"_getTransformedByDeletion",value:function(e,n){var r=this.start._getTransformedByDeletion(e,n),i=this.end._getTransformedByDeletion(e,n);return null==r&&null==i?null:(null==r&&(r=e),null==i&&(i=e),new t(r,i))}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return"same"==pn(this.start.getParentPath(),this.end.getParentPath())}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromPositionAndShift",value:function(t,e){var n=t,r=t.getShiftedBy(e);return e>0?new this(n,r):new this(r,n)}},{key:"_createIn",value:function(t){return new this(Xo._createAt(t,0),Xo._createAt(t,t.maxOffset))}},{key:"_createOn",value:function(t){return this._createFromPositionAndShift(Xo._createBefore(t),t.offsetSize)}},{key:"_createFromRanges",value:function(t){if(0===t.length)throw new Ye.b("range-create-from-ranges-empty-array: At least one range has to be passed.",null);if(1==t.length)return t[0].clone();var e=t[0];t.sort((function(t,e){return t.start.isAfter(e.start)?1:-1}));var n=t.indexOf(e),r=new this(e.start,e.end);if(n>0)for(var i=n-1;t[i].end.isEqual(r.start);i++)r.start=Xo._createAt(t[i].start);for(var o=n+1;o<t.length&&t[o].start.isEqual(r.end);o++)r.end=Xo._createAt(t[o].end);return r}},{key:"fromJSON",value:function(t,e){return new this(Xo.fromJSON(t.start,e),Xo.fromJSON(t.end,e))}}]),t}(),ra=function(){function t(){var e=this;h(this,t),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(function(t,n){if(!n.viewPosition){var r=e._modelToViewMapping.get(n.modelPosition.parent);n.viewPosition=e.findPositionIn(r,n.modelPosition.offset)}}),{priority:"low"}),this.on("viewToModelPosition",(function(t,n){if(!n.modelPosition){var r=e.findMappedViewAncestor(n.viewPosition),i=e._viewToModelMapping.get(r),o=e._toModelOffset(n.viewPosition.parent,n.viewPosition.offset,r);n.modelPosition=Xo._createAt(i,o)}}),{priority:"low"})}return m(t,[{key:"bindElements",value:function(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t)}},{key:"unbindViewElement",value:function(t){var e=this.toModelElement(t);if(this._viewToModelMapping.delete(t),this._elementToMarkerNames.has(t)){var n,r=c(this._elementToMarkerNames.get(t));try{for(r.s();!(n=r.n()).done;){var i=n.value;this._unboundMarkerNames.add(i)}}catch(t){r.e(t)}finally{r.f()}}this._modelToViewMapping.get(e)==t&&this._modelToViewMapping.delete(e)}},{key:"unbindModelElement",value:function(t){var e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e)}},{key:"bindElementToMarker",value:function(t,e){var n=this._markerNameToElements.get(e)||new Set;n.add(t);var r=this._elementToMarkerNames.get(t)||new Set;r.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,r)}},{key:"unbindElementFromMarkerName",value:function(t,e){var n=this._markerNameToElements.get(e);n&&(n.delete(t),0==n.size&&this._markerNameToElements.delete(e));var r=this._elementToMarkerNames.get(t);r&&(r.delete(e),0==r.size&&this._elementToMarkerNames.delete(t))}},{key:"flushUnboundMarkerNames",value:function(){var t=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),t}},{key:"clearBindings",value:function(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}},{key:"toModelElement",value:function(t){return this._viewToModelMapping.get(t)}},{key:"toViewElement",value:function(t){return this._modelToViewMapping.get(t)}},{key:"toModelRange",value:function(t){return new na(this.toModelPosition(t.start),this.toModelPosition(t.end))}},{key:"toViewRange",value:function(t){return new Sr(this.toViewPosition(t.start),this.toViewPosition(t.end))}},{key:"toModelPosition",value:function(t){var e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}},{key:"toViewPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isPhantom:!1},n={modelPosition:t,mapper:this,isPhantom:e.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}},{key:"markerNameToElements",value:function(t){var e=this._markerNameToElements.get(t);if(!e)return null;var n,r=new Set,i=c(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.is("attributeElement")){var a,s=c(o.getElementsWithSameId());try{for(s.s();!(a=s.n()).done;){var u=a.value;r.add(u)}}catch(t){s.e(t)}finally{s.f()}}else r.add(o)}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"registerViewToModelLength",value:function(t,e){this._viewToModelLengthCallbacks.set(t,e)}},{key:"findMappedViewAncestor",value:function(t){for(var e=t.parent;!this._viewToModelMapping.has(e);)e=e.parent;return e}},{key:"_toModelOffset",value:function(t,e,n){if(n!=t)return this._toModelOffset(t.parent,t.index,n)+this._toModelOffset(t,e,t);if(t.is("$text"))return e;for(var r=0,i=0;i<e;i++)r+=this.getModelLength(t.getChild(i));return r}},{key:"getModelLength",value:function(t){if(this._viewToModelLengthCallbacks.get(t.name))return this._viewToModelLengthCallbacks.get(t.name)(t);if(this._viewToModelMapping.has(t))return 1;if(t.is("$text"))return t.data.length;if(t.is("uiElement"))return 0;var e,n=0,r=c(t.getChildren());try{for(r.s();!(e=r.n()).done;){var i=e.value;n+=this.getModelLength(i)}}catch(t){r.e(t)}finally{r.f()}return n}},{key:"findPositionIn",value:function(t,e){var n,r=0,i=0,o=0;if(t.is("$text"))return new xr(t,e);for(;i<e;)n=t.getChild(o),i+=r=this.getModelLength(n),o++;return i==e?this._moveViewPositionToTextNode(new xr(t,o)):this.findPositionIn(n,e-(i-r))}},{key:"_moveViewPositionToTextNode",value:function(t){var e=t.nodeBefore,n=t.nodeAfter;return e instanceof gn?new xr(e,e.data.length):n instanceof gn?new xr(n,0):t}}]),t}();an(ra,Je);var ia=function(){function t(){h(this,t),this._consumable=new Map,this._textProxyRegistry=new Map}return m(t,[{key:"add",value:function(t,e){e=oa(e),t instanceof Ko&&(t=this._getSymbolForTextProxy(t)),this._consumable.has(t)||this._consumable.set(t,new Map),this._consumable.get(t).set(e,!0)}},{key:"consume",value:function(t,e){return e=oa(e),t instanceof Ko&&(t=this._getSymbolForTextProxy(t)),!!this.test(t,e)&&(this._consumable.get(t).set(e,!1),!0)}},{key:"test",value:function(t,e){e=oa(e),t instanceof Ko&&(t=this._getSymbolForTextProxy(t));var n=this._consumable.get(t);if(void 0===n)return null;var r=n.get(e);return void 0===r?null:r}},{key:"revert",value:function(t,e){e=oa(e),t instanceof Ko&&(t=this._getSymbolForTextProxy(t));var n=this.test(t,e);return!1===n?(this._consumable.get(t).set(e,!0),!0):!0!==n&&null}},{key:"_getSymbolForTextProxy",value:function(t){var e=null,n=this._textProxyRegistry.get(t.startOffset);if(n){var r=n.get(t.endOffset);r&&(e=r.get(t.parent))}return e||(e=this._addSymbolForTextProxy(t.startOffset,t.endOffset,t.parent)),e}},{key:"_addSymbolForTextProxy",value:function(t,e,n){var r,i,o=Symbol("textProxySymbol");return(r=this._textProxyRegistry.get(t))||(r=new Map,this._textProxyRegistry.set(t,r)),(i=r.get(e))||(i=new Map,r.set(e,i)),i.set(n,o),o}}]),t}();function oa(t){var e=t.split(":");return e.length>1?e[0]+":"+e[1]:e[0]}var aa=function(){function t(e){h(this,t),this.conversionApi=Object.assign({dispatcher:this},e)}return m(t,[{key:"convertChanges",value:function(t,e,n){var r,i=c(t.getMarkersToRemove());try{for(i.s();!(r=i.n()).done;){var o=r.value;this.convertMarkerRemove(o.name,o.range,n)}}catch(t){i.e(t)}finally{i.f()}var a,s=c(t.getChanges());try{for(s.s();!(a=s.n()).done;){var u=a.value;"insert"==u.type?this.convertInsert(na._createFromPositionAndShift(u.position,u.length),n):"remove"==u.type?this.convertRemove(u.position,u.length,u.name,n):this.convertAttribute(u.range,u.attributeKey,u.attributeOldValue,u.attributeNewValue,n)}}catch(t){s.e(t)}finally{s.f()}var l,f=c(this.conversionApi.mapper.flushUnboundMarkerNames());try{for(f.s();!(l=f.n()).done;){var d=l.value,h=e.get(d).getRange();this.convertMarkerRemove(d,h,n),this.convertMarkerAdd(d,h,n)}}catch(t){f.e(t)}finally{f.f()}var p,m=c(t.getMarkersToAdd());try{for(m.s();!(p=m.n()).done;){var v=p.value;this.convertMarkerAdd(v.name,v.range,n)}}catch(t){m.e(t)}finally{m.f()}}},{key:"convertInsert",value:function(t,e){this.conversionApi.writer=e,this.conversionApi.consumable=this._createInsertConsumable(t);var n,r=c(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.item,a={item:o,range:na._createFromPositionAndShift(i.previousPosition,i.length)};this._testAndFire("insert",a);var s,u=c(o.getAttributeKeys());try{for(u.s();!(s=u.n()).done;){var l=s.value;a.attributeKey=l,a.attributeOldValue=null,a.attributeNewValue=o.getAttribute(l),this._testAndFire("attribute:"+l,a)}}catch(t){u.e(t)}finally{u.f()}}}catch(t){r.e(t)}finally{r.f()}this._clearConversionApi()}},{key:"convertRemove",value:function(t,e,n,r){this.conversionApi.writer=r,this.fire("remove:"+n,{position:t,length:e},this.conversionApi),this._clearConversionApi()}},{key:"convertAttribute",value:function(t,e,n,r,i){this.conversionApi.writer=i,this.conversionApi.consumable=this._createConsumableForRange(t,"attribute:"+e);var o,a=c(t);try{for(a.s();!(o=a.n()).done;){var s=o.value,u={item:s.item,range:na._createFromPositionAndShift(s.previousPosition,s.length),attributeKey:e,attributeOldValue:n,attributeNewValue:r};this._testAndFire("attribute:"+e,u)}}catch(t){a.e(t)}finally{a.f()}this._clearConversionApi()}},{key:"convertSelection",value:function(t,e,n){var r=Array.from(e.getMarkersAtPosition(t.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(t,r),this.fire("selection",{selection:t},this.conversionApi),t.isCollapsed){var i,o=c(r);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.getRange();if(sa(t.getFirstPosition(),a,this.conversionApi.mapper)){var u={item:t,markerName:a.name,markerRange:s};this.conversionApi.consumable.test(t,"addMarker:"+a.name)&&this.fire("addMarker:"+a.name,u,this.conversionApi)}}}catch(t){o.e(t)}finally{o.f()}var l,f=c(t.getAttributeKeys());try{for(f.s();!(l=f.n()).done;){var d=l.value,h={item:t,range:t.getFirstRange(),attributeKey:d,attributeOldValue:null,attributeNewValue:t.getAttribute(d)};this.conversionApi.consumable.test(t,"attribute:"+h.attributeKey)&&this.fire("attribute:"+h.attributeKey+":$text",h,this.conversionApi)}}catch(t){f.e(t)}finally{f.f()}this._clearConversionApi()}}},{key:"convertMarkerAdd",value:function(t,e,n){if(e.root.document&&"$graveyard"!=e.root.rootName){this.conversionApi.writer=n;var r="addMarker:"+t,i=new ia;if(i.add(e,r),this.conversionApi.consumable=i,this.fire(r,{markerName:t,markerRange:e},this.conversionApi),i.test(e,r)){this.conversionApi.consumable=this._createConsumableForRange(e,r);var o,a=c(e.getItems());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(this.conversionApi.consumable.test(s,r)){var u={item:s,range:na._createOn(s),markerName:t,markerRange:e};this.fire(r,u,this.conversionApi)}}}catch(t){a.e(t)}finally{a.f()}this._clearConversionApi()}}}},{key:"convertMarkerRemove",value:function(t,e,n){e.root.document&&"$graveyard"!=e.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+t,{markerName:t,markerRange:e},this.conversionApi),this._clearConversionApi())}},{key:"_createInsertConsumable",value:function(t){var e,n=new ia,r=c(t);try{for(r.s();!(e=r.n()).done;){var i=e.value.item;n.add(i,"insert");var o,a=c(i.getAttributeKeys());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.add(i,"attribute:"+s)}}catch(t){a.e(t)}finally{a.f()}}}catch(t){r.e(t)}finally{r.f()}return n}},{key:"_createConsumableForRange",value:function(t,e){var n,r=new ia,i=c(t.getItems());try{for(i.s();!(n=i.n()).done;){var o=n.value;r.add(o,e)}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"_createSelectionConsumable",value:function(t,e){var n=new ia;n.add(t,"selection");var r,i=c(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;n.add(t,"addMarker:"+o.name)}}catch(t){i.e(t)}finally{i.f()}var a,s=c(t.getAttributeKeys());try{for(s.s();!(a=s.n()).done;){var u=a.value;n.add(t,"attribute:"+u)}}catch(t){s.e(t)}finally{s.f()}return n}},{key:"_testAndFire",value:function(t,e){if(this.conversionApi.consumable.test(e.item,t)){var n=e.item.name||"$text";this.fire(t+":"+n,e,this.conversionApi)}}},{key:"_clearConversionApi",value:function(){delete this.conversionApi.writer,delete this.conversionApi.consumable}}]),t}();function sa(t,e,n){var r=e.getRange(),i=Array.from(t.getAncestors());return i.shift(),i.reverse(),!i.some((function(t){if(r.containsItem(t))return!!n.toViewElement(t).getCustomProperty("addHighlight")}))}an(aa,Je);var ua=function(){function t(e,n,r){h(this,t),this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,e&&this.setTo(e,n,r)}return m(t,[{key:"isEqual",value:function(t){if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;var e,n=c(this._ranges);try{for(n.s();!(e=n.n()).done;){var r,i=e.value,o=!1,a=c(t._ranges);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(i.isEqual(s)){o=!0;break}}}catch(t){a.e(t)}finally{a.f()}if(!o)return!1}}catch(t){n.e(t)}finally{n.f()}return!0}},{key:"getRanges",value:o.a.mark((function t(){var e,n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=c(this._ranges),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return r=n.value,t.next=7,new na(r.start,r.end);case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var t,e=null,n=c(this._ranges);try{for(n.s();!(t=n.n()).done;){var r=t.value;e&&!r.start.isBefore(e.start)||(e=r)}}catch(t){n.e(t)}finally{n.f()}return e?new na(e.start,e.end):null}},{key:"getLastRange",value:function(){var t,e=null,n=c(this._ranges);try{for(n.s();!(t=n.n()).done;){var r=t.value;e&&!r.end.isAfter(e.end)||(e=r)}}catch(t){n.e(t)}finally{n.f()}return e?new na(e.start,e.end):null}},{key:"getFirstPosition",value:function(){var t=this.getFirstRange();return t?t.start.clone():null}},{key:"getLastPosition",value:function(){var t=this.getLastRange();return t?t.end.clone():null}},{key:"setTo",value:function(e,n,r){if(null===e)this._setRanges([]);else if(e instanceof t)this._setRanges(e.getRanges(),e.isBackward);else if(e&&"function"==typeof e.getRanges)this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof na)this._setRanges([e],!!n&&!!n.backward);else if(e instanceof Xo)this._setRanges([new na(e)]);else if(e instanceof Uo){var i,o=!!r&&!!r.backward;if("in"==n)i=na._createIn(e);else if("on"==n)i=na._createOn(e);else{if(void 0===n)throw new Ye.b("model-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",[this,e]);i=new na(Xo._createAt(e,n))}this._setRanges([i],o)}else{if(!on(e))throw new Ye.b("model-selection-setTo-not-selectable: Cannot set the selection to the given place.",[this,e]);this._setRanges(e,n&&!!n.backward)}}},{key:"_setRanges",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=(t=Array.from(t)).some((function(n){if(!(n instanceof na))throw new Ye.b("model-selection-set-ranges-not-range: Selection range set to an object that is not an instance of model.Range.",[e,t]);return e._ranges.every((function(t){return!t.isEqual(n)}))}));if(t.length!==this._ranges.length||r){this._removeAllRanges();var i,o=c(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;this._pushRange(a)}}catch(t){o.e(t)}finally{o.f()}this._lastRangeBackward=!!n,this.fire("change:range",{directChange:!0})}}},{key:"setFocus",value:function(t,e){if(null===this.anchor)throw new Ye.b("model-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",[this,t]);var n=Xo._createAt(t,e);if("same"!=n.compareWith(this.focus)){var r=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(r)?(this._pushRange(new na(n,r)),this._lastRangeBackward=!0):(this._pushRange(new na(r,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}}},{key:"getAttribute",value:function(t){return this._attrs.get(t)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"hasAttribute",value:function(t){return this._attrs.has(t)}},{key:"removeAttribute",value:function(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}},{key:"setAttribute",value:function(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"is",value:function(t){return"selection"===t||"model:selection"===t}},{key:"getSelectedBlocks",value:o.a.mark((function t(){var e,n,r,i,a,s,u,l,f,d;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=new WeakSet,n=c(this.getRanges()),t.prev=2,n.s();case 4:if((r=n.n()).done){t.next=38;break}if(i=r.value,a=fa(i.start,e),t.t0=a&&da(a,i),!t.t0){t.next=11;break}return t.next=11,a;case 11:s=c(i.getWalker()),t.prev=12,s.s();case 14:if((u=s.n()).done){t.next=23;break}if(l=u.value,f=l.item,t.t1="elementEnd"==l.type&&ca(f,e,i),!t.t1){t.next=21;break}return t.next=21,f;case 21:t.next=14;break;case 23:t.next=28;break;case 25:t.prev=25,t.t2=t.catch(12),s.e(t.t2);case 28:return t.prev=28,s.f(),t.finish(28);case 31:if(d=fa(i.end,e),t.t3=d&&!i.end.isTouching(Xo._createAt(d,0))&&da(d,i),!t.t3){t.next=36;break}return t.next=36,d;case 36:t.next=4;break;case 38:t.next=43;break;case 40:t.prev=40,t.t4=t.catch(2),n.e(t.t4);case 43:return t.prev=43,n.f(),t.finish(43);case 46:case"end":return t.stop()}}),t,this,[[2,40,43,46],[12,25,28,31]])}))},{key:"containsEntireContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root,e=Xo._createAt(t,0),n=Xo._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}},{key:"_pushRange",value:function(t){this._checkRange(t),this._ranges.push(new na(t.start,t.end))}},{key:"_checkRange",value:function(t){for(var e=0;e<this._ranges.length;e++)if(t.isIntersecting(this._ranges[e]))throw new Ye.b("model-selection-range-intersects: Trying to add a range that intersects with another range in the selection.",[this,t],{addedRange:t,intersectingRange:this._ranges[e]})}},{key:"_removeAllRanges",value:function(){for(;this._ranges.length>0;)this._popRange()}},{key:"_popRange",value:function(){this._ranges.pop()}},{key:"anchor",get:function(){if(this._ranges.length>0){var t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.end:t.start}return null}},{key:"focus",get:function(){if(this._ranges.length>0){var t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.start:t.end}return null}},{key:"isCollapsed",get:function(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}}]),t}();function la(t,e){return!e.has(t)&&(e.add(t),t.root.document.model.schema.isBlock(t)&&t.parent)}function ca(t,e,n){return la(t,e)&&da(t,n)}function fa(t,e){var n=t.parent.root.document.model.schema,r=t.parent.getAncestors({parentFirst:!0,includeSelf:!0}),i=!1,o=r.find((function(t){return!i&&(!(i=n.isLimit(t))&&la(t,e))}));return r.forEach((function(t){return e.add(t)})),o}function da(t,e){var n=function(t){for(var e=t.root.document.model.schema,n=t.parent;n;){if(e.isBlock(n))return n;n=n.parent}}(t);return!n||!e.containsRange(na._createOn(n),!0)}an(ua,Je);var ha=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),i=e.call(this,t,r),pa.call(y(i)),i}return m(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(t){return"liveRange"===t||"model:liveRange"===t||"range"==t||"model:range"===t}},{key:"toRange",value:function(){return new na(this.start,this.end)}}],[{key:"fromRange",value:function(t){return new n(t.start,t.end)}}]),n}(na);function pa(){var t=this;this.listenTo(this.root.document.model,"applyOperation",(function(e,n){var r=n[0];r.isDocumentOperation&&ma.call(t,r)}),{priority:"low"})}function ma(t){var e=this.getTransformedByOperation(t),n=na._createFromRanges(e),r=!n.isEqual(this),i=function(t,e){switch(e.type){case"insert":return t.containsPosition(e.position);case"move":case"remove":case"reinsert":case"merge":return t.containsPosition(e.sourcePosition)||t.start.isEqual(e.sourcePosition)||t.containsPosition(e.targetPosition);case"split":return t.containsPosition(e.splitPosition)||t.containsPosition(e.insertionPosition)}return!1}(this,t),o=null;if(r){"$graveyard"==n.root.rootName&&(o="remove"==t.type?t.sourcePosition:t.deletionPosition);var a=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",a,{deletionPosition:o})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:o})}an(ha,Je);var va="selection:",ga=function(){function t(e){h(this,t),this._selection=new ba(e),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}return m(t,[{key:"getRanges",value:function(){return this._selection.getRanges()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getSelectedBlocks",value:function(){return this._selection.getSelectedBlocks()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"containsEntireContent",value:function(t){return this._selection.containsEntireContent(t)}},{key:"destroy",value:function(){this._selection.destroy()}},{key:"getAttributeKeys",value:function(){return this._selection.getAttributeKeys()}},{key:"getAttributes",value:function(){return this._selection.getAttributes()}},{key:"getAttribute",value:function(t){return this._selection.getAttribute(t)}},{key:"hasAttribute",value:function(t){return this._selection.hasAttribute(t)}},{key:"refresh",value:function(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}},{key:"is",value:function(t){return"selection"===t||"model:selection"==t||"documentSelection"==t||"model:documentSelection"==t}},{key:"_setFocus",value:function(t,e){this._selection.setFocus(t,e)}},{key:"_setTo",value:function(t,e,n){this._selection.setTo(t,e,n)}},{key:"_setAttribute",value:function(t,e){this._selection.setAttribute(t,e)}},{key:"_removeAttribute",value:function(t){this._selection.removeAttribute(t)}},{key:"_getStoredAttributes",value:function(){return this._selection._getStoredAttributes()}},{key:"_overrideGravity",value:function(){return this._selection.overrideGravity()}},{key:"_restoreGravity",value:function(t){this._selection.restoreGravity(t)}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"hasOwnRange",get:function(){return this._selection.hasOwnRange}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"isGravityOverridden",get:function(){return this._selection.isGravityOverridden}},{key:"markers",get:function(){return this._selection.markers}},{key:"_ranges",get:function(){return this._selection._ranges}}],[{key:"_getStoreAttributeKey",value:function(t){return va+t}},{key:"_isStoreAttributeKey",value:function(t){return t.startsWith(va)}}]),t}();an(ga,Je);var ba=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this)).markers=new sn({idProperty:"name"}),r._model=t.model,r._document=t,r._attributePriority=new Map,r._selectionRestorePosition=null,r._hasChangedRange=!1,r._overriddenGravityRegister=new Set,r.listenTo(r._model,"applyOperation",(function(t,e){var n=e[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==r._ranges.length&&r._selectionRestorePosition&&r._fixGraveyardSelection(r._selectionRestorePosition),r._selectionRestorePosition=null,r._hasChangedRange&&(r._hasChangedRange=!1,r.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),r.on("change:range",(function(){var t,e=c(r.getRanges());try{for(e.s();!(t=e.n()).done;){var n=t.value;if(!r._document._validateSelectionRange(n))throw new Ye.b("document-selection-wrong-position: Range from document selection starts or ends at incorrect position.",y(r),{range:n})}}catch(t){e.e(t)}finally{e.f()}})),r.listenTo(r._model.markers,"update",(function(){return r._updateMarkers()})),r.listenTo(r._document,"change",(function(t,e){!function(t,e){var n,r=c(t.document.differ.getChanges());try{var i=function(){var r=n.value;if("insert"!=r.type)return"continue";var i=r.position.parent;r.length===i.maxOffset&&t.enqueueChange(e,(function(t){var e,n=c(Array.from(i.getAttributeKeys()).filter((function(t){return t.startsWith(va)})));try{for(n.s();!(e=n.n()).done;){var r=e.value;t.removeAttribute(r,i)}}catch(t){n.e(t)}finally{n.f()}}))};for(r.s();!(n=r.n()).done;)i()}catch(t){r.e(t)}finally{r.f()}}(r._model,e)})),r}return m(n,[{key:"destroy",value:function(){for(var t=0;t<this._ranges.length;t++)this._ranges[t].detach();this.stopListening()}},{key:"getRanges",value:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._ranges.length){t.next=4;break}return t.delegateYield(s(x(n.prototype),"getRanges",this).call(this),"t0",2);case 2:t.next=6;break;case 4:return t.next=6,this._document._getDefaultRange();case 6:case"end":return t.stop()}}),t,this)}))},{key:"getFirstRange",value:function(){return s(x(n.prototype),"getFirstRange",this).call(this)||this._document._getDefaultRange()}},{key:"getLastRange",value:function(){return s(x(n.prototype),"getLastRange",this).call(this)||this._document._getDefaultRange()}},{key:"setTo",value:function(t,e,r){s(x(n.prototype),"setTo",this).call(this,t,e,r),this._updateAttributes(!0),this._updateMarkers()}},{key:"setFocus",value:function(t,e){s(x(n.prototype),"setFocus",this).call(this,t,e),this._updateAttributes(!0),this._updateMarkers()}},{key:"setAttribute",value:function(t,e){if(this._setAttribute(t,e)){var n=[t];this.fire("change:attribute",{attributeKeys:n,directChange:!0})}}},{key:"removeAttribute",value:function(t){if(this._removeAttribute(t)){var e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}},{key:"overrideGravity",value:function(){var t=We();return this._overriddenGravityRegister.add(t),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),t}},{key:"restoreGravity",value:function(t){if(!this._overriddenGravityRegister.has(t))throw new Ye.b("document-selection-gravity-wrong-restore: Attempting to restore the selection gravity for an unknown UID.",this,{uid:t});this._overriddenGravityRegister.delete(t),this.isGravityOverridden||this._updateAttributes(!0)}},{key:"_popRange",value:function(){this._ranges.pop().detach()}},{key:"_pushRange",value:function(t){var e=this._prepareRange(t);e&&this._ranges.push(e)}},{key:"_prepareRange",value:function(t){var e=this;if(this._checkRange(t),t.root!=this._document.graveyard){var n=ha.fromRange(t);return n.on("change:range",(function(t,r,i){if(e._hasChangedRange=!0,n.root==e._document.graveyard){e._selectionRestorePosition=i.deletionPosition;var o=e._ranges.indexOf(n);e._ranges.splice(o,1),n.detach()}})),n}}},{key:"_updateMarkers",value:function(){var t,e=[],n=!1,r=c(this._model.markers);try{for(r.s();!(t=r.n()).done;){var i,o=t.value,a=o.getRange(),s=c(this.getRanges());try{for(s.s();!(i=s.n()).done;){var u=i.value;a.containsRange(u,!u.isCollapsed)&&e.push(o)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){r.e(t)}finally{r.f()}for(var l=Array.from(this.markers),f=0,d=e;f<d.length;f++){var h=d[f];this.markers.has(h)||(this.markers.add(h),n=!0)}for(var p=0,m=Array.from(this.markers);p<m.length;p++){var v=m[p];e.includes(v)||(this.markers.remove(v),n=!0)}n&&this.fire("change:marker",{oldMarkers:l,directChange:!1})}},{key:"_updateAttributes",value:function(t){var e=yn(this._getSurroundingAttributes()),n=yn(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else{var r,i=c(this._attributePriority);try{for(i.s();!(r=i.n()).done;){var o=l(r.value,2),a=o[0];"low"==o[1]&&(this._attrs.delete(a),this._attributePriority.delete(a))}}catch(t){i.e(t)}finally{i.f()}}this._setAttributesTo(e);var s,u=[],f=c(this.getAttributes());try{for(f.s();!(s=f.n()).done;){var d=l(s.value,2),h=d[0],p=d[1];n.has(h)&&n.get(h)===p||u.push(h)}}catch(t){f.e(t)}finally{f.f()}var m,v=c(n);try{for(v.s();!(m=v.n()).done;){var g=l(m.value,1)[0];this.hasAttribute(g)||u.push(g)}}catch(t){v.e(t)}finally{v.f()}u.length>0&&this.fire("change:attribute",{attributeKeys:u,directChange:!1})}},{key:"_setAttribute",value:function(t,e){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=r?"normal":"low";return("low"!=i||"normal"!=this._attributePriority.get(t))&&(s(x(n.prototype),"getAttribute",this).call(this,t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,i),!0))}},{key:"_removeAttribute",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e?"normal":"low";return!("low"==r&&"normal"==this._attributePriority.get(t)||(this._attributePriority.set(t,r),!s(x(n.prototype),"hasAttribute",this).call(this,t)||(this._attrs.delete(t),0)))}},{key:"_setAttributesTo",value:function(t){var e,n=new Set,r=c(this.getAttributes());try{for(r.s();!(e=r.n()).done;){var i=l(e.value,2),o=i[0],a=i[1];t.get(o)!==a&&this._removeAttribute(o,!1)}}catch(t){r.e(t)}finally{r.f()}var s,u=c(t);try{for(u.s();!(s=u.n()).done;){var f=l(s.value,2),d=f[0],h=f[1];this._setAttribute(d,h,!1)&&n.add(d)}}catch(t){u.e(t)}finally{u.f()}return n}},{key:"_getStoredAttributes",value:o.a.mark((function t(){var e,n,r,i,a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.getFirstPosition().parent,!this.isCollapsed||!e.isEmpty){t.next=21;break}n=c(e.getAttributeKeys()),t.prev=3,n.s();case 5:if((r=n.n()).done){t.next=13;break}if(!(i=r.value).startsWith(va)){t.next=11;break}return a=i.substr(va.length),t.next=11,[a,e.getAttribute(i)];case 11:t.next=5;break;case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(3),n.e(t.t0);case 18:return t.prev=18,n.f(),t.finish(18);case 21:case"end":return t.stop()}}),t,this,[[3,15,18,21]])}))},{key:"_getSurroundingAttributes",value:function(){var t=this.getFirstPosition(),e=this._model.schema,n=null;if(this.isCollapsed){var r=t.textNode?t.textNode:t.nodeBefore,i=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=ya(r)),n||(n=ya(i)),!this.isGravityOverridden&&!n)for(var o=r;o&&!e.isInline(o)&&!n;)n=ya(o=o.previousSibling);if(!n)for(var a=i;a&&!e.isInline(a)&&!n;)n=ya(a=a.nextSibling);n||(n=this._getStoredAttributes())}else{var s,u=c(this.getFirstRange());try{for(u.s();!(s=u.n()).done;){var l=s.value;if(l.item.is("element")&&e.isObject(l.item))break;if("text"==l.type){n=l.item.getAttributes();break}}}catch(t){u.e(t)}finally{u.f()}}return n}},{key:"_fixGraveyardSelection",value:function(t){var e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}},{key:"isCollapsed",get:function(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:s(x(n.prototype),"isCollapsed",this)}},{key:"anchor",get:function(){return s(x(n.prototype),"anchor",this)||this._document._getDefaultRange().start}},{key:"focus",get:function(){return s(x(n.prototype),"focus",this)||this._document._getDefaultRange().end}},{key:"rangeCount",get:function(){return this._ranges.length?this._ranges.length:1}},{key:"hasOwnRange",get:function(){return this._ranges.length>0}},{key:"isGravityOverridden",get:function(){return!!this._overriddenGravityRegister.size}}]),n}(ua);function ya(t){return t instanceof Ko||t instanceof Wo?t.getAttributes():null}var wa=function(){function t(e){h(this,t),this._dispatchers=e}return m(t,[{key:"add",value:function(t){var e,n=c(this._dispatchers);try{for(n.s();!(e=n.n()).done;){t(e.value)}}catch(t){n.e(t)}finally{n.f()}return this}}]),t}(),_a=function(t){return Be(t,5)},ka=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"elementToElement",value:function(t){return this.add(function(t){return(t=_a(t)).view=Sa(t.view,"container"),function(e){var n;e.on("insert:"+t.model,(n=t.view,function(t,e,r){var i=n(e.item,r);if(i&&r.consumable.consume(e.item,"insert")){var o=r.mapper.toViewPosition(e.range.start);r.mapper.bindElements(e.item,i),r.writer.insert(o,i)}}),{priority:t.converterPriority||"normal"})}}(t))}},{key:"attributeToElement",value:function(t){return this.add(function(t){var e="attribute:"+((t=_a(t)).model.key?t.model.key:t.model);if(t.model.name&&(e+=":"+t.model.name),t.model.values){var n,r=c(t.model.values);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.view[i]=Sa(t.view[i],"attribute")}}catch(t){r.e(t)}finally{r.f()}}else t.view=Sa(t.view,"attribute");var o=Ca(t);return function(n){n.on(e,function(t){return function(e,n,r){var i=t(n.attributeOldValue,r),o=t(n.attributeNewValue,r);if((i||o)&&r.consumable.consume(n.item,e.name)){var a=r.writer,s=a.document.selection;if(n.item instanceof ua||n.item instanceof ga)a.wrap(s.getFirstRange(),o);else{var u=r.mapper.toViewRange(n.range);null!==n.attributeOldValue&&i&&(u=a.unwrap(u,i)),null!==n.attributeNewValue&&o&&a.wrap(u,o)}}}}(o),{priority:t.converterPriority||"normal"})}}(t))}},{key:"attributeToAttribute",value:function(t){return this.add(function(t){var e="attribute:"+((t=_a(t)).model.key?t.model.key:t.model);if(t.model.name&&(e+=":"+t.model.name),t.model.values){var n,r=c(t.model.values);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.view[i]=Aa(t.view[i])}}catch(t){r.e(t)}finally{r.f()}}else t.view=Aa(t.view);var o=Ca(t);return function(n){var r;n.on(e,(r=o,function(t,e,n){var i=r(e.attributeOldValue,n),o=r(e.attributeNewValue,n);if((i||o)&&n.consumable.consume(e.item,t.name)){var a=n.mapper.toViewElement(e.item),s=n.writer;if(!a)throw new Ye.b("conversion-attribute-to-attribute-on-text: Trying to convert text node's attribute with attribute-to-attribute converter.",[e,n]);if(null!==e.attributeOldValue&&i)if("class"==i.key){var u,l=c(Array.isArray(i.value)?i.value:[i.value]);try{for(l.s();!(u=l.n()).done;){var f=u.value;s.removeClass(f,a)}}catch(t){l.e(t)}finally{l.f()}}else if("style"==i.key)for(var d=0,h=Object.keys(i.value);d<h.length;d++){var p=h[d];s.removeStyle(p,a)}else s.removeAttribute(i.key,a);if(null!==e.attributeNewValue&&o)if("class"==o.key){var m,v=c(Array.isArray(o.value)?o.value:[o.value]);try{for(v.s();!(m=v.n()).done;){var g=m.value;s.addClass(g,a)}}catch(t){v.e(t)}finally{v.f()}}else if("style"==o.key)for(var b=0,y=Object.keys(o.value);b<y.length;b++){var w=y[b];s.setStyle(w,o.value[w],a)}else s.setAttribute(o.key,o.value,a)}}),{priority:t.converterPriority||"normal"})}}(t))}},{key:"markerToElement",value:function(t){return this.add(function(t){return(t=_a(t)).view=Sa(t.view,"ui"),function(e){var n;e.on("addMarker:"+t.model,(n=t.view,function(t,e,r){e.isOpening=!0;var i=n(e,r);e.isOpening=!1;var o=n(e,r);if(i&&o){var a=e.markerRange;if(!a.isCollapsed||r.consumable.consume(a,t.name)){var s,u=c(a);try{for(u.s();!(s=u.n()).done;){var l=s.value;if(!r.consumable.consume(l.item,t.name))return}}catch(t){u.e(t)}finally{u.f()}var f=r.mapper,d=r.writer;d.insert(f.toViewPosition(a.start),i),r.mapper.bindElementToMarker(i,e.markerName),a.isCollapsed||(d.insert(f.toViewPosition(a.end),o),r.mapper.bindElementToMarker(o,e.markerName)),t.stop()}}}),{priority:t.converterPriority||"normal"}),e.on("removeMarker:"+t.model,(t.view,function(t,e,n){var r=n.mapper.markerNameToElements(e.markerName);if(r){var i,o=c(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;n.mapper.unbindElementFromMarkerName(a,e.markerName),n.writer.clear(n.writer.createRangeOn(a),a)}}catch(t){o.e(t)}finally{o.f()}n.writer.clearClonedElementsGroup(e.markerName),t.stop()}}),{priority:t.converterPriority||"normal"})}}(t))}},{key:"markerToHighlight",value:function(t){return this.add(function(t){return function(e){var n;e.on("addMarker:"+t.model,(n=t.view,function(t,e,r){if(e.item&&(e.item instanceof ua||e.item instanceof ga||e.item.is("$textProxy"))){var i=Ta(n,e,r);if(i&&r.consumable.consume(e.item,t.name)){var o=r.writer,a=Ma(o,i),s=o.document.selection;if(e.item instanceof ua||e.item instanceof ga)o.wrap(s.getFirstRange(),a,s);else{var u,l=r.mapper.toViewRange(e.range),f=c(o.wrap(l,a).getItems());try{for(f.s();!(u=f.n()).done;){var d=u.value;if(d.is("attributeElement")&&d.isSimilar(a)){r.mapper.bindElementToMarker(d,e.markerName);break}}}catch(t){f.e(t)}finally{f.f()}}}}}),{priority:t.converterPriority||"normal"}),e.on("addMarker:"+t.model,function(t){return function(e,n,r){if(n.item&&n.item instanceof Go){var i=Ta(t,n,r);if(i&&r.consumable.test(n.item,e.name)){var o=r.mapper.toViewElement(n.item);if(o&&o.getCustomProperty("addHighlight")){r.consumable.consume(n.item,e.name);var a,s=c(na._createIn(n.item));try{for(s.s();!(a=s.n()).done;){var u=a.value;r.consumable.consume(u.item,e.name)}}catch(t){s.e(t)}finally{s.f()}o.getCustomProperty("addHighlight")(o,i,r.writer),r.mapper.bindElementToMarker(o,n.markerName)}}}}}(t.view),{priority:t.converterPriority||"normal"}),e.on("removeMarker:"+t.model,function(t){return function(e,n,r){if(!n.markerRange.isCollapsed){var i=Ta(t,n,r);if(i){var o=Ma(r.writer,i),a=r.mapper.markerNameToElements(n.markerName);if(a){var s,u=c(a);try{for(u.s();!(s=u.n()).done;){var l=s.value;r.mapper.unbindElementFromMarkerName(l,n.markerName),l.is("attributeElement")?r.writer.unwrap(r.writer.createRangeOn(l),o):l.getCustomProperty("removeHighlight")(l,i.id,r.writer)}}catch(t){u.e(t)}finally{u.f()}r.writer.clearClonedElementsGroup(n.markerName),e.stop()}}}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}},{key:"markerToData",value:function(t){return this.add(function(t){var e=(t=_a(t)).model;return t.view||(t.view=function(n){return{group:e,name:n.substr(t.model.length+1)}}),function(n){var r;n.on("addMarker:"+e,(r=t.view,function(t,e,n){var i=r(e.markerName,n);if(i){var o=e.markerRange;n.consumable.consume(o,t.name)&&(xa(o,!1,n,e,i),xa(o,!0,n,e,i),t.stop())}}),{priority:t.converterPriority||"normal"}),n.on("removeMarker:"+e,function(t){return function(e,n,r){var i=t(n.markerName,r);if(i){var o=r.mapper.markerNameToElements(n.markerName);if(o){var a,s=c(o);try{for(s.s();!(a=s.n()).done;){var u=a.value;r.mapper.unbindElementFromMarkerName(u,n.markerName),u.is("containerElement")?(l("data-".concat(i.group,"-start-before"),u),l("data-".concat(i.group,"-start-after"),u),l("data-".concat(i.group,"-end-before"),u),l("data-".concat(i.group,"-end-after"),u)):r.writer.clear(r.writer.createRangeOn(u),u)}}catch(t){s.e(t)}finally{s.f()}r.writer.clearClonedElementsGroup(n.markerName),e.stop()}}function l(t,e){if(e.hasAttribute(t)){var n=new Set(e.getAttribute(t).split(","));n.delete(i.name),0==n.size?r.writer.removeAttribute(t,e):r.writer.setAttribute(t,Array.from(n).join(","),e)}}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}}]),n}(wa);function Ma(t,e){var n=t.createAttributeElement("span",e.attributes);return e.classes&&n._addClass(e.classes),e.priority&&(n._priority=e.priority),n._id=e.id,n}function xa(t,e,n,r,i){var o,a,s=e?t.start:t.end;n.schema.checkChild(s,"$text")?function(t,e,n,r,i){var o="".concat(i.group,"-").concat(e?"start":"end"),a=i.name?{name:i.name}:null,s=n.writer.createUIElement(o,a);n.writer.insert(t,s),n.mapper.bindElementToMarker(s,r.markerName)}(n.mapper.toViewPosition(s),e,n,r,i):(e&&s.nodeAfter||!e&&!s.nodeBefore?(o=s.nodeAfter,a=!0):(o=s.nodeBefore,a=!1),function(t,e,n,r,i,o){var a="data-".concat(o.group,"-").concat(e?"start":"end","-").concat(n?"before":"after"),s=t.hasAttribute(a)?t.getAttribute(a).split(","):[];s.unshift(o.name),r.writer.setAttribute(a,s.join(","),t),r.mapper.bindElementToMarker(t,i.markerName)}(n.mapper.toViewElement(o),e,a,n,r,i))}function Sa(t,e){return"function"==typeof t?t:function(n,r){return function(t,e,n){var r;"string"==typeof t&&(t={name:t});var i=e.writer,o=Object.assign({},t.attributes);if("container"==n)r=i.createContainerElement(t.name,o);else if("attribute"==n){var a={priority:t.priority||Pr.DEFAULT_PRIORITY};r=i.createAttributeElement(t.name,o,a)}else r=i.createUIElement(t.name,o);if(t.styles)for(var s=0,u=Object.keys(t.styles);s<u.length;s++){var l=u[s];i.setStyle(l,t.styles[l],r)}if(t.classes){var f=t.classes;if("string"==typeof f)i.addClass(f,r);else{var d,h=c(f);try{for(h.s();!(d=h.n()).done;){var p=d.value;i.addClass(p,r)}}catch(t){h.e(t)}finally{h.f()}}}return r}(t,r,e)}}function Ca(t){return t.model.values?function(e,n){var r=t.view[e];return r?r(e,n):null}:t.view}function Aa(t){return"string"==typeof t?function(e){return{key:t,value:e}}:"object"==S(t)?t.value?function(){return t}:function(e){return{key:t.key,value:e}}:t}function Ta(t,e,n){var r="function"==typeof t?t(e,n):t;return r?(r.priority||(r.priority=10),r.id||(r.id=e.markerName),r):null}function Ea(t){var e,n=t.model,r=n.schema,i=n.document,o=c(i.getRootNames());try{for(o.s();!(e=o.n()).done;){var a=e.value,s=i.getRoot(a);if(s.isEmpty&&!r.checkChild(s,"$text")&&r.checkChild(s,"paragraph"))return t.insertElement("paragraph",s),!0}}catch(t){o.e(t)}finally{o.f()}return!1}function Oa(t,e,n){var r=n.createContext(t);return!!n.checkChild(r,"paragraph")&&!!n.checkChild(r.push("paragraph"),e)}function Pa(t,e){var n=e.createElement("paragraph");return e.insert(n,t),e.createPositionAt(n,0)}var Ia=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"elementToElement",value:function(t){return this.add(Ra(t))}},{key:"elementToAttribute",value:function(t){return this.add(function(t){Na(t=_a(t));var e=La(t,!1),n=ja(t.view),r=n?"element:"+n:"element";return function(n){n.on(r,e,{priority:t.converterPriority||"low"})}}(t))}},{key:"attributeToAttribute",value:function(t){return this.add(function(t){var e=null;("string"==typeof(t=_a(t)).view||t.view.key)&&(e=function(t){"string"==typeof t.view&&(t.view={key:t.view});var e,n=t.view.key;return e="class"==n||"style"==n?a({},"class"==n?"classes":"styles",t.view.value):{attributes:a({},n,void 0===t.view.value?/[\s\S]*/:t.view.value)},t.view.name&&(e.name=t.view.name),t.view=e,n}(t)),Na(t,e);var n=La(t,!0);return function(e){e.on("element",n,{priority:t.converterPriority||"low"})}}(t))}},{key:"elementToMarker",value:function(t){return console.warn(Object(Ye.a)("upcast-helpers-element-to-marker-deprecated: The UpcastHelpers#elementToMarker() method was deprecated and will be removed in the near future. Please use UpcastHelpers#dataToMarker() instead.")),this.add(function(t){return function(t){var e=t.model;t.model=function(t,n){var r="string"==typeof e?e:e(t,n);return n.writer.createElement("$marker",{"data-name":r})}}(t=_a(t)),Ra(t)}(t))}},{key:"dataToMarker",value:function(t){return this.add(function(t){(t=_a(t)).model||(t.model=function(e){return e?t.view+":"+e:t.view});var e=Da(Ba(t,"start")),n=Da(Ba(t,"end"));return function(r){r.on("element:"+t.view+"-start",e,{priority:t.converterPriority||"normal"}),r.on("element:"+t.view+"-end",n,{priority:t.converterPriority||"normal"});var i=Ke.get("low"),o=Ke.get("highest"),a=Ke.get(t.converterPriority)/o;r.on("element",function(t){return function(e,n,r){var i="data-"+t.view;function o(e,i){var o,a=c(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=t.model(s,r),l=r.writer.createElement("$marker",{"data-name":u});r.writer.insert(l,e),n.modelCursor.isEqual(e)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(e,1),n.modelRange=n.modelRange._getTransformedByInsertion(e,1)[0]}}catch(t){a.e(t)}finally{a.f()}}n.modelRange||(n=Object.assign(n,r.convertChildren(n.viewItem,n.modelCursor))),r.consumable.consume(n.viewItem,{attributes:i+"-end-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(i+"-end-after").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-start-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(i+"-start-after").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-end-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(i+"-end-before").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-start-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(i+"-start-before").split(","))}}(t),{priority:i+a})}}(t))}}]),n}(wa);function Ra(t){var e=Da(t=_a(t)),n=ja(t.view),r=n?"element:"+n:"element";return function(n){n.on(r,e,{priority:t.converterPriority||"normal"})}}function ja(t){return"string"==typeof t?t:"object"==S(t)&&"string"==typeof t.name?t.name:null}function Da(t){var e=new wn(t.view);return function(n,r,i){var o=e.match(r.viewItem);if(o){var a=o.match;if(a.name=!0,i.consumable.test(r.viewItem,a)){var s=function(t,e,n){return t instanceof Function?t(e,n):n.writer.createElement(t)}(t.model,r.viewItem,i);s&&i.safeInsert(s,r.modelCursor)&&(i.consumable.consume(r.viewItem,a),i.convertChildren(r.viewItem,s),i.updateConversionResult(s,r))}}}}function Na(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null===e||function(t){return t.getAttribute(e)},r="object"!=S(t.model)?t.model:t.model.key,i="object"!=S(t.model)||void 0===t.model.value?n:t.model.value;t.model={key:r,value:i}}function La(t,e){var n=new wn(t.view);return function(r,i,o){var a=n.match(i.viewItem);if(a){var s=t.model.key,u="function"==typeof t.model.value?t.model.value(i.viewItem,o):t.model.value;null!==u&&(function(t,e){var n="function"==typeof t?t(e):t;return!("object"==S(n)&&!ja(n))&&(!n.classes&&!n.attributes&&!n.styles)}(t.view,i.viewItem)?a.match.name=!0:delete a.match.name,o.consumable.test(i.viewItem,a.match)&&(i.modelRange||(i=Object.assign(i,o.convertChildren(i.viewItem,i.modelCursor))),function(t,e,n,r){for(var i=!1,o=0,a=Array.from(t.getItems({shallow:n}));o<a.length;o++){var s=a[o];r.schema.checkAttribute(s,e.key)&&(r.writer.setAttribute(e.key,e.value,s),i=!0)}return i}(i.modelRange,{key:s,value:u},e,o)&&o.consumable.consume(i.viewItem,a.match)))}}}function Ba(t,e){var n={};return n.view=t.view+"-"+e,n.model=function(e,n){var r=e.getAttribute("name"),i=t.model(r,n);return n.writer.createElement("$marker",{"data-name":i})},n}var za=function(){function t(e,n){var r=this;h(this,t),this.model=e,this.view=new Ho(n),this.mapper=new ra,this.downcastDispatcher=new aa({mapper:this.mapper,schema:e.schema});var i=this.model.document,o=i.selection,a=this.model.markers;this.listenTo(this.model,"_beforeChanges",(function(){r.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(function(){r.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(i,"change",(function(){r.view.change((function(t){r.downcastDispatcher.convertChanges(i.differ,a,t),r.downcastDispatcher.convertSelection(o,a,t)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(t,e){return function(n,r){var i,o=r.newSelection,a=[],s=c(o.getRanges());try{for(s.s();!(i=s.n()).done;){var u=i.value;a.push(e.toModelRange(u))}}catch(t){s.e(t)}finally{s.f()}var l=t.createSelection(a,{backward:o.isBackward});l.isEqual(t.document.selection)||t.change((function(t){t.setSelection(l)}))}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(function(t,e,n){if(n.consumable.consume(e.item,"insert")){var r=n.writer,i=n.mapper.toViewPosition(e.range.start),o=r.createText(e.item.data);r.insert(i,o)}}),{priority:"lowest"}),this.downcastDispatcher.on("remove",(function(t,e,n){var r,i=n.mapper.toViewPosition(e.position),o=e.position.getShiftedBy(e.length),a=n.mapper.toViewPosition(o,{isPhantom:!0}),s=n.writer.createRange(i,a),u=n.writer.remove(s.getTrimmed()),l=c(n.writer.createRangeIn(u).getItems());try{for(l.s();!(r=l.n()).done;){var f=r.value;n.mapper.unbindViewElement(f)}}catch(t){l.e(t)}finally{l.f()}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(t,e,n){var r,i=n.writer,o=c(i.document.selection.getRanges());try{for(o.s();!(r=o.n()).done;){var a=r.value;a.isCollapsed&&a.end.parent.isAttached()&&n.writer.mergeAttributes(a.start)}}catch(t){o.e(t)}finally{o.f()}i.setSelection(null)}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(t,e,n){var r=e.selection;if(!r.isCollapsed&&n.consumable.consume(r,"selection")){var i,o=[],a=c(r.getRanges());try{for(a.s();!(i=a.n()).done;){var s=i.value,u=n.mapper.toViewRange(s);o.push(u)}}catch(t){a.e(t)}finally{a.f()}n.writer.setSelection(o,{backward:r.isBackward})}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(t,e,n){var r=e.selection;if(r.isCollapsed&&n.consumable.consume(r,"selection")){var i=n.writer,o=r.getFirstPosition(),a=n.mapper.toViewPosition(o),s=i.breakAttributes(a);i.setSelection(s)}}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((function(t){if("$graveyard"==t.rootName)return null;var e=new kr(r.view.document,t.name);return e.rootName=t.rootName,r.mapper.bindElements(t,e),e}))}return m(t,[{key:"destroy",value:function(){this.view.destroy(),this.stopListening()}}]),t}();an(za,pr);var Fa=function(){function t(){h(this,t),this._commands=new Map}return m(t,[{key:"add",value:function(t,e){this._commands.set(t,e)}},{key:"get",value:function(t){return this._commands.get(t)}},{key:"execute",value:function(t){var e=this.get(t);if(!e)throw new Ye.b("commandcollection-command-not-found: Command does not exist.",this,{commandName:t});for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.execute.apply(e,r)}},{key:"names",value:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._commands.keys(),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"commands",value:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._commands.values(),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:Symbol.iterator,value:function(){return this._commands[Symbol.iterator]()}},{key:"destroy",value:function(){var t,e=c(this.commands());try{for(e.s();!(t=e.n()).done;){t.value.destroy()}}catch(t){e.e(t)}finally{e.f()}}}]),t}(),qa=function(){function t(){h(this,t),this._consumables=new Map}return m(t,[{key:"add",value:function(t,e){var n;t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):(this._consumables.has(t)?n=this._consumables.get(t):(n=new Va(t),this._consumables.set(t,n)),n.add(e))}},{key:"test",value:function(t,e){var n=this._consumables.get(t);return void 0===n?null:t.is("$text")||t.is("documentFragment")?n:n.test(e)}},{key:"consume",value:function(t,e){return!!this.test(t,e)&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!1):this._consumables.get(t).consume(e),!0)}},{key:"revert",value:function(t,e){var n=this._consumables.get(t);void 0!==n&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):n.revert(e))}}],[{key:"consumablesFromElement",value:function(t){var e,n={element:t,name:!0,attributes:[],classes:[],styles:[]},r=c(t.getAttributeKeys());try{for(r.s();!(e=r.n()).done;){var i=e.value;"style"!=i&&"class"!=i&&n.attributes.push(i)}}catch(t){r.e(t)}finally{r.f()}var o,a=c(t.getClassNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.classes.push(s)}}catch(t){a.e(t)}finally{a.f()}var u,l=c(t.getStyleNames());try{for(l.s();!(u=l.n()).done;){var f=u.value;n.styles.push(f)}}catch(t){l.e(t)}finally{l.f()}return n}},{key:"createFrom",value:function(e,n){if(n||(n=new t(e)),e.is("$text"))return n.add(e),n;e.is("element")&&n.add(e,t.consumablesFromElement(e)),e.is("documentFragment")&&n.add(e);var r,i=c(e.getChildren());try{for(i.s();!(r=i.n()).done;){var o=r.value;n=t.createFrom(o,n)}}catch(t){i.e(t)}finally{i.f()}return n}}]),t}(),Va=function(){function t(e){h(this,t),this.element=e,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}return m(t,[{key:"add",value:function(t){for(var e in t.name&&(this._canConsumeName=!0),this._consumables)e in t&&this._add(e,t[e])}},{key:"test",value:function(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(var e in this._consumables)if(e in t){var n=this._test(e,t[e]);if(!0!==n)return n}return!0}},{key:"consume",value:function(t){for(var e in t.name&&(this._canConsumeName=!1),this._consumables)e in t&&this._consume(e,t[e])}},{key:"revert",value:function(t){for(var e in t.name&&(this._canConsumeName=!0),this._consumables)e in t&&this._revert(e,t[e])}},{key:"_add",value:function(t,e){var n,r=Ct(e)?e:[e],i=this._consumables[t],o=c(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"===t&&("class"===a||"style"===a))throw new Ye.b("viewconsumable-invalid-attribute: Classes and styles should be handled separately.",this);if(i.set(a,!0),"styles"===t){var s,u=c(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(u.s();!(s=u.n()).done;){var l=s.value;i.set(l,!0)}}catch(t){u.e(t)}finally{u.f()}}}}catch(t){o.e(t)}finally{o.f()}}},{key:"_test",value:function(t,e){var n,r=Ct(e)?e:[e],i=this._consumables[t],o=c(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==t||"class"!==a&&"style"!==a){var s=i.get(a);if(void 0===s)return null;if(!s)return!1}else{var l="class"==a?"classes":"styles",f=this._test(l,u(this._consumables[l].keys()));if(!0!==f)return f}}}catch(t){o.e(t)}finally{o.f()}return!0}},{key:"_consume",value:function(t,e){var n,r=Ct(e)?e:[e],i=this._consumables[t],o=c(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==t||"class"!==a&&"style"!==a){if(i.set(a,!1),"styles"==t){var s,l=c(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(l.s();!(s=l.n()).done;){var f=s.value;i.set(f,!1)}}catch(t){l.e(t)}finally{l.f()}}}else{var d="class"==a?"classes":"styles";this._consume(d,u(this._consumables[d].keys()))}}}catch(t){o.e(t)}finally{o.f()}}},{key:"_revert",value:function(t,e){var n,r=Ct(e)?e:[e],i=this._consumables[t],o=c(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==t||"class"!==a&&"style"!==a)!1===i.get(a)&&i.set(a,!0);else{var s="class"==a?"classes":"styles";this._revert(s,u(this._consumables[s].keys()))}}}catch(t){o.e(t)}finally{o.f()}}}]),t}(),$a=function(){function t(){var e=this;h(this,t),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(function(t,e){e[0]=new Ha(e[0])}),{priority:"highest"}),this.on("checkChild",(function(t,n){n[0]=new Ha(n[0]),n[1]=e.getDefinition(n[1])}),{priority:"highest"})}return m(t,[{key:"register",value:function(t,e){if(this._sourceDefinitions[t])throw new Ye.b("schema-cannot-register-item-twice: A single item cannot be registered twice in the schema.",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache()}},{key:"extend",value:function(t,e){if(!this._sourceDefinitions[t])throw new Ye.b("schema-cannot-extend-missing-item: Cannot extend an item which was not registered yet.",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache()}},{key:"getDefinitions",value:function(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}},{key:"getDefinition",value:function(t){var e;return e="string"==typeof t?t:t.is&&(t.is("$text")||t.is("$textProxy"))?"$text":t.name,this.getDefinitions()[e]}},{key:"isRegistered",value:function(t){return!!this.getDefinition(t)}},{key:"isBlock",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isBlock)}},{key:"isLimit",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isLimit&&!e.isObject)}},{key:"isObject",value:function(t){var e=this.getDefinition(t);return!!e&&!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent)}},{key:"isInline",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isInline)}},{key:"isSelectable",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isSelectable&&!e.isObject)}},{key:"isContent",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isContent&&!e.isObject)}},{key:"checkChild",value:function(t,e){return!!e&&this._checkContextMatch(e,t)}},{key:"checkAttribute",value:function(t,e){var n=this.getDefinition(t.last);return!!n&&n.allowAttributes.includes(e)}},{key:"checkMerge",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t instanceof Xo){var n=t.nodeBefore,r=t.nodeAfter;if(!(n instanceof Go))throw new Ye.b("schema-check-merge-no-element-before: The node before the merge position must be an element.",this);if(!(r instanceof Go))throw new Ye.b("schema-check-merge-no-element-after: The node after the merge position must be an element.",this);return this.checkMerge(n,r)}var i,o=c(e.getChildren());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(!this.checkChild(t,a))return!1}}catch(t){o.e(t)}finally{o.f()}return!0}},{key:"addChildCheck",value:function(t){this.on("checkChild",(function(e,n){var r=l(n,2),i=r[0],o=r[1];if(o){var a=t(i,o);"boolean"==typeof a&&(e.stop(),e.return=a)}}),{priority:"high"})}},{key:"addAttributeCheck",value:function(t){this.on("checkAttribute",(function(e,n){var r=l(n,2),i=r[0],o=r[1],a=t(i,o);"boolean"==typeof a&&(e.stop(),e.return=a)}),{priority:"high"})}},{key:"setAttributeProperties",value:function(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}},{key:"getAttributeProperties",value:function(t){return this._attributeProperties[t]||{}}},{key:"getLimitElement",value:function(t){var e;for(e=t instanceof Xo?t.parent:(t instanceof na?[t]:Array.from(t.getRanges())).reduce((function(t,e){var n=e.getCommonAncestor();return t?t.getCommonAncestor(n,{includeSelf:!0}):n}),null);!this.isLimit(e)&&e.parent;)e=e.parent;return e}},{key:"checkAttributeInSelection",value:function(t,e){if(t.isCollapsed){var n=[].concat(u(t.getFirstPosition().getAncestors()),[new Wo("",t.getAttributes())]);return this.checkAttribute(n,e)}var r,i=c(t.getRanges());try{for(i.s();!(r=i.n()).done;){var o,a=c(r.value);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(this.checkAttribute(s.item,e))return!0}}catch(t){a.e(t)}finally{a.f()}}}catch(t){i.e(t)}finally{i.f()}return!1}},{key:"getValidRanges",value:o.a.mark((function t(e,n){var r,i,a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=o.a.mark((function t(e){var n,r,i;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=c(e),t.prev=1,n.s();case 3:if((r=n.n()).done){t.next=8;break}return i=r.value,t.delegateYield(i.getMinimalFlatRanges(),"t0",6);case 6:t.next=3;break;case 8:t.next=13;break;case 10:t.prev=10,t.t1=t.catch(1),n.e(t.t1);case 13:return t.prev=13,n.f(),t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[1,10,13,16]])}))(e),r=c(e),t.prev=2,r.s();case 4:if((i=r.n()).done){t.next=9;break}return a=i.value,t.delegateYield(this._getValidRangesForRange(a,n),"t0",7);case 7:t.next=4;break;case 9:t.next=14;break;case 11:t.prev=11,t.t1=t.catch(2),r.e(t.t1);case 14:return t.prev=14,r.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[2,11,14,17]])}))},{key:"getNearestSelectionRange",value:function(t){var e,n,r=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(t,"$text"))return new na(t);var a=t.getAncestors().reverse().find((function(t){return r.isLimit(t)}))||t.root;"both"!=i&&"backward"!=i||(e=new Zo({boundaries:na._createIn(a),startPosition:t,direction:"backward"})),"both"!=i&&"forward"!=i||(n=new Zo({boundaries:na._createIn(a),startPosition:t}));var s,u=c(o.a.mark((function t(e,n){var r,i,a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=!1;case 1:if(r){t.next=18;break}if(r=!0,!e){t.next=9;break}if(i=e.next(),t.t0=i.done,t.t0){t.next=9;break}return r=!1,t.next=9,{walker:e,value:i.value};case 9:if(!n){t.next=16;break}if(a=n.next(),t.t1=a.done,t.t1){t.next=16;break}return r=!1,t.next=16,{walker:n,value:a.value};case 16:t.next=1;break;case 18:case"end":return t.stop()}}),t)}))(e,n));try{for(u.s();!(s=u.n()).done;){var l=s.value,f=l.walker==e?"elementEnd":"elementStart",d=l.value;if(d.type==f&&this.isObject(d.item))return na._createOn(d.item);if(this.checkChild(d.nextPosition,"$text"))return new na(d.nextPosition)}}catch(t){u.e(t)}finally{u.f()}return null}},{key:"findAllowedParent",value:function(t,e){for(var n=t.parent;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent}return null}},{key:"removeDisallowedAttributes",value:function(t,e){var n,r=c(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.is("$text"))es(this,i,e);else{var o,a=c(na._createIn(i).getPositions());try{for(a.s();!(o=a.n()).done;){var s=o.value;es(this,s.nodeBefore||s.parent,e)}}catch(t){a.e(t)}finally{a.f()}}}}catch(t){r.e(t)}finally{r.f()}}},{key:"createContext",value:function(t){return new Ha(t)}},{key:"_clearCache",value:function(){this._compiledDefinitions=null}},{key:"_compile",value:function(){for(var t={},e=this._sourceDefinitions,n=Object.keys(e),r=0,i=n;r<i.length;r++){var o=i[r];t[o]=Ua(e[o],o)}for(var a=0,s=n;a<s.length;a++){Wa(t,s[a])}for(var u=0,l=n;u<l.length;u++){Ka(t,l[u])}for(var c=0,f=n;c<f.length;c++){var d=f[c];Ya(t,d),Ga(t,d)}for(var h=0,p=n;h<p.length;h++){var m=p[h];Za(t,m),Ja(t,m)}this._compiledDefinitions=t}},{key:"_checkContextMatch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length-1,r=e.getItem(n);if(t.allowIn.includes(r.name)){if(0==n)return!0;var i=this.getDefinition(r);return this._checkContextMatch(i,e,n-1)}return!1}},{key:"_getValidRangesForRange",value:o.a.mark((function t(e,n){var r,i,a,s,u;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=e.start,i=e.start,a=c(e.getItems({shallow:!0})),t.prev=2,a.s();case 4:if((s=a.n()).done){t.next=19;break}if(u=s.value,t.t0=u.is("element"),!t.t0){t.next=9;break}return t.delegateYield(this._getValidRangesForRange(na._createIn(u),n),"t1",9);case 9:if(t.t2=this.checkAttribute(u,n),t.t2){t.next=16;break}if(t.t3=r.isEqual(i),t.t3){t.next=15;break}return t.next=15,new na(r,i);case 15:r=Xo._createAfter(u);case 16:i=Xo._createAfter(u);case 17:t.next=4;break;case 19:t.next=24;break;case 21:t.prev=21,t.t4=t.catch(2),a.e(t.t4);case 24:return t.prev=24,a.f(),t.finish(24);case 27:if(t.t5=r.isEqual(i),t.t5){t.next=31;break}return t.next=31,new na(r,i);case 31:case"end":return t.stop()}}),t,this,[[2,21,24,27]])}))}]),t}();an($a,pr);var Ha=function(){function t(e){if(h(this,t),e instanceof t)return e;"string"==typeof e?e=[e]:Array.isArray(e)||(e=e.getAncestors({includeSelf:!0})),e[0]&&"string"!=typeof e[0]&&e[0].is("documentFragment")&&e.shift(),this._items=e.map(ts)}return m(t,[{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"push",value:function(e){var n=new t([e]);return n._items=[].concat(u(this._items),u(n._items)),n}},{key:"getItem",value:function(t){return this._items[t]}},{key:"getNames",value:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._items.map((function(t){return t.name})),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"endsWith",value:function(t){return Array.from(this.getNames()).join(" ").endsWith(t)}},{key:"startsWith",value:function(t){return Array.from(this.getNames()).join(" ").startsWith(t)}},{key:"length",get:function(){return this._items.length}},{key:"last",get:function(){return this._items[this._items.length-1]}}]),t}();function Ua(t,e){var n={name:e,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(t,e){var n,r=c(t);try{for(r.s();!(n=r.n()).done;){var i,o=n.value,a=c(Object.keys(o).filter((function(t){return t.startsWith("is")})));try{for(a.s();!(i=a.n()).done;){var s=i.value;e[s]=o[s]}}catch(t){a.e(t)}finally{a.f()}}}catch(t){r.e(t)}finally{r.f()}}(t,n),Xa(t,n,"allowIn"),Xa(t,n,"allowContentOf"),Xa(t,n,"allowWhere"),Xa(t,n,"allowAttributes"),Xa(t,n,"allowAttributesOf"),Xa(t,n,"inheritTypesFrom"),function(t,e){var n,r=c(t);try{for(r.s();!(n=r.n()).done;){var i=n.value.inheritAllFrom;i&&(e.allowContentOf.push(i),e.allowWhere.push(i),e.allowAttributesOf.push(i),e.inheritTypesFrom.push(i))}}catch(t){r.e(t)}finally{r.f()}}(t,n),n}function Wa(t,e){var n,r=c(t[e].allowContentOf);try{for(r.s();!(n=r.n()).done;){var i=n.value;t[i]&&Qa(t,i).forEach((function(t){t.allowIn.push(e)}))}}catch(t){r.e(t)}finally{r.f()}delete t[e].allowContentOf}function Ka(t,e){var n,r=c(t[e].allowWhere);try{for(r.s();!(n=r.n()).done;){var i=t[n.value];if(i){var o,a=i.allowIn;(o=t[e].allowIn).push.apply(o,u(a))}}}catch(t){r.e(t)}finally{r.f()}delete t[e].allowWhere}function Ya(t,e){var n,r=c(t[e].allowAttributesOf);try{for(r.s();!(n=r.n()).done;){var i=t[n.value];if(i){var o,a=i.allowAttributes;(o=t[e].allowAttributes).push.apply(o,u(a))}}}catch(t){r.e(t)}finally{r.f()}delete t[e].allowAttributesOf}function Ga(t,e){var n,r=t[e],i=c(r.inheritTypesFrom);try{for(i.s();!(n=i.n()).done;){var o=t[n.value];if(o){var a,s=c(Object.keys(o).filter((function(t){return t.startsWith("is")})));try{for(s.s();!(a=s.n()).done;){var u=a.value;u in r||(r[u]=o[u])}}catch(t){s.e(t)}finally{s.f()}}}}catch(t){i.e(t)}finally{i.f()}delete r.inheritTypesFrom}function Za(t,e){var n=t[e],r=n.allowIn.filter((function(e){return t[e]}));n.allowIn=Array.from(new Set(r))}function Ja(t,e){var n=t[e];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function Xa(t,e,n){var r,i=c(t);try{for(i.s();!(r=i.n()).done;){var o,a=r.value;"string"==typeof a[n]?e[n].push(a[n]):Array.isArray(a[n])&&(o=e[n]).push.apply(o,u(a[n]))}}catch(t){i.e(t)}finally{i.f()}}function Qa(t,e){var n,r=t[e];return(n=t,Object.keys(n).map((function(t){return n[t]}))).filter((function(t){return t.allowIn.includes(r.name)}))}function ts(t){return"string"==typeof t?{name:t,getAttributeKeys:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})),getAttribute:function(){}}:{name:t.is("element")?t.name:"$text",getAttributeKeys:o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(t.getAttributeKeys(),"t0",1);case 1:case"end":return e.stop()}}),e)})),getAttribute:function(e){return t.getAttribute(e)}}}function es(t,e,n){var r,i=c(e.getAttributeKeys());try{for(i.s();!(r=i.n()).done;){var o=r.value;t.checkAttribute(e,o)||n.removeAttribute(o,e)}}catch(t){i.e(t)}finally{i.f()}}var ns=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,t),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},e),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}return m(t,[{key:"convert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",t),this._modelCursor=function(t,e){var n,r,i=c(new Ha(t));try{for(i.s();!(r=i.n()).done;){var o,a=r.value,s={},u=c(a.getAttributeKeys());try{for(u.s();!(o=u.n()).done;){var l=o.value;s[l]=a.getAttribute(l)}}catch(t){u.e(t)}finally{u.f()}var f=e.createElement(a.name,s);n&&e.append(f,n),n=Xo._createAt(f,0)}}catch(t){i.e(t)}finally{i.f()}return n}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=qa.createFrom(t),this.conversionApi.store={};var r=this._convertItem(t,this._modelCursor),i=r.modelRange,o=e.createDocumentFragment();if(i){this._removeEmptyElements();for(var a=0,s=Array.from(this._modelCursor.parent.getChildren());a<s.length;a++){var u=s[a];e.append(u,o)}o.markers=function(t,e){var n,r=new Set,i=new Map,o=c(na._createIn(t).getItems());try{for(o.s();!(n=o.n()).done;){var a=n.value;"$marker"==a.name&&r.add(a)}}catch(t){o.e(t)}finally{o.f()}var s,u=c(r);try{for(u.s();!(s=u.n()).done;){var l=s.value,f=l.getAttribute("data-name"),d=e.createPositionBefore(l);i.has(f)?i.get(f).end=d.clone():i.set(f,new na(d.clone())),e.remove(l)}}catch(t){u.e(t)}finally{u.f()}return i}(o,e)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,o}},{key:"_convertItem",value:function(t,e){var n=Object.assign({viewItem:t,modelCursor:e,modelRange:null});if(t.is("element")?this.fire("element:"+t.name,n,this.conversionApi):t.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof na))throw new Ye.b("view-conversion-dispatcher-incorrect-result: Incorrect conversion result was dropped.",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}},{key:"_convertChildren",value:function(t,e){for(var n=e.is("position")?e:Xo._createAt(e,0),r=new na(n),i=0,o=Array.from(t.getChildren());i<o.length;i++){var a=o[i],s=this._convertItem(a,n);s.modelRange instanceof na&&(r.end=s.modelRange.end,n=s.modelCursor)}return{modelRange:r,modelCursor:n}}},{key:"_safeInsert",value:function(t,e){var n=this._splitToAllowedParent(t,e);return!!n&&(this.conversionApi.writer.insert(t,n.position),!0)}},{key:"_updateConversionResult",value:function(t,e){var n=this._getSplitParts(t),r=this.conversionApi.writer;e.modelRange||(e.modelRange=r.createRange(r.createPositionBefore(t),r.createPositionAfter(n[n.length-1])));var i=this._cursorParents.get(t);e.modelCursor=i?r.createPositionAt(i,0):e.modelRange.end}},{key:"_splitToAllowedParent",value:function(t,e){var n=this.conversionApi,r=n.schema,i=n.writer,o=r.findAllowedParent(e,t);if(o){if(o===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(o)&&(o=null)}if(!o)return Oa(e,t,r)?{position:Pa(e,i)}:null;var a,s=this.conversionApi.writer.split(e,o),u=[],l=c(s.range.getWalker());try{for(l.s();!(a=l.n()).done;){var f=a.value;if("elementEnd"==f.type)u.push(f.item);else{var d=u.pop(),h=f.item;this._registerSplitPair(d,h)}}}catch(t){l.e(t)}finally{l.f()}var p=s.range.end.parent;return this._cursorParents.set(t,p),{position:s.position,cursorParent:p}}},{key:"_registerSplitPair",value:function(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);var n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e)}},{key:"_getSplitParts",value:function(t){return this._splitParts.has(t)?this._splitParts.get(t):[t]}},{key:"_removeEmptyElements",value:function(){var t,e=!1,n=c(this._splitParts.keys());try{for(n.s();!(t=n.n()).done;){var r=t.value;r.isEmpty&&(this.conversionApi.writer.remove(r),this._splitParts.delete(r),e=!0)}}catch(t){n.e(t)}finally{n.f()}e&&this._removeEmptyElements()}}]),t}();an(ns,Je);var rs=function(){function t(e,n){var r=this;h(this,t),this.model=e,this.stylesProcessor=n,this.processor,this.mapper=new ra,this.downcastDispatcher=new aa({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on("insert:$text",(function(t,e,n){if(n.consumable.consume(e.item,"insert")){var r=n.writer,i=n.mapper.toViewPosition(e.range.start),o=r.createText(e.item.data);r.insert(i,o)}}),{priority:"lowest"}),this.upcastDispatcher=new ns({schema:e.schema}),this.viewDocument=new Or(n),this._viewWriter=new ri(this.viewDocument),this.upcastDispatcher.on("text",(function(t,e,n){var r=n.schema,i=n.consumable,o=n.writer,a=e.modelCursor;if(i.test(e.viewItem)){if(!r.checkChild(a,"$text")){if(!Oa(a,"$text",r))return;a=Pa(a,o)}i.consume(e.viewItem);var s=o.createText(e.viewItem.data);o.insert(s,a),e.modelRange=o.createRange(a,a.getShiftedBy(s.offsetSize)),e.modelCursor=e.modelRange.end}}),{priority:"lowest"}),this.upcastDispatcher.on("element",(function(t,e,n){if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){var r=n.convertChildren(e.viewItem,e.modelCursor),i=r.modelRange,o=r.modelCursor;e.modelRange=i,e.modelCursor=o}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(function(t,e,n){if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){var r=n.convertChildren(e.viewItem,e.modelCursor),i=r.modelRange,o=r.modelCursor;e.modelRange=i,e.modelCursor=o}}),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",(function(){r.fire("ready")}),{priority:"lowest"}),this.on("ready",(function(){r.model.enqueueChange("transparent",Ea)}),{priority:"lowest"})}return m(t,[{key:"get",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.rootName,n=void 0===e?"main":e,r=t.trim,i=void 0===r?"empty":r;if(!this._checkIfRootsExists([n]))throw new Ye.b("datacontroller-get-non-existent-root: Attempting to get data from a non-existing root.",this);var o=this.model.document.getRoot(n);return"empty"!==i||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,t):""}},{key:"stringify",value:function(t,e){var n=this.toView(t,e);return this.processor.toData(n)}},{key:"toView",value:function(t,e){var n=this.viewDocument,r=this._viewWriter;this.mapper.clearBindings();var i=na._createIn(t),o=new ni(n);if(this.mapper.bindElements(t,o),this.downcastDispatcher.conversionApi.options=e,this.downcastDispatcher.convertInsert(i,r),!t.is("documentFragment")){var a,s=function(t){var e=[],n=t.root.document;if(!n)return[];var r,i=na._createIn(t),o=c(n.model.markers);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=i.getIntersection(a.getRange());s&&e.push([a.name,s])}}catch(t){o.e(t)}finally{o.f()}return e}(t),u=c(s);try{for(u.s();!(a=u.n()).done;){var f=l(a.value,2),d=f[0],h=f[1];this.downcastDispatcher.convertMarkerAdd(d,h,r)}}catch(t){u.e(t)}finally{u.f()}}return delete this.downcastDispatcher.conversionApi.options,o}},{key:"init",value:function(t){var e=this;if(this.model.document.version)throw new Ye.b("datacontroller-init-document-not-empty: Trying to set initial data to not empty document.",this);var n={};if("string"==typeof t?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new Ye.b("datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.",this);return this.model.enqueueChange("transparent",(function(t){for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=e.model.document.getRoot(o);t.insert(e.parse(n[o],a),a,0)}})),Promise.resolve()}},{key:"set",value:function(t){var e=this,n={};if("string"==typeof t?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new Ye.b("datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.",this);this.model.enqueueChange("transparent",(function(t){t.setSelection(null),t.removeSelectionAttribute(e.model.document.selection.getAttributeKeys());for(var r=0,i=Object.keys(n);r<i.length;r++){var o=i[r],a=e.model.document.getRoot(o);t.remove(t.createRangeIn(a)),t.insert(e.parse(n[o],a),a,0)}}))}},{key:"parse",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root",n=this.processor.toView(t);return this.toModel(n,e)}},{key:"toModel",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((function(r){return e.upcastDispatcher.convert(t,r,n)}))}},{key:"addStyleProcessorRules",value:function(t){t(this.stylesProcessor)}},{key:"destroy",value:function(){this.stopListening()}},{key:"_checkIfRootsExists",value:function(t){var e,n=c(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(!this.model.document.getRootNames().includes(r))return!1}}catch(t){n.e(t)}finally{n.f()}return!0}}]),t}();an(rs,pr);var is=function(){function t(e,n){h(this,t),this._helpers=new Map,this._downcast=Array.isArray(e)?e:[e],this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Array.isArray(n)?n:[n],this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}return m(t,[{key:"addAlias",value:function(t,e){var n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new Ye.b("conversion-add-alias-dispatcher-not-registered: Trying to register and alias for a dispatcher that nas not been registered.",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}},{key:"for",value:function(t){if(!this._helpers.has(t))throw new Ye.b("conversion-for-unknown-group: Trying to add a converter to an unknown dispatchers group.",this);return this._helpers.get(t)}},{key:"elementToElement",value:function(t){this.for("downcast").elementToElement(t);var e,n=c(os(t));try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.model,o=r.view;this.for("upcast").elementToElement({model:i,view:o,converterPriority:t.converterPriority})}}catch(t){n.e(t)}finally{n.f()}}},{key:"attributeToElement",value:function(t){this.for("downcast").attributeToElement(t);var e,n=c(os(t));try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.model,o=r.view;this.for("upcast").elementToAttribute({view:o,model:i,converterPriority:t.converterPriority})}}catch(t){n.e(t)}finally{n.f()}}},{key:"attributeToAttribute",value:function(t){this.for("downcast").attributeToAttribute(t);var e,n=c(os(t));try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.model,o=r.view;this.for("upcast").attributeToAttribute({view:o,model:i})}}catch(t){n.e(t)}finally{n.f()}}},{key:"_createConversionHelpers",value:function(t){var e=t.name,n=t.dispatchers,r=t.isDowncast;if(this._helpers.has(e))throw new Ye.b("conversion-group-exists: Trying to register a group name that has already been registered.",this);var i=r?new ka(n):new Ia(n);this._helpers.set(e,i)}}]),t}();function os(t){var e,n,i,a,s,u;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!t.model.values){r.next=20;break}e=c(t.model.values),r.prev=2,e.s();case 4:if((n=e.n()).done){r.next=10;break}return i=n.value,a={key:t.model.key,value:i},s=t.view[i],u=t.upcastAlso?t.upcastAlso[i]:void 0,r.delegateYield(as(a,s,u),"t0",8);case 8:r.next=4;break;case 10:r.next=15;break;case 12:r.prev=12,r.t1=r.catch(2),e.e(r.t1);case 15:return r.prev=15,e.f(),r.finish(15);case 18:r.next=21;break;case 20:return r.delegateYield(as(t.model,t.view,t.upcastAlso),"t2",21);case 21:case"end":return r.stop()}}),r,null,[[2,12,15,18]])}function as(t,e,n){var r,a,s;return o.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,{model:t,view:e};case 2:if(!n){i.next=21;break}n=Array.isArray(n)?n:[n],r=c(n),i.prev=5,r.s();case 7:if((a=r.n()).done){i.next=13;break}return s=a.value,i.next=11,{model:t,view:s};case 11:i.next=7;break;case 13:i.next=18;break;case 15:i.prev=15,i.t0=i.catch(5),r.e(i.t0);case 18:return i.prev=18,r.f(),i.finish(18);case 21:case"end":return i.stop()}}),i,null,[[5,15,18,21]])}var ss=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";h(this,t),this.operations=[],this.type=e}return m(t,[{key:"addOperation",value:function(t){return t.batch=this,this.operations.push(t),t}},{key:"baseVersion",get:function(){var t,e=c(this.operations);try{for(e.s();!(t=e.n()).done;){var n=t.value;if(null!==n.baseVersion)return n.baseVersion}}catch(t){e.e(t)}finally{e.f()}return null}}]),t}(),us=function(){function t(e){h(this,t),this.baseVersion=e,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}return m(t,[{key:"_validate",value:function(){}},{key:"toJSON",value:function(){var t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}}],[{key:"fromJSON",value:function(t){return new this(t.baseVersion)}},{key:"className",get:function(){return"Operation"}}]),t}(),ls=function(){function t(e){h(this,t),this.markers=new Map,this._children=new Yo,e&&this._insertChild(0,e)}return m(t,[{key:Symbol.iterator,value:function(){return this.getChildren()}},{key:"is",value:function(t){return"documentFragment"===t||"model:documentFragment"===t}},{key:"getChild",value:function(t){return this._children.getNode(t)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(t){return this._children.getNodeIndex(t)}},{key:"getChildStartOffset",value:function(t){return this._children.getNodeStartOffset(t)}},{key:"getPath",value:function(){return[]}},{key:"getNodeByPath",value:function(t){var e,n=this,r=c(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n=n.getChild(n.offsetToIndex(i))}}catch(t){r.e(t)}finally{r.f()}return n}},{key:"offsetToIndex",value:function(t){return this._children.offsetToIndex(t)}},{key:"toJSON",value:function(){var t,e=[],n=c(this._children);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.push(r.toJSON())}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"_appendChild",value:function(t){this._insertChild(this.childCount,t)}},{key:"_insertChild",value:function(t,e){var n,r=function(t){return"string"==typeof t?[new Wo(t)]:(on(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new Wo(t):t instanceof Ko?new Wo(t.data,t.getAttributes()):t})))}(e),i=c(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(t){i.e(t)}finally{i.f()}this._children._insertNodes(t,r)}},{key:"_removeChildren",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this._children._removeNodes(t,n),i=c(r);try{for(i.s();!(e=i.n()).done;){var o=e.value;o.parent=null}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}}],[{key:"fromJSON",value:function(e){var n,r=[],i=c(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;o.name?r.push(Go.fromJSON(o)):r.push(Wo.fromJSON(o))}}catch(t){i.e(t)}finally{i.f()}return new t(r)}}]),t}();function cs(t,e){var n=(e=hs(e)).reduce((function(t,e){return t+e.offsetSize}),0),r=t.parent;ms(t);var i=t.index;return r._insertChild(i,e),ps(r,i+e.length),ps(r,i),new na(t,t.getShiftedBy(n))}function fs(t){if(!t.isFlat)throw new Ye.b("operation-utils-remove-range-not-flat: Trying to remove a range which starts and ends in different element.",this);var e=t.start.parent;ms(t.start),ms(t.end);var n=e._removeChildren(t.start.index,t.end.index-t.start.index);return ps(e,t.start.index),n}function ds(t,e){if(!t.isFlat)throw new Ye.b("operation-utils-move-range-not-flat: Trying to move a range which starts and ends in different element.",this);var n=fs(t);return cs(e=e._getTransformedByDeletion(t.start,t.end.offset-t.start.offset),n)}function hs(t){var e=[];t instanceof Array||(t=[t]);for(var n=0;n<t.length;n++)if("string"==typeof t[n])e.push(new Wo(t[n]));else if(t[n]instanceof Ko)e.push(new Wo(t[n].data,t[n].getAttributes()));else if(t[n]instanceof ls||t[n]instanceof Yo){var r,i=c(t[n]);try{for(i.s();!(r=i.n()).done;){var o=r.value;e.push(o)}}catch(t){i.e(t)}finally{i.f()}}else t[n]instanceof Uo&&e.push(t[n]);for(var a=1;a<e.length;a++){var s=e[a],u=e[a-1];s instanceof Wo&&u instanceof Wo&&vs(s,u)&&(e.splice(a-1,2,new Wo(u.data+s.data,u.getAttributes())),a--)}return e}function ps(t,e){var n=t.getChild(e-1),r=t.getChild(e);if(n&&r&&n.is("$text")&&r.is("$text")&&vs(n,r)){var i=new Wo(n.data+r.data,n.getAttributes());t._removeChildren(e-1,2),t._insertChild(e-1,i)}}function ms(t){var e=t.textNode,n=t.parent;if(e){var r=t.offset-e.startOffset,i=e.index;n._removeChildren(i,1);var o=new Wo(e.data.substr(0,r),e.getAttributes()),a=new Wo(e.data.substr(r),e.getAttributes());n._insertChild(i,[o,a])}}function vs(t,e){var n,r=t.getAttributes(),i=e.getAttributes(),o=c(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a[1]!==e.getAttribute(a[0]))return!1;i.next()}}catch(t){o.e(t)}finally{o.f()}return i.next().done}var gs=function(t,e){return ao(t,e)},bs=function(t){v(n,t);var e=g(n);function n(t,r,i,o,a){var s;return h(this,n),(s=e.call(this,a)).range=t.clone(),s.key=r,s.oldValue=void 0===i?null:i,s.newValue=void 0===o?null:o,s}return m(n,[{key:"clone",value:function(){return new n(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"toJSON",value:function(){var t=s(x(n.prototype),"toJSON",this).call(this);return t.range=this.range.toJSON(),t}},{key:"_validate",value:function(){if(!this.range.isFlat)throw new Ye.b("attribute-operation-range-not-flat: The range to change is not flat.",this);var t,e=c(this.range.getItems({shallow:!0}));try{for(e.s();!(t=e.n()).done;){var n=t.value;if(null!==this.oldValue&&!gs(n.getAttribute(this.key),this.oldValue))throw new Ye.b("attribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",this,{item:n,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&n.hasAttribute(this.key))throw new Ye.b("attribute-operation-attribute-exists: The attribute with given key already exists.",this,{node:n,key:this.key})}}catch(t){e.e(t)}finally{e.f()}}},{key:"_execute",value:function(){gs(this.oldValue,this.newValue)||function(t,e,n){ms(t.start),ms(t.end);var r,i=c(t.getItems({shallow:!0}));try{for(i.s();!(r=i.n()).done;){var o=r.value,a=o.is("$textProxy")?o.textNode:o;null!==n?a._setAttribute(e,n):a._removeAttribute(e),ps(a.parent,a.index)}}catch(t){i.e(t)}finally{i.f()}ps(t.end.parent,t.end.index)}(this.range,this.key,this.newValue)}},{key:"type",get:function(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}}],[{key:"fromJSON",value:function(t,e){return new n(na.fromJSON(t.range,e),t.key,t.oldValue,t.newValue,t.baseVersion)}},{key:"className",get:function(){return"AttributeOperation"}}]),n}(us),ys=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),(i=e.call(this,null)).sourcePosition=t.clone(),i.howMany=r,i}return m(n,[{key:"toJSON",value:function(){var t=s(x(n.prototype),"toJSON",this).call(this);return t.sourcePosition=this.sourcePosition.toJSON(),t}},{key:"_validate",value:function(){if(this.sourcePosition.root.document)throw new Ye.b("detach-operation-on-document-node: Cannot detach document node.",this)}},{key:"_execute",value:function(){fs(na._createFromPositionAndShift(this.sourcePosition,this.howMany))}},{key:"type",get:function(){return"detach"}}],[{key:"className",get:function(){return"DetachOperation"}}]),n}(us),ws=function(t){v(n,t);var e=g(n);function n(t,r,i,o){var a;return h(this,n),(a=e.call(this,o)).sourcePosition=t.clone(),a.sourcePosition.stickiness="toNext",a.howMany=r,a.targetPosition=i.clone(),a.targetPosition.stickiness="toNone",a}return m(n,[{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}},{key:"getMovedRangeStart",value:function(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}},{key:"getReversed",value:function(){var t=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,t,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.sourcePosition.parent,e=this.targetPosition.parent,n=this.sourcePosition.offset,r=this.targetPosition.offset;if(n+this.howMany>t.maxOffset)throw new Ye.b("move-operation-nodes-do-not-exist: The nodes which should be moved do not exist.",this);if(t===e&&n<r&&r<n+this.howMany)throw new Ye.b("move-operation-range-into-itself: Trying to move a range of nodes to the inside of that range.",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==pn(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){var i=this.sourcePosition.path.length-1;if(this.targetPosition.path[i]>=n&&this.targetPosition.path[i]<n+this.howMany)throw new Ye.b("move-operation-node-into-itself: Trying to move a range of nodes into one of nodes from that range.",this)}}},{key:"_execute",value:function(){ds(na._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}},{key:"toJSON",value:function(){var t=s(x(n.prototype),"toJSON",this).call(this);return t.sourcePosition=this.sourcePosition.toJSON(),t.targetPosition=this.targetPosition.toJSON(),t}},{key:"type",get:function(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}}],[{key:"fromJSON",value:function(t,e){var n=Xo.fromJSON(t.sourcePosition,e),r=Xo.fromJSON(t.targetPosition,e);return new this(n,t.howMany,r,t.baseVersion)}},{key:"className",get:function(){return"MoveOperation"}}]),n}(us),_s=function(t){v(n,t);var e=g(n);function n(t,r,i){var o;return h(this,n),(o=e.call(this,i)).position=t.clone(),o.position.stickiness="toNone",o.nodes=new Yo(hs(r)),o.shouldReceiveAttributes=!1,o}return m(n,[{key:"clone",value:function(){var t=new Yo(u(this.nodes).map((function(t){return t._clone(!0)}))),e=new n(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}},{key:"getReversed",value:function(){var t=this.position.root.document.graveyard,e=new Xo(t,[0]);return new ws(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.position.parent;if(!t||t.maxOffset<this.position.offset)throw new Ye.b("insert-operation-position-invalid: Insertion position is invalid.",this)}},{key:"_execute",value:function(){var t=this.nodes;this.nodes=new Yo(u(t).map((function(t){return t._clone(!0)}))),cs(this.position,t)}},{key:"toJSON",value:function(){var t=s(x(n.prototype),"toJSON",this).call(this);return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}},{key:"type",get:function(){return"insert"}},{key:"howMany",get:function(){return this.nodes.maxOffset}}],[{key:"fromJSON",value:function(t,e){var r,i=[],o=c(t.nodes);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.name?i.push(Go.fromJSON(a)):i.push(Wo.fromJSON(a))}}catch(t){o.e(t)}finally{o.f()}var s=new n(Xo.fromJSON(t.position,e),i,t.baseVersion);return s.shouldReceiveAttributes=t.shouldReceiveAttributes,s}},{key:"className",get:function(){return"InsertOperation"}}]),n}(us),ks=function(t){v(n,t);var e=g(n);function n(t,r,i,o,a,s){var u;return h(this,n),(u=e.call(this,s)).name=t,u.oldRange=r?r.clone():null,u.newRange=i?i.clone():null,u.affectsData=a,u._markers=o,u}return m(n,[{key:"clone",value:function(){return new n(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}},{key:"_execute",value:function(){var t=this.newRange?"_set":"_remove";this._markers[t](this.name,this.newRange,!0,this.affectsData)}},{key:"toJSON",value:function(){var t=s(x(n.prototype),"toJSON",this).call(this);return this.oldRange&&(t.oldRange=this.oldRange.toJSON()),this.newRange&&(t.newRange=this.newRange.toJSON()),delete t._markers,t}},{key:"type",get:function(){return"marker"}}],[{key:"fromJSON",value:function(t,e){return new n(t.name,t.oldRange?na.fromJSON(t.oldRange,e):null,t.newRange?na.fromJSON(t.newRange,e):null,e.model.markers,t.affectsData,t.baseVersion)}},{key:"className",get:function(){return"MarkerOperation"}}]),n}(us),Ms=function(t){v(n,t);var e=g(n);function n(t,r,i,o){var a;return h(this,n),(a=e.call(this,o)).position=t,a.position.stickiness="toNext",a.oldName=r,a.newName=i,a}return m(n,[{key:"clone",value:function(){return new n(this.position.clone(),this.oldName,this.newName,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.position.nodeAfter;if(!(t instanceof Go))throw new Ye.b("rename-operation-wrong-position: Given position is invalid or node after it is not an instance of Element.",this);if(t.name!==this.oldName)throw new Ye.b("rename-operation-wrong-name: Element to change has different name than operation's old name.",this)}},{key:"_execute",value:function(){this.position.nodeAfter.name=this.newName}},{key:"toJSON",value:function(){var t=s(x(n.prototype),"toJSON",this).call(this);return t.position=this.position.toJSON(),t}},{key:"type",get:function(){return"rename"}}],[{key:"fromJSON",value:function(t,e){return new n(Xo.fromJSON(t.position,e),t.oldName,t.newName,t.baseVersion)}},{key:"className",get:function(){return"RenameOperation"}}]),n}(us),xs=function(t){v(n,t);var e=g(n);function n(t,r,i,o,a){var s;return h(this,n),(s=e.call(this,a)).root=t,s.key=r,s.oldValue=i,s.newValue=o,s}return m(n,[{key:"clone",value:function(){return new n(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"_validate",value:function(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new Ye.b("rootattribute-operation-not-a-root: The element to change is not a root element.",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new Ye.b("rootattribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new Ye.b("rootattribute-operation-attribute-exists: The attribute with given key already exists.",this,{root:this.root,key:this.key})}},{key:"_execute",value:function(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}},{key:"toJSON",value:function(){var t=s(x(n.prototype),"toJSON",this).call(this);return t.root=this.root.toJSON(),t}},{key:"type",get:function(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}}],[{key:"fromJSON",value:function(t,e){if(!e.getRoot(t.root))throw new Ye.b("rootattribute-operation-fromjson-no-root: Cannot create RootAttributeOperation. Root with specified name does not exist.",this,{rootName:t.root});return new n(e.getRoot(t.root),t.key,t.oldValue,t.newValue,t.baseVersion)}},{key:"className",get:function(){return"RootAttributeOperation"}}]),n}(us),Ss=function(t){v(n,t);var e=g(n);function n(t,r,i,o,a){var s;return h(this,n),(s=e.call(this,a)).sourcePosition=t.clone(),s.sourcePosition.stickiness="toPrevious",s.howMany=r,s.targetPosition=i.clone(),s.targetPosition.stickiness="toNext",s.graveyardPosition=o.clone(),s}return m(n,[{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}},{key:"getReversed",value:function(){var t=this.targetPosition._getTransformedByMergeOperation(this),e=this.sourcePosition.path.slice(0,-1),n=new Xo(this.sourcePosition.root,e)._getTransformedByMergeOperation(this),r=new Cs(t,this.howMany,this.graveyardPosition,this.baseVersion+1);return r.insertionPosition=n,r}},{key:"_validate",value:function(){var t=this.sourcePosition.parent,e=this.targetPosition.parent;if(!t.parent)throw new Ye.b("merge-operation-source-position-invalid: Merge source position is invalid.",this);if(!e.parent)throw new Ye.b("merge-operation-target-position-invalid: Merge target position is invalid.",this);if(this.howMany!=t.maxOffset)throw new Ye.b("merge-operation-how-many-invalid: Merge operation specifies wrong number of nodes to move.",this)}},{key:"_execute",value:function(){var t=this.sourcePosition.parent;ds(na._createIn(t),this.targetPosition),ds(na._createOn(t),this.graveyardPosition)}},{key:"toJSON",value:function(){var t=s(x(n.prototype),"toJSON",this).call(this);return t.sourcePosition=t.sourcePosition.toJSON(),t.targetPosition=t.targetPosition.toJSON(),t.graveyardPosition=t.graveyardPosition.toJSON(),t}},{key:"type",get:function(){return"merge"}},{key:"deletionPosition",get:function(){return new Xo(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}},{key:"movedRange",get:function(){var t=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new na(this.sourcePosition,t)}}],[{key:"fromJSON",value:function(t,e){var n=Xo.fromJSON(t.sourcePosition,e),r=Xo.fromJSON(t.targetPosition,e),i=Xo.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,r,i,t.baseVersion)}},{key:"className",get:function(){return"MergeOperation"}}]),n}(us),Cs=function(t){v(n,t);var e=g(n);function n(t,r,i,o){var a;return h(this,n),(a=e.call(this,o)).splitPosition=t.clone(),a.splitPosition.stickiness="toNext",a.howMany=r,a.insertionPosition=n.getInsertionPosition(t),a.insertionPosition.stickiness="toNone",a.graveyardPosition=i?i.clone():null,a.graveyardPosition&&(a.graveyardPosition.stickiness="toNext"),a}return m(n,[{key:"clone",value:function(){var t=new this.constructor(this.splitPosition,this.howMany,this.graveyardPosition,this.baseVersion);return t.insertionPosition=this.insertionPosition,t}},{key:"getReversed",value:function(){var t=this.splitPosition.root.document.graveyard,e=new Xo(t,[0]);return new Ss(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.splitPosition.parent,e=this.splitPosition.offset;if(!t||t.maxOffset<e)throw new Ye.b("split-operation-position-invalid: Split position is invalid.",this);if(!t.parent)throw new Ye.b("split-operation-split-in-root: Cannot split root element.",this);if(this.howMany!=t.maxOffset-this.splitPosition.offset)throw new Ye.b("split-operation-how-many-invalid: Split operation specifies wrong number of nodes to move.",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new Ye.b("split-operation-graveyard-position-invalid: Graveyard position invalid.",this)}},{key:"_execute",value:function(){var t=this.splitPosition.parent;if(this.graveyardPosition)ds(na._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{var e=t._clone();cs(this.insertionPosition,e)}ds(new na(Xo._createAt(t,this.splitPosition.offset),Xo._createAt(t,t.maxOffset)),this.moveTargetPosition)}},{key:"toJSON",value:function(){var t=s(x(n.prototype),"toJSON",this).call(this);return t.splitPosition=this.splitPosition.toJSON(),t.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(t.graveyardPosition=this.graveyardPosition.toJSON()),t}},{key:"type",get:function(){return"split"}},{key:"moveTargetPosition",get:function(){var t=this.insertionPosition.path.slice();return t.push(0),new Xo(this.insertionPosition.root,t)}},{key:"movedRange",get:function(){var t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new na(this.splitPosition,t)}}],[{key:"getInsertionPosition",value:function(t){var e=t.path.slice(0,-1);return e[e.length-1]++,new Xo(t.root,e)}},{key:"fromJSON",value:function(t,e){var n=Xo.fromJSON(t.splitPosition,e),r=Xo.fromJSON(t.insertionPosition,e),i=t.graveyardPosition?Xo.fromJSON(t.graveyardPosition,e):null,o=new this(n,t.howMany,i,t.baseVersion);return o.insertionPosition=r,o}},{key:"className",get:function(){return"SplitOperation"}}]),n}(us),As=function(t){v(n,t);var e=g(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";return h(this,n),(i=e.call(this,r))._document=t,i.rootName=o,i}return m(n,[{key:"is",value:function(t,e){return e?e===this.name&&("rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t):"rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t||"node"===t||"model:node"===t}},{key:"toJSON",value:function(){return this.rootName}},{key:"document",get:function(){return this._document}}]),n}(Go),Ts=function(){function t(e,n){h(this,t),this.model=e,this.batch=n}return m(t,[{key:"createText",value:function(t,e){return new Wo(t,e)}},{key:"createElement",value:function(t,e){return new Go(t,e)}},{key:"createDocumentFragment",value:function(){return new ls}},{key:"cloneElement",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t._clone(e)}},{key:"insert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),!(t instanceof Wo&&""==t.data)){var r=Xo._createAt(e,n);if(t.parent){if(Rs(t.root,r.root))return void this.move(na._createOn(t),r);if(t.root.document)throw new Ye.b("model-writer-insert-forbidden-move: Cannot move a node from a document to a different tree. It is forbidden to move a node that was already in a document outside of it.",this);this.remove(t)}var i=r.root.document?r.root.document.version:null,o=new _s(r,t,i);if(t instanceof Wo&&(o.shouldReceiveAttributes=!0),this.batch.addOperation(o),this.model.applyOperation(o),t instanceof ls){var a,s=c(t.markers);try{for(s.s();!(a=s.n()).done;){var u=l(a.value,2),f=u[0],d=u[1],h=Xo._createAt(d.root,0),p={range:new na(d.start._getCombined(h,r),d.end._getCombined(h,r)),usingOperation:!0,affectsData:!0};this.model.markers.has(f)?this.updateMarker(f,p):this.addMarker(f,p)}}catch(t){s.e(t)}finally{s.f()}}}}},{key:"insertText",value:function(t,e,n,r){e instanceof ls||e instanceof Go||e instanceof Xo?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,r)}},{key:"insertElement",value:function(t,e,n,r){e instanceof ls||e instanceof Go||e instanceof Xo?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,r)}},{key:"append",value:function(t,e){this.insert(t,e,"end")}},{key:"appendText",value:function(t,e,n){e instanceof ls||e instanceof Go?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}},{key:"appendElement",value:function(t,e,n){e instanceof ls||e instanceof Go?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}},{key:"setAttribute",value:function(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof na){var r,i=c(n.getMinimalFlatRanges());try{for(i.s();!(r=i.n()).done;){Es(this,t,e,r.value)}}catch(t){i.e(t)}finally{i.f()}}else Os(this,t,e,n)}},{key:"setAttributes",value:function(t,e){var n,r=c(yn(t));try{for(r.s();!(n=r.n()).done;){var i=l(n.value,2),o=i[0],a=i[1];this.setAttribute(o,a,e)}}catch(t){r.e(t)}finally{r.f()}}},{key:"removeAttribute",value:function(t,e){if(this._assertWriterUsedCorrectly(),e instanceof na){var n,r=c(e.getMinimalFlatRanges());try{for(r.s();!(n=r.n()).done;){Es(this,t,null,n.value)}}catch(t){r.e(t)}finally{r.f()}}else Os(this,t,null,e)}},{key:"clearAttributes",value:function(t){var e=this;this._assertWriterUsedCorrectly();var n=function(t){var n,r=c(t.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var i=n.value;e.removeAttribute(i,t)}}catch(t){r.e(t)}finally{r.f()}};if(t instanceof na){var r,i=c(t.getItems());try{for(i.s();!(r=i.n()).done;){n(r.value)}}catch(t){i.e(t)}finally{i.f()}}else n(t)}},{key:"move",value:function(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof na))throw new Ye.b("writer-move-invalid-range: Invalid range to move.",this);if(!t.isFlat)throw new Ye.b("writer-move-range-not-flat: Range to move is not flat.",this);var r=Xo._createAt(e,n);if(!r.isEqual(t.start)){if(this._addOperationForAffectedMarkers("move",t),!Rs(t.root,r.root))throw new Ye.b("writer-move-different-document: Range is going to be moved between different documents.",this);var i=t.root.document?t.root.document.version:null,o=new ws(t.start,t.end.offset-t.start.offset,r,i);this.batch.addOperation(o),this.model.applyOperation(o)}}},{key:"remove",value:function(t){this._assertWriterUsedCorrectly();var e,n=c((t instanceof na?t:na._createOn(t)).getMinimalFlatRanges().reverse());try{for(n.s();!(e=n.n()).done;){var r=e.value;this._addOperationForAffectedMarkers("move",r),Is(r.start,r.end.offset-r.start.offset,this.batch,this.model)}}catch(t){n.e(t)}finally{n.f()}}},{key:"merge",value:function(t){this._assertWriterUsedCorrectly();var e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof Go))throw new Ye.b("writer-merge-no-element-before: Node before merge position must be an element.",this);if(!(n instanceof Go))throw new Ye.b("writer-merge-no-element-after: Node after merge position must be an element.",this);t.root.document?this._merge(t):this._mergeDetached(t)}},{key:"createPositionFromPath",value:function(t,e,n){return this.model.createPositionFromPath(t,e,n)}},{key:"createPositionAt",value:function(t,e){return this.model.createPositionAt(t,e)}},{key:"createPositionAfter",value:function(t){return this.model.createPositionAfter(t)}},{key:"createPositionBefore",value:function(t){return this.model.createPositionBefore(t)}},{key:"createRange",value:function(t,e){return this.model.createRange(t,e)}},{key:"createRangeIn",value:function(t){return this.model.createRangeIn(t)}},{key:"createRangeOn",value:function(t){return this.model.createRangeOn(t)}},{key:"createSelection",value:function(t,e,n){return this.model.createSelection(t,e,n)}},{key:"_mergeDetached",value:function(t){var e=t.nodeBefore,n=t.nodeAfter;this.move(na._createIn(n),Xo._createAt(e,"end")),this.remove(n)}},{key:"_merge",value:function(t){var e=Xo._createAt(t.nodeBefore,"end"),n=Xo._createAt(t.nodeAfter,0),r=t.root.document.graveyard,i=new Xo(r,[0]),o=t.root.document.version,a=new Ss(n,t.nodeAfter.maxOffset,e,i,o);this.batch.addOperation(a),this.model.applyOperation(a)}},{key:"rename",value:function(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof Go))throw new Ye.b("writer-rename-not-element-instance: Trying to rename an object which is not an instance of Element.",this);var n=t.root.document?t.root.document.version:null,r=new Ms(Xo._createBefore(t),t.name,e,n);this.batch.addOperation(r),this.model.applyOperation(r)}},{key:"split",value:function(t,e){this._assertWriterUsedCorrectly();var n,r,i=t.parent;if(!i.parent)throw new Ye.b("writer-split-element-no-parent: Element with no parent can not be split.",this);if(e||(e=i.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new Ye.b("writer-split-invalid-limit-element: Limit element is not a position ancestor.",this);do{var o=i.root.document?i.root.document.version:null,a=i.maxOffset-t.offset,s=new Cs(t,a,null,o);this.batch.addOperation(s),this.model.applyOperation(s),n||r||(n=i,r=t.parent.nextSibling),i=(t=this.createPositionAfter(t.parent)).parent}while(i!==e);return{position:t,range:new na(Xo._createAt(n,"end"),Xo._createAt(r,0))}}},{key:"wrap",value:function(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new Ye.b("writer-wrap-range-not-flat: Range to wrap is not flat.",this);var n=e instanceof Go?e:new Go(e);if(n.childCount>0)throw new Ye.b("writer-wrap-element-not-empty: Element to wrap with is not empty.",this);if(null!==n.parent)throw new Ye.b("writer-wrap-element-attached: Element to wrap with is already attached to tree model.",this);this.insert(n,t.start);var r=new na(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(r,Xo._createAt(n,0))}},{key:"unwrap",value:function(t){if(this._assertWriterUsedCorrectly(),null===t.parent)throw new Ye.b("writer-unwrap-element-no-parent: Trying to unwrap an element which has no parent.",this);this.move(na._createIn(t),this.createPositionAfter(t)),this.remove(t)}},{key:"addMarker",value:function(t,e){if(this._assertWriterUsedCorrectly(),!e||"boolean"!=typeof e.usingOperation)throw new Ye.b("writer-addMarker-no-usingOperation: The options.usingOperation parameter is required when adding a new marker.",this);var n=e.usingOperation,r=e.range,i=void 0!==e.affectsData&&e.affectsData;if(this.model.markers.has(t))throw new Ye.b("writer-addMarker-marker-exists: Marker with provided name already exists.",this);if(!r)throw new Ye.b("writer-addMarker-no-range: Range parameter is required when adding a new marker.",this);return n?(Ps(this,t,null,r,i),this.model.markers.get(t)):this.model.markers._set(t,r,n,i)}},{key:"updateMarker",value:function(t,e){this._assertWriterUsedCorrectly();var n="string"==typeof t?t:t.name,r=this.model.markers.get(n);if(!r)throw new Ye.b("writer-updateMarker-marker-not-exists: Marker with provided name does not exists.",this);if(e){var i="boolean"==typeof e.usingOperation,o="boolean"==typeof e.affectsData,a=o?e.affectsData:r.affectsData;if(!i&&!e.range&&!o)throw new Ye.b("writer-updateMarker-wrong-options: One of the options is required - provide range, usingOperations or affectsData.",this);var s=r.getRange(),u=e.range?e.range:s;i&&e.usingOperation!==r.managedUsingOperations?e.usingOperation?Ps(this,n,null,u,a):(Ps(this,n,s,null,a),this.model.markers._set(n,u,void 0,a)):r.managedUsingOperations?Ps(this,n,s,u,a):this.model.markers._set(n,u,void 0,a)}else this.model.markers._refresh(r)}},{key:"removeMarker",value:function(t){this._assertWriterUsedCorrectly();var e="string"==typeof t?t:t.name;if(!this.model.markers.has(e))throw new Ye.b("writer-removeMarker-no-marker: Trying to remove marker which does not exist.",this);var n=this.model.markers.get(e);n.managedUsingOperations?Ps(this,e,n.getRange(),null,n.affectsData):this.model.markers._remove(e)}},{key:"setSelection",value:function(t,e,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(t,e,n)}},{key:"setSelectionFocus",value:function(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e)}},{key:"setSelectionAttribute",value:function(t,e){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._setSelectionAttribute(t,e);else{var n,r=c(yn(t));try{for(r.s();!(n=r.n()).done;){var i=l(n.value,2),o=i[0],a=i[1];this._setSelectionAttribute(o,a)}}catch(t){r.e(t)}finally{r.f()}}}},{key:"removeSelectionAttribute",value:function(t){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._removeSelectionAttribute(t);else{var e,n=c(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this._removeSelectionAttribute(r)}}catch(t){n.e(t)}finally{n.f()}}}},{key:"overrideSelectionGravity",value:function(){return this.model.document.selection._overrideGravity()}},{key:"restoreSelectionGravity",value:function(t){this.model.document.selection._restoreGravity(t)}},{key:"_setSelectionAttribute",value:function(t,e){var n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){var r=ga._getStoreAttributeKey(t);this.setAttribute(r,e,n.anchor.parent)}n._setAttribute(t,e)}},{key:"_removeSelectionAttribute",value:function(t){var e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){var n=ga._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}},{key:"_assertWriterUsedCorrectly",value:function(){if(this.model._currentWriter!==this)throw new Ye.b("writer-incorrect-use: Trying to use a writer outside the change() block.",this)}},{key:"_addOperationForAffectedMarkers",value:function(t,e){var n,r=c(this.model.markers);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.managedUsingOperations){var o=i.getRange(),a=!1;if("move"===t)a=e.containsPosition(o.start)||e.start.isEqual(o.start)||e.containsPosition(o.end)||e.end.isEqual(o.end);else{var s=e.nodeBefore,u=e.nodeAfter,l=o.start.parent==s&&o.start.isAtEnd,f=o.end.parent==u&&0==o.end.offset,d=o.end.nodeAfter==u,h=o.start.nodeAfter==u;a=l||f||d||h}a&&this.updateMarker(i.name,{range:o})}}}catch(t){r.e(t)}finally{r.f()}}}]),t}();function Es(t,e,n,r){var i,o,a,s,u=t.model,l=u.document,f=r.start,d=c(r.getWalker({shallow:!0}));try{for(d.s();!(s=d.n()).done;){var h=s.value;a=h.item.getAttribute(e),i&&o!=a&&(o!=n&&p(),f=i),i=h.nextPosition,o=a}}catch(t){d.e(t)}finally{d.f()}function p(){var r=new na(f,i),a=r.root.document?l.version:null,s=new bs(r,e,o,n,a);t.batch.addOperation(s),u.applyOperation(s)}i instanceof Xo&&i!=f&&o!=n&&p()}function Os(t,e,n,r){var i,o,a=t.model,s=a.document,u=r.getAttribute(e);if(u!=n){if(r.root===r){var l=r.document?s.version:null;o=new xs(r,e,u,n,l)}else{var c=(i=new na(Xo._createBefore(r),t.createPositionAfter(r))).root.document?s.version:null;o=new bs(i,e,u,n,c)}t.batch.addOperation(o),a.applyOperation(o)}}function Ps(t,e,n,r,i){var o=t.model,a=o.document,s=new ks(e,n,r,o.markers,i,a.version);t.batch.addOperation(s),o.applyOperation(s)}function Is(t,e,n,r){var i;if(t.root.document){var o=r.document,a=new Xo(o.graveyard,[0]);i=new ws(t,e,a,o.version)}else i=new ys(t,e);n.addOperation(i),r.applyOperation(i)}function Rs(t,e){return t===e||t instanceof As&&e instanceof As}var js=function(){function t(e){h(this,t),this._markerCollection=e,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}return m(t,[{key:"refreshItem",value:function(t){if(!this._isInInsertedElement(t.parent)){this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize);var e,n=na._createOn(t),r=c(this._markerCollection.getMarkersIntersectingRange(n));try{for(r.s();!(e=r.n()).done;){var i=e.value,o=i.getRange();this.bufferMarkerChange(i.name,o,o,i.affectsData)}}catch(t){r.e(t)}finally{r.f()}this._cachedChanges=null}}},{key:"bufferOperation",value:function(t){switch(t.type){case"insert":if(this._isInInsertedElement(t.position.parent))return;this._markInsert(t.position.parent,t.position.offset,t.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":var e,n=c(t.range.getItems({shallow:!0}));try{for(n.s();!(e=n.n()).done;){var r=e.value;this._isInInsertedElement(r.parent)||this._markAttribute(r)}}catch(t){n.e(t)}finally{n.f()}break;case"remove":case"move":case"reinsert":if(t.sourcePosition.isEqual(t.targetPosition)||t.sourcePosition.getShiftedBy(t.howMany).isEqual(t.targetPosition))return;var i=this._isInInsertedElement(t.sourcePosition.parent),o=this._isInInsertedElement(t.targetPosition.parent);i||this._markRemove(t.sourcePosition.parent,t.sourcePosition.offset,t.howMany),o||this._markInsert(t.targetPosition.parent,t.getMovedRangeStart().offset,t.howMany);break;case"rename":if(this._isInInsertedElement(t.position.parent))return;this._markRemove(t.position.parent,t.position.offset,1),this._markInsert(t.position.parent,t.position.offset,1);var a,s=na._createFromPositionAndShift(t.position,1),u=c(this._markerCollection.getMarkersIntersectingRange(s));try{for(u.s();!(a=u.n()).done;){var l=a.value,f=l.getRange();this.bufferMarkerChange(l.name,f,f,l.affectsData)}}catch(t){u.e(t)}finally{u.f()}break;case"split":var d=t.splitPosition.parent;this._isInInsertedElement(d)||this._markRemove(d,t.splitPosition.offset,t.howMany),this._isInInsertedElement(t.insertionPosition.parent)||this._markInsert(t.insertionPosition.parent,t.insertionPosition.offset,1),t.graveyardPosition&&this._markRemove(t.graveyardPosition.parent,t.graveyardPosition.offset,1);break;case"merge":var h=t.sourcePosition.parent;this._isInInsertedElement(h.parent)||this._markRemove(h.parent,h.startOffset,1);var p=t.graveyardPosition.parent;this._markInsert(p,t.graveyardPosition.offset,1);var m=t.targetPosition.parent;this._isInInsertedElement(m)||this._markInsert(m,t.targetPosition.offset,h.maxOffset)}this._cachedChanges=null}},{key:"bufferMarkerChange",value:function(t,e,n,r){var i=this._changedMarkers.get(t);i?(i.newRange=n,i.affectsData=r,null==i.oldRange&&null==i.newRange&&this._changedMarkers.delete(t)):this._changedMarkers.set(t,{oldRange:e,newRange:n,affectsData:r})}},{key:"getMarkersToRemove",value:function(){var t,e=[],n=c(this._changedMarkers);try{for(n.s();!(t=n.n()).done;){var r=l(t.value,2),i=r[0],o=r[1];null!=o.oldRange&&e.push({name:i,range:o.oldRange})}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"getMarkersToAdd",value:function(){var t,e=[],n=c(this._changedMarkers);try{for(n.s();!(t=n.n()).done;){var r=l(t.value,2),i=r[0],o=r[1];null!=o.newRange&&e.push({name:i,range:o.newRange})}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"getChangedMarkers",value:function(){return Array.from(this._changedMarkers).map((function(t){return{name:t[0],data:{oldRange:t[1].oldRange,newRange:t[1].newRange}}}))}},{key:"hasDataChanges",value:function(){var t,e=c(this._changedMarkers);try{for(e.s();!(t=e.n()).done;){if(l(t.value,2)[1].affectsData)return!0}}catch(t){e.e(t)}finally{e.f()}return this._changesInElement.size>0}},{key:"getChanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeChangesInGraveyard:!1};if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();var e,n=[],r=c(this._changesInElement.keys());try{for(r.s();!(e=r.n()).done;){var i,o=e.value,a=this._changesInElement.get(o).sort((function(t,e){return t.offset===e.offset?t.type!=e.type?"remove"==t.type?-1:1:0:t.offset<e.offset?-1:1})),s=this._elementSnapshots.get(o),l=Ds(o.getChildren()),f=Ns(s.length,a),d=0,h=0,p=c(f);try{for(p.s();!(i=p.n()).done;){var m=i.value;if("i"===m)n.push(this._getInsertDiff(o,d,l[d].name)),d++;else if("r"===m)n.push(this._getRemoveDiff(o,d,s[h].name)),h++;else if("a"===m){var v=l[d].attributes,g=s[h].attributes,b=void 0;if("$text"==l[d].name)b=new na(Xo._createAt(o,d),Xo._createAt(o,d+1));else{var y=o.offsetToIndex(d);b=new na(Xo._createAt(o,d),Xo._createAt(o.getChild(y),0))}n.push.apply(n,u(this._getAttributesDiff(b,g,v))),d++,h++}else d++,h++}}catch(t){p.e(t)}finally{p.f()}}}catch(t){r.e(t)}finally{r.f()}n.sort((function(t,e){return t.position.root!=e.position.root?t.position.root.rootName<e.position.root.rootName?-1:1:t.position.isEqual(e.position)?t.changeCount-e.changeCount:t.position.isBefore(e.position)?-1:1}));for(var w=1;w<n.length;w++){var _=n[w-1],k=n[w],M="remove"==_.type&&"remove"==k.type&&"$text"==_.name&&"$text"==k.name&&_.position.isEqual(k.position),x="insert"==_.type&&"insert"==k.type&&"$text"==_.name&&"$text"==k.name&&_.position.parent==k.position.parent&&_.position.offset+_.length==k.position.offset,S="attribute"==_.type&&"attribute"==k.type&&_.position.parent==k.position.parent&&_.range.isFlat&&k.range.isFlat&&_.position.offset+_.length==k.position.offset&&_.attributeKey==k.attributeKey&&_.attributeOldValue==k.attributeOldValue&&_.attributeNewValue==k.attributeNewValue;(M||x||S)&&(n[w-1].length++,S&&(n[w-1].range.end=n[w-1].range.end.getShiftedBy(1)),n.splice(w,1),w--)}for(var C=0,A=n;C<A.length;C++){var T=A[C];delete T.changeCount,"attribute"==T.type&&(delete T.position,delete T.length)}return this._changeCount=0,this._cachedChangesWithGraveyard=n.slice(),this._cachedChanges=n.slice().filter(Ls),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard:this._cachedChanges}},{key:"reset",value:function(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._cachedChanges=null}},{key:"_markInsert",value:function(t,e,n){var r={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,r)}},{key:"_markRemove",value:function(t,e,n){var r={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,r),this._removeAllNestedChanges(t,e,n)}},{key:"_markAttribute",value:function(t){var e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}},{key:"_markChange",value:function(t,e){this._makeSnapshot(t);var n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(var r=0;r<n.length;r++)n[r].howMany<1&&(n.splice(r,1),r--)}},{key:"_getChangesForElement",value:function(t){var e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e}},{key:"_makeSnapshot",value:function(t){this._elementSnapshots.has(t)||this._elementSnapshots.set(t,Ds(t.getChildren()))}},{key:"_handleChange",value:function(t,e){t.nodesToHandle=t.howMany;var n,r=c(e);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=t.offset+t.howMany,a=i.offset+i.howMany;if("insert"==t.type&&("insert"==i.type&&(t.offset<=i.offset?i.offset+=t.howMany:t.offset<a&&(i.howMany+=t.nodesToHandle,t.nodesToHandle=0)),"remove"==i.type&&t.offset<i.offset&&(i.offset+=t.howMany),"attribute"==i.type))if(t.offset<=i.offset)i.offset+=t.howMany;else if(t.offset<a){var s=i.howMany;i.howMany=t.offset-i.offset,e.unshift({type:"attribute",offset:o,howMany:s-i.howMany,count:this._changeCount++})}if("remove"==t.type){if("insert"==i.type)if(o<=i.offset)i.offset-=t.howMany;else if(o<=a)if(t.offset<i.offset){var u=o-i.offset;i.offset=t.offset,i.howMany-=u,t.nodesToHandle-=u}else i.howMany-=t.nodesToHandle,t.nodesToHandle=0;else if(t.offset<=i.offset)t.nodesToHandle-=i.howMany,i.howMany=0;else if(t.offset<a){var l=a-t.offset;i.howMany-=l,t.nodesToHandle-=l}if("remove"==i.type&&(o<=i.offset?i.offset-=t.howMany:t.offset<i.offset&&(t.nodesToHandle+=i.howMany,i.howMany=0)),"attribute"==i.type)if(o<=i.offset)i.offset-=t.howMany;else if(t.offset<i.offset){var f=o-i.offset;i.offset=t.offset,i.howMany-=f}else if(t.offset<a)if(o<=a){var d=i.howMany;i.howMany=t.offset-i.offset;var h=d-i.howMany-t.nodesToHandle;e.unshift({type:"attribute",offset:t.offset,howMany:h,count:this._changeCount++})}else i.howMany-=a-t.offset}if("attribute"==t.type){if("insert"==i.type)if(t.offset<i.offset&&o>i.offset){if(o>a){var p={type:"attribute",offset:a,howMany:o-a,count:this._changeCount++};this._handleChange(p,e),e.push(p)}t.nodesToHandle=i.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=i.offset&&t.offset<a&&(o>a?(t.nodesToHandle=o-a,t.offset=a):t.nodesToHandle=0);if("remove"==i.type&&t.offset<i.offset&&o>i.offset){var m={type:"attribute",offset:i.offset,howMany:o-i.offset,count:this._changeCount++};this._handleChange(m,e),e.push(m),t.nodesToHandle=i.offset-t.offset,t.howMany=t.nodesToHandle}"attribute"==i.type&&(t.offset>=i.offset&&o<=a?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=i.offset&&o>=a&&(i.howMany=0))}}}catch(t){r.e(t)}finally{r.f()}t.howMany=t.nodesToHandle,delete t.nodesToHandle}},{key:"_getInsertDiff",value:function(t,e,n){return{type:"insert",position:Xo._createAt(t,e),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getRemoveDiff",value:function(t,e,n){return{type:"remove",position:Xo._createAt(t,e),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getAttributesDiff",value:function(t,e,n){var r=[];n=new Map(n);var i,o=c(e);try{for(o.s();!(i=o.n()).done;){var a=l(i.value,2),s=a[0],u=a[1],f=n.has(s)?n.get(s):null;f!==u&&r.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:s,attributeOldValue:u,attributeNewValue:f,changeCount:this._changeCount++}),n.delete(s)}}catch(t){o.e(t)}finally{o.f()}var d,h=c(n);try{for(h.s();!(d=h.n()).done;){var p=l(d.value,2),m=p[0],v=p[1];r.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:m,attributeOldValue:null,attributeNewValue:v,changeCount:this._changeCount++})}}catch(t){h.e(t)}finally{h.f()}return r}},{key:"_isInInsertedElement",value:function(t){var e=t.parent;if(!e)return!1;var n=this._changesInElement.get(e),r=t.startOffset;if(n){var i,o=c(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;if("insert"==a.type&&r>=a.offset&&r<a.offset+a.howMany)return!0}}catch(t){o.e(t)}finally{o.f()}}return this._isInInsertedElement(e)}},{key:"_removeAllNestedChanges",value:function(t,e,n){var r,i=c(new na(Xo._createAt(t,e),Xo._createAt(t,e+n)).getItems({shallow:!0}));try{for(i.s();!(r=i.n()).done;){var o=r.value;o.is("element")&&(this._elementSnapshots.delete(o),this._changesInElement.delete(o),this._removeAllNestedChanges(o,0,o.maxOffset))}}catch(t){i.e(t)}finally{i.f()}}},{key:"isEmpty",get:function(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}}]),t}();function Ds(t){var e,n=[],r=c(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(i.is("$text"))for(var o=0;o<i.data.length;o++)n.push({name:"$text",attributes:new Map(i.getAttributes())});else n.push({name:i.name,attributes:new Map(i.getAttributes())})}}catch(t){r.e(t)}finally{r.f()}return n}function Ns(t,e){var n,r=[],i=0,o=0,a=c(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.offset>i){for(var l=0;l<s.offset-i;l++)r.push("e");o+=s.offset-i}if("insert"==s.type){for(var f=0;f<s.howMany;f++)r.push("i");i=s.offset+s.howMany}else if("remove"==s.type){for(var d=0;d<s.howMany;d++)r.push("r");i=s.offset,o+=s.howMany}else r.push.apply(r,u("a".repeat(s.howMany).split(""))),i=s.offset+s.howMany,o+=s.howMany}}catch(t){a.e(t)}finally{a.f()}if(o<t)for(var h=0;h<t-o-i;h++)r.push("e");return r}function Ls(t){var e=t.position&&"$graveyard"==t.position.root.rootName,n=t.range&&"$graveyard"==t.range.root.rootName;return!e&&!n}var Bs=function(){function t(){h(this,t),this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set}return m(t,[{key:"addOperation",value:function(t){this._operations.includes(t)||this._operations.push(t)}},{key:"getOperations",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return t<0?[]:this._operations.slice(t,e)}},{key:"getOperation",value:function(t){return this._operations[t]}},{key:"setOperationAsUndone",value:function(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}},{key:"isUndoingOperation",value:function(t){return this._undoPairs.has(t)}},{key:"isUndoneOperation",value:function(t){return this._undoneOperations.has(t)}},{key:"getUndoneOperation",value:function(t){return this._undoPairs.get(t)}}]),t}();function zs(t,e){return!!(n=t.charAt(e-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(t){return!!t&&1==t.length&&/[\udc00-\udfff]/.test(t)}(t.charAt(e));var n}function Fs(t,e){return!!(n=t.charAt(e))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}var qs="$graveyard",Vs=function(){function t(e){var n=this;h(this,t),this.model=e,this.version=0,this.history=new Bs(this),this.selection=new ga(this),this.roots=new sn({idProperty:"rootName"}),this.differ=new js(e.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",qs),this.listenTo(e,"applyOperation",(function(t,e){var r=e[0];if(r.isDocumentOperation&&r.baseVersion!==n.version)throw new Ye.b("model-document-applyOperation-wrong-version: Only operations with matching versions can be applied.",n,{operation:r})}),{priority:"highest"}),this.listenTo(e,"applyOperation",(function(t,e){var r=e[0];r.isDocumentOperation&&n.differ.bufferOperation(r)}),{priority:"high"}),this.listenTo(e,"applyOperation",(function(t,e){var r=e[0];r.isDocumentOperation&&(n.version++,n.history.addOperation(r))}),{priority:"low"}),this.listenTo(this.selection,"change",(function(){n._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(e.markers,"update",(function(t,e,r,i){n.differ.bufferMarkerChange(e.name,r,i,e.affectsData),null===r&&e.on("change",(function(t,r){n.differ.bufferMarkerChange(e.name,r,e.getRange(),e.affectsData)}))}))}return m(t,[{key:"createRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$root",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(e))throw new Ye.b("model-document-createRoot-name-exists: Root with specified name already exists.",this,{name:e});var n=new As(this,t,e);return this.roots.add(n),n}},{key:"destroy",value:function(){this.selection.destroy(),this.stopListening()}},{key:"getRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(t)}},{key:"getRootNames",value:function(){return Array.from(this.roots,(function(t){return t.rootName})).filter((function(t){return t!=qs}))}},{key:"registerPostFixer",value:function(t){this._postFixers.add(t)}},{key:"toJSON",value:function(){var t=mn(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}},{key:"_handleChangeBlock",value:function(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}},{key:"_hasDocumentChangedFromTheLastChangeBlock",value:function(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}},{key:"_getDefaultRoot",value:function(){var t,e=c(this.roots);try{for(e.s();!(t=e.n()).done;){var n=t.value;if(n!==this.graveyard)return n}}catch(t){e.e(t)}finally{e.f()}return this.graveyard}},{key:"_getDefaultRange",value:function(){var t=this._getDefaultRoot(),e=this.model,n=e.schema,r=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(r)||e.createRange(r)}},{key:"_validateSelectionRange",value:function(t){return $s(t.start)&&$s(t.end)}},{key:"_callPostFixers",value:function(t){var e=!1;do{var n,r=c(this._postFixers);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(this.selection.refresh(),e=i(t))break}}catch(t){r.e(t)}finally{r.f()}}while(e)}},{key:"graveyard",get:function(){return this.getRoot(qs)}}]),t}();function $s(t){var e=t.textNode;if(e){var n=e.data,r=t.offset-e.startOffset;return!zs(n,r)&&!Fs(n,r)}return!0}an(Vs,Je);var Hs=function(){function t(){h(this,t),this._markers=new Map}return m(t,[{key:Symbol.iterator,value:function(){return this._markers.values()}},{key:"has",value:function(t){return this._markers.has(t)}},{key:"get",value:function(t){return this._markers.get(t)||null}},{key:"_set",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=t instanceof Us?t.name:t;if(i.includes(","))throw new Ye.b('markercollection-incorrect-marker-name: Marker name cannot contain the "," character.',this);var o=this._markers.get(i);if(o){var a=o.getRange(),s=!1;return a.isEqual(e)||(o._attachLiveRange(ha.fromRange(e)),s=!0),n!=o.managedUsingOperations&&(o._managedUsingOperations=n,s=!0),"boolean"==typeof r&&r!=o.affectsData&&(o._affectsData=r,s=!0),s&&this.fire("update:"+i,o,a,e),o}var u=ha.fromRange(e),l=new Us(i,u,n,r);return this._markers.set(i,l),this.fire("update:"+i,l,null,e),l}},{key:"_remove",value:function(t){var e=t instanceof Us?t.name:t,n=this._markers.get(e);return!!n&&(this._markers.delete(e),this.fire("update:"+e,n,n.getRange(),null),this._destroyMarker(n),!0)}},{key:"_refresh",value:function(t){var e=t instanceof Us?t.name:t,n=this._markers.get(e);if(!n)throw new Ye.b("markercollection-refresh-marker-not-exists: Marker with provided name does not exists.",this);var r=n.getRange();this.fire("update:"+e,n,r,r,n.managedUsingOperations,n.affectsData)}},{key:"getMarkersAtPosition",value:o.a.mark((function t(e){var n,r,i;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=c(this),t.prev=1,n.s();case 3:if((r=n.n()).done){t.next=11;break}if(i=r.value,t.t0=i.getRange().containsPosition(e),!t.t0){t.next=9;break}return t.next=9,i;case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),n.e(t.t1);case 16:return t.prev=16,n.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,13,16,19]])}))},{key:"getMarkersIntersectingRange",value:o.a.mark((function t(e){var n,r,i;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=c(this),t.prev=1,n.s();case 3:if((r=n.n()).done){t.next=11;break}if(i=r.value,t.t0=null!==i.getRange().getIntersection(e),!t.t0){t.next=9;break}return t.next=9,i;case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),n.e(t.t1);case 16:return t.prev=16,n.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,13,16,19]])}))},{key:"destroy",value:function(){var t,e=c(this._markers.values());try{for(e.s();!(t=e.n()).done;){var n=t.value;this._destroyMarker(n)}}catch(t){e.e(t)}finally{e.f()}this._markers=null,this.stopListening()}},{key:"getMarkersGroup",value:o.a.mark((function t(e){var n,r,i;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=c(this._markers.values()),t.prev=1,n.s();case 3:if((r=n.n()).done){t.next=11;break}if(i=r.value,t.t0=i.name.startsWith(e+":"),!t.t0){t.next=9;break}return t.next=9,i;case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),n.e(t.t1);case 16:return t.prev=16,n.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,13,16,19]])}))},{key:"_destroyMarker",value:function(t){t.stopListening(),t._detachLiveRange()}}]),t}();an(Hs,Je);var Us=function(){function t(e,n,r,i){h(this,t),this.name=e,this._liveRange=this._attachLiveRange(n),this._managedUsingOperations=r,this._affectsData=i}return m(t,[{key:"getStart",value:function(){if(!this._liveRange)throw new Ye.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.start.clone()}},{key:"getEnd",value:function(){if(!this._liveRange)throw new Ye.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.end.clone()}},{key:"getRange",value:function(){if(!this._liveRange)throw new Ye.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.toRange()}},{key:"is",value:function(t){return"marker"===t||"model:marker"===t}},{key:"_attachLiveRange",value:function(t){return this._liveRange&&this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t}},{key:"_detachLiveRange",value:function(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}},{key:"managedUsingOperations",get:function(){if(!this._liveRange)throw new Ye.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._managedUsingOperations}},{key:"affectsData",get:function(){if(!this._liveRange)throw new Ye.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._affectsData}}]),t}();an(Us,Je);var Ws=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"clone",value:function(){return new n(this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.baseVersion+1)}},{key:"_execute",value:function(){}},{key:"type",get:function(){return"noop"}}],[{key:"className",get:function(){return"NoOperation"}}]),n}(us),Ks={};Ks[bs.className]=bs,Ks[_s.className]=_s,Ks[ks.className]=ks,Ks[ws.className]=ws,Ks[Ws.className]=Ws,Ks[us.className]=us,Ks[Ms.className]=Ms,Ks[xs.className]=xs,Ks[Cs.className]=Cs,Ks[Ss.className]=Ss;var Ys=function(t){v(n,t);var e=g(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(h(this,n),!(i=e.call(this,t,r,o)).root.is("rootElement"))throw new Ye.b("model-liveposition-root-not-rootelement: LivePosition's root has to be an instance of RootElement.",t);return Gs.call(y(i)),b(i)}return m(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(t){return"livePosition"===t||"model:livePosition"===t||"position"==t||"model:position"===t}},{key:"toPosition",value:function(){return new Xo(this.root,this.path.slice(),this.stickiness)}}],[{key:"fromPosition",value:function(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}]),n}(Xo);function Gs(){var t=this;this.listenTo(this.root.document.model,"applyOperation",(function(e,n){var r=n[0];r.isDocumentOperation&&Zs.call(t,r)}),{priority:"low"})}function Zs(t){var e=this.getTransformedByOperation(t);if(!this.isEqual(e)){var n=this.toPosition();this.path=e.path,this.root=e.root,this.fire("change",n)}}an(Ys,Je);var Js=function(){function t(e,n,r){h(this,t),this.model=e,this.writer=n,this.position=r,this.canMergeWith=new Set([this.position.parent]),this.schema=e.schema,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}return m(t,[{key:"handleNodes",value:function(t,e){t=Array.from(t);for(var n=0;n<t.length;n++){var r=t[n];this._handleNode(r,{isFirst:0===n&&e.isFirst,isLast:n===t.length-1&&e.isLast})}this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}},{key:"getSelectionRange",value:function(){return this.nodeToSelect?na._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}},{key:"getAffectedRange",value:function(){return this._affectedStart?new na(this._affectedStart,this._affectedEnd):null}},{key:"destroy",value:function(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}},{key:"_handleNode",value:function(t,e){this.schema.isObject(t)?this._handleObject(t,e):this._checkAndSplitToAllowedPosition(t,e)?(this._insert(t),this._mergeSiblingsOf(t,e)):this._handleDisallowedNode(t,e)}},{key:"_handleObject",value:function(t,e){this._checkAndSplitToAllowedPosition(t)?this._insert(t):this._tryAutoparagraphing(t,e)}},{key:"_handleDisallowedNode",value:function(t,e){t.is("element")?this.handleNodes(t.getChildren(),e):this._tryAutoparagraphing(t,e)}},{key:"_insert",value:function(t){if(!this.schema.checkChild(this.position,t))throw new Ye.b("insertcontent-wrong-position: Given node cannot be inserted on the given position.",this,{node:t,position:this.position});var e=Ys.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this.writer.insert(t,this.position),this.position=e.toPosition(),e.detach(),this.schema.isObject(t)&&!this.schema.checkChild(this.position,"$text")?this.nodeToSelect=t:this.nodeToSelect=null,this._filterAttributesOf.push(t)}},{key:"_setAffectedBoundaries",value:function(t){this._affectedStart||(this._affectedStart=Ys.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Ys.fromPosition(t,"toNext"))}},{key:"_mergeSiblingsOf",value:function(t,e){if(t instanceof Go){var n=this._canMergeLeft(t,e),r=this._canMergeRight(t,e),i=Ys._createBefore(t);i.stickiness="toNext";var o=Ys._createAfter(t);if(o.stickiness="toNext",n){var a=Ys.fromPosition(this.position);a.stickiness="toNext",this._affectedStart.isEqual(i)&&(this._affectedStart.detach(),this._affectedStart=Ys._createAt(i.nodeBefore,"end","toPrevious")),this.writer.merge(i),i.isEqual(this._affectedEnd)&&e.isLast&&(this._affectedEnd.detach(),this._affectedEnd=Ys._createAt(i.nodeBefore,"end","toNext")),this.position=a.toPosition(),a.detach()}if(r){if(!this.position.isEqual(o))throw new Ye.b("insertcontent-invalid-insertion-position: An internal error occurred during insertContent().",this);this.position=Xo._createAt(o.nodeBefore,"end");var s=Ys.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(o)&&(this._affectedEnd.detach(),this._affectedEnd=Ys._createAt(o.nodeBefore,"end","toNext")),this.writer.merge(o),o.getShiftedBy(-1).isEqual(this._affectedStart)&&e.isFirst&&(this._affectedStart.detach(),this._affectedStart=Ys._createAt(o.nodeBefore,0,"toPrevious")),this.position=s.toPosition(),s.detach()}(n||r)&&this._filterAttributesOf.push(this.position.parent),i.detach(),o.detach()}}},{key:"_canMergeLeft",value:function(t,e){var n=t.previousSibling;return e.isFirst&&n instanceof Go&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(n,t)}},{key:"_canMergeRight",value:function(t,e){var n=t.nextSibling;return e.isLast&&n instanceof Go&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(t,n)}},{key:"_tryAutoparagraphing",value:function(t,e){var n=this.writer.createElement("paragraph");this._getAllowedIn(n,this.position.parent)&&this.schema.checkChild(n,t)&&(n._appendChild(t),this._handleNode(n,e))}},{key:"_checkAndSplitToAllowedPosition",value:function(t){var e=this._getAllowedIn(t,this.position.parent);if(!e)return!1;for(;e!=this.position.parent;){if(this.schema.isLimit(this.position.parent))return!1;if(this.position.isAtStart){var n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===e&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{var r=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=r,this.canMergeWith.add(this.position.nodeAfter)}}return!0}},{key:"_getAllowedIn",value:function(t,e){return this.schema.checkChild(e,t)?e:e.parent?this._getAllowedIn(t,e.parent):null}}]),t}();function Xs(t,e,n){var r=e.parent,i=n.parent;return r!=i&&!t.isLimit(r)&&!t.isLimit(i)&&function(t,e,n){var r,i=c(new na(t,e).getWalker());try{for(i.s();!(r=i.n()).done;){var o=r.value;if(n.isLimit(o.item))return!1}}catch(t){i.e(t)}finally{i.f()}return!0}(e,n,t)}function Qs(t,e,n){var r=t.createElement("paragraph");t.insert(r,e),tu(t,n,t.createPositionAt(r,0))}function tu(t,e,n){e instanceof ga?t.setSelection(n):e.setTo(n)}var eu=' ,.?!:;"-()';function nu(t,e){var n=t.isForward,r=t.walker,i=t.unit,o=t.schema,a=e.type,s=e.item,u=e.nextPosition;if("text"==a)return"word"===t.unit?function(t,e){var n=t.position.textNode;if(n)for(var r=t.position.offset-n.startOffset;!iu(n.data,r,e)&&!ou(n,r,e);){t.next();var i=e?t.position.nodeAfter:t.position.nodeBefore;if(i&&i.is("$text")){var o=i.data.charAt(e?0:i.data.length-1);eu.includes(o)||(t.next(),n=t.position.textNode)}r=t.position.offset-n.startOffset}return t.position}(r,n):function(t,e){var n=t.position.textNode;if(n)for(var r=n.data,i=t.position.offset-n.startOffset;zs(r,i)||"character"==e&&Fs(r,i);)t.next(),i=t.position.offset-n.startOffset;return t.position}(r,i);if(a==(n?"elementStart":"elementEnd")){if(o.isSelectable(s))return Xo._createAt(s,n?"after":"before");if(o.checkChild(u,"$text"))return u}else{if(o.isLimit(s))return void r.skip((function(){return!0}));if(o.checkChild(u,"$text"))return u}}function ru(t,e){var n=t.root,r=Xo._createAt(n,e?"end":0);return e?new na(t,r):new na(r,t)}function iu(t,e,n){var r=e+(n?0:-1);return eu.includes(t.charAt(r))}function ou(t,e,n){return e===(n?t.endOffset:0)}function au(t,e){var n=[];Array.from(t.getItems({direction:"backward"})).map((function(t){return e.createRangeOn(t)})).filter((function(e){return(e.start.isAfter(t.start)||e.start.isEqual(t.start))&&(e.end.isBefore(t.end)||e.end.isEqual(t.end))})).forEach((function(t){n.push(t.start.parent),e.remove(t)})),n.forEach((function(t){for(var n=t;n.parent&&n.isEmpty;){var r=e.createRangeOn(n);n=n.parent,e.remove(r)}}))}function su(t,e){return t.isCollapsed?function(t,e){var n=t.start,r=e.getNearestSelectionRange(n);if(!r)return null;if(!r.isCollapsed)return r;var i=r.start;return n.isEqual(i)?null:new na(i)}(t,e):function(t,e){var n=t.start,r=t.end,i=e.checkChild(n,"$text"),o=e.checkChild(r,"$text"),a=e.getLimitElement(n),s=e.getLimitElement(r);if(a===s){if(i&&o)return null;if(function(t,e,n){var r=t.nodeAfter&&!n.isLimit(t.nodeAfter)||n.checkChild(t,"$text"),i=e.nodeBefore&&!n.isLimit(e.nodeBefore)||n.checkChild(e,"$text");return r||i}(n,r,e)){var u=n.nodeAfter&&e.isSelectable(n.nodeAfter)?null:e.getNearestSelectionRange(n,"forward"),l=r.nodeBefore&&e.isSelectable(r.nodeBefore)?null:e.getNearestSelectionRange(r,"backward"),c=u?u.start:n,f=l?l.start:r;return new na(c,f)}}var d=a&&!a.is("rootElement"),h=s&&!s.is("rootElement");if(d||h){var p=n.nodeAfter&&r.nodeBefore&&n.nodeAfter.parent===r.nodeBefore.parent,m=d&&(!p||!lu(n.nodeAfter,e)),v=h&&(!p||!lu(r.nodeBefore,e)),g=n,b=r;return m&&(g=Xo._createBefore(uu(a,e))),v&&(b=Xo._createAfter(uu(s,e))),new na(g,b)}return null}(t,e)}function uu(t,e){for(var n=t,r=n;e.isLimit(r)&&r.parent;)n=r,r=r.parent;return n}function lu(t,e){return t&&e.isSelectable(t)}var cu=function(){function t(){var e=this;h(this,t),this.markers=new Hs,this.document=new Vs(this),this.schema=new $a,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((function(t){return e.decorate(t)})),this.on("applyOperation",(function(t,e){e[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",isLimit:!0}),this.schema.extend("$text",{allowIn:"$clipboardHolder"}),this.schema.register("$marker"),this.schema.addChildCheck((function(t,e){if("$marker"===e.name)return!0})),function(t){t.document.registerPostFixer((function(e){return function(t,e){var n,r=e.document.selection,i=e.schema,o=[],a=!1,s=c(r.getRanges());try{for(s.s();!(n=s.n()).done;){var u=n.value,l=su(u,i);l&&!l.isEqual(u)?(o.push(l),a=!0):o.push(u)}}catch(t){s.e(t)}finally{s.f()}a&&t.setSelection(function(t){var e=[];e.push(t.shift());var n,r=c(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e.pop();if(i.isIntersecting(o)){var a=o.start.isAfter(i.start)?i.start:o.start,s=o.end.isAfter(i.end)?o.end:i.end,u=new na(a,s);e.push(u)}else e.push(o),e.push(i)}}catch(t){r.e(t)}finally{r.f()}return e}(o),{backward:r.isBackward})}(e,t)}))}(this),this.document.registerPostFixer(Ea)}return m(t,[{key:"change",value:function(t){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new ss,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(t){Ye.b.rethrowUnexpectedError(t,this)}}},{key:"enqueueChange",value:function(t,e){try{"string"==typeof t?t=new ss(t):"function"==typeof t&&(e=t,t=new ss),this._pendingChanges.push({batch:t,callback:e}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(t){Ye.b.rethrowUnexpectedError(t,this)}}},{key:"applyOperation",value:function(t){t._execute()}},{key:"insertContent",value:function(t,e,n){return function(t,e,n,r){return t.change((function(i){var o;(o=n?n instanceof ua||n instanceof ga?n:i.createSelection(n,r):t.document.selection).isCollapsed||t.deleteContent(o,{doNotAutoparagraph:!0});var a,s=new Js(t,i,o.anchor);a=e.is("documentFragment")?e.getChildren():[e],s.handleNodes(a,{isFirst:!0,isLast:!0});var u=s.getSelectionRange();u&&(o instanceof ga?i.setSelection(u):o.setTo(u));var l=s.getAffectedRange()||t.createRange(o.anchor);return s.destroy(),l}))}(this,t,e,n)}},{key:"deleteContent",value:function(t,e){!function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.isCollapsed){var r=e.getFirstRange();if("$graveyard"!=r.root.rootName){var i=t.schema;t.change((function(t){if(n.doNotResetEntireContent||!function(t,e){var n=t.getLimitElement(e);if(!e.containsEntireContent(n))return!1;var r=e.getFirstRange();return r.start.parent!=r.end.parent&&t.checkChild(n,"paragraph")}(i,e)){var o=l(function(t){var e=t.root.document.model,n=t.start,r=t.end;if(e.hasContent(t,{ignoreMarkers:!0})){var i=function(t){var e,n=t.parent,r=n.root.document.model.schema,i=c(n.getAncestors({parentFirst:!0,includeSelf:!0}));try{for(i.s();!(e=i.n()).done;){var o=e.value;if(r.isLimit(o))return null;if(r.isBlock(o))return o}}catch(t){i.e(t)}finally{i.f()}}(r);if(i&&r.isTouching(e.createPositionAt(i,0))){var o=e.createSelection(t);e.modifySelection(o,{direction:"backward"}),r=o.getLastPosition()}}return[Ys.fromPosition(n,"toPrevious"),Ys.fromPosition(r,"toNext")]}(r),2),a=o[0],s=o[1];r.start.isTouching(r.end)||t.remove(r),n.leaveUnmerged||(function(t,e,n){var r=t.model;if(Xs(t.model.schema,e,n)){var i=l(function(t,e){for(var n=t.getAncestors(),r=e.getAncestors(),i=0;n[i]&&n[i]==r[i];)i++;return[n[i],r[i]]}(e,n),2),o=i[0],a=i[1];!r.hasContent(o,{ignoreMarkers:!0})&&r.hasContent(a,{ignoreMarkers:!0})?function t(e,n,r,i){var o=n.parent,a=r.parent;if(o!=i&&a!=i){for(n=e.createPositionAfter(o),(r=e.createPositionBefore(a)).isEqual(n)||e.insert(o,r);n.parent.isEmpty;){var s=n.parent;n=e.createPositionBefore(s),e.remove(s)}r=e.createPositionBefore(a),function(t,e){var n=e.nodeBefore,r=e.nodeAfter;n.name!=r.name&&t.rename(n,r.name),t.clearAttributes(n),t.setAttributes(Object.fromEntries(r.getAttributes()),n),t.merge(e)}(e,r),Xs(e.model.schema,n,r)&&t(e,n,r,i)}}(t,e,n,o.parent):function t(e,n,r,i){var o=n.parent,a=r.parent;if(o!=i&&a!=i){for(n=e.createPositionAfter(o),(r=e.createPositionBefore(a)).isEqual(n)||e.insert(a,n),e.merge(n);r.parent.isEmpty;){var s=r.parent;r=e.createPositionBefore(s),e.remove(s)}Xs(e.model.schema,n,r)&&t(e,n,r,i)}}(t,e,n,o.parent)}}(t,a,s),i.removeDisallowedAttributes(a.parent.getChildren(),t)),tu(t,e,a),!n.doNotAutoparagraph&&function(t,e){var n=t.checkChild(e,"$text"),r=t.checkChild(e,"paragraph");return!n&&r}(i,a)&&Qs(t,a,e),a.detach(),s.detach()}else!function(t,e){var n=t.model.schema.getLimitElement(e);t.remove(t.createRangeIn(n)),Qs(t,t.createPositionAt(n,0),e)}(t,e)}))}}}(this,t,e)}},{key:"modifySelection",value:function(t,e){!function(t,e){for(var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.schema,o="backward"!=r.direction,a=r.unit?r.unit:"character",s=e.focus,u=new Zo({boundaries:ru(s,o),singleCharacters:!0,direction:o?"forward":"backward"}),l={walker:u,schema:i,isForward:o,unit:a},c=function(){if(n.done)return{v:void 0};var r=nu(l,n.value);return r?{v:void(e instanceof ga?t.change((function(t){t.setSelectionFocus(r)})):e.setFocus(r))}:void 0};n=u.next();){var f=c();if("object"===S(f))return f.v}}(this,t,e)}},{key:"getSelectedContent",value:function(t){return function(t,e){return t.change((function(t){var n=t.createDocumentFragment(),r=e.getFirstRange();if(!r||r.isCollapsed)return n;var i,o,a=r.start.root,s=r.start.getCommonPath(r.end),u=a.getNodeByPath(s),l=(i=r.start.parent==r.end.parent?r:t.createRange(t.createPositionAt(u,r.start.path[s.length]),t.createPositionAt(u,r.end.path[s.length]+1))).end.offset-i.start.offset,f=c(i.getItems({shallow:!0}));try{for(f.s();!(o=f.n()).done;){var d=o.value;d.is("$textProxy")?t.appendText(d.data,d.getAttributes(),n):t.append(t.cloneElement(d,!0),n)}}catch(t){f.e(t)}finally{f.f()}if(i!=r){var h=r._getTransformedByMove(i.start,t.createPositionAt(n,0),l)[0],p=t.createRange(t.createPositionAt(n,0),h.start);au(t.createRange(h.end,t.createPositionAt(n,"end")),t),au(p,t)}return n}))}(this,t)}},{key:"hasContent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t instanceof Go?na._createIn(t):t;if(n.isCollapsed)return!1;var r=e.ignoreWhitespaces,i=void 0!==r&&r,o=e.ignoreMarkers,a=void 0!==o&&o;if(!a){var s,u=c(this.markers.getMarkersIntersectingRange(n));try{for(u.s();!(s=u.n()).done;){var l=s.value;if(l.affectsData)return!0}}catch(t){u.e(t)}finally{u.f()}}var f,d=c(n.getItems());try{for(d.s();!(f=d.n()).done;){var h=f.value;if(this.schema.isContent(h)){if(!h.is("$textProxy"))return!0;if(!i)return!0;if(-1!==h.data.search(/\S/))return!0}}}catch(t){d.e(t)}finally{d.f()}return!1}},{key:"createPositionFromPath",value:function(t,e,n){return new Xo(t,e,n)}},{key:"createPositionAt",value:function(t,e){return Xo._createAt(t,e)}},{key:"createPositionAfter",value:function(t){return Xo._createAfter(t)}},{key:"createPositionBefore",value:function(t){return Xo._createBefore(t)}},{key:"createRange",value:function(t,e){return new na(t,e)}},{key:"createRangeIn",value:function(t){return na._createIn(t)}},{key:"createRangeOn",value:function(t){return na._createOn(t)}},{key:"createSelection",value:function(t,e,n){return new ua(t,e,n)}},{key:"createBatch",value:function(t){return new ss(t)}},{key:"createOperationFromJSON",value:function(t){return function(){function t(){h(this,t)}return m(t,null,[{key:"fromJSON",value:function(t,e){return Ks[t.__className].fromJSON(t,e)}}]),t}().fromJSON(t,this.document)}},{key:"destroy",value:function(){this.document.destroy(),this.stopListening()}},{key:"_runPendingChanges",value:function(){var t=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){var e=this._pendingChanges[0].batch;this._currentWriter=new Ts(this,e);var n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),t}}]),t}();an(cu,pr);var fu=function(){function t(){h(this,t),this._listener=Object.create(qi)}return m(t,[{key:"listenTo",value:function(t){var e=this;this._listener.listenTo(t,"keydown",(function(t,n){e._listener.fire("_keydown:"+Ur(n),n)}))}},{key:"set",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Wr(t),i=n.priority;this._listener.listenTo(this._listener,"_keydown:"+r,(function(t,n){e(n,(function(){n.preventDefault(),n.stopPropagation(),t.stop()})),t.return=!0}),{priority:i})}},{key:"press",value:function(t){return!!this._listener.fire("_keydown:"+Ur(t),t)}},{key:"destroy",value:function(){this._listener.stopListening()}}]),t}(),du=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this)).editor=t,r}return m(n,[{key:"set",value:function(t,e){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof e){var o=e;e=function(t,e){r.editor.execute(o),e()}}s(x(n.prototype),"set",this).call(this,t,e,i)}}]),n}(fu),hu=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h(this,t),this._context=n.context||new hn({language:n.language}),this._context._addEditor(this,!n.context);var r=Array.from(this.constructor.builtinPlugins||[]);this.config=new qe(n,this.constructor.defaultConfig),this.config.define("plugins",r),this.config.define(this._context._getEditorConfig()),this.plugins=new un(this,r,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new Fa,this.set("state","initializing"),this.once("ready",(function(){return e.state="ready"}),{priority:"high"}),this.once("destroy",(function(){return e.state="destroyed"}),{priority:"high"}),this.set("isReadOnly",!1),this.model=new cu;var i=new nr;this.data=new rs(this.model,i),this.editing=new za(this.model,i),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new is([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new du(this),this.keystrokes.listenTo(this.editing.view.document)}return m(t,[{key:"initPlugins",value:function(){var t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],r=t.get("extraPlugins")||[];return this.plugins.init(e.concat(r),n)}},{key:"destroy",value:function(){var t=this,e=Promise.resolve();return"initializing"==this.state&&(e=new Promise((function(e){return t.once("ready",e)}))),e.then((function(){t.fire("destroy"),t.stopListening(),t.commands.destroy()})).then((function(){return t.plugins.destroy()})).then((function(){t.model.destroy(),t.data.destroy(),t.editing.destroy(),t.keystrokes.destroy()})).then((function(){return t._context._removeEditor(t)}))}},{key:"execute",value:function(){try{var t;return(t=this.commands).execute.apply(t,arguments)}catch(t){Ye.b.rethrowUnexpectedError(t,this)}}}]),t}();an(hu,pr);var pu={updateSourceElement:function(){if(!this.sourceElement)throw new Ye.b("editor-missing-sourceelement: Cannot update the source element of a detached editor.",this);var t,e;t=this.sourceElement,e=this.data.get(),t instanceof HTMLTextAreaElement&&(t.value=e),t.innerHTML=e}},mu=function(){function t(){h(this,t)}return m(t,[{key:"getHtml",value:function(t){var e=document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}]),t}(),vu=function(){function t(e){h(this,t),this._domParser=new DOMParser,this._domConverter=new Ni(e,{blockFillerMode:"nbsp"}),this._htmlWriter=new mu}return m(t,[{key:"toData",value:function(t){var e=this._domConverter.viewToDom(t,document);return this._htmlWriter.getHtml(e)}},{key:"toView",value:function(t){var e=this._toDom(t);return this._domConverter.domToView(e)}},{key:"_toDom",value:function(t){for(var e=this._domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),r=e.body.childNodes;r.length>0;)n.appendChild(r[0]);return n}}]),t}(),gu=function(){function t(e){h(this,t),this.editor=e,this._components=new Map}return m(t,[{key:"names",value:o.a.mark((function t(){var e,n,r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=c(this._components.values()),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return r=n.value,t.next=7,r.originalName;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"add",value:function(t,e){this._components.set(bu(t),{callback:e,originalName:t})}},{key:"create",value:function(t){if(!this.has(t))throw new Ye.b("componentfactory-item-missing: The required component is not registered in the factory.",this,{name:t});return this._components.get(bu(t)).callback(this.editor.locale)}},{key:"has",value:function(t){return this._components.has(bu(t))}}]),t}();function bu(t){return String(t).toLowerCase()}var yu=function(){function t(){h(this,t),this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}return m(t,[{key:"add",value:function(t){var e=this;if(this._elements.has(t))throw new Ye.b("focusTracker-add-element-already-exist: This element is already tracked by FocusTracker.",this);this.listenTo(t,"focus",(function(){return e._focus(t)}),{useCapture:!0}),this.listenTo(t,"blur",(function(){return e._blur()}),{useCapture:!0}),this._elements.add(t)}},{key:"remove",value:function(t){t===this.focusedElement&&this._blur(t),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}},{key:"destroy",value:function(){this.stopListening()}},{key:"_focus",value:function(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}},{key:"_blur",value:function(){var t=this;clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((function(){t.focusedElement=null,t.isFocused=!1}),0)}}]),t}();an(yu,qi),an(yu,pr);var wu=function(){function t(e){var n=this;h(this,t),this.editor=e,this.componentFactory=new gu(e),this.focusTracker=new yu,this._editableElementsMap=new Map,this.listenTo(e.editing.view.document,"layoutChanged",(function(){return n.update()}))}return m(t,[{key:"update",value:function(){this.fire("update")}},{key:"destroy",value:function(){this.stopListening(),this.focusTracker.destroy();var t,e=c(this._editableElementsMap.values());try{for(e.s();!(t=e.n()).done;){t.value.ckeditorInstance=null}}catch(t){e.e(t)}finally{e.f()}this._editableElementsMap=new Map}},{key:"setEditableElement",value:function(t,e){this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor)}},{key:"getEditableElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(t)}},{key:"getEditableElementsNames",value:function(){return this._editableElementsMap.keys()}},{key:"element",get:function(){return null}},{key:"_editableElements",get:function(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}]),t}();an(wu,Je),n(13);var _u=new WeakMap;function ku(t){var e=t.view,n=t.element,r=t.text,i=t.isDirectHost,o=void 0===i||i,a=e.document;_u.has(a)||(_u.set(a,new Map),a.registerPostFixer((function(t){return Mu(a,t)}))),_u.get(a).set(n,{text:r,isDirectHost:o}),e.change((function(t){return Mu(a,t)}))}function Mu(t,e){var n,r=!1,i=c(_u.get(t));try{for(i.s();!(n=i.n()).done;){var o=l(n.value,2);xu(e,o[0],o[1])&&(r=!0)}}catch(t){i.e(t)}finally{i.f()}return r}function xu(t,e,n){var r=n.text,i=n.isDirectHost?e:function(t){if(1===t.childCount){var e=t.getChild(0);if(e.is("element")&&!e.is("uiElement"))return e}return null}(e),o=!1;return!!i&&(n.hostElement=i,i.getAttribute("data-placeholder")!==r&&(t.setAttribute("data-placeholder",r,i),o=!0),function(t){if(!t.isAttached())return!1;var e=!Array.from(t.getChildren()).some((function(t){return!t.is("uiElement")})),n=t.document;if(!n.isFocused&&e)return!0;var r=n.selection.anchor;return!(!e||!r||r.parent===t)}(i)?function(t,e){return!e.hasClass("ck-placeholder")&&(t.addClass("ck-placeholder",e),!0)}(t,i)&&(o=!0):function(t,e){return!!e.hasClass("ck-placeholder")&&(t.removeClass("ck-placeholder",e),!0)}(t,i)&&(o=!0),o)}var Su=function(){function t(){h(this,t),this._replacedElements=[]}return m(t,[{key:"replace",value:function(t,e){this._replacedElements.push({element:t,newElement:e}),t.style.display="none",e&&t.parentNode.insertBefore(e,t.nextSibling)}},{key:"restore",value:function(){this._replacedElements.forEach((function(t){var e=t.element,n=t.newElement;e.style.display="",n&&n.remove()})),this._replacedElements=[]}}]),t}(),Cu=function(t){v(n,t);var e=g(n);function n(t,r){var i,o;return h(this,n),(i=e.call(this,t)).view=r,i._toolbarConfig=(o=t.config.get("toolbar"),Array.isArray(o)?{items:o}:o?Object.assign({items:[]},o):{items:[]}),i._elementReplacer=new Su,i}return m(n,[{key:"init",value:function(t){var e=this.editor,n=this.view,r=e.editing.view,i=n.editable,o=r.document.getRoot();i.name=o.rootName,n.render();var a=i.element;this.setEditableElement(i.name,a),this.focusTracker.add(a),n.editable.bind("isFocused").to(this.focusTracker),r.attachDomRoot(a),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}},{key:"destroy",value:function(){var t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy(),s(x(n.prototype),"destroy",this).call(this)}},{key:"_initToolbar",value:function(){var t=this.editor,e=this.view,n=t.editing.view;e.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),e.stickyPanel.limiterElement=e.element,this._toolbarConfig.viewportTopOffset&&(e.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),e.toolbar.fillFromConfig(this._toolbarConfig.items,this.componentFactory),function(t){var e=t.origin,n=t.originKeystrokeHandler,r=t.originFocusTracker,i=t.toolbar,o=t.beforeFocus,a=t.afterBlur;r.add(i.element),n.set("Alt+F10",(function(t,e){r.isFocused&&!i.focusTracker.isFocused&&(o&&o(),i.focus(),e())})),i.keystrokes.set("Esc",(function(t,n){i.focusTracker.isFocused&&(e.focus(),a&&a(),n())}))}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:t.keystrokes,toolbar:e.toolbar})}},{key:"_initPlaceholder",value:function(){var t=this.editor,e=t.editing.view,n=e.document.getRoot(),r=t.sourceElement,i=t.config.get("placeholder")||r&&"textarea"===r.tagName.toLowerCase()&&r.getAttribute("placeholder");i&&ku({view:e,element:n,text:i,isDirectHost:!1})}},{key:"element",get:function(){return this.view.element}}]),n}(wu),Au=function(t){v(n,t);var e=g(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return h(this,n),(t=e.call(this,r,{idProperty:"viewUid"})).on("add",(function(e,n,r){t._renderViewIntoCollectionParent(n,r)})),t.on("remove",(function(e,n){n.element&&t._parentElement&&n.element.remove()})),t._parentElement=null,t}return m(n,[{key:"destroy",value:function(){this.map((function(t){return t.destroy()}))}},{key:"setParent",value:function(t){this._parentElement=t;var e,n=c(this);try{for(n.s();!(e=n.n()).done;){var r=e.value;this._renderViewIntoCollectionParent(r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"delegate",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if(!n.length||!n.every((function(t){return"string"==typeof t})))throw new Ye.b("ui-viewcollection-delegate-wrong-events: All event names must be strings.",this);return{to:function(e){var r,i=c(t);try{for(i.s();!(r=i.n()).done;){var o,a=r.value,s=c(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;a.delegate(u).to(e)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){i.e(t)}finally{i.f()}t.on("add",(function(t,r){var i,o=c(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;r.delegate(a).to(e)}}catch(t){o.e(t)}finally{o.f()}})),t.on("remove",(function(t,r){var i,o=c(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;r.stopDelegating(a,e)}}catch(t){o.e(t)}finally{o.f()}}))}}}},{key:"_renderViewIntoCollectionParent",value:function(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}}]),n}(sn),Tu=function(){function t(e){h(this,t),Object.assign(this,Bu(Lu(e))),this._isRendered=!1,this._revertData=null}return m(t,[{key:"render",value:function(){var t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}},{key:"apply",value:function(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,isApplying:!0,revertData:this._revertData}),t}},{key:"revert",value:function(t){if(!this._revertData)throw new Ye.b("ui-template-revert-not-applied: Attempting to revert a template which has not been applied yet.",[this,t]);this._revertTemplateFromNode(t,this._revertData)}},{key:"getViews",value:o.a.mark((function t(){return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(o.a.mark((function t(e){var n,r,i;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!e.children){o.next=24;break}n=c(e.children),o.prev=2,n.s();case 4:if((r=n.n()).done){o.next=16;break}if(!$u(i=r.value)){o.next=11;break}return o.next=9,i;case 9:o.next=14;break;case 11:if(o.t0=Hu(i),!o.t0){o.next=14;break}return o.delegateYield(t(i),"t1",14);case 14:o.next=4;break;case 16:o.next=21;break;case 18:o.prev=18,o.t2=o.catch(2),n.e(o.t2);case 21:return o.prev=21,n.f(),o.finish(21);case 24:case"end":return o.stop()}}),t,null,[[2,18,21,24]])}))(this),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"_renderNode",value:function(t){if(t.node?this.tag&&this.text:this.tag?this.text:!this.text)throw new Ye.b('ui-template-wrong-syntax: Node definition must have either "tag" or "text" when rendering a new Node.',this);return this.text?this._renderText(t):this._renderElement(t)}},{key:"_renderElement",value:function(t){var e=t.node;return e||(e=t.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e}},{key:"_renderText",value:function(t){var e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),Iu(this.text)?this._bindToObservable({schema:this.text,updater:ju(e),data:t}):e.textContent=this.text.join(""),e}},{key:"_renderAttributes",value:function(t){var e,n,r,i;if(this.attributes){var o=t.node,a=t.revertData;for(e in this.attributes)if(r=o.getAttribute(e),n=this.attributes[e],a&&(a.attributes[e]=r),i=U(n[0])&&n[0].ns?n[0].ns:null,Iu(n)){var s=i?n[0].value:n;a&&Wu(e)&&s.unshift(r),this._bindToObservable({schema:s,updater:Du(o,e,i),data:t})}else"style"==e&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],t):(a&&r&&Wu(e)&&n.unshift(r),Vu(n=n.map((function(t){return t&&t.value||t})).reduce((function(t,e){return t.concat(e)}),[]).reduce(Fu,""))||o.setAttributeNS(i,e,n))}}},{key:"_renderStyleAttribute",value:function(t,e){var n=e.node;for(var r in t){var i=t[r];Iu(i)?this._bindToObservable({schema:[i],updater:Nu(n,r),data:e}):n.style[r]=i}}},{key:"_renderElementChildren",value:function(t){var e,n=t.node,r=t.intoFragment?document.createDocumentFragment():n,i=t.isApplying,o=0,a=c(this.children);try{for(a.s();!(e=a.n()).done;){var s=e.value;if(Uu(s)){if(!i){s.setParent(n);var u,l=c(s);try{for(l.s();!(u=l.n()).done;){var f=u.value;r.appendChild(f.element)}}catch(t){l.e(t)}finally{l.f()}}}else if($u(s))i||(s.isRendered||s.render(),r.appendChild(s.element));else if(Ai(s))r.appendChild(s);else if(i){var d={children:[],bindings:[],attributes:{}};t.revertData.children.push(d),s._renderNode({node:r.childNodes[o++],isApplying:!0,revertData:d})}else r.appendChild(s.render())}}catch(t){a.e(t)}finally{a.f()}t.intoFragment&&n.appendChild(r)}},{key:"_setUpListeners",value:function(t){var e=this;if(this.eventListeners){var n=function(n){var r=e.eventListeners[n].map((function(e){var r=l(n.split("@"),2),i=r[0],o=r[1];return e.activateDomEventListener(i,o,t)}));t.revertData&&t.revertData.bindings.push(r)};for(var r in this.eventListeners)n(r)}}},{key:"_bindToObservable",value:function(t){var e=t.schema,n=t.updater,r=t.data,i=r.revertData;Ru(e,n,r);var o=e.filter((function(t){return!Vu(t)})).filter((function(t){return t.observable})).map((function(t){return t.activateAttributeListener(e,n,r)}));i&&i.bindings.push(o)}},{key:"_revertTemplateFromNode",value:function(t,e){var n,r=c(e.bindings);try{for(r.s();!(n=r.n()).done;){var i,o=c(n.value);try{for(o.s();!(i=o.n()).done;){(0,i.value)()}}catch(t){o.e(t)}finally{o.f()}}}catch(t){r.e(t)}finally{r.f()}if(e.text)t.textContent=e.text;else{for(var a in e.attributes){var s=e.attributes[a];null===s?t.removeAttribute(a):t.setAttribute(a,s)}for(var u=0;u<e.children.length;++u)this._revertTemplateFromNode(t.childNodes[u],e.children[u])}}}],[{key:"bind",value:function(t,e){return{to:function(n,r){return new Ou({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:r})},if:function(n,r,i){return new Pu({observable:t,emitter:e,attribute:n,valueIfTrue:r,callback:i})}}}},{key:"extend",value:function(t,e){if(t._isRendered)throw new Ye.b("template-extend-render: Attempting to extend a template which has already been rendered.",[this,t]);!function t(e,n){var r;if(n.attributes&&(e.attributes||(e.attributes={}),qu(e.attributes,n.attributes)),n.eventListeners&&(e.eventListeners||(e.eventListeners={}),qu(e.eventListeners,n.eventListeners)),n.text&&(r=e.text).push.apply(r,u(n.text)),n.children&&n.children.length){if(e.children.length!=n.children.length)throw new Ye.b("ui-template-extend-children-mismatch: The number of children in extended definition does not match.",e);var i,o=0,a=c(n.children);try{for(a.s();!(i=a.n()).done;){var s=i.value;t(e.children[o++],s)}}catch(t){a.e(t)}finally{a.f()}}}(t,Bu(Lu(e)))}}]),t}();an(Tu,Je);var Eu=function(){function t(e){h(this,t),Object.assign(this,e)}return m(t,[{key:"getValue",value:function(t){var e=this.observable[this.attribute];return this.callback?this.callback(e,t):e}},{key:"activateAttributeListener",value:function(t,e,n){var r=this,i=function(){return Ru(t,e,n)};return this.emitter.listenTo(this.observable,"change:"+this.attribute,i),function(){r.emitter.stopListening(r.observable,"change:"+r.attribute,i)}}}]),t}(),Ou=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"activateDomEventListener",value:function(t,e,n){var r=this,i=function(t,n){e&&!n.target.matches(e)||("function"==typeof r.eventNameOrFunction?r.eventNameOrFunction(n):r.observable.fire(r.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,t,i),function(){r.emitter.stopListening(n.node,t,i)}}}]),n}(Eu),Pu=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"getValue",value:function(t){return!Vu(s(x(n.prototype),"getValue",this).call(this,t))&&(this.valueIfTrue||!0)}}]),n}(Eu);function Iu(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some(Iu):t instanceof Eu)}function Ru(t,e,n){var r=function(t,e){return t.map((function(t){return t instanceof Eu?t.getValue(e):t}))}(t,n.node);Vu(r=1==t.length&&t[0]instanceof Pu?r[0]:r.reduce(Fu,""))?e.remove():e.set(r)}function ju(t){return{set:function(e){t.textContent=e},remove:function(){t.textContent=""}}}function Du(t,e,n){return{set:function(r){t.setAttributeNS(n,e,r)},remove:function(){t.removeAttributeNS(n,e)}}}function Nu(t,e){return{set:function(n){t.style[e]=n},remove:function(){t.style[e]=null}}}function Lu(t){return ze(t,(function(t){if(t&&(t instanceof Eu||Hu(t)||$u(t)||Uu(t)))return t}))}function Bu(t){if("string"==typeof t?t=function(t){return{text:[t]}}(t):t.text&&function(t){Array.isArray(t.text)||(t.text=[t.text])}(t),t.on&&(t.eventListeners=function(t){for(var e in t)zu(t,e);return t}(t.on),delete t.on),!t.text){t.attributes&&function(t){for(var e in t)t[e].value&&(t[e].value=[].concat(t[e].value)),zu(t,e)}(t.attributes);var e=[];if(t.children)if(Uu(t.children))e.push(t.children);else{var n,r=c(t.children);try{for(r.s();!(n=r.n()).done;){var i=n.value;Hu(i)||$u(i)||Ai(i)?e.push(i):e.push(new Tu(i))}}catch(t){r.e(t)}finally{r.f()}}t.children=e}return t}function zu(t,e){Array.isArray(t[e])||(t[e]=[t[e]])}function Fu(t,e){return Vu(e)?t:Vu(t)?e:"".concat(t," ").concat(e)}function qu(t,e){for(var n in e){var r;t[n]?(r=t[n]).push.apply(r,u(e[n])):t[n]=e[n]}}function Vu(t){return!t&&0!==t}function $u(t){return t instanceof Ku}function Hu(t){return t instanceof Tu}function Uu(t){return t instanceof Au}function Wu(t){return"class"==t||"style"==t}n(15);var Ku=function(){function t(e){h(this,t),this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new sn,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(function(t,n){n.locale=e})),this.decorate("render")}return m(t,[{key:"createCollection",value:function(t){var e=new Au(t);return this._viewCollections.add(e),e}},{key:"registerChild",value:function(t){on(t)||(t=[t]);var e,n=c(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this._unboundChildren.add(r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"deregisterChild",value:function(t){on(t)||(t=[t]);var e,n=c(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;this._unboundChildren.remove(r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"setTemplate",value:function(t){this.template=new Tu(t)}},{key:"extendTemplate",value:function(t){Tu.extend(this.template,t)}},{key:"render",value:function(){if(this.isRendered)throw new Ye.b("ui-view-render-already-rendered: This View has already been rendered.",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}},{key:"destroy",value:function(){this.stopListening(),this._viewCollections.map((function(t){return t.destroy()})),this.template&&this.template._revertData&&this.template.revert(this.element)}},{key:"bindTemplate",get:function(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Tu.bind(this,this)}}]),t}();an(Ku,qi),an(Ku,pr);var Yu=function(t){return"string"==typeof t||!Ct(t)&&I(t)&&"[object String]"==E(t)},Gu=function(t){v(n,t);var e=g(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return h(this,n),(r=e.call(this,i)).locale=t,r}return m(n,[{key:"attachToDom",value:function(){this._bodyCollectionContainer=new Tu({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();var t=document.querySelector(".ck-body-wrapper");t||(t=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=n&&n.xmlns,o=i?t.createElementNS(i,e):t.createElement(e);for(var a in n)o.setAttribute(a,n[a]);!Yu(r)&&on(r)||(r=[r]);var s,u=c(r);try{for(u.s();!(s=u.n()).done;){var l=s.value;Yu(l)&&(l=t.createTextNode(l)),o.appendChild(l)}}catch(t){u.e(t)}finally{u.f()}return o}(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(t)),t.appendChild(this._bodyCollectionContainer)}},{key:"detachFromDom",value:function(){s(x(n.prototype),"destroy",this).call(this),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();var t=document.querySelector(".ck-body-wrapper");t&&0==t.childElementCount&&t.remove()}}]),n}(Au);n(17);var Zu=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).body=new Gu(t),r}return m(n,[{key:"render",value:function(){s(x(n.prototype),"render",this).call(this),this.body.attachToDom()}},{key:"destroy",value:function(){return this.body.detachFromDom(),s(x(n.prototype),"destroy",this).call(this)}}]),n}(Ku);n(19);var Ju=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n),(r=e.call(this,t)).set("text"),r.set("for"),r.id="ck-editor__label_"+We();var i=r.bindTemplate;return r.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:r.id,for:i.to("for")},children:[{text:i.to("text")}]}),r}return n}(Ku),Xu=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).top=r.createCollection(),r.main=r.createCollection(),r._voiceLabelView=r._createVoiceLabel(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:t.uiLanguageDirection,lang:t.uiLanguage,"aria-labelledby":r._voiceLabelView.id},children:[r._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:r.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:r.main}]}),r}return m(n,[{key:"_createVoiceLabel",value:function(){var t=this.t,e=new Ju;return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e}}]),n}(Zu),Qu=function(t){v(n,t);var e=g(n);function n(t,r,i){var o;return h(this,n),(o=e.call(this,t,r,i)).extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),o}return m(n,[{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this);var e=this._editingView,r=this.t;e.change((function(n){var i=e.document.getRoot(t.name);n.setAttribute("aria-label",r("Rich Text Editor, %0",[t.name]),i)}))}}]),n}(function(t){v(n,t);var e=g(n);function n(t,r,i){var o;return h(this,n),(o=e.call(this,t)).setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),o.name=null,o.set("isFocused",!1),o._editableElement=i,o._hasExternalElement=!!o._editableElement,o._editingView=r,o}return m(n,[{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(function(){return t._updateIsFocusedClasses()})),this._updateIsFocusedClasses()}},{key:"destroy",value:function(){this._hasExternalElement&&this.template.revert(this._editableElement),s(x(n.prototype),"destroy",this).call(this)}},{key:"_updateIsFocusedClasses",value:function(){var t=this._editingView;function e(e){t.change((function(n){var r=t.document.getRoot(e.name);n.addClass(e.isFocused?"ck-focused":"ck-blurred",r),n.removeClass(e.isFocused?"ck-blurred":"ck-focused",r)}))}t.isRenderingInProgress?function n(r){t.once("change:isRenderingInProgress",(function(t,i,o){o?n(r):e(r)}))}(this):e(this)}}]),n}(Ku));function tl(t){return function(e){return e+t}}n(21);var el=tl("px"),nl=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n);var i=(r=e.call(this,t)).bindTemplate;return r.set("isActive",!1),r.set("isSticky",!1),r.set("limiterElement",null),r.set("limiterBottomOffset",50),r.set("viewportTopOffset",0),r.set("_marginLeft",null),r.set("_isStickyToTheLimiter",!1),r.set("_hasViewportTopOffset",!1),r.content=r.createCollection(),r._contentPanelPlaceholder=new Tu({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:i.to("isSticky",(function(t){return t?"block":"none"})),height:i.to("isSticky",(function(t){return t?el(r._panelRect.height):null}))}}}).render(),r._contentPanel=new Tu({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",i.if("isSticky","ck-sticky-panel__content_sticky"),i.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:i.to("isSticky",(function(t){return t?el(r._contentPanelPlaceholder.getBoundingClientRect().width):null})),top:i.to("_hasViewportTopOffset",(function(t){return t?el(r.viewportTopOffset):null})),bottom:i.to("_isStickyToTheLimiter",(function(t){return t?el(r.limiterBottomOffset):null})),marginLeft:i.to("_marginLeft")}},children:r.content}).render(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[r._contentPanelPlaceholder,r._contentPanel]}),r}return m(n,[{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this),this._checkIfShouldBeSticky(),this.listenTo(Ii.window,"scroll",(function(){t._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(function(){t._checkIfShouldBeSticky()}))}},{key:"_checkIfShouldBeSticky",value:function(){var t,e=this._panelRect=this._contentPanel.getBoundingClientRect();this.limiterElement?(t=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&t.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<t.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=t.bottom<e.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:el(-Ii.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}]),n}(Ku),rl=function(){function t(e){var n=this;if(h(this,t),Object.assign(this,e),e.actions&&e.keystrokeHandler){var r=function(t){var r=e.actions[t];"string"==typeof r&&(r=[r]);var i,o=c(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;e.keystrokeHandler.set(a,(function(e,r){n[t](),r()}))}}catch(t){o.e(t)}finally{o.f()}};for(var i in e.actions)r(i)}}return m(t,[{key:"focusFirst",value:function(){this._focus(this.first)}},{key:"focusLast",value:function(){this._focus(this.last)}},{key:"focusNext",value:function(){this._focus(this.next)}},{key:"focusPrevious",value:function(){this._focus(this.previous)}},{key:"_focus",value:function(t){t&&t.focus()}},{key:"_getFocusableItem",value:function(t){var e=this.current,n=this.focusables.length;if(!n)return null;if(null===e)return this[1===t?"first":"last"];var r=(e+n+t)%n;do{var i=this.focusables.get(r);if(il(i))return i;r=(r+n+t)%n}while(r!==e);return null}},{key:"first",get:function(){return this.focusables.find(il)||null}},{key:"last",get:function(){return this.focusables.filter(il).slice(-1)[0]||null}},{key:"next",get:function(){return this._getFocusableItem(1)}},{key:"previous",get:function(){return this._getFocusableItem(-1)}},{key:"current",get:function(){var t=this,e=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((function(n,r){var i=n.element===t.focusTracker.focusedElement;return i&&(e=r),i})),e)}}]),t}();function il(t){return!(!t.focus||"none"==Ii.window.getComputedStyle(t.element).display)}var ol=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}}),r}return n}(Ku),al=function(){function t(e,n){h(this,t),t._observerInstance||t._createObserver(),this._element=e,this._callback=n,t._addElementCallback(e,n),t._observerInstance.observe(e)}return m(t,[{key:"destroy",value:function(){t._deleteElementCallback(this._element,this._callback)}}],[{key:"_addElementCallback",value:function(e,n){t._elementCallbacks||(t._elementCallbacks=new Map);var r=t._elementCallbacks.get(e);r||(r=new Set,t._elementCallbacks.set(e,r)),r.add(n)}},{key:"_deleteElementCallback",value:function(e,n){var r=t._getElementCallbacks(e);r&&(r.delete(n),r.size||(t._elementCallbacks.delete(e),t._observerInstance.unobserve(e))),t._elementCallbacks&&!t._elementCallbacks.size&&(t._observerInstance=null,t._elementCallbacks=null)}},{key:"_getElementCallbacks",value:function(e){return t._elementCallbacks?t._elementCallbacks.get(e):null}},{key:"_createObserver",value:function(){var e;e="function"==typeof Ii.window.ResizeObserver?Ii.window.ResizeObserver:sl,t._observerInstance=new e((function(e){var n,r=c(e);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=t._getElementCallbacks(i.target);if(o){var a,s=c(o);try{for(s.s();!(a=s.n()).done;){(0,a.value)(i)}}catch(t){s.e(t)}finally{s.f()}}}}catch(t){r.e(t)}finally{r.f()}}))}}]),t}();al._observerInstance=null,al._elementCallbacks=null;var sl=function(){function t(e){h(this,t),this._callback=e,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}return m(t,[{key:"observe",value:function(t){this._elements.add(t),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}},{key:"unobserve",value:function(t){this._elements.delete(t),this._previousRects.delete(t),this._elements.size||this._stopPeriodicCheck()}},{key:"_startPeriodicCheck",value:function(){var t=this;this.listenTo(Ii.window,"resize",(function(){t._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout((function e(){t._checkElementRectsAndExecuteCallback(),t._periodicCheckTimeout=setTimeout(e,100)}),100)}},{key:"_stopPeriodicCheck",value:function(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}},{key:"_checkElementRectsAndExecuteCallback",value:function(){var t,e=[],n=c(this._elements);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._hasRectChanged(r)&&e.push({target:r,contentRect:this._previousRects.get(r)})}}catch(t){n.e(t)}finally{n.f()}e.length&&this._callback(e)}},{key:"_hasRectChanged",value:function(t){if(!t.ownerDocument.body.contains(t))return!1;var e=new Po(t),n=this._previousRects.get(t),r=!n||!n.isEqual(e);return this._previousRects.set(t,e),r}}]),t}();an(sl,qi);var ul=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n);var i=(r=e.call(this,t)).bindTemplate;return r.set("isVisible",!1),r.set("position","se"),r.children=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",i.to("position",(function(t){return"ck-dropdown__panel_"+t})),i.if("isVisible","ck-dropdown__panel-visible")]},children:r.children,on:{selectstart:i.to((function(t){return t.preventDefault()}))}}),r}return m(n,[{key:"focus",value:function(){this.children.length&&this.children.first.focus()}},{key:"focusLast",value:function(){if(this.children.length){var t=this.children.last;"function"==typeof t.focusLast?t.focusLast():t.focus()}}}]),n}(Ku);function ll(t){var e=t.element,n=t.target,r=t.positions,i=t.limiter,o=t.fitInViewport;W(n)&&(n=n()),W(i)&&(i=i());var a,s,u=function(t){return t&&t.parentNode?t.offsetParent===Ii.document.body?null:t.offsetParent:null}(e),f=new Po(e),d=new Po(n);if(i||o){var h=function(t,e){var n=e.viewportRect,r=e.elementRect.getArea(),i=function(t,e){var n,r=e.targetRect,i=e.elementRect,o=e.limiterRect,a=e.viewportRect,s=[],u=i.getArea(),f=c(t);try{for(f.s();!(n=f.n()).done;){var d=cl(n.value,r,i);if(d){var h=l(d,2),p=h[0],m=h[1],v=0,g=0;if(o)if(a){var b=o.getIntersection(a);b&&(v=b.getIntersectionArea(m))}else v=o.getIntersectionArea(m);a&&(g=a.getIntersectionArea(m));var y={positionName:p,positionRect:m,limiterIntersectArea:v,viewportIntersectArea:g};if(v===u)return[y];s.push(y)}}}catch(t){f.e(t)}finally{f.f()}return s}(t,e);if(n){var o=fl(i.filter((function(t){return t.viewportIntersectArea===r})),r);if(o)return o}return fl(i,r)}(r,{targetRect:d,elementRect:f,limiterRect:i&&new Po(i).getVisible(),viewportRect:o&&new Po(Ii.window)}),p=l(h||cl(r[0],d,f),2);s=p[0],a=p[1]}else{var m=l(cl(r[0],d,f),2);s=m[0],a=m[1]}var v=dl(a);return u&&(v=function(t,e){var n=t.left,r=t.top,i=dl(new Po(e)),o=Eo(e);return n-=i.left,r-=i.top,n+=e.scrollLeft,r+=e.scrollTop,{left:n-=o.left,top:r-=o.top}}(v,u)),{left:v.left,top:v.top,name:s}}function cl(t,e,n){var r=t(e,n);if(!r)return null;var i=r.left,o=r.top;return[r.name,n.clone().moveTo(i,o)]}function fl(t,e){var n,r,i,o=0,a=c(t);try{for(a.s();!(i=a.n()).done;){var s=i.value,u=s.positionName,l=s.positionRect,f=s.limiterIntersectArea,d=s.viewportIntersectArea;if(f===e)return[u,l];var h=Math.pow(d,2)+Math.pow(f,2);h>o&&(o=h,n=l,r=u)}}catch(t){a.e(t)}finally{a.f()}return n?[r,n]:null}function dl(t){var e=t.left,n=t.top,r=Ii.window;return{left:e+r.scrollX,top:n+r.scrollY}}n(23);var hl=function(t){v(n,t);var e=g(n);function n(t,r,i){var o;h(this,n);var a=(o=e.call(this,t)).bindTemplate;return o.buttonView=r,o.panelView=i,o.set("isOpen",!1),o.set("isEnabled",!0),o.set("class"),o.set("id"),o.set("panelPosition","auto"),o.keystrokes=new fu,o.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",a.to("class"),a.if("isEnabled","ck-disabled",(function(t){return!t}))],id:a.to("id"),"aria-describedby":a.to("ariaDescribedById")},children:[r,i]}),r.extendTemplate({attributes:{class:["ck-dropdown__button"]}}),o}return m(n,[{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this),this.listenTo(this.buttonView,"open",(function(){t.isOpen=!t.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(function(){t.isOpen&&("auto"===t.panelPosition?t.panelView.position=n._getOptimalPosition({element:t.panelView.element,target:t.buttonView.element,fitInViewport:!0,positions:t._panelPositions}).name:t.panelView.position=t.panelPosition)})),this.keystrokes.listenTo(this.element);var e=function(e,n){t.isOpen&&(t.buttonView.focus(),t.isOpen=!1,n())};this.keystrokes.set("arrowdown",(function(e,n){t.buttonView.isEnabled&&!t.isOpen&&(t.isOpen=!0,n())})),this.keystrokes.set("arrowright",(function(e,n){t.isOpen&&n()})),this.keystrokes.set("arrowleft",e),this.keystrokes.set("esc",e)}},{key:"focus",value:function(){this.buttonView.focus()}},{key:"_panelPositions",get:function(){var t=n.defaultPanelPositions,e=t.southEast,r=t.southWest,i=t.northEast,o=t.northWest;return"ltr"===this.locale.uiLanguageDirection?[e,r,i,o]:[r,e,o,i]}}]),n}(Ku);hl.defaultPanelPositions={southEast:function(t){return{top:t.bottom,left:t.left,name:"se"}},southWest:function(t,e){return{top:t.bottom,left:t.left-e.width+t.width,name:"sw"}},northEast:function(t,e){return{top:t.top-e.height,left:t.left,name:"ne"}},northWest:function(t,e){return{top:t.bottom-e.height,left:t.left-e.width+t.width,name:"nw"}}},hl._getOptimalPosition=ll,n(25);var pl=function(t){v(n,t);var e=g(n);function n(){var t;h(this,n);var r=(t=e.call(this)).bindTemplate;return t.set("content",""),t.set("viewBox","0 0 20 20"),t.set("fillColor",""),t.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:r.to("viewBox")}}),t}return m(n,[{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(function(){t._updateXMLContent(),t._colorFillPaths()})),this.on("change:fillColor",(function(){t._colorFillPaths()}))}},{key:"_updateXMLContent",value:function(){if(this.content){var t=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),e=t.getAttribute("viewBox");for(e&&(this.viewBox=e),this.element.innerHTML="";t.childNodes.length>0;)this.element.appendChild(t.childNodes[0])}}},{key:"_colorFillPaths",value:function(){var t=this;this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((function(e){e.style.fill=t.fillColor}))}}]),n}(Ku);n(27);var ml=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n),(r=e.call(this,t)).set("text",""),r.set("position","s");var i=r.bindTemplate;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",i.to("position",(function(t){return"ck-tooltip_"+t})),i.if("text","ck-hidden",(function(t){return!t.trim()}))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:i.to("text")}]}]}),r}return n}(Ku);n(29);var vl=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n);var i=(r=e.call(this,t)).bindTemplate,o=We();return r.set("class"),r.set("labelStyle"),r.set("icon"),r.set("isEnabled",!0),r.set("isOn",!1),r.set("isVisible",!0),r.set("isToggleable",!1),r.set("keystroke"),r.set("label"),r.set("tabindex",-1),r.set("tooltip"),r.set("tooltipPosition","s"),r.set("type","button"),r.set("withText",!1),r.set("withKeystroke",!1),r.children=r.createCollection(),r.tooltipView=r._createTooltipView(),r.labelView=r._createLabelView(o),r.iconView=new pl,r.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),r.keystrokeView=r._createKeystrokeView(),r.bind("_tooltipString").to(y(r),"tooltip",y(r),"label",y(r),"keystroke",r._getTooltipString.bind(y(r))),r.setTemplate({tag:"button",attributes:{class:["ck","ck-button",i.to("class"),i.if("isEnabled","ck-disabled",(function(t){return!t})),i.if("isVisible","ck-hidden",(function(t){return!t})),i.to("isOn",(function(t){return t?"ck-on":"ck-off"})),i.if("withText","ck-button_with-text"),i.if("withKeystroke","ck-button_with-keystroke")],type:i.to("type",(function(t){return t||"button"})),tabindex:i.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+o,"aria-disabled":i.if("isEnabled",!0,(function(t){return!t})),"aria-pressed":i.to("isOn",(function(t){return!!r.isToggleable&&String(t)}))},children:r.children,on:{mousedown:i.to((function(t){t.preventDefault()})),click:i.to((function(t){r.isEnabled?r.fire("execute"):t.preventDefault()}))}}),r}return m(n,[{key:"render",value:function(){s(x(n.prototype),"render",this).call(this),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.children.add(this.keystrokeView)}},{key:"focus",value:function(){this.element.focus()}},{key:"_createTooltipView",value:function(){var t=new ml;return t.bind("text").to(this,"_tooltipString"),t.bind("position").to(this,"tooltipPosition"),t}},{key:"_createLabelView",value:function(t){var e=new Ku,n=this.bindTemplate;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:"ck-editor__aria-label_"+t},children:[{text:this.bindTemplate.to("label")}]}),e}},{key:"_createKeystrokeView",value:function(){var t=new Ku;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(function(t){return Kr(t)}))}]}),t}},{key:"_getTooltipString",value:function(t,e,n){return t?"string"==typeof t?t:(n&&(n=Kr(n)),t instanceof Function?t(e,n):"".concat(e).concat(n?" (".concat(n,")"):"")):""}}]),n}(Ku),gl='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>',bl=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).arrowView=r._createArrowView(),r.extendTemplate({attributes:{"aria-haspopup":!0}}),r.delegate("execute").to(y(r),"open"),r}return m(n,[{key:"render",value:function(){s(x(n.prototype),"render",this).call(this),this.children.add(this.arrowView)}},{key:"_createArrowView",value:function(){var t=new pl;return t.content=gl,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}]),n}(vl);n(31);var yl=function(t){v(n,t);var e=g(n);function n(){var t;return h(this,n),(t=e.call(this)).items=t.createCollection(),t.focusTracker=new yu,t.keystrokes=new fu,t._focusCycler=new rl({focusables:t.items,focusTracker:t.focusTracker,keystrokeHandler:t.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),t.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:t.items}),t}return m(n,[{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this);var e,r=c(this.items);try{for(r.s();!(e=r.n()).done;){var i=e.value;this.focusTracker.add(i.element)}}catch(t){r.e(t)}finally{r.f()}this.items.on("add",(function(e,n){t.focusTracker.add(n.element)})),this.items.on("remove",(function(e,n){t.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}}]),n}(Ku),wl=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).children=r.createCollection(),r.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:r.children}),r}return m(n,[{key:"focus",value:function(){this.children.first.focus()}}]),n}(Ku),_l=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}}),r}return n}(Ku);n(33);var kl=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).isToggleable=!0,r.toggleSwitchView=r._createToggleView(),r.extendTemplate({attributes:{class:"ck-switchbutton"}}),r}return m(n,[{key:"render",value:function(){s(x(n.prototype),"render",this).call(this),this.children.add(this.toggleSwitchView)}},{key:"_createToggleView",value:function(){var t=new Ku;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}]),n}(vl);function Ml(t){var e=t.emitter,n=t.activator,r=t.callback,i=t.contextElements;e.listenTo(document,"mousedown",(function(t,e){if(n()){var o,a="function"==typeof e.composedPath?e.composedPath():[],s=c(i);try{for(s.s();!(o=s.n()).done;){var u=o.value;if(u.contains(e.target)||a.includes(u))return}}catch(t){s.e(t)}finally{s.f()}r()}}))}function xl(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bl,n=new e(t),r=new ul(t),i=new hl(t,n,r);return n.bind("isEnabled").to(i),n instanceof bl?n.bind("isOn").to(i,"isOpen"):n.arrowView.bind("isOn").to(i,"isOpen"),function(t){(function(t){t.on("render",(function(){Ml({emitter:t,activator:function(){return t.isOpen},callback:function(){t.isOpen=!1},contextElements:[t.element]})}))})(t),function(t){t.on("execute",(function(e){e.source instanceof kl||(t.isOpen=!1)}))}(t),function(t){t.keystrokes.set("arrowdown",(function(e,n){t.isOpen&&(t.panelView.focus(),n())})),t.keystrokes.set("arrowup",(function(e,n){t.isOpen&&(t.panelView.focusLast(),n())}))}(t)}(i),i}function Sl(t,e){var n=t.locale,r=n.t,i=t.toolbarView=new Al(n);i.set("ariaLabel",r("Dropdown toolbar")),t.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),e.map((function(t){return i.items.add(t)})),t.panelView.children.add(i),i.items.delegate("execute").to(t)}function Cl(t,e){var n=t.locale,r=t.listView=new yl(n);r.items.bindTo(e).using((function(t){var e=t.type,r=t.model;if("separator"===e)return new _l(n);if("button"===e||"switchbutton"===e){var i,o,a=new wl(n);return(i=o="button"===e?new vl(n):new kl(n)).bind.apply(i,u(Object.keys(r))).to(r),o.delegate("execute").to(a),a.children.add(o),a}})),t.panelView.children.add(r),r.items.delegate("execute").to(t)}n(35),n(37),n(39);var Al=function(t){v(n,t);var e=g(n);function n(t,r){var i;h(this,n);var o,a=(i=e.call(this,t)).bindTemplate,s=i.t;return i.options=r||{},i.set("ariaLabel",s("Editor toolbar")),i.set("maxWidth","auto"),i.items=i.createCollection(),i.focusTracker=new yu,i.keystrokes=new fu,i.set("class"),i.set("isCompact",!1),i.itemsView=new Tl(t),i.children=i.createCollection(),i.children.add(i.itemsView),i.focusables=i.createCollection(),i._focusCycler=new rl({focusables:i.focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:["arrowleft","arrowup"],focusNext:["arrowright","arrowdown"]}}),i.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar",a.to("class"),a.if("isCompact","ck-toolbar_compact")],role:"toolbar","aria-label":a.to("ariaLabel"),style:{maxWidth:a.to("maxWidth")}},children:i.children,on:{mousedown:(o=y(i),o.bindTemplate.to((function(t){t.target===o.element&&t.preventDefault()})))}}),i._behavior=i.options.shouldGroupWhenFull?new Ol(y(i)):new El(y(i)),i}return m(n,[{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this);var e,r=c(this.items);try{for(r.s();!(e=r.n()).done;){var i=e.value;this.focusTracker.add(i.element)}}catch(t){r.e(t)}finally{r.f()}this.items.on("add",(function(e,n){t.focusTracker.add(n.element)})),this.items.on("remove",(function(e,n){t.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}},{key:"destroy",value:function(){return this._behavior.destroy(),s(x(n.prototype),"destroy",this).call(this)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"fillFromConfig",value:function(t,e){this.items.addMany(t.map((function(t){return"|"==t?new ol:e.has(t)?e.create(t):void console.warn(Object(Ye.a)("toolbarview-item-unavailable: The requested toolbar item is unavailable."),{name:t})})).filter((function(t){return void 0!==t})))}}]),n}(Ku),Tl=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).children=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:r.children}),r}return n}(Ku),El=function(){function t(e){h(this,t);var n=e.bindTemplate;e.set("isVertical",!1),e.itemsView.children.bindTo(e.items).using((function(t){return t})),e.focusables.bindTo(e.items).using((function(t){return t})),e.extendTemplate({attributes:{class:[n.if("isVertical","ck-toolbar_vertical")]}})}return m(t,[{key:"render",value:function(){}},{key:"destroy",value:function(){}}]),t}(),Ol=function(){function t(e){var n=this;h(this,t),this.view=e,this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,e.itemsView.children.bindTo(this.ungroupedItems).using((function(t){return t})),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),e.children.on("add",this._updateFocusCycleableItems.bind(this)),e.children.on("remove",this._updateFocusCycleableItems.bind(this)),e.items.on("change",(function(t,e){var r,i=e.index,o=c(e.removed);try{for(o.s();!(r=o.n()).done;){var a=r.value;i>=n.ungroupedItems.length?n.groupedItems.remove(a):n.ungroupedItems.remove(a)}}catch(t){o.e(t)}finally{o.f()}for(var s=i;s<i+e.added.length;s++){var u=e.added[s-i];s>n.ungroupedItems.length?n.groupedItems.add(u,s-n.ungroupedItems.length):n.ungroupedItems.add(u,s)}n._updateGrouping()})),e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}return m(t,[{key:"render",value:function(t){this.viewElement=t.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(t)}},{key:"destroy",value:function(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}},{key:"_updateGrouping",value:function(){if(this.viewElement.ownerDocument.body.contains(this.viewElement))if(this.viewElement.offsetParent){for(var t,e=this.groupedItems.length;this._areItemsOverflowing;)this._groupLastItem(),t=!0;if(!t&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==e&&this.view.fire("groupedItemsUpdate")}else this.shouldUpdateGroupingOnNextResize=!0}},{key:"_enableGroupingOnResize",value:function(){var t,e=this;this.resizeObserver=new al(this.viewElement,(function(n){t&&t===n.contentRect.width&&!e.shouldUpdateGroupingOnNextResize||(e.shouldUpdateGroupingOnNextResize=!1,e._updateGrouping(),t=n.contentRect.width)})),this._updateGrouping()}},{key:"_enableGroupingOnMaxWidthChange",value:function(t){var e=this;t.on("change:maxWidth",(function(){e._updateGrouping()}))}},{key:"_groupLastItem",value:function(){this.groupedItems.length||(this.viewChildren.add(new ol),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}},{key:"_ungroupFirstItem",value:function(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}},{key:"_createGroupedItemsDropdown",value:function(){var t=this.viewLocale,e=t.t,n=xl(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===t.uiLanguageDirection?"sw":"se",Sl(n,[]),n.buttonView.set({label:e("Show more items"),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'}),n.toolbarView.items.bindTo(this.groupedItems).using((function(t){return t})),n}},{key:"_updateFocusCycleableItems",value:function(){var t=this;this.viewFocusables.clear(),this.ungroupedItems.map((function(e){t.viewFocusables.add(e)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}},{key:"_areItemsOverflowing",get:function(){if(!this.ungroupedItems.length)return!1;var t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new Po(t.lastChild),r=new Po(t);if(!this.cachedPadding){var i=Ii.window.getComputedStyle(t),o="ltr"===e?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(i[o])}return"ltr"===e?n.right>r.right-this.cachedPadding:n.left<r.left+this.cachedPadding}}]),t}();n(41);var Pl=function(t){v(n,t);var e=g(n);function n(t,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h(this,n),(i=e.call(this,t)).stickyPanel=new nl(t),i.toolbar=new Al(t,{shouldGroupWhenFull:o.shouldToolbarGroupWhenFull}),i.editable=new Qu(t,r),i}return m(n,[{key:"render",value:function(){s(x(n.prototype),"render",this).call(this),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}]),n}(Xu),Il=function(t){v(n,t);var e=g(n);function n(t,r){var i;h(this,n),i=e.call(this,r),Fe(t)&&(i.sourceElement=t),i.data.processor=new vu(i.data.viewDocument),i.model.document.createRoot();var o=!i.config.get("toolbar.shouldNotGroupWhenFull"),a=new Pl(i.locale,i.editing.view,{shouldToolbarGroupWhenFull:o});return i.ui=new Cu(y(i),a),function(t){if(!W(t.updateSourceElement))throw new Ye.b("attachtoform-missing-elementapi-interface: Editor passed to attachToForm() must implement ElementApi.",t);var e=t.sourceElement;if(e&&"textarea"===e.tagName.toLowerCase()&&e.form){var n,r=e.form,i=function(){return t.updateSourceElement()};W(r.submit)&&(n=r.submit,r.submit=function(){i(),n.apply(r)}),r.addEventListener("submit",i),t.on("destroy",(function(){r.removeEventListener("submit",i),n&&(r.submit=n)}))}}(y(i)),i}return m(n,[{key:"destroy",value:function(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),s(x(n.prototype),"destroy",this).call(this)}}],[{key:"create",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r){var i=new e(t,n);r(i.initPlugins().then((function(){return i.ui.init(Fe(t)?t:null)})).then((function(){if(!Fe(t)&&n.initialData)throw new Ye.b("editor-create-initial-data: The config.initialData option cannot be used together with initial data passed in Editor.create().",null);var e=n.initialData||function(t){return Fe(t)?(e=t)instanceof HTMLTextAreaElement?e.value:e.innerHTML:t;var e}(t);return i.data.init(e)})).then((function(){return i.fire("ready")})).then((function(){return i})))}))}}]),n}(hu);an(Il,{setData:function(t){this.data.set(t)},getData:function(t){return this.data.get(t)}}),an(Il,pu);var Rl=function(){function t(e){h(this,t),this.editor=e,this.set("isEnabled",!0),this._disableStack=new Set}return m(t,[{key:"forceDisabled",value:function(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",jl,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",jl),this.isEnabled=!0)}},{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!1}}]),t}();function jl(t){t.return=!1,t.stop()}an(Rl,pr);var Dl=function(){function t(e){var n=this;h(this,t),this.editor=e,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(function(){n.refresh()})),this.on("execute",(function(t){n.isEnabled||t.stop()}),{priority:"high"}),this.listenTo(e,"change:isReadOnly",(function(t,e,r){r?n.forceDisabled("readOnlyMode"):n.clearForceDisabled("readOnlyMode")}))}return m(t,[{key:"refresh",value:function(){this.isEnabled=!0}},{key:"forceDisabled",value:function(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",Nl,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",Nl),this.refresh())}},{key:"execute",value:function(){}},{key:"destroy",value:function(){this.stopListening()}}]),t}();function Nl(t){t.return=!1,t.stop()}function Ll(t){var e=t.next();return e.done?null:e.value}an(Dl,pr);var Bl=["left","right","center","justify"];function zl(t){return Bl.includes(t)}function Fl(t,e){return"rtl"==e.contentLanguageDirection?"right"===t:"left"===t}var ql="alignment",Vl=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=this.editor.locale,e=Ll(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!e&&this._canBeAligned(e),this.isEnabled&&e.hasAttribute("alignment")?this.value=e.getAttribute("alignment"):this.value="rtl"===t.contentLanguageDirection?"right":"left"}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor,r=n.locale,i=n.model,o=i.document,a=e.value;i.change((function(e){var n=Array.from(o.selection.getSelectedBlocks()).filter((function(e){return t._canBeAligned(e)})),i=n[0].getAttribute("alignment");Fl(a,r)||i===a||!a?function(t,e){var n,r=c(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;e.removeAttribute(ql,i)}}catch(t){r.e(t)}finally{r.f()}}(n,e):function(t,e,n){var r,i=c(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;e.setAttribute(ql,n,o)}}catch(t){i.e(t)}finally{i.f()}}(n,e,a)}))}},{key:"_canBeAligned",value:function(t){return this.editor.model.schema.checkAttribute(t,ql)}}]),n}(Dl),$l=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),r=e.call(this,t),t.config.define("alignment",{options:[].concat(Bl)}),r}return m(n,null,[{key:"pluginName",get:function(){return"AlignmentEditing"}}]),m(n,[{key:"init",value:function(){var t=this.editor,e=t.locale,n=t.model.schema,r=t.config.get("alignment.options").filter(zl);n.extend("$block",{allowAttributes:"alignment"}),t.model.schema.setAttributeProperties("alignment",{isFormatting:!0});var i=function(t){var e,n={model:{key:"alignment",values:t.slice()},view:{}},r=c(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n.view[i]={key:"style",value:{"text-align":i}}}}catch(t){r.e(t)}finally{r.f()}return n}(r.filter((function(t){return!Fl(t,e)})));t.conversion.attributeToAttribute(i),t.commands.add("alignment",new Vl(t))}}]),n}(Rl),Hl='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',Ul='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',Wl=new Map([["left",Hl],["right",Ul],["center",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>'],["justify",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>']]),Kl=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.ui.componentFactory,r=e.t,i=e.config.get("alignment.options");i.filter(zl).forEach((function(e){return t._addButton(e)})),n.add("alignment",(function(t){var e=xl(t),o=i.map((function(t){return n.create("alignment:"+t)}));Sl(e,o),e.buttonView.set({label:r("Text alignment"),tooltip:!0}),e.toolbarView.isVertical=!0,e.toolbarView.ariaLabel=r("Text alignment toolbar"),e.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});var a="rtl"===t.contentLanguageDirection?Ul:Hl;return e.buttonView.bind("icon").toMany(o,"isOn",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.findIndex((function(t){return t}));return r<0?a:o[r].icon})),e.bind("isEnabled").toMany(o,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),e}))}},{key:"_addButton",value:function(t){var e=this,n=this.editor;n.ui.componentFactory.add("alignment:"+t,(function(r){var i=n.commands.get("alignment"),o=new vl(r);return o.set({label:e.localizedOptionTitles[t],icon:Wl.get(t),tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(i),o.bind("isOn").to(i,"value",(function(e){return e===t})),e.listenTo(o,"execute",(function(){n.execute("alignment",{value:t}),n.editing.view.focus()})),o}))}},{key:"localizedOptionTitles",get:function(){var t=this.editor.t;return{left:t("Align left"),right:t("Align right"),center:t("Align center"),justify:t("Justify")}}}],[{key:"pluginName",get:function(){return"AlignmentUI"}}]),n}(Rl);function Yl(t,e){var n=t.start;return{text:Array.from(t.getItems()).reduce((function(t,r){return r.is("$text")||r.is("$textProxy")?t+r.data:(n=e.createPositionAfter(r),"")}),""),range:e.createRange(n,t.end)}}var Gl=function(){function t(e,n){var r=this;h(this,t),this.model=e,this.testCallback=n,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(function(){r.isEnabled?r._startListening():(r.stopListening(e.document.selection),r.stopListening(e.document))})),this._startListening()}return m(t,[{key:"_startListening",value:function(){var t=this,e=this.model.document;this.listenTo(e.selection,"change:range",(function(n,r){r.directChange&&(e.selection.isCollapsed?t._evaluateTextBeforeSelection("selection"):t.hasMatch&&(t.fire("unmatched"),t.hasMatch=!1))})),this.listenTo(e,"change:data",(function(e,n){"transparent"!=n.type&&t._evaluateTextBeforeSelection("data",{batch:n})}))}},{key:"_evaluateTextBeforeSelection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.model,r=n.document.selection,i=n.createRange(n.createPositionAt(r.focus.parent,0),r.focus),o=Yl(i,n),a=o.text,s=o.range,u=this.testCallback(a);if(!u&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!u,u){var l=Object.assign(e,{text:a,range:s});"object"==S(u)&&Object.assign(l,u),this.fire("matched:"+t,l)}}}]),t}();an(Gl,pr);var Zl=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.)+(?:[a-z\\u00a1-\\uffff]{2,}))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.))+(?:[a-z\\u00a1-\\uffff]{2,})))$","i"),Jl=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i;function Xl(t){var e=Zl.exec(t);return e?e[2]:null}var Ql=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),(i=e.call(this,t)).attributeKey=r,i}return m(n,[{key:"refresh",value:function(){var t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document.selection,i=void 0===e.forceValue?!this.value:e.forceValue;n.change((function(e){if(r.isCollapsed)i?e.setSelectionAttribute(t.attributeKey,!0):e.removeSelectionAttribute(t.attributeKey);else{var o,a=c(n.schema.getValidRanges(r.getRanges(),t.attributeKey));try{for(a.s();!(o=a.n()).done;){var s=o.value;i?e.setAttribute(t.attributeKey,i,s):e.removeAttribute(t.attributeKey,s)}}catch(t){a.e(t)}finally{a.f()}}}))}},{key:"_getValueFromFirstAllowedNode",value:function(){var t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);var r,i=c(n.getRanges());try{for(i.s();!(r=i.n()).done;){var o,a=c(r.value.getItems());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(e.checkAttribute(s,this.attributeKey))return s.hasAttribute(this.attributeKey)}}catch(t){a.e(t)}finally{a.f()}}}catch(t){i.e(t)}finally{i.f()}return!1}}]),n}(Dl),tc="bold",ec=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:tc}),t.model.schema.setAttributeProperties(tc,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:tc,view:"strong",upcastAlso:["b",function(t){var e=t.getStyle("font-weight");return e?"bold"==e||Number(e)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),t.commands.add(tc,new Ql(t,tc)),t.keystrokes.set("CTRL+B",tc)}}],[{key:"pluginName",get:function(){return"BoldEditing"}}]),n}(Rl),nc="bold",rc=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add(nc,(function(r){var i=e.commands.get(nc),o=new vl(r);return o.set({label:n("Bold"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),t.listenTo(o,"execute",(function(){e.execute(nc),e.editing.view.focus()})),o}))}}]),n}(Rl),ic=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor,e=t.ui.componentFactory,n=t.t;e.add("ckfinder",(function(e){var r=t.commands.get("ckfinder"),i=new vl(e);return i.set({label:n("Insert image or file"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),i.bind("isEnabled").to(r),i.on("execute",(function(){t.execute("ckfinder"),t.editing.view.focus()})),i}))}}],[{key:"pluginName",get:function(){return"CKFinderUI"}}]),n}(Rl),oc=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"observe",value:function(t){var e=this;this.listenTo(t,"load",(function(t,n){"IMG"==n.target.tagName&&e._fireEvents(n)}),{useCapture:!0})}},{key:"_fireEvents",value:function(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}]),n}(Hi),ac=function(){function t(){h(this,t),this._stack=[]}return m(t,[{key:"add",value:function(t,e){var n=this._stack,r=n[0];this._insertDescriptor(t);var i=n[0];r===i||sc(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:e})}},{key:"remove",value:function(t,e){var n=this._stack,r=n[0];this._removeDescriptor(t);var i=n[0];r===i||sc(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:e})}},{key:"_insertDescriptor",value:function(t){var e=this._stack,n=e.findIndex((function(e){return e.id===t.id}));if(!sc(t,e[n])){n>-1&&e.splice(n,1);for(var r=0;e[r]&&uc(e[r],t);)r++;e.splice(r,0,t)}}},{key:"_removeDescriptor",value:function(t){var e=this._stack,n=e.findIndex((function(e){return e.id===t}));n>-1&&e.splice(n,1)}}]),t}();function sc(t,e){return t&&e&&t.priority==e.priority&&lc(t.classes)==lc(e.classes)}function uc(t,e){return t.priority>e.priority||!(t.priority<e.priority)&&lc(t.classes)>lc(e.classes)}function lc(t){return Array.isArray(t)?t.sort().join(","):t}an(ac,Je),n(43);var cc=tl("px"),fc=Ii.document.body,dc=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n);var i=(r=e.call(this,t)).bindTemplate;return r.set("top",0),r.set("left",0),r.set("position","arrow_nw"),r.set("isVisible",!1),r.set("withArrow",!0),r.set("class"),r.content=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",i.to("position",(function(t){return"ck-balloon-panel_"+t})),i.if("isVisible","ck-balloon-panel_visible"),i.if("withArrow","ck-balloon-panel_with-arrow"),i.to("class")],style:{top:i.to("top",cc),left:i.to("left",cc)}},children:r.content}),r}return m(n,[{key:"show",value:function(){this.isVisible=!0}},{key:"hide",value:function(){this.isVisible=!1}},{key:"attachTo",value:function(t){this.show();var e=n.defaultPositions,r=Object.assign({},{element:this.element,positions:[e.southArrowNorth,e.southArrowNorthMiddleWest,e.southArrowNorthMiddleEast,e.southArrowNorthWest,e.southArrowNorthEast,e.northArrowSouth,e.northArrowSouthMiddleWest,e.northArrowSouthMiddleEast,e.northArrowSouthWest,e.northArrowSouthEast],limiter:fc,fitInViewport:!0},t),i=n._getOptimalPosition(r),o=parseInt(i.left),a=parseInt(i.top),s=i.name;Object.assign(this,{top:a,left:o,position:s})}},{key:"pin",value:function(t){var e=this;this.unpin(),this._pinWhenIsVisibleCallback=function(){e.isVisible?e._startPinning(t):e._stopPinning()},this._startPinning(t),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}},{key:"unpin",value:function(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}},{key:"_startPinning",value:function(t){var e=this;this.attachTo(t);var n=hc(t.target),r=t.limiter?hc(t.limiter):fc;this.listenTo(Ii.document,"scroll",(function(i,o){var a=o.target,s=n&&a.contains(n),u=r&&a.contains(r);!s&&!u&&n&&r||e.attachTo(t)}),{useCapture:!0}),this.listenTo(Ii.window,"resize",(function(){e.attachTo(t)}))}},{key:"_stopPinning",value:function(){this.stopListening(Ii.document,"scroll"),this.stopListening(Ii.window,"resize")}}]),n}(Ku);function hc(t){return Fe(t)?t:To(t)?t.commonAncestorContainer:"function"==typeof t?hc(t()):null}function pc(t,e){return t.top-e.height-dc.arrowVerticalOffset}function mc(t){return t.bottom+dc.arrowVerticalOffset}dc.arrowHorizontalOffset=25,dc.arrowVerticalOffset=10,dc._getOptimalPosition=ll,dc.defaultPositions={northWestArrowSouthWest:function(t,e){return{top:pc(t,e),left:t.left-dc.arrowHorizontalOffset,name:"arrow_sw"}},northWestArrowSouthMiddleWest:function(t,e){return{top:pc(t,e),left:t.left-.25*e.width-dc.arrowHorizontalOffset,name:"arrow_smw"}},northWestArrowSouth:function(t,e){return{top:pc(t,e),left:t.left-e.width/2,name:"arrow_s"}},northWestArrowSouthMiddleEast:function(t,e){return{top:pc(t,e),left:t.left-.75*e.width+dc.arrowHorizontalOffset,name:"arrow_sme"}},northWestArrowSouthEast:function(t,e){return{top:pc(t,e),left:t.left-e.width+dc.arrowHorizontalOffset,name:"arrow_se"}},northArrowSouthWest:function(t,e){return{top:pc(t,e),left:t.left+t.width/2-dc.arrowHorizontalOffset,name:"arrow_sw"}},northArrowSouthMiddleWest:function(t,e){return{top:pc(t,e),left:t.left+t.width/2-.25*e.width-dc.arrowHorizontalOffset,name:"arrow_smw"}},northArrowSouth:function(t,e){return{top:pc(t,e),left:t.left+t.width/2-e.width/2,name:"arrow_s"}},northArrowSouthMiddleEast:function(t,e){return{top:pc(t,e),left:t.left+t.width/2-.75*e.width+dc.arrowHorizontalOffset,name:"arrow_sme"}},northArrowSouthEast:function(t,e){return{top:pc(t,e),left:t.left+t.width/2-e.width+dc.arrowHorizontalOffset,name:"arrow_se"}},northEastArrowSouthWest:function(t,e){return{top:pc(t,e),left:t.right-dc.arrowHorizontalOffset,name:"arrow_sw"}},northEastArrowSouthMiddleWest:function(t,e){return{top:pc(t,e),left:t.right-.25*e.width-dc.arrowHorizontalOffset,name:"arrow_smw"}},northEastArrowSouth:function(t,e){return{top:pc(t,e),left:t.right-e.width/2,name:"arrow_s"}},northEastArrowSouthMiddleEast:function(t,e){return{top:pc(t,e),left:t.right-.75*e.width+dc.arrowHorizontalOffset,name:"arrow_sme"}},northEastArrowSouthEast:function(t,e){return{top:pc(t,e),left:t.right-e.width+dc.arrowHorizontalOffset,name:"arrow_se"}},southWestArrowNorthWest:function(t,e){return{top:mc(t),left:t.left-dc.arrowHorizontalOffset,name:"arrow_nw"}},southWestArrowNorthMiddleWest:function(t,e){return{top:mc(t),left:t.left-.25*e.width-dc.arrowHorizontalOffset,name:"arrow_nmw"}},southWestArrowNorth:function(t,e){return{top:mc(t),left:t.left-e.width/2,name:"arrow_n"}},southWestArrowNorthMiddleEast:function(t,e){return{top:mc(t),left:t.left-.75*e.width+dc.arrowHorizontalOffset,name:"arrow_nme"}},southWestArrowNorthEast:function(t,e){return{top:mc(t),left:t.left-e.width+dc.arrowHorizontalOffset,name:"arrow_ne"}},southArrowNorthWest:function(t,e){return{top:mc(t),left:t.left+t.width/2-dc.arrowHorizontalOffset,name:"arrow_nw"}},southArrowNorthMiddleWest:function(t,e){return{top:mc(t),left:t.left+t.width/2-.25*e.width-dc.arrowHorizontalOffset,name:"arrow_nmw"}},southArrowNorth:function(t,e){return{top:mc(t),left:t.left+t.width/2-e.width/2,name:"arrow_n"}},southArrowNorthMiddleEast:function(t,e){return{top:mc(t),left:t.left+t.width/2-.75*e.width+dc.arrowHorizontalOffset,name:"arrow_nme"}},southArrowNorthEast:function(t,e){return{top:mc(t),left:t.left+t.width/2-e.width+dc.arrowHorizontalOffset,name:"arrow_ne"}},southEastArrowNorthWest:function(t,e){return{top:mc(t),left:t.right-dc.arrowHorizontalOffset,name:"arrow_nw"}},southEastArrowNorthMiddleWest:function(t,e){return{top:mc(t),left:t.right-.25*e.width-dc.arrowHorizontalOffset,name:"arrow_nmw"}},southEastArrowNorth:function(t,e){return{top:mc(t),left:t.right-e.width/2,name:"arrow_n"}},southEastArrowNorthMiddleEast:function(t,e){return{top:mc(t),left:t.right-.75*e.width+dc.arrowHorizontalOffset,name:"arrow_nme"}},southEastArrowNorthEast:function(t,e){return{top:mc(t),left:t.right-e.width+dc.arrowHorizontalOffset,name:"arrow_ne"}}};var vc='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>',gc="widget-type-around";function bc(t,e,n){return t&&_c(t)&&!n.isInline(e)}function yc(t){return t.getAttribute(gc)}var wc="ck-widget_selected";function _c(t){return!!t.is("element")&&!!t.getCustomProperty("widget")}function kc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.is("containerElement"))throw new Ye.b("widget-to-widget-wrong-element-type: The element passed to toWidget() must be a container element instance.",null,{element:t});return e.setAttribute("contenteditable","false",t),e.addClass("ck-widget",t),e.setCustomProperty("widget",!0,t),t.getFillerOffset=Tc,n.label&&function(t,e,n){n.setCustomProperty("widgetLabel",e,t)}(t,n.label,e),n.hasSelectionHandle&&function(t,e){var n=e.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(t){var e=this.toDomElement(t),n=new pl;return n.set("content",vc),n.render(),e.appendChild(n.element),e}));e.insert(e.createPositionAt(t,0),n),e.addClass(["ck-widget_with-selection-handle"],t)}(t,e),Mc(t,e,(function(t,e,n){return n.addClass(r(e.classes),t)}),(function(t,e,n){return n.removeClass(r(e.classes),t)})),t;function r(t){return Array.isArray(t)?t:[t]}}function Mc(t,e,n,r){var i=new ac;i.on("change:top",(function(e,i){i.oldDescriptor&&r(t,i.oldDescriptor,i.writer),i.newDescriptor&&n(t,i.newDescriptor,i.writer)})),e.setCustomProperty("addHighlight",(function(t,e,n){return i.add(e,n)}),t),e.setCustomProperty("removeHighlight",(function(t,e,n){return i.remove(e,n)}),t)}function xc(t){var e=t.getCustomProperty("widgetLabel");return e?"function"==typeof e?e():e:""}function Sc(t,e){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],t),e.setAttribute("contenteditable",t.isReadOnly?"false":"true",t),t.on("change:isReadOnly",(function(n,r,i){e.setAttribute("contenteditable",i?"false":"true",t)})),t.on("change:isFocused",(function(n,r,i){i?e.addClass("ck-editor__nested-editable_focused",t):e.removeClass("ck-editor__nested-editable_focused",t)})),t}function Cc(t,e){var n=t.getSelectedElement();if(n){var r=yc(t);if(r)return e.createPositionAt(n,r);if(e.schema.isBlock(n))return e.createPositionAfter(n)}var i=t.getSelectedBlocks().next().value;if(i){if(i.isEmpty)return e.createPositionAt(i,0);var o=e.createPositionAfter(i);return t.focus.isTouching(o)?o:e.createPositionBefore(i)}return t.focus}function Ac(t,e){var n=new Po(Ii.window),r=n.getIntersection(t),i=e.height+dc.arrowVerticalOffset;if(t.top-i>n.top||t.bottom+i<n.bottom)return null;var o=r||t,a=o.left+o.width/2-e.width/2;return{top:Math.max(t.top,0)+dc.arrowVerticalOffset,left:a,name:"arrow_n"}}function Tc(){return null}function Ec(t){return!!t.getCustomProperty("image")&&_c(t)}function Oc(t){var e=t.getSelectedElement();return e&&Ec(e)?e:null}function Pc(t){return!!t&&t.is("element","image")}function Ic(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.createElement("image",n),i=Cc(e.document.selection,e);e.insertContent(r,i),r.parent&&t.setSelection(r,"on")}function Rc(t){var e=t.schema,n=t.document.selection;return function(t,e,n){var r=function(t,e){var n=Cc(t,e).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(t,n);return e.checkChild(r,"image")}(n,e,t)&&!function(t,e){var n=t.getSelectedElement();return n&&e.isObject(n)}(n,e)&&function(t){return u(t.focus.getAncestors()).every((function(t){return!t.is("element","image")}))}(n)}function jc(t){var e,n=[],r=c(t.getChildren());try{for(r.s();!(e=r.n()).done;){var i=e.value;n.push(i),i.is("element")&&n.push.apply(n,u(i.getChildren()))}}catch(t){r.e(t)}finally{r.f()}return n.find((function(t){return t.is("element","img")}))}function Dc(t){return function(n){n.on("attribute:".concat(t,":image"),e)};function e(t,e,n){if(n.consumable.consume(e.item,t.name)){var r=n.writer,i=jc(n.mapper.toViewElement(e.item));r.setAttribute(e.attributeKey,e.attributeNewValue||"",i)}}}var Nc=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){this.isEnabled=Rc(this.editor.model)}},{key:"execute",value:function(t){var e=this.editor.model;e.change((function(n){var r,i=c(Array.isArray(t.source)?t.source:[t.source]);try{for(i.s();!(r=i.n()).done;){var o=r.value;Ic(n,e,{src:o})}}catch(t){i.e(t)}finally{i.f()}}))}}]),n}(Dl),Lc=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema,n=t.t,r=t.conversion;t.editing.view.addObserver(oc),e.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),r.for("dataDowncast").elementToElement({model:"image",view:function(t,e){return Bc(e.writer)}}),r.for("editingDowncast").elementToElement({model:"image",view:function(t,e){var r=e.writer;return function(t,e,n){return e.setCustomProperty("image",!0,t),kc(t,e,{label:function(){var e=jc(t).getAttribute("alt");return e?"".concat(e," ").concat(n):n}})}(Bc(r),r,n("image widget"))}}),r.for("downcast").add(Dc("src")).add(Dc("alt")).add(function(){return function(e){e.on("attribute:srcset:image",t)};function t(t,e,n){if(n.consumable.consume(e.item,t.name)){var r=n.writer,i=jc(n.mapper.toViewElement(e.item));if(null===e.attributeNewValue){var o=e.attributeOldValue;o.data&&(r.removeAttribute("srcset",i),r.removeAttribute("sizes",i),o.width&&r.removeAttribute("width",i))}else{var a=e.attributeNewValue;a.data&&(r.setAttribute("srcset",a.data,i),r.setAttribute("sizes","100vw",i),a.width&&r.setAttribute("width",a.width,i))}}}}()),r.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:function(t,e){return e.writer.createElement("image",{src:t.getAttribute("src")})}}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:function(t){var e={data:t.getAttribute("srcset")};return t.hasAttribute("width")&&(e.width=t.getAttribute("width")),e}}}).add(function(){return function(e){e.on("element:figure",t)};function t(t,e,n){if(n.consumable.test(e.viewItem,{name:!0,classes:"image"})){var r=jc(e.viewItem);if(r&&r.hasAttribute("src")&&n.consumable.test(r,{name:!0})){var i=Ll(n.convertItem(r,e.modelCursor).modelRange.getItems());i&&(n.convertChildren(e.viewItem,i),n.updateConversionResult(i,e))}}}}()),t.commands.add("imageInsert",new Nc(t))}}],[{key:"pluginName",get:function(){return"ImageEditing"}}]),n}(Rl);function Bc(t){var e=t.createEmptyElement("img"),n=t.createContainerElement("figure",{class:"image"});return t.insert(t.createPositionAt(n,0),e),n}var zc=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).domEventType="mousedown",r}return m(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}]),n}(co),Fc=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).attributes=new Set,r._overrideUid=null,r}return m(n,null,[{key:"pluginName",get:function(){return"TwoStepCaretMovement"}}]),m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.model,r=e.editing.view,i=e.locale,o=n.document.selection;this.listenTo(r.document,"keydown",(function(e,n){if(o.isCollapsed&&!(n.shiftKey||n.altKey||n.ctrlKey)){var r=n.keyCode==Hr.arrowright,a=n.keyCode==Hr.arrowleft;if(r||a){var s=i.contentLanguageDirection;!0===("ltr"===s&&r||"rtl"===s&&a?t._handleForwardMovement(n):t._handleBackwardMovement(n))&&e.stop()}}}),{priority:Ke.get("high")+1}),this._isNextGravityRestorationSkipped=!1,this.listenTo(o,"change:range",(function(e,n){t._isNextGravityRestorationSkipped?t._isNextGravityRestorationSkipped=!1:t._isGravityOverridden&&(!n.directChange&&Hc(o.getFirstPosition(),t.attributes)||t._restoreGravity())}))}},{key:"registerAttribute",value:function(t){this.attributes.add(t)}},{key:"_handleForwardMovement",value:function(t){var e=this.attributes,n=this.editor.model.document.selection,r=n.getFirstPosition();return!this._isGravityOverridden&&(!r.isAtStart||!qc(n,e))&&(Hc(r,e)?($c(t),this._overrideGravity(),!0):void 0)}},{key:"_handleBackwardMovement",value:function(t){var e=this.attributes,n=this.editor.model,r=n.document.selection,i=r.getFirstPosition();return this._isGravityOverridden?($c(t),this._restoreGravity(),Vc(n,e,i),!0):i.isAtStart?!!qc(r,e)&&($c(t),Vc(n,e,i),!0):function(t,e){return Hc(t.getShiftedBy(-1),e)}(i,e)?i.isAtEnd&&!qc(r,e)&&Hc(i,e)?($c(t),Vc(n,e,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}},{key:"_overrideGravity",value:function(){this._overrideUid=this.editor.model.change((function(t){return t.overrideSelectionGravity()}))}},{key:"_restoreGravity",value:function(){var t=this;this.editor.model.change((function(e){e.restoreSelectionGravity(t._overrideUid),t._overrideUid=null}))}},{key:"_isGravityOverridden",get:function(){return!!this._overrideUid}}]),n}(Rl);function qc(t,e){var n,r=c(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(t.hasAttribute(i))return!0}}catch(t){r.e(t)}finally{r.f()}return!1}function Vc(t,e,n){var r=n.nodeBefore;t.change((function(t){r?t.setSelectionAttribute(r.getAttributes()):t.removeSelectionAttribute(e)}))}function $c(t){t.preventDefault()}function Hc(t,e){var n,r=t.nodeBefore,i=t.nodeAfter,o=c(e);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=r?r.getAttribute(a):void 0;if((i?i.getAttribute(a):void 0)!==s)return!0}}catch(t){o.e(t)}finally{o.f()}return!1}function Uc(t,e,n,r){return r.createRange(Wc(t,e,n,!0,r),Wc(t,e,n,!1,r))}function Wc(t,e,n,r,i){for(var o=t.textNode||(r?t.nodeBefore:t.nodeAfter),a=null;o&&o.getAttribute(e)==n;)a=o,o=r?o.previousSibling:o.nextSibling;return a?i.createPositionAt(a,r?"before":"after"):t}for(var Kc=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;h(this,t),this.model=e,this.size=0,this.limit=r,this.isLocked=!1,this._changeCallback=function(t,e){"transparent"!=e.type&&e!==n._batch&&n._reset(!0)},this._selectionChangeCallback=function(){n._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}return m(t,[{key:"input",value:function(t){this.size+=t,this.size>=this.limit&&this._reset(!0)}},{key:"lock",value:function(){this.isLocked=!0}},{key:"unlock",value:function(){this.isLocked=!1}},{key:"destroy",value:function(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}},{key:"_reset",value:function(t){this.isLocked&&!t||(this._batch=null,this.size=0)}},{key:"batch",get:function(){return this._batch||(this._batch=this.model.createBatch()),this._batch}}]),t}(),Yc=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),(i=e.call(this,t))._buffer=new Kc(t.model,r),i._batches=new WeakSet,i}return m(n,[{key:"destroy",value:function(){s(x(n.prototype),"destroy",this).call(this),this._buffer.destroy()}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document,i=e.text||"",o=i.length,a=e.range?n.createSelection(e.range):r.selection,s=e.resultRange;n.enqueueChange(this._buffer.batch,(function(e){t._buffer.lock(),t._batches.add(t._buffer.batch),n.deleteContent(a),i&&n.insertContent(e.createText(i,r.selection.getAttributes()),a),s?e.setSelection(s):a.is("documentSelection")||e.setSelection(a),t._buffer.unlock(),t._buffer.input(o)}))}},{key:"buffer",get:function(){return this._buffer}}]),n}(Dl),Gc=[Ur("arrowUp"),Ur("arrowRight"),Ur("arrowDown"),Ur("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255],Zc=112;Zc<=135;Zc++)Gc.push(Zc);function Jc(t){return!!t.ctrlKey||Gc.includes(t.keyCode)}function Xc(t){if(t.newChildren.length-t.oldChildren.length==1){var e=function(t,e){var n,r=[],i=0;return t.forEach((function(t){"equal"==t?(o(),i++):"insert"==t?(a("insert")?n.values.push(e[i]):(o(),n={type:"insert",index:i,values:[e[i]]}),i++):a("delete")?n.howMany++:(o(),n={type:"delete",index:i,howMany:1})})),o(),r;function o(){n&&(r.push(n),n=null)}function a(t){return n&&n.type==t}}(xi(t.oldChildren,t.newChildren,Qc),t.newChildren);if(!(e.length>1)){var n=e[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}}}function Qc(t,e){return t&&t.is("$text")&&e&&e.is("$text")?t.data===e.data:t===e}var tf=function(){function t(e){h(this,t),this.editor=e,this.editing=this.editor.editing}return m(t,[{key:"handle",value:function(t,e){if(function(t){if(0==t.length)return!1;var e,n=c(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if("children"===r.type&&!Xc(r))return!0}}catch(t){n.e(t)}finally{n.f()}return!1}(t))this._handleContainerChildrenMutations(t,e);else{var n,r=c(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._handleTextMutation(i,e),this._handleTextNodeInsertion(i)}}catch(t){r.e(t)}finally{r.f()}}}},{key:"_handleContainerChildrenMutations",value:function(t,e){var n=function(t){var e=t.map((function(t){return t.node})).reduce((function(t,e){return t.getCommonAncestor(e,{includeSelf:!0})}));if(e)return e.getAncestors({includeSelf:!0,parentFirst:!0}).find((function(t){return t.is("containerElement")||t.is("rootElement")}))}(t);if(n){var r=this.editor.editing.view.domConverter.mapViewToDom(n),i=new Ni(this.editor.editing.view.document),o=this.editor.data.toModel(i.domToView(r)).getChild(0),a=this.editor.editing.mapper.toModelElement(n);if(a){var s=Array.from(o.getChildren()),u=Array.from(a.getChildren()),l=s[s.length-1],c=u[u.length-1],f=l&&l.is("element","softBreak"),d=c&&!c.is("element","softBreak");f&&d&&s.pop();var h=this.editor.model.schema;if(ef(s,h)&&ef(u,h)){var p=s.map((function(t){return t.is("$text")?t.data:"@"})).join("").replace(/\u00A0/g," "),m=u.map((function(t){return t.is("$text")?t.data:"@"})).join("").replace(/\u00A0/g," ");if(m!==p){var v=nf(xi(m,p)),g=v.firstChangeAt,b=v.insertions,y=v.deletions,w=null;e&&(w=this.editing.mapper.toModelRange(e.getFirstRange()));var _=p.substr(g,b),k=this.editor.model.createRange(this.editor.model.createPositionAt(a,g),this.editor.model.createPositionAt(a,g+y));this.editor.execute("input",{text:_,range:k,resultRange:w})}}}}}},{key:"_handleTextMutation",value:function(t,e){if("text"==t.type){var n=t.newText.replace(/\u00A0/g," "),r=t.oldText.replace(/\u00A0/g," ");if(r!==n){var i=nf(xi(r,n)),o=i.firstChangeAt,a=i.insertions,s=i.deletions,u=null;e&&(u=this.editing.mapper.toModelRange(e.getFirstRange()));var l=this.editing.view.createPositionAt(t.node,o),c=this.editing.mapper.toModelPosition(l),f=this.editor.model.createRange(c,c.getShiftedBy(s)),d=n.substr(o,a);this.editor.execute("input",{text:d,range:f,resultRange:u})}}}},{key:"_handleTextNodeInsertion",value:function(t){if("children"==t.type){var e=Xc(t),n=this.editing.view.createPositionAt(t.node,e.index),r=this.editing.mapper.toModelPosition(n),i=e.values[0].data;this.editor.execute("input",{text:i.replace(/\u00A0/g," "),range:this.editor.model.createRange(r)})}}}]),t}();function ef(t,e){return t.every((function(t){return e.isInline(t)}))}function nf(t){for(var e=null,n=null,r=0;r<t.length;r++)"equal"!=t[r]&&(e=null===e?r:e,n=r);for(var i=0,o=0,a=e;a<=n;a++)"insert"!=t[a]&&i++,"delete"!=t[a]&&o++;return{insertions:o,deletions:i,firstChangeAt:e}}var rf=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor,e=new Yc(t,t.config.get("typing.undoStep")||20);t.commands.add("input",e),function(t){var e=null,n=t.model,r=t.editing.view,i=t.commands.get("input");function o(t){var o=n.document,s=r.document.isComposing,u=e&&e.isEqual(o.selection);e=null,i.isEnabled&&(Jc(t)||o.selection.isCollapsed||s&&229===t.keyCode||!s&&229===t.keyCode&&u||a())}function a(){var t=i.buffer;t.lock();var e=t.batch;i._batches.add(e),n.enqueueChange(e,(function(){n.deleteContent(n.document.selection)})),t.unlock()}Fr?r.document.on("beforeinput",(function(t,e){return o(e)}),{priority:"lowest"}):r.document.on("keydown",(function(t,e){return o(e)}),{priority:"lowest"}),r.document.on("compositionstart",(function(){var t=n.document,e=1!==t.selection.rangeCount||t.selection.getFirstRange().isFlat;t.selection.isCollapsed||e||a()}),{priority:"lowest"}),r.document.on("compositionend",(function(){e=n.createSelection(n.document.selection)}),{priority:"lowest"})}(t),function(t){t.editing.view.document.on("mutations",(function(e,n,r){new tf(t).handle(n,r)}))}(t)}},{key:"isInput",value:function(t){return this.editor.commands.get("input")._batches.has(t)}}],[{key:"pluginName",get:function(){return"Input"}}]),n}(Rl),of=function(){function t(e){h(this,t),this.files=function(t){var e=t.files?Array.from(t.files):[],n=t.items?Array.from(t.items):[];return e.length?e:n.filter((function(t){return"file"===t.kind})).map((function(t){return t.getAsFile()}))}(e),this._native=e}return m(t,[{key:"getData",value:function(t){return this._native.getData(t)}},{key:"setData",value:function(t,e){this._native.setData(t,e)}},{key:"types",get:function(){return this._native.types}}]),t}(),af=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n);var i=(r=e.call(this,t)).document;function o(t,e){e.preventDefault();var n=e.dropRange?[e.dropRange]:Array.from(i.selection.getRanges()),r=new He(i,"clipboardInput");i.fire(r,{dataTransfer:e.dataTransfer,targetRanges:n}),r.stop.called&&e.stopPropagation()}return r.domEventType=["paste","copy","cut","drop","dragover"],r.listenTo(i,"paste",o,{priority:"low"}),r.listenTo(i,"drop",o,{priority:"low"}),r}return m(n,[{key:"onDomEvent",value:function(t){var e={dataTransfer:new of(t.clipboardData?t.clipboardData:t.dataTransfer)};"drop"==t.type&&(e.dropRange=function(t,e){var n,r=e.target.ownerDocument,i=e.clientX,o=e.clientY;return r.caretRangeFromPoint&&r.caretRangeFromPoint(i,o)?n=r.caretRangeFromPoint(i,o):e.rangeParent&&((n=r.createRange()).setStart(e.rangeParent,e.rangeOffset),n.collapse(!0)),n?t.domConverter.domRangeToView(n):t.document.selection.getFirstRange()}(this.view,t)),this.fire(t.type,t,e)}}]),n}(co),sf=["figcaption","li"],uf=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.model.document,r=e.editing.view,i=r.document;function o(t,r){var o=r.dataTransfer;r.preventDefault();var a=e.data.toView(e.model.getSelectedContent(n.selection));i.fire("clipboardOutput",{dataTransfer:o,content:a,method:t.name})}this._htmlDataProcessor=new vu(i),r.addObserver(af),this.listenTo(i,"clipboardInput",(function(t){e.isReadOnly&&t.stop()}),{priority:"highest"}),this.listenTo(i,"clipboardInput",(function(e,n){var i,o=n.dataTransfer,a="";o.getData("text/html")?a=function(t){return t.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(function(t,e){return 1==e.length?" ":e}))}(o.getData("text/html")):o.getData("text/plain")&&((i=(i=o.getData("text/plain")).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"</p><p>").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).indexOf("</p><p>")>-1&&(i="<p>".concat(i,"</p>")),a=i),a=t._htmlDataProcessor.toView(a);var s=new He(t,"inputTransformation");t.fire(s,{content:a,dataTransfer:o}),s.stop.called&&e.stop(),r.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",(function(e,r){if(!r.content.isEmpty){var i=t.editor.data,o=t.editor.model,a=i.toModel(r.content,"$clipboardHolder");if(0==a.childCount)return;if(function(t){return!(t.childCount>1)&&0==u(t.getChild(0).getAttributeKeys()).length}(a)){var s=a.getChild(0);o.change((function(t){t.setAttributes(n.selection.getAttributes(),s)}))}o.insertContent(a),e.stop()}}),{priority:"low"}),this.listenTo(i,"copy",o,{priority:"low"}),this.listenTo(i,"cut",(function(t,n){e.isReadOnly?n.preventDefault():o(t,n)}),{priority:"low"}),this.listenTo(i,"clipboardOutput",(function(r,i){i.content.isEmpty||(i.dataTransfer.setData("text/html",t._htmlDataProcessor.toData(i.content)),i.dataTransfer.setData("text/plain",function t(e){var n="";if(e.is("$text")||e.is("$textProxy"))n=e.data;else if(e.is("element","img")&&e.hasAttribute("alt"))n=e.getAttribute("alt");else{var r,i=null,o=c(e.getChildren());try{for(o.s();!(r=o.n()).done;){var a=r.value,s=t(a);i&&(i.is("containerElement")||a.is("containerElement"))&&(sf.includes(i.name)||sf.includes(a.name)?n+="\n":n+="\n\n"),n+=s,i=a}}catch(t){o.e(t)}finally{o.f()}}return n}(i.content))),"cut"==i.method&&e.model.deleteContent(n.selection)}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Clipboard"}}]),n}(Rl),lf=function(){function t(){h(this,t),this._definitions=new Set}return m(t,[{key:"add",value:function(t){var e=this;Array.isArray(t)?t.forEach((function(t){return e._definitions.add(t)})):this._definitions.add(t)}},{key:"getDispatcher",value:function(){var t=this;return function(e){e.on("attribute:linkHref",(function(e,n,r){if(r.consumable.test(n.item,"attribute:linkHref")){var i,o=r.writer,a=o.document.selection,s=c(t._definitions);try{for(s.s();!(i=s.n()).done;){var u=i.value,l=o.createAttributeElement("a",u.attributes,{priority:5});o.setCustomProperty("link",!0,l),u.callback(n.attributeNewValue)?n.item.is("selection")?o.wrap(a.getFirstRange(),l):o.wrap(r.mapper.toViewRange(n.range),l):o.unwrap(r.mapper.toViewRange(n.range),l)}}catch(t){s.e(t)}finally{s.f()}}}),{priority:"high"})}}},{key:"getDispatcherForLinkedImage",value:function(){var t=this;return function(e){e.on("attribute:linkHref:image",(function(e,n,r){var i,o=r.mapper.toViewElement(n.item),a=Array.from(o.getChildren()).find((function(t){return"a"===t.name})),s=c(t._definitions);try{for(s.s();!(i=s.n()).done;){var u=i.value,f=yn(u.attributes);if(u.callback(n.attributeNewValue)){var d,h=c(f);try{for(h.s();!(d=h.n()).done;){var p=l(d.value,2),m=p[0],v=p[1];"class"===m?r.writer.addClass(v,a):r.writer.setAttribute(m,v,a)}}catch(t){h.e(t)}finally{h.f()}}else{var g,b=c(f);try{for(b.s();!(g=b.n()).done;){var y=l(g.value,2),w=y[0],_=y[1];"class"===w?r.writer.removeClass(_,a):r.writer.removeAttribute(w,a)}}catch(t){b.e(t)}finally{b.f()}}}}catch(t){s.e(t)}finally{s.f()}}))}}},{key:"length",get:function(){return this._definitions.size}}]),t}(),cf=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),ff=function(t){return cf.test(t)},df="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",hf="\\ud83c[\\udffb-\\udfff]",pf="[^\\ud800-\\udfff]",mf="(?:\\ud83c[\\udde6-\\uddff]){2}",vf="[\\ud800-\\udbff][\\udc00-\\udfff]",gf="(?:"+df+"|"+hf+")?",bf="[\\ufe0e\\ufe0f]?",yf=bf+gf+"(?:\\u200d(?:"+[pf,mf,vf].join("|")+")"+bf+gf+")*",wf="(?:"+[pf+df+"?",df,mf,vf,"[\\ud800-\\udfff]"].join("|")+")",_f=RegExp(hf+"(?="+hf+")|"+wf+yf,"g"),kf=function(t){return ff(t)?function(t){return t.match(_f)||[]}(t):function(t){return t.split("")}(t)},Mf=function(t){t=Rn(t);var e=ff(t)?kf(t):void 0,n=e?e[0]:t.charAt(0),r=e?function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Ln(t,e,n)}(e,1).join(""):t.slice(1);return n.toUpperCase()+r},xf=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Sf=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,Cf="Ctrl+K";function Af(t,e){var n=e.writer,r=n.createAttributeElement("a",{href:t},{priority:5});return n.setCustomProperty("link",!0,r),r}function Tf(t){return function(t){return t.replace(xf,"").match(Sf)}(t=String(t))?t:"#"}function Ef(t,e){return!!t&&t.is("element","image")&&e.checkAttribute("image","linkHref")}var Of=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).manualDecorators=new sn,r.automaticDecorators=new lf,r}return m(n,[{key:"restoreManualDecoratorStates",value:function(){var t,e=c(this.manualDecorators);try{for(e.s();!(t=e.n()).done;){var n=t.value;n.value=this._getDecoratorStateFromModel(n.id)}}catch(t){e.e(t)}finally{e.f()}}},{key:"refresh",value:function(){var t=this.editor.model,e=t.document,n=Ll(e.selection.getSelectedBlocks());Ef(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.selection.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"linkHref"));var r,i=c(this.manualDecorators);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.value=this._getDecoratorStateFromModel(o.id)}}catch(t){i.e(t)}finally{i.f()}}},{key:"execute",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.editor.model,i=r.document.selection,o=[],a=[];for(var s in n)n[s]?o.push(s):a.push(s);r.change((function(n){if(i.isCollapsed){var s=i.getFirstPosition();if(i.hasAttribute("linkHref")){var u=Uc(s,"linkHref",i.getAttribute("linkHref"),r);n.setAttribute("linkHref",t,u),o.forEach((function(t){n.setAttribute(t,!0,u)})),a.forEach((function(t){n.removeAttribute(t,u)})),n.setSelection(n.createPositionAfter(u.end.nodeBefore))}else if(""!==t){var l=yn(i.getAttributes());l.set("linkHref",t),o.forEach((function(t){l.set(t,!0)}));var f=n.createText(t,l);r.insertContent(f,s),n.setSelection(n.createPositionAfter(f))}["linkHref"].concat(o,a).forEach((function(t){n.removeSelectionAttribute(t)}))}else{var d,h=r.schema.getValidRanges(i.getRanges(),"linkHref"),p=[],m=c(i.getSelectedBlocks());try{for(m.s();!(d=m.n()).done;){var v=d.value;r.schema.checkAttribute(v,"linkHref")&&p.push(n.createRangeOn(v))}}catch(t){m.e(t)}finally{m.f()}var g,b=p.slice(),y=c(h);try{for(y.s();!(g=y.n()).done;){var w=g.value;e._isRangeToUpdate(w,p)&&b.push(w)}}catch(t){y.e(t)}finally{y.f()}var _,k=c(b);try{var M=function(){var e=_.value;n.setAttribute("linkHref",t,e),o.forEach((function(t){n.setAttribute(t,!0,e)})),a.forEach((function(t){n.removeAttribute(t,e)}))};for(k.s();!(_=k.n()).done;)M()}catch(t){k.e(t)}finally{k.f()}}}))}},{key:"_getDecoratorStateFromModel",value:function(t){var e=this.editor.model,n=e.document,r=Ll(n.selection.getSelectedBlocks());return Ef(r,e.schema)?r.getAttribute(t):n.selection.getAttribute(t)}},{key:"_isRangeToUpdate",value:function(t,e){var n,r=c(e);try{for(r.s();!(n=r.n()).done;){if(n.value.containsRange(t))return!1}}catch(t){r.e(t)}finally{r.f()}return!0}}]),n}(Dl),Pf=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=this.editor.model,e=t.document,n=Ll(e.selection.getSelectedBlocks());Ef(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,"linkHref"):this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"linkHref")}},{key:"execute",value:function(){var t=this.editor,e=this.editor.model,n=e.document.selection,r=t.commands.get("link");e.change((function(t){var i,o=c(n.isCollapsed?[Uc(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:n.getRanges());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(t.removeAttribute("linkHref",a),r){var s,u=c(r.manualDecorators);try{for(u.s();!(s=u.n()).done;){var l=s.value;t.removeAttribute(l.id,a)}}catch(t){u.e(t)}finally{u.f()}}}}catch(t){o.e(t)}finally{o.f()}}))}}]),n}(Dl),If=function t(e){var n=e.id,r=e.label,i=e.attributes,o=e.defaultValue;h(this,t),this.id=n,this.set("value"),this.defaultValue=o,this.label=r,this.attributes=i};an(If,pr),n(45);var Rf="automatic",jf=/^(https?:)?\/\//,Df=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),r=e.call(this,t),t.config.define("link",{addTargetToExternalLinks:!1}),r}return m(n,null,[{key:"pluginName",get:function(){return"LinkEditing"}},{key:"requires",get:function(){return[Fc,rf,uf]}}]),m(n,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Af}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:function(t,e){return Af(Tf(t),e)}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:function(t){return t.getAttribute("href")}}}),t.commands.add("link",new Of(t)),t.commands.add("unlink",new Pf(t));var e=function(t,e){var n={"Open in a new tab":t("Open in a new tab"),Downloadable:t("Downloadable")};return e.forEach((function(t){return t.label&&n[t.label]&&(t.label=n[t.label]),t})),e}(t.t,function(t){var e=[];if(t)for(var n=0,r=Object.entries(t);n<r.length;n++){var i=l(r[n],2),o=i[0],a=i[1],s=Object.assign({},a,{id:"link"+Mf(o)});e.push(s)}return e}(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter((function(t){return t.mode===Rf}))),this._enableManualDecorators(e.filter((function(t){return"manual"===t.mode}))),t.plugins.get(Fc).registerAttribute("linkHref"),function(t,e,n,r){var i=t.editing.view,o=new Set;i.document.registerPostFixer((function(n){var i=t.model.document.selection,a=!1;if(i.hasAttribute(e)){var s,u=Uc(i.getFirstPosition(),e,i.getAttribute(e),t.model),l=c(t.editing.mapper.toViewRange(u).getItems());try{for(l.s();!(s=l.n()).done;){var f=s.value;f.is("element","a")&&!f.hasClass(r)&&(n.addClass(r,f),o.add(f),a=!0)}}catch(t){l.e(t)}finally{l.f()}}return a})),t.conversion.for("editingDowncast").add((function(t){function e(){i.change((function(t){var e,n=c(o.values());try{for(n.s();!(e=n.n()).done;){var i=e.value;t.removeClass(r,i),o.delete(i)}}catch(t){n.e(t)}finally{n.f()}}))}t.on("insert",e,{priority:"highest"}),t.on("remove",e,{priority:"highest"}),t.on("attribute",e,{priority:"highest"}),t.on("selection",e,{priority:"highest"})}))}(t,"linkHref",0,"ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}},{key:"_enableAutomaticDecorators",value:function(t){var e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:Rf,callback:function(t){return jf.test(t)},attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}},{key:"_enableManualDecorators",value:function(t){if(t.length){var e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach((function(t){e.model.schema.extend("$text",{allowAttributes:t.id}),n.add(new If(t)),e.conversion.for("downcast").attributeToElement({model:t.id,view:function(e,r){var i=r.writer;if(e){var o=n.get(t.id).attributes,a=i.createAttributeElement("a",o,{priority:5});return i.setCustomProperty("link",!0,a),a}}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:n.get(t.id).attributes},model:{key:t.id}})}))}}},{key:"_enableInsertContentSelectionAttributesFixer",value:function(){var t=this.editor,e=t.model,n=e.document.selection,r=t.commands.get("link");this.listenTo(e,"insertContent",(function(){var t=n.anchor.nodeBefore,i=n.anchor.nodeAfter;n.hasAttribute("linkHref")&&t&&t.hasAttribute("linkHref")&&(i&&i.hasAttribute("linkHref")||e.change((function(t){Nf(t,r.manualDecorators)})))}),{priority:"low"})}},{key:"_enableClickingAfterLink",value:function(){var t=this.editor,e=t.commands.get("link");t.editing.view.addObserver(zc);var n=!1;this.listenTo(t.editing.view.document,"mousedown",(function(){n=!0})),this.listenTo(t.editing.view.document,"selectionChange",(function(){if(n){n=!1;var r=t.model.document.selection;if(r.isCollapsed&&r.hasAttribute("linkHref")){var i=r.getFirstPosition(),o=Uc(i,"linkHref",r.getAttribute("linkHref"),t.model);(i.isTouching(o.start)||i.isTouching(o.end))&&t.model.change((function(t){Nf(t,e.manualDecorators)}))}}}))}},{key:"_enableTypingOverLink",value:function(){var t,e,n=this.editor,r=n.editing.view;this.listenTo(r.document,"delete",(function(){e=!0}),{priority:"high"}),this.listenTo(n.model,"deleteContent",(function(){var r=n.model.document.selection;r.isCollapsed||(e?e=!1:Lf(n)&&function(t){var e=t.document.selection,n=e.getFirstPosition(),r=e.getLastPosition(),i=n.nodeAfter;return!!i&&(!!i.is("$text")&&(!!i.hasAttribute("linkHref")&&(i===(r.textNode||r.nodeBefore)||Uc(n,"linkHref",i.getAttribute("linkHref"),t).containsRange(t.createRange(n,r),!0))))}(n.model)&&(t=r.getAttributes()))}),{priority:"high"}),this.listenTo(n.model,"insertContent",(function(r,i){var o=l(i,1)[0];e=!1,Lf(n)&&t&&(n.model.change((function(e){var n,r=c(t);try{for(r.s();!(n=r.n()).done;){var i=l(n.value,2),a=i[0],s=i[1];e.setAttribute(a,s,o)}}catch(t){r.e(t)}finally{r.f()}})),t=null)}),{priority:"high"})}},{key:"_handleDeleteContentAfterLink",value:function(){var t=this.editor,e=t.model,n=e.document.selection,r=t.editing.view,i=t.commands.get("link"),o=!1,a=!1;this.listenTo(r.document,"delete",(function(t,e){a=e.domEvent.keyCode===Hr.backspace}),{priority:"high"}),this.listenTo(e,"deleteContent",(function(){o=!1;var t=n.getFirstPosition(),r=n.getAttribute("linkHref");if(r){var i=Uc(t,"linkHref",r,e);o=i.containsPosition(t)||i.end.isEqual(t)}}),{priority:"high"}),this.listenTo(e,"deleteContent",(function(){a&&(a=!1,o||t.model.enqueueChange((function(t){Nf(t,i.manualDecorators)})))}),{priority:"low"})}}]),n}(Rl);function Nf(t,e){t.removeSelectionAttribute("linkHref");var n,r=c(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t.removeSelectionAttribute(i.id)}}catch(t){r.e(t)}finally{r.f()}}function Lf(t){return t.plugins.get("Input").isInput(t.model.change((function(t){return t.batch})))}var Bf=function(){function t(e){h(this,t),this.context=e}return m(t,[{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!0}}]),t}();an(Bf,pr);var zf=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.on("show:warning",(function(t,e){window.alert(e.message)}),{priority:"lowest"})}},{key:"showSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}},{key:"showInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}},{key:"showWarning",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}},{key:"_showNotification",value:function(t){var e="show:"+t.type+(t.namespace?":"+t.namespace:"");this.fire(e,{message:t.message,type:t.type,title:t.title||""})}}],[{key:"pluginName",get:function(){return"Notification"}}]),n}(Bf),Ff=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).stopListening(r.editor.model.document,"change"),r.listenTo(r.editor.model.document,"change",(function(){return r.refresh()}),{priority:"low"}),r}return m(n,[{key:"refresh",value:function(){var t=this.editor.commands.get("imageInsert"),e=this.editor.commands.get("link");this.isEnabled=t.isEnabled||e.isEnabled}},{key:"execute",value:function(){var t=this.editor,e=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=e&&"modal"!=e)throw new Ye.b('ckfinder-unknown-openerMethod: The openerMethod config option must by "popup" or "modal".',t);var n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;var r=n.onInit;n.language||(n.language=t.locale.uiLanguage),n.onInit=function(e){r&&r(e),e.on("files:choose",(function(n){var r,i=n.data.files.toArray(),o=i.filter((function(t){return!t.isImage()})),a=i.filter((function(t){return t.isImage()})),s=c(o);try{for(s.s();!(r=s.n()).done;){var u=r.value;t.execute("link",u.getUrl())}}catch(t){s.e(t)}finally{s.f()}var l,f=[],d=c(a);try{for(d.s();!(l=d.n()).done;){var h=l.value,p=h.getUrl();f.push(p||e.request("file:getProxyUrl",{file:h}))}}catch(t){d.e(t)}finally{d.f()}f.length&&qf(t,f)})),e.on("file:choose:resizedImage",(function(e){var n=e.data.resizedUrl;if(n)qf(t,[n]);else{var r=t.plugins.get("Notification"),i=t.locale.t;r.showWarning(i("Could not obtain resized image URL."),{title:i("Selecting resized image failed"),namespace:"ckfinder"})}}))},window.CKFinder[e](n)}}]),n}(Dl);function qf(t,e){if(t.commands.get("imageInsert").isEnabled)t.execute("imageInsert",{source:e});else{var n=t.plugins.get("Notification"),r=t.locale.t;n.showWarning(r("Could not insert image at the current position."),{title:r("Inserting image failed"),namespace:"ckfinder"})}}var Vf=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor;t.commands.add("ckfinder",new Ff(t))}}],[{key:"pluginName",get:function(){return"CKFinderEditing"}},{key:"requires",get:function(){return[zf,Lc,Df]}}]),n}(Rl),$f=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.set("hasAny",!1),this._actions=new sn({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}},{key:"add",value:function(t){if("string"!=typeof t)throw new Ye.b("pendingactions-add-invalid-message: The message must be a string.",this);var e=Object.create(pr);return e.set("message",t),this._actions.add(e),this.hasAny=!0,e}},{key:"remove",value:function(t){this._actions.remove(t),this.hasAny=!!this._actions.length}},{key:Symbol.iterator,value:function(){return this._actions[Symbol.iterator]()}},{key:"first",get:function(){return this._actions.get(0)}}],[{key:"pluginName",get:function(){return"PendingActions"}}]),n}(Bf),Hf=function(){function t(){var e=this;h(this,t);var n=new window.FileReader;this._reader=n,this._data=void 0,this.set("loaded",0),n.onprogress=function(t){e.loaded=t.loaded}}return m(t,[{key:"read",value:function(t){var e=this,n=this._reader;return this.total=t.size,new Promise((function(r,i){n.onload=function(){var t=n.result;e._data=t,r(t)},n.onerror=function(){i("error")},n.onabort=function(){i("aborted")},e._reader.readAsDataURL(t)}))}},{key:"abort",value:function(){this._reader.abort()}},{key:"error",get:function(){return this._reader.error}},{key:"data",get:function(){return this._data}}]),t}();an(Hf,pr);var Uf=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this;this.loaders=new sn,this.loaders.on("add",(function(){return t._updatePendingAction()})),this.loaders.on("remove",(function(){return t._updatePendingAction()})),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(t,e){return e?t/e*100:0}))}},{key:"getLoader",value:function(t){return this._loadersMap.get(t)||null}},{key:"createLoader",value:function(t){var e=this;if(!this.createUploadAdapter)return console.warn(Object(Ye.a)("filerepository-no-upload-adapter: Upload adapter is not defined.")),null;var n=new Wf(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(n),this._loadersMap.set(t,n),t instanceof Promise&&n.file.then((function(t){e._loadersMap.set(t,n)})).catch((function(){})),n.on("change:uploaded",(function(){var t,n=0,r=c(e.loaders);try{for(r.s();!(t=r.n()).done;){n+=t.value.uploaded}}catch(t){r.e(t)}finally{r.f()}e.uploaded=n})),n.on("change:uploadTotal",(function(){var t,n=0,r=c(e.loaders);try{for(r.s();!(t=r.n()).done;){var i=t.value;i.uploadTotal&&(n+=i.uploadTotal)}}catch(t){r.e(t)}finally{r.f()}e.uploadTotal=n})),n}},{key:"destroyLoader",value:function(t){var e=this,n=t instanceof Wf?t:this.getLoader(t);n._destroy(),this.loaders.remove(n),this._loadersMap.forEach((function(t,r){t===n&&e._loadersMap.delete(r)}))}},{key:"_updatePendingAction",value:function(){var t=this.editor.plugins.get($f);if(this.loaders.length){if(!this._pendingAction){var e=this.editor.t,n=function(t){return"".concat(e("Upload in progress")," ").concat(parseInt(t),"%.")};this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}],[{key:"pluginName",get:function(){return"FileRepository"}},{key:"requires",get:function(){return[$f]}}]),n}(Rl);an(Uf,pr);var Wf=function(){function t(e,n){h(this,t),this.id=We(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=n(this),this._reader=new Hf,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(t,e){return e?t/e*100:0})),this.set("uploadResponse",null)}return m(t,[{key:"read",value:function(){var t=this;if("idle"!=this.status)throw new Ye.b("filerepository-read-wrong-status: You cannot call read if the status is different than idle.",this);return this.status="reading",this.file.then((function(e){return t._reader.read(e)})).then((function(e){if("reading"!==t.status)throw t.status;return t.status="idle",e})).catch((function(e){if("aborted"===e)throw t.status="aborted","aborted";throw t.status="error",t._reader.error?t._reader.error:e}))}},{key:"upload",value:function(){var t=this;if("idle"!=this.status)throw new Ye.b("filerepository-upload-wrong-status: You cannot call upload if the status is different than idle.",this);return this.status="uploading",this.file.then((function(){return t._adapter.upload()})).then((function(e){return t.uploadResponse=e,t.status="idle",e})).catch((function(e){if("aborted"===t.status)throw"aborted";throw t.status="error",e}))}},{key:"abort",value:function(){var t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==t?this._reader.abort():"uploading"==t&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((function(){})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}},{key:"_destroy",value:function(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}},{key:"_createFilePromiseWrapper",value:function(t){var e={};return e.promise=new Promise((function(n,r){e.rejecter=r,e.isFulfilled=!1,t.then((function(t){e.isFulfilled=!0,n(t)})).catch((function(t){e.isFulfilled=!0,r(t)}))})),e}},{key:"file",get:function(){var t=this;return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((function(e){return t._filePromiseWrapper?e:null})):Promise.resolve(null)}},{key:"data",get:function(){return this._reader.data}}]),t}();an(Wf,pr);var Kf="ckCsrfToken",Yf="abcdefghijklmnopqrstuvwxyz0123456789";var Gf=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor.config.get("ckfinder.uploadUrl");e&&(this.editor.plugins.get(Uf).createUploadAdapter=function(n){return new Zf(n,e,t.editor.t)})}}],[{key:"requires",get:function(){return[Uf]}},{key:"pluginName",get:function(){return"CKFinderUploadAdapter"}}]),n}(Rl),Zf=function(){function t(e,n,r){h(this,t),this.loader=e,this.url=n,this.t=r}return m(t,[{key:"upload",value:function(){var t=this;return this.loader.file.then((function(e){return new Promise((function(n,r){t._initRequest(),t._initListeners(n,r,e),t._sendRequest(e)}))}))}},{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"_initRequest",value:function(){var t=this.xhr=new XMLHttpRequest;t.open("POST",this.url,!0),t.responseType="json"}},{key:"_initListeners",value:function(t,e,n){var r=this.xhr,i=this.loader,o=(0,this.t)("Cannot upload file:")+" ".concat(n.name,".");r.addEventListener("error",(function(){return e(o)})),r.addEventListener("abort",(function(){return e()})),r.addEventListener("load",(function(){var n=r.response;if(!n||!n.uploaded)return e(n&&n.error&&n.error.message?n.error.message:o);t({default:n.url})})),r.upload&&r.upload.addEventListener("progress",(function(t){t.lengthComputable&&(i.uploadTotal=t.total,i.uploaded=t.loaded)}))}},{key:"_sendRequest",value:function(t){var e=new FormData;e.append("upload",t),e.append("ckCsrfToken",function(){var t,e=function(t){t=t.toLowerCase();var e,n=c(document.cookie.split(";"));try{for(n.s();!(e=n.n()).done;){var r=e.value.split("=");if(decodeURIComponent(r[0].trim().toLowerCase())===t)return decodeURIComponent(r[1])}}catch(t){n.e(t)}finally{n.f()}return null}(Kf);return e&&40==e.length||(e=function(t){var e="",n=new Uint8Array(40);window.crypto.getRandomValues(n);for(var r=0;r<n.length;r++){var i=Yf.charAt(n[r]%Yf.length);e+=Math.random()>.5?i.toUpperCase():i}return e}(),Kf,t=e,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(t)+";path=/"),e}()),this.xhr.send(e)}}]),t}();function Jf(t,e){var n,r,i;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:n=c(e),o.prev=1,n.s();case 3:if((r=n.n()).done){o.next=11;break}if(i=r.value,o.t0=i&&t.getAttributeProperties(i[0]).copyOnEnter,!o.t0){o.next=9;break}return o.next=9,i;case 9:o.next=3;break;case 11:o.next=16;break;case 13:o.prev=13,o.t1=o.catch(1),n.e(o.t1);case 16:return o.prev=16,n.f(),o.finish(16);case 19:case"end":return o.stop()}}),f,null,[[1,13,16,19]])}var Xf=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var t=this,e=this.editor.model,n=e.document;e.change((function(r){!function(t,e,n,r){var i=n.isCollapsed,o=n.getFirstRange(),a=o.start.parent,s=o.end.parent;if(r.isLimit(a)||r.isLimit(s))i||a!=s||t.deleteContent(n);else if(i){var u=Jf(e.model.schema,n.getAttributes());Qf(e,o.start),e.setSelectionAttribute(u)}else{var l=!(o.start.isAtStart&&o.end.isAtEnd),c=a==s;t.deleteContent(n,{leaveUnmerged:l}),l&&(c?Qf(e,n.focus):e.setSelection(s,0))}}(t.editor.model,r,n.selection,e.schema),t.fire("afterExecute",{writer:r})}))}}]),n}(Dl);function Qf(t,e){t.split(e),t.setSelection(e.parent.nextSibling,0)}var td=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n);var i=(r=e.call(this,t)).document;return i.on("keydown",(function(t,e){var n;r.isEnabled&&e.keyCode==Hr.enter&&(i.once("enter",(function(t){return n=t}),{priority:"highest"}),i.fire("enter",new lo(i,e.domEvent,{isSoft:e.shiftKey})),n&&n.stop.called&&t.stop())})),r}return m(n,[{key:"observe",value:function(){}}]),n}(Hi),ed=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor,e=t.editing.view,n=e.document;e.addObserver(td),t.commands.add("enter",new Xf(t)),this.listenTo(n,"enter",(function(n,r){r.preventDefault(),r.isSoft||(t.execute("enter"),e.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Enter"}}]),n}(Rl),nd=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var t=this,e=this.editor.model,n=e.document;e.change((function(r){!function(t,e,n){var r=n.isCollapsed,i=n.getFirstRange(),o=i.start.parent,a=i.end.parent,s=o==a;if(r){var u=Jf(t.schema,n.getAttributes());rd(t,e,i.end),e.removeSelectionAttribute(n.getAttributeKeys()),e.setSelectionAttribute(u)}else{var l=!(i.start.isAtStart&&i.end.isAtEnd);t.deleteContent(n,{leaveUnmerged:l}),s?rd(t,e,n.focus):l&&e.setSelection(a,0)}}(e,r,n.selection),t.fire("afterExecute",{writer:r})}))}},{key:"refresh",value:function(){var t=this.editor.model,e=t.document;this.isEnabled=function(t,e){if(e.rangeCount>1)return!1;var n=e.anchor;if(!n||!t.checkChild(n,"softBreak"))return!1;var r=e.getFirstRange(),i=r.start.parent,o=r.end.parent;return!id(i,t)&&!id(o,t)||i===o}(t.schema,e.selection)}}]),n}(Dl);function rd(t,e,n){var r=e.createElement("softBreak");t.insertContent(r,n),e.setSelection(r,"after")}function id(t,e){return!t.is("rootElement")&&(e.isLimit(t)||id(t.parent,e))}var od=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema,n=t.conversion,r=t.editing.view,i=r.document;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:function(t,e){return e.writer.createEmptyElement("br")}}),r.addObserver(td),t.commands.add("shiftEnter",new nd(t)),this.listenTo(i,"enter",(function(e,n){n.preventDefault(),n.isSoft&&(t.execute("shiftEnter"),r.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ShiftEnter"}}]),n}(Rl),ad=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var t=this.editor.model,e=t.document.selection,n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!sd(t.schema,n))do{if(!(n=n.parent))return}while(!sd(t.schema,n));t.change((function(t){t.setSelection(n,"in")}))}}]),n}(Dl);function sd(t,e){return t.isLimit(e)&&(t.checkChild(e,"$text")||t.checkChild(e,"paragraph"))}var ud=Wr("Ctrl+A"),ld=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor,e=t.editing.view.document;t.commands.add("selectAll",new ad(t)),this.listenTo(e,"keydown",(function(e,n){Ur(n)===ud&&(t.execute("selectAll"),n.preventDefault())}))}}],[{key:"pluginName",get:function(){return"SelectAllEditing"}}]),n}(Rl),cd=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor;e.ui.componentFactory.add("selectAll",(function(n){var r=e.commands.get("selectAll"),i=new vl(n),o=n.t;return i.set({label:o("Select all"),icon:'<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),t.listenTo(i,"execute",(function(){e.execute("selectAll"),e.editing.view.focus()})),i}))}}],[{key:"pluginName",get:function(){return"SelectAllUI"}}]),n}(Rl),fd=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[ld,cd]}},{key:"pluginName",get:function(){return"SelectAll"}}]),n}(Rl),dd=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),(i=e.call(this,t)).direction=r,i._buffer=new Kc(t.model,t.config.get("typing.undoStep")),i}return m(n,[{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document;n.enqueueChange(this._buffer.batch,(function(i){t._buffer.lock();var o=i.createSelection(e.selection||r.selection),a=o.isCollapsed;if(o.isCollapsed&&n.modifySelection(o,{direction:t.direction,unit:e.unit}),t._shouldEntireContentBeReplacedWithParagraph(e.sequence||1))t._replaceEntireContentWithParagraph(i);else if(!o.isCollapsed){var s=0;o.getFirstRange().getMinimalFlatRanges().forEach((function(t){s+=Ar(t.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),n.deleteContent(o,{doNotResetEntireContent:a,direction:t.direction}),t._buffer.input(s),i.setSelection(o),t._buffer.unlock()}}))}},{key:"_shouldEntireContentBeReplacedWithParagraph",value:function(t){if(t>1)return!1;var e=this.editor.model,n=e.document.selection,r=e.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(r))return!1;if(!e.schema.checkChild(r,"paragraph"))return!1;var i=r.getChild(0);return!i||"paragraph"!==i.name}},{key:"_replaceEntireContentWithParagraph",value:function(t){var e=this.editor.model,n=e.document.selection,r=e.schema.getLimitElement(n),i=t.createElement("paragraph");t.remove(t.createRangeIn(r)),t.insert(i,r),t.setSelection(i,0)}},{key:"buffer",get:function(){return this._buffer}}]),n}(Dl),hd=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n),r=e.call(this,t);var i=t.document,o=0;function a(t,e,n){var r;i.once("delete",(function(t){return r=t}),{priority:Number.POSITIVE_INFINITY}),i.fire("delete",new lo(i,e,n)),r&&r.stop.called&&t.stop()}return i.on("keyup",(function(t,e){e.keyCode!=Hr.delete&&e.keyCode!=Hr.backspace||(o=0)})),i.on("keydown",(function(t,e){var n={};if(e.keyCode==Hr.delete)n.direction="forward",n.unit="character";else{if(e.keyCode!=Hr.backspace)return;n.direction="backward",n.unit="codePoint"}var r=Lr?e.altKey:e.ctrlKey;n.unit=r?"word":n.unit,n.sequence=++o,a(t,e.domEvent,n)})),Fr&&i.on("beforeinput",(function(e,n){if("deleteContentBackward"==n.domEvent.inputType){var r={unit:"codepoint",direction:"backward",sequence:1},i=n.domTarget.ownerDocument.defaultView.getSelection();i.anchorNode==i.focusNode&&i.anchorOffset+1!=i.focusOffset&&(r.selectionToRemove=t.domConverter.domSelectionToView(i)),a(e,n.domEvent,r)}})),r}return m(n,[{key:"observe",value:function(){}}]),n}(Hi),pd=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor,e=t.editing.view,n=e.document;if(e.addObserver(hd),t.commands.add("forwardDelete",new dd(t,"forward")),t.commands.add("delete",new dd(t,"backward")),this.listenTo(n,"delete",(function(n,r){var i={unit:r.unit,sequence:r.sequence};if(r.selectionToRemove){var o,a=t.model.createSelection(),s=[],u=c(r.selectionToRemove.getRanges());try{for(u.s();!(o=u.n()).done;){var l=o.value;s.push(t.editing.mapper.toModelRange(l))}}catch(t){u.e(t)}finally{u.f()}a.setTo(s),i.selection=a}t.execute("forward"==r.direction?"forwardDelete":"delete",i),r.preventDefault(),e.scrollToTheSelection()})),Fr){var r=null;this.listenTo(n,"delete",(function(t,e){var n=e.domTarget.ownerDocument.defaultView.getSelection();r={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}),{priority:"lowest"}),this.listenTo(n,"keyup",(function(t,e){if(r){var n=e.domTarget.ownerDocument.defaultView.getSelection();n.collapse(r.anchorNode,r.anchorOffset),n.extend(r.focusNode,r.focusOffset),r=null}}))}}}],[{key:"pluginName",get:function(){return"Delete"}}]),n}(Rl),md=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[rf,pd]}},{key:"pluginName",get:function(){return"Typing"}}]),n}(Rl),vd=new Map;function gd(t,e,n){var r=vd.get(t);r||(r=new Map,vd.set(t,r)),r.set(e,n)}function bd(t){return[t]}function yd(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(t,e){var n=vd.get(t);return n&&n.has(e)?n.get(e):bd}(t.constructor,e.constructor);try{return r(t=t.clone(),e,n)}catch(t){throw t}}function wd(t,e,n){t=t.slice(),e=e.slice();var r=new _d(n.document,n.useRelations,n.forceWeakRemove);r.setOriginalOperations(t),r.setOriginalOperations(e);var i=r.originalOperations;if(0==t.length||0==e.length)return{operationsA:t,operationsB:e,originalOperations:i};var o,a=new WeakMap,s=c(t);try{for(s.s();!(o=s.n()).done;){var l=o.value;a.set(l,0)}}catch(t){s.e(t)}finally{s.f()}for(var f={nextBaseVersionA:t[t.length-1].baseVersion+1,nextBaseVersionB:e[e.length-1].baseVersion+1,originalOperationsACount:t.length,originalOperationsBCount:e.length},d=0;d<t.length;){var h,p,m=t[d],v=a.get(m);if(v!=e.length){var g=e[v],b=yd(m,g,r.getContext(m,g,!0)),y=yd(g,m,r.getContext(g,m,!1));r.updateRelation(m,g),r.setOriginalOperations(b,m),r.setOriginalOperations(y,g);var w,_=c(b);try{for(_.s();!(w=_.n()).done;){var k=w.value;a.set(k,v+y.length)}}catch(t){_.e(t)}finally{_.f()}(h=t).splice.apply(h,[d,1].concat(u(b))),(p=e).splice.apply(p,[v,1].concat(u(y)))}else d++}if(n.padWithNoOps){var M=t.length-f.originalOperationsACount,x=e.length-f.originalOperationsBCount;Md(t,x-M),Md(e,M-x)}return kd(t,f.nextBaseVersionB),kd(e,f.nextBaseVersionA),{operationsA:t,operationsB:e,originalOperations:i}}var _d=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];h(this,t),this.originalOperations=new Map,this._history=e.history,this._useRelations=n,this._forceWeakRemove=!!r,this._relations=new Map}return m(t,[{key:"setOriginalOperations",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=n?this.originalOperations.get(n):null,i=c(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;this.originalOperations.set(o,r||o)}}catch(t){i.e(t)}finally{i.f()}}},{key:"updateRelation",value:function(t,e){switch(t.constructor){case ws:switch(e.constructor){case Ss:t.targetPosition.isEqual(e.sourcePosition)||e.movedRange.containsPosition(t.targetPosition)?this._setRelation(t,e,"insertAtSource"):t.targetPosition.isEqual(e.deletionPosition)?this._setRelation(t,e,"insertBetween"):t.targetPosition.isAfter(e.sourcePosition)&&this._setRelation(t,e,"moveTargetAfter");break;case ws:t.targetPosition.isEqual(e.sourcePosition)||t.targetPosition.isBefore(e.sourcePosition)?this._setRelation(t,e,"insertBefore"):this._setRelation(t,e,"insertAfter")}break;case Cs:switch(e.constructor){case Ss:t.splitPosition.isBefore(e.sourcePosition)&&this._setRelation(t,e,"splitBefore");break;case ws:(t.splitPosition.isEqual(e.sourcePosition)||t.splitPosition.isBefore(e.sourcePosition))&&this._setRelation(t,e,"splitBefore")}break;case Ss:switch(e.constructor){case Ss:t.targetPosition.isEqual(e.sourcePosition)||this._setRelation(t,e,"mergeTargetNotMoved"),t.sourcePosition.isEqual(e.targetPosition)&&this._setRelation(t,e,"mergeSourceNotMoved"),t.sourcePosition.isEqual(e.sourcePosition)&&this._setRelation(t,e,"mergeSameElement");break;case Cs:t.sourcePosition.isEqual(e.splitPosition)&&this._setRelation(t,e,"splitAtSource")}break;case ks:var n=t.newRange;if(!n)return;switch(e.constructor){case ws:var r=na._createFromPositionAndShift(e.sourcePosition,e.howMany),i=r.containsPosition(n.start)||r.start.isEqual(n.start),o=r.containsPosition(n.end)||r.end.isEqual(n.end);!i&&!o||r.containsRange(n)||this._setRelation(t,e,{side:i?"left":"right",path:i?n.start.path.slice():n.end.path.slice()});break;case Ss:var a=n.start.isEqual(e.targetPosition),s=n.start.isEqual(e.deletionPosition),u=n.end.isEqual(e.deletionPosition),l=n.end.isEqual(e.sourcePosition);(a||s||u||l)&&this._setRelation(t,e,{wasInLeftElement:a,wasStartBeforeMergedElement:s,wasEndBeforeMergedElement:u,wasInRightElement:l})}}}},{key:"getContext",value:function(t,e,n){return{aIsStrong:n,aWasUndone:this._wasUndone(t),bWasUndone:this._wasUndone(e),abRelation:this._useRelations?this._getRelation(t,e):null,baRelation:this._useRelations?this._getRelation(e,t):null,forceWeakRemove:this._forceWeakRemove}}},{key:"_wasUndone",value:function(t){var e=this.originalOperations.get(t);return e.wasUndone||this._history.isUndoneOperation(e)}},{key:"_getRelation",value:function(t,e){var n=this.originalOperations.get(e),r=this._history.getUndoneOperation(n);if(!r)return null;var i=this.originalOperations.get(t),o=this._relations.get(i);return o&&o.get(r)||null}},{key:"_setRelation",value:function(t,e,n){var r=this.originalOperations.get(t),i=this.originalOperations.get(e),o=this._relations.get(r);o||(o=new Map,this._relations.set(r,o)),o.set(i,n)}}]),t}();function kd(t,e){var n,r=c(t);try{for(r.s();!(n=r.n()).done;){n.value.baseVersion=e++}}catch(t){r.e(t)}finally{r.f()}}function Md(t,e){for(var n=0;n<e;n++)t.push(new Ws(0))}function xd(t,e,n){var r=t.nodes.getNode(0).getAttribute(e);if(r==n)return null;var i=new na(t.position,t.position.getShiftedBy(t.howMany));return new bs(i,e,r,n,0)}function Sd(t,e){return null===t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany)}function Cd(t,e){for(var n=[],r=0;r<t.length;r++){var i=t[r],o=new ws(i.start,i.end.offset-i.start.offset,e,0);n.push(o);for(var a=r+1;a<t.length;a++)t[a]=t[a]._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)[0];e=e._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)}return n}gd(bs,bs,(function(t,e,n){if(t.key===e.key&&t.range.start.hasSameParentAs(e.range.start)){var r=t.range.getDifference(e.range).map((function(e){return new bs(e,t.key,t.oldValue,t.newValue,0)})),i=t.range.getIntersection(e.range);return i&&n.aIsStrong&&r.push(new bs(i,e.key,e.newValue,t.newValue,0)),0==r.length?[new Ws(0)]:r}return[t]})),gd(bs,_s,(function(t,e){if(t.range.start.hasSameParentAs(e.position)&&t.range.containsPosition(e.position)){var n=t.range._getTransformedByInsertion(e.position,e.howMany,!e.shouldReceiveAttributes).map((function(e){return new bs(e,t.key,t.oldValue,t.newValue,t.baseVersion)}));if(e.shouldReceiveAttributes){var r=xd(e,t.key,t.oldValue);r&&n.unshift(r)}return n}return t.range=t.range._getTransformedByInsertion(e.position,e.howMany,!1)[0],[t]})),gd(bs,Ss,(function(t,e){var n=[];t.range.start.hasSameParentAs(e.deletionPosition)&&(t.range.containsPosition(e.deletionPosition)||t.range.start.isEqual(e.deletionPosition))&&n.push(na._createFromPositionAndShift(e.graveyardPosition,1));var r=t.range._getTransformedByMergeOperation(e);return r.isCollapsed||n.push(r),n.map((function(e){return new bs(e,t.key,t.oldValue,t.newValue,t.baseVersion)}))})),gd(bs,ws,(function(t,e){return function(t,e){var n=na._createFromPositionAndShift(e.sourcePosition,e.howMany),r=null,i=[];n.containsRange(t,!0)?r=t:t.start.hasSameParentAs(n.start)?(i=t.getDifference(n),r=t.getIntersection(n)):i=[t];var o,a=[],s=c(i);try{for(s.s();!(o=s.n()).done;){var l=o.value;l=l._getTransformedByDeletion(e.sourcePosition,e.howMany);var f=e.getMovedRangeStart(),d=l.start.hasSameParentAs(f);l=l._getTransformedByInsertion(f,e.howMany,d),a.push.apply(a,u(l))}}catch(t){s.e(t)}finally{s.f()}return r&&a.push(r._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,!1)[0]),a}(t.range,e).map((function(e){return new bs(e,t.key,t.oldValue,t.newValue,t.baseVersion)}))})),gd(bs,Cs,(function(t,e){if(t.range.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.range.end.offset++,[t];if(t.range.start.hasSameParentAs(e.splitPosition)&&t.range.containsPosition(e.splitPosition)){var n=t.clone();return n.range=new na(e.moveTargetPosition.clone(),t.range.end._getCombined(e.splitPosition,e.moveTargetPosition)),t.range.end=e.splitPosition.clone(),t.range.end.stickiness="toPrevious",[t,n]}return t.range=t.range._getTransformedBySplitOperation(e),[t]})),gd(_s,bs,(function(t,e){var n=[t];if(t.shouldReceiveAttributes&&t.position.hasSameParentAs(e.range.start)&&e.range.containsPosition(t.position)){var r=xd(t,e.key,e.newValue);r&&n.push(r)}return n})),gd(_s,_s,(function(t,e,n){return t.position.isEqual(e.position)&&n.aIsStrong||(t.position=t.position._getTransformedByInsertOperation(e)),[t]})),gd(_s,ws,(function(t,e){return t.position=t.position._getTransformedByMoveOperation(e),[t]})),gd(_s,Cs,(function(t,e){return t.position=t.position._getTransformedBySplitOperation(e),[t]})),gd(_s,Ss,(function(t,e){return t.position=t.position._getTransformedByMergeOperation(e),[t]})),gd(ks,_s,(function(t,e){return t.oldRange&&(t.oldRange=t.oldRange._getTransformedByInsertOperation(e)[0]),t.newRange&&(t.newRange=t.newRange._getTransformedByInsertOperation(e)[0]),[t]})),gd(ks,ks,(function(t,e,n){if(t.name==e.name){if(!n.aIsStrong)return[new Ws(0)];t.oldRange=e.newRange?e.newRange.clone():null}return[t]})),gd(ks,Ss,(function(t,e){return t.oldRange&&(t.oldRange=t.oldRange._getTransformedByMergeOperation(e)),t.newRange&&(t.newRange=t.newRange._getTransformedByMergeOperation(e)),[t]})),gd(ks,ws,(function(t,e,n){if(t.oldRange&&(t.oldRange=na._createFromRanges(t.oldRange._getTransformedByMoveOperation(e))),t.newRange){if(n.abRelation){var r=na._createFromRanges(t.newRange._getTransformedByMoveOperation(e));if("left"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.start))return t.newRange.start.path=n.abRelation.path,t.newRange.end=r.end,[t];if("right"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.end))return t.newRange.start=r.start,t.newRange.end.path=n.abRelation.path,[t]}t.newRange=na._createFromRanges(t.newRange._getTransformedByMoveOperation(e))}return[t]})),gd(ks,Cs,(function(t,e,n){if(t.oldRange&&(t.oldRange=t.oldRange._getTransformedBySplitOperation(e)),t.newRange){if(n.abRelation){var r=t.newRange._getTransformedBySplitOperation(e);return t.newRange.start.isEqual(e.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?t.newRange.start=Xo._createAt(e.insertionPosition):t.newRange.start.isEqual(e.splitPosition)&&!n.abRelation.wasInLeftElement&&(t.newRange.start=Xo._createAt(e.moveTargetPosition)),t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasInRightElement?t.newRange.end=Xo._createAt(e.moveTargetPosition):t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?t.newRange.end=Xo._createAt(e.insertionPosition):t.newRange.end=r.end,[t]}t.newRange=t.newRange._getTransformedBySplitOperation(e)}return[t]})),gd(Ss,_s,(function(t,e){return t.sourcePosition.hasSameParentAs(e.position)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByInsertOperation(e),t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e),[t]})),gd(Ss,Ss,(function(t,e,n){if(t.sourcePosition.isEqual(e.sourcePosition)&&t.targetPosition.isEqual(e.targetPosition)){if(n.bWasUndone){var r=e.graveyardPosition.path.slice();return r.push(0),t.sourcePosition=new Xo(e.graveyardPosition.root,r),t.howMany=0,[t]}return[new Ws(0)]}if(t.sourcePosition.isEqual(e.sourcePosition)&&!t.targetPosition.isEqual(e.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){var i="$graveyard"==t.targetPosition.root.rootName,o="$graveyard"==e.targetPosition.root.rootName;if(o&&!i||!(i&&!o)&&n.aIsStrong){var a=e.targetPosition._getTransformedByMergeOperation(e),s=t.targetPosition._getTransformedByMergeOperation(e);return[new ws(a,t.howMany,s,0)]}return[new Ws(0)]}return t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMergeOperation(e),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),t.graveyardPosition.isEqual(e.graveyardPosition)&&n.aIsStrong||(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),gd(Ss,ws,(function(t,e,n){var r=na._createFromPositionAndShift(e.sourcePosition,e.howMany);return"remove"==e.type&&!n.bWasUndone&&!n.forceWeakRemove&&t.deletionPosition.hasSameParentAs(e.sourcePosition)&&r.containsPosition(t.sourcePosition)?[new Ws(0)]:(t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition.hasSameParentAs(e.sourcePosition)&&(t.howMany-=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMoveOperation(e),t.targetPosition=t.targetPosition._getTransformedByMoveOperation(e),t.graveyardPosition.isEqual(e.targetPosition)||(t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)),[t])})),gd(Ss,Cs,(function(t,e,n){if(e.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByDeletion(e.graveyardPosition,1),t.deletionPosition.isEqual(e.graveyardPosition)&&(t.howMany=e.howMany)),t.targetPosition.isEqual(e.splitPosition)){var r=0!=e.howMany,i=e.graveyardPosition&&t.deletionPosition.isEqual(e.graveyardPosition);if(r||i||"mergeTargetNotMoved"==n.abRelation)return t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),[t]}if(t.sourcePosition.isEqual(e.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return t.howMany=0,t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t];if("mergeSameElement"==n.abRelation||t.sourcePosition.offset>0)return t.sourcePosition=e.moveTargetPosition.clone(),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]}return t.sourcePosition.hasSameParentAs(e.splitPosition)&&(t.howMany=e.splitPosition.offset),t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t]})),gd(ws,_s,(function(t,e){var n=na._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByInsertOperation(e,!1)[0];return t.sourcePosition=n.start,t.howMany=n.end.offset-n.start.offset,t.targetPosition.isEqual(e.position)||(t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e)),[t]})),gd(ws,ws,(function(t,e,n){var r,i=na._createFromPositionAndShift(t.sourcePosition,t.howMany),o=na._createFromPositionAndShift(e.sourcePosition,e.howMany),a=n.aIsStrong,s=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?s=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(s=!1),r=t.targetPosition.isEqual(e.targetPosition)&&s?t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany):t.targetPosition._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Sd(t,e)&&Sd(e,t))return[e.getReversed()];if(i.containsPosition(e.targetPosition)&&i.containsRange(o,!0))return i.start=i.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),i.end=i.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Cd([i],r);if(o.containsPosition(t.targetPosition)&&o.containsRange(i,!0))return i.start=i.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),i.end=i.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),Cd([i],r);var l=pn(t.sourcePosition.getParentPath(),e.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return i.start=i.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),i.end=i.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Cd([i],r);"remove"!=t.type||"remove"==e.type||n.aWasUndone||n.forceWeakRemove?"remove"==t.type||"remove"!=e.type||n.bWasUndone||n.forceWeakRemove||(a=!1):a=!0;var f,d=[],h=c(i.getDifference(o));try{for(h.s();!(f=h.n()).done;){var p=f.value;p.start=p.start._getTransformedByDeletion(e.sourcePosition,e.howMany),p.end=p.end._getTransformedByDeletion(e.sourcePosition,e.howMany);var m="same"==pn(p.start.getParentPath(),e.getMovedRangeStart().getParentPath()),v=p._getTransformedByInsertion(e.getMovedRangeStart(),e.howMany,m);d.push.apply(d,u(v))}}catch(t){h.e(t)}finally{h.f()}var g=i.getIntersection(o);return null!==g&&a&&(g.start=g.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),g.end=g.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),0===d.length?d.push(g):1==d.length?o.start.isBefore(i.start)||o.start.isEqual(i.start)?d.unshift(g):d.push(g):d.splice(1,0,g)),0===d.length?[new Ws(t.baseVersion)]:Cd(d,r)})),gd(ws,Cs,(function(t,e,n){var r=t.targetPosition.clone();t.targetPosition.isEqual(e.insertionPosition)&&e.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(r=t.targetPosition._getTransformedBySplitOperation(e));var i=na._createFromPositionAndShift(t.sourcePosition,t.howMany);if(i.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.howMany++,t.targetPosition=r,[t];if(i.start.hasSameParentAs(e.splitPosition)&&i.containsPosition(e.splitPosition)){var o=new na(e.splitPosition,i.end);return o=o._getTransformedBySplitOperation(e),Cd([new na(i.start,e.splitPosition),o],r)}t.targetPosition.isEqual(e.splitPosition)&&"insertAtSource"==n.abRelation&&(r=e.moveTargetPosition),t.targetPosition.isEqual(e.insertionPosition)&&"insertBetween"==n.abRelation&&(r=t.targetPosition);var a=[i._getTransformedBySplitOperation(e)];if(e.graveyardPosition){var s=i.start.isEqual(e.graveyardPosition)||i.containsPosition(e.graveyardPosition);t.howMany>1&&s&&!n.aWasUndone&&a.push(na._createFromPositionAndShift(e.insertionPosition,1))}return Cd(a,r)})),gd(ws,Ss,(function(t,e,n){var r=na._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.deletionPosition.hasSameParentAs(t.sourcePosition)&&r.containsPosition(e.sourcePosition))if("remove"!=t.type||n.forceWeakRemove){if(1==t.howMany)return n.bWasUndone?(t.sourcePosition=e.graveyardPosition.clone(),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]):[new Ws(0)]}else if(!n.aWasUndone){var i=[],o=e.graveyardPosition.clone(),a=e.targetPosition._getTransformedByMergeOperation(e);t.howMany>1&&(i.push(new ws(t.sourcePosition,t.howMany-1,t.targetPosition,0)),o=o._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1),a=a._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1));var s=e.deletionPosition._getCombined(t.sourcePosition,t.targetPosition),u=new ws(o,1,s,0),l=u.getMovedRangeStart().path.slice();l.push(0);var c=new Xo(u.targetPosition.root,l);a=a._getTransformedByMove(o,s,1);var f=new ws(a,e.howMany,c,0);return i.push(u),i.push(f),i}var d=na._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByMergeOperation(e);return t.sourcePosition=d.start,t.howMany=d.end.offset-d.start.offset,t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]})),gd(Ms,_s,(function(t,e){return t.position=t.position._getTransformedByInsertOperation(e),[t]})),gd(Ms,Ss,(function(t,e){return t.position.isEqual(e.deletionPosition)?(t.position=e.graveyardPosition.clone(),t.position.stickiness="toNext",[t]):(t.position=t.position._getTransformedByMergeOperation(e),[t])})),gd(Ms,ws,(function(t,e){return t.position=t.position._getTransformedByMoveOperation(e),[t]})),gd(Ms,Ms,(function(t,e,n){if(t.position.isEqual(e.position)){if(!n.aIsStrong)return[new Ws(0)];t.oldName=e.newName}return[t]})),gd(Ms,Cs,(function(t,e){if("same"==pn(t.position.path,e.splitPosition.getParentPath())&&!e.graveyardPosition){var n=new Ms(t.position.getShiftedBy(1),t.oldName,t.newName,0);return[t,n]}return t.position=t.position._getTransformedBySplitOperation(e),[t]})),gd(xs,xs,(function(t,e,n){if(t.root===e.root&&t.key===e.key){if(!n.aIsStrong||t.newValue===e.newValue)return[new Ws(0)];t.oldValue=e.newValue}return[t]})),gd(Cs,_s,(function(t,e){return t.splitPosition.hasSameParentAs(e.position)&&t.splitPosition.offset<e.position.offset&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByInsertOperation(e),t.insertionPosition=Cs.getInsertionPosition(t.splitPosition),[t]})),gd(Cs,Ss,(function(t,e,n){if(!t.graveyardPosition&&!n.bWasUndone&&t.splitPosition.hasSameParentAs(e.sourcePosition)){var r=e.graveyardPosition.path.slice();r.push(0);var i=new Xo(e.graveyardPosition.root,r),o=Cs.getInsertionPosition(new Xo(e.graveyardPosition.root,r)),a=new Cs(i,0,null,0);return a.insertionPosition=o,t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Cs.getInsertionPosition(t.splitPosition),t.graveyardPosition=a.insertionPosition.clone(),t.graveyardPosition.stickiness="toNext",[a,t]}return t.splitPosition.hasSameParentAs(e.deletionPosition)&&!t.splitPosition.isAfter(e.deletionPosition)&&t.howMany--,t.splitPosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=Cs.getInsertionPosition(t.splitPosition),t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),gd(Cs,ws,(function(t,e,n){var r=na._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.graveyardPosition){var i=r.start.isEqual(t.graveyardPosition)||r.containsPosition(t.graveyardPosition);if(!n.bWasUndone&&i){var o=t.splitPosition._getTransformedByMoveOperation(e),a=t.graveyardPosition._getTransformedByMoveOperation(e),s=a.path.slice();s.push(0);var u=new Xo(a.root,s);return[new ws(o,t.howMany,u,0)]}t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)}if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&r.containsPosition(t.splitPosition)){var l=e.howMany-(t.splitPosition.offset-e.sourcePosition.offset);return t.howMany-=l,t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany),t.splitPosition=e.sourcePosition.clone(),t.insertionPosition=Cs.getInsertionPosition(t.splitPosition),[t]}return!t.splitPosition.isEqual(e.targetPosition)||"insertAtSource"!=n.baRelation&&"splitBefore"!=n.abRelation?(e.sourcePosition.isEqual(e.targetPosition)||(t.splitPosition.hasSameParentAs(e.sourcePosition)&&t.splitPosition.offset<=e.sourcePosition.offset&&(t.howMany-=e.howMany),t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany)),t.splitPosition.stickiness="toNone",t.splitPosition=t.splitPosition._getTransformedByMoveOperation(e),t.splitPosition.stickiness="toNext",t.graveyardPosition?t.insertionPosition=t.insertionPosition._getTransformedByMoveOperation(e):t.insertionPosition=Cs.getInsertionPosition(t.splitPosition),[t]):(t.howMany+=e.howMany,t.splitPosition=t.splitPosition._getTransformedByDeletion(e.sourcePosition,e.howMany),t.insertionPosition=Cs.getInsertionPosition(t.splitPosition),[t])})),gd(Cs,Cs,(function(t,e,n){if(t.splitPosition.isEqual(e.splitPosition)){if(!t.graveyardPosition&&!e.graveyardPosition)return[new Ws(0)];if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition))return[new Ws(0)];if("splitBefore"==n.abRelation)return t.howMany=0,t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e),[t]}if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition)){var r="$graveyard"==t.splitPosition.root.rootName,i="$graveyard"==e.splitPosition.root.rootName;if(i&&!r||!(r&&!i)&&n.aIsStrong){var o=[];return e.howMany&&o.push(new ws(e.moveTargetPosition,e.howMany,e.splitPosition,0)),t.howMany&&o.push(new ws(t.splitPosition,t.howMany,t.moveTargetPosition,0)),o}return[new Ws(0)]}if(t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e)),t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.abRelation)return t.howMany++,[t];if(e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.baRelation){var a=e.insertionPosition.path.slice();a.push(0);var s=new Xo(e.insertionPosition.root,a);return[t,new ws(t.insertionPosition,1,s,0)]}return t.splitPosition.hasSameParentAs(e.splitPosition)&&t.splitPosition.offset<e.splitPosition.offset&&(t.howMany-=e.howMany),t.splitPosition=t.splitPosition._getTransformedBySplitOperation(e),t.insertionPosition=Cs.getInsertionPosition(t.splitPosition),[t]}));var Ad=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t))._stack=[],r._createdBatches=new WeakSet,r.refresh(),r.listenTo(t.data,"set",(function(){return r.clearStack()})),r}return m(n,[{key:"refresh",value:function(){this.isEnabled=this._stack.length>0}},{key:"addBatch",value:function(t){var e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh()}},{key:"clearStack",value:function(){this._stack=[],this.refresh()}},{key:"_restoreSelection",value:function(t,e,n){var r,i=this.editor.model,o=i.document,a=[],s=t.map((function(t){return t.getTransformedByOperations(n)})),u=s.flat(),l=c(s);try{for(l.s();!(r=l.n()).done;){var f=r.value.filter((function(t){return!Ed(t,u)}));Td(f);var d=f.find((function(t){return t.root!=o.graveyard}));d&&a.push(d)}}catch(t){l.e(t)}finally{l.f()}a.length&&i.change((function(t){t.setSelection(a,{backward:e})}))}},{key:"_undo",value:function(t,e){var n=this.editor.model,r=n.document;this._createdBatches.add(e);var i=t.operations.slice().filter((function(t){return t.isDocumentOperation}));i.reverse();var o,a=c(i);try{for(a.s();!(o=a.n()).done;){var s,u=o.value,l=u.baseVersion+1,f=Array.from(r.history.getOperations(l)),d=c(wd([u.getReversed()],f,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA);try{for(d.s();!(s=d.n()).done;){var h=s.value;e.addOperation(h),n.applyOperation(h),r.history.setOperationAsUndone(u,h)}}catch(t){d.e(t)}finally{d.f()}}}catch(t){a.e(t)}finally{a.f()}}}]),n}(Dl);function Td(t){t.sort((function(t,e){return t.start.isBefore(e.start)?-1:1}));for(var e=1;e<t.length;e++){var n=t[e-1].getJoined(t[e],!0);n&&(e--,t.splice(e,2,n))}}function Ed(t,e){return e.some((function(e){return e!==t&&e.containsRange(t,!0)}))}var Od=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=e?this._stack.findIndex((function(t){return t.batch==e})):this._stack.length-1,r=this._stack.splice(n,1)[0],i=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(i,(function(){t._undo(r.batch,i);var e=t.editor.model.document.history.getOperations(r.batch.baseVersion);t._restoreSelection(r.selection.ranges,r.selection.isBackward,e),t.fire("revert",r.batch,i)})),this.refresh()}}]),n}(Ad),Pd=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"execute",value:function(){var t=this,e=this._stack.pop(),n=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(n,(function(){var r=e.batch.operations[e.batch.operations.length-1].baseVersion+1,i=t.editor.model.document.history.getOperations(r);t._restoreSelection(e.selection.ranges,e.selection.isBackward,i),t._undo(e.batch,n)})),this.refresh()}}]),n}(Ad),Id=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t))._batchRegistry=new WeakSet,r}return m(n,null,[{key:"pluginName",get:function(){return"UndoEditing"}}]),m(n,[{key:"init",value:function(){var t=this,e=this.editor;this._undoCommand=new Od(e),this._redoCommand=new Pd(e),e.commands.add("undo",this._undoCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",(function(e,n){var r=n[0];if(r.isDocumentOperation){var i=r.batch,o=t._redoCommand._createdBatches.has(i),a=t._undoCommand._createdBatches.has(i);t._batchRegistry.has(i)||"transparent"==i.type&&!o&&!a||(o?t._undoCommand.addBatch(i):a||(t._undoCommand.addBatch(i),t._redoCommand.clearStack()),t._batchRegistry.add(i))}}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(function(e,n,r){t._redoCommand.addBatch(r)})),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo")}}]),n}(Rl),Rd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.042 9.367l2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',jd='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M14.958 9.367l-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',Dd=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor,e=t.locale,n=t.t,r="ltr"==e.uiLanguageDirection?Rd:jd,i="ltr"==e.uiLanguageDirection?jd:Rd;this._addButton("undo",n("Undo"),"CTRL+Z",r),this._addButton("redo",n("Redo"),"CTRL+Y",i)}},{key:"_addButton",value:function(t,e,n,r){var i=this,o=this.editor;o.ui.componentFactory.add(t,(function(a){var s=o.commands.get(t),u=new vl(a);return u.set({label:e,icon:r,keystroke:n,tooltip:!0}),u.bind("isEnabled").to(s,"isEnabled"),i.listenTo(u,"execute",(function(){o.execute(t),o.editing.view.focus()})),u}))}}]),n}(Rl),Nd=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Id,Dd]}},{key:"pluginName",get:function(){return"Undo"}}]),n}(Rl),Ld=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){this.isEnabled=function(t){var e=t.schema,n=t.document.selection;return function(t,e,n){var r=function(t,e){var n=Cc(t,e).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(t,n);return e.checkChild(r,"horizontalLine")}(n,e,t)&&!function(t,e){var n=t.getSelectedElement();return n&&e.isObject(n)}(n,e)}(this.editor.model)}},{key:"execute",value:function(){var t=this.editor.model;t.change((function(e){var n=e.createElement("horizontalLine");t.insertContent(n);var r=n.nextSibling;!(r&&t.schema.checkChild(r,"$text"))&&t.schema.checkChild(n.parent,"paragraph")&&(r=e.createElement("paragraph"),t.insertContent(r,e.createPositionAfter(n))),r&&e.setSelection(r,0)}))}}]),n}(Dl);n(47);var Bd=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema,n=t.t,r=t.conversion;e.register("horizontalLine",{isObject:!0,allowWhere:"$block"}),r.for("dataDowncast").elementToElement({model:"horizontalLine",view:function(t,e){return e.writer.createEmptyElement("hr")}}),r.for("editingDowncast").elementToElement({model:"horizontalLine",view:function(t,e){var r=e.writer,i=n("Horizontal line"),o=r.createContainerElement("div"),a=r.createEmptyElement("hr");return r.addClass("ck-horizontal-line",o),r.setCustomProperty("hr",!0,o),r.insert(r.createPositionAt(o,0),a),function(t,e,n){return e.setCustomProperty("horizontalLine",!0,t),kc(t,e,{label:n})}(o,r,i)}}),r.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),t.commands.add("horizontalLine",new Ld(t))}}],[{key:"pluginName",get:function(){return"HorizontalLineEditing"}}]),n}(Rl),zd=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add("horizontalLine",(function(r){var i=e.commands.get("horizontalLine"),o=new vl(r);return o.set({label:n("Horizontal line"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),t.listenTo(o,"execute",(function(){e.execute("horizontalLine"),e.editing.view.focus()})),o}))}}]),n}(Rl),Fd=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),(i=e.call(this,t)).attributeKey=r,i}return m(n,[{key:"refresh",value:function(){var t=this.editor.model,e=t.document;this.value=e.selection.getAttribute(this.attributeKey),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey)}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document.selection,i=e.value;n.change((function(e){if(r.isCollapsed)i?e.setSelectionAttribute(t.attributeKey,i):e.removeSelectionAttribute(t.attributeKey);else{var o,a=c(n.schema.getValidRanges(r.getRanges(),t.attributeKey));try{for(a.s();!(o=a.n()).done;){var s=o.value;i?e.setAttribute(t.attributeKey,i,s):e.removeAttribute(t.attributeKey,s)}}catch(t){a.e(t)}finally{a.f()}}}))}}]),n}(Dl),qd=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n);var i=(r=e.call(this,t)).bindTemplate;return r.set("color"),r.set("hasBorder"),r.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035L8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',r.extendTemplate({attributes:{style:{backgroundColor:i.to("color")},class:["ck","ck-color-grid__tile",i.if("hasBorder","ck-color-table__color-tile_bordered")]}}),r}return m(n,[{key:"render",value:function(){s(x(n.prototype),"render",this).call(this),this.iconView.fillColor="hsl(0, 0%, 100%)"}}]),n}(vl);n(49);var Vd=function(t){v(n,t);var e=g(n);function n(t,r){var i;h(this,n),i=e.call(this,t);var o=r&&r.colorDefinitions||[],a={};return r&&r.columns&&(a.gridTemplateColumns="repeat( ".concat(r.columns,", 1fr)")),i.set("selectedColor"),i.items=i.createCollection(),i.focusTracker=new yu,i.keystrokes=new fu,i._focusCycler=new rl({focusables:i.items,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"arrowleft",focusNext:"arrowright"}}),i.items.on("add",(function(t,e){e.isOn=e.color===i.selectedColor})),o.forEach((function(t){var e=new qd;e.set({color:t.color,label:t.label,tooltip:!0,hasBorder:t.options.hasBorder}),e.on("execute",(function(){i.fire("execute",{value:t.color,hasBorder:t.options.hasBorder,label:t.label})})),i.items.add(e)})),i.setTemplate({tag:"div",children:i.items,attributes:{class:["ck","ck-color-grid"],style:a}}),i.on("change:selectedColor",(function(t,e,n){var r,o=c(i.items);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.isOn=a.color===n}}catch(t){o.e(t)}finally{o.f()}})),i}return m(n,[{key:"focus",value:function(){this.items.length&&this.items.first.focus()}},{key:"focusLast",value:function(){this.items.length&&this.items.last.focus()}},{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this);var e,r=c(this.items);try{for(r.s();!(e=r.n()).done;){var i=e.value;this.focusTracker.add(i.element)}}catch(t){r.e(t)}finally{r.f()}this.items.on("add",(function(e,n){t.focusTracker.add(n.element)})),this.items.on("remove",(function(e,n){t.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}}]),n}(Ku),$d=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).set("isEmpty",!0),r.on("change",(function(){r.set("isEmpty",0===r.length)})),r}return m(n,[{key:"add",value:function(t,e){this.find((function(e){return e.color===t.color}))||s(x(n.prototype),"add",this).call(this,t,e)}},{key:"hasColor",value:function(t){return!!this.find((function(e){return e.color===t}))}}]),n}(sn);an($d,pr),n(51);var Hd=function(t){v(n,t);var e=g(n);function n(t,r){var i,o=r.colors,a=r.columns,s=r.removeButtonLabel,u=r.documentColorsLabel,l=r.documentColorsCount;return h(this,n),(i=e.call(this,t)).items=i.createCollection(),i.colorDefinitions=o,i.focusTracker=new yu,i.keystrokes=new fu,i.set("selectedColor"),i.removeButtonLabel=s,i.columns=a,i.documentColors=new $d,i.documentColorsCount=l,i._focusCycler=new rl({focusables:i.items,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),i._documentColorsLabel=u,i.setTemplate({tag:"div",attributes:{class:["ck","ck-color-table"]},children:i.items}),i.items.add(i._removeColorButton()),i}return m(n,[{key:"updateDocumentColors",value:function(t,e){var n=t.document,r=this.documentColorsCount;this.documentColors.clear();var i,o=c(n.getRootNames());try{for(o.s();!(i=o.n()).done;){var a,s=i.value,u=n.getRoot(s),l=c(t.createRangeIn(u).getItems());try{for(l.s();!(a=l.n()).done;){var f=a.value;if(f.is("$textProxy")&&f.hasAttribute(e)&&(this._addColorToDocumentColors(f.getAttribute(e)),this.documentColors.length>=r))return}}catch(t){l.e(t)}finally{l.f()}}}catch(t){o.e(t)}finally{o.f()}}},{key:"updateSelectedColors",value:function(){var t=this.documentColorsGrid,e=this.staticColorsGrid,n=this.selectedColor;e.selectedColor=n,t&&(t.selectedColor=n)}},{key:"render",value:function(){s(x(n.prototype),"render",this).call(this);var t,e=c(this.items);try{for(e.s();!(t=e.n()).done;){var r=t.value;this.focusTracker.add(r.element)}}catch(t){e.e(t)}finally{e.f()}this.keystrokes.listenTo(this.element)}},{key:"appendGrids",value:function(){if(!this.staticColorsGrid&&(this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount)){var t=Tu.bind(this.documentColors,this.documentColors),e=new Ju(this.locale);e.text=this._documentColorsLabel,e.extendTemplate({attributes:{class:["ck","ck-color-grid__label",t.if("isEmpty","ck-hidden")]}}),this.items.add(e),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"_removeColorButton",value:function(){var t=this,e=new vl;return e.set({withText:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.636 9.531l-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',tooltip:!0,label:this.removeButtonLabel}),e.class="ck-color-table__remove-color",e.on("execute",(function(){t.fire("execute",{value:null})})),e}},{key:"_createStaticColorsGrid",value:function(){var t=new Vd(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return t.delegate("execute").to(this),t}},{key:"_createDocumentColorsGrid",value:function(){var t=this,e=Tu.bind(this.documentColors,this.documentColors),n=new Vd(this.locale,{columns:this.columns});return n.delegate("execute").to(this),n.extendTemplate({attributes:{class:e.if("isEmpty","ck-hidden")}}),n.items.bindTo(this.documentColors).using((function(e){var n=new qd;return n.set({color:e.color,hasBorder:e.options&&e.options.hasBorder}),e.label&&n.set({label:e.label,tooltip:!0}),n.on("execute",(function(){t.fire("execute",{value:e.color})})),n})),this.documentColors.on("change:isEmpty",(function(t,e,r){r&&(n.selectedColor=null)})),n}},{key:"_addColorToDocumentColors",value:function(t){var e=this.colorDefinitions.find((function(e){return e.color===t}));e?this.documentColors.add(Object.assign({},e)):this.documentColors.add({color:t,label:t,options:{hasBorder:!1}})}}]),n}(Ku),Ud="fontSize",Wd="fontColor";function Kd(t){return function(e,n){return n.writer.createAttributeElement("span",{style:"".concat(t,":").concat(e)},{priority:7})}}var Yd=function(t){v(n,t);var e=g(n);function n(t){return h(this,n),e.call(this,t,Wd)}return n}(Fd),Gd=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),r=e.call(this,t),t.config.define(Wd,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),t.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:Wd,value:("color",function(t){return t.getStyle("color").replace(/\s/g,"")})}}),t.conversion.for("downcast").attributeToElement({model:Wd,view:Kd("color")}),t.commands.add(Wd,new Yd(t)),t.model.schema.extend("$text",{allowAttributes:Wd}),t.model.schema.setAttributeProperties(Wd,{isFormatting:!0,copyOnEnter:!0}),r}return m(n,null,[{key:"pluginName",get:function(){return"FontColorEditing"}}]),n}(Rl);function Zd(t){return"string"==typeof t?{model:t,label:t,hasBorder:!1,view:{name:"span",styles:{color:t}}}:{model:t.color,label:t.label||t.color,hasBorder:void 0!==t.hasBorder&&t.hasBorder,view:{name:"span",styles:{color:""+t.color}}}}var Jd=function(t){v(n,t);var e=g(n);function n(t){h(this,n);var r=t.locale.t;return e.call(this,t,{commandName:Wd,componentName:Wd,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 10.3L10 4.5l-2.4 5.8h4.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></svg>',dropdownLabel:r("Font Color")})}return m(n,null,[{key:"pluginName",get:function(){return"FontColorUI"}}]),n}(function(t){v(n,t);var e=g(n);function n(t,r){var i,o=r.commandName,a=r.icon,s=r.componentName,u=r.dropdownLabel;return h(this,n),(i=e.call(this,t)).commandName=o,i.componentName=s,i.icon=a,i.dropdownLabel=u,i.columns=t.config.get(i.componentName+".columns"),i.colorTableView,i}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.locale,r=n.t,i=e.commands.get(this.commandName),o=function(t,e){var n=t.t,r={Black:n("Black"),"Dim grey":n("Dim grey"),Grey:n("Grey"),"Light grey":n("Light grey"),White:n("White"),Red:n("Red"),Orange:n("Orange"),Yellow:n("Yellow"),"Light green":n("Light green"),Green:n("Green"),Aquamarine:n("Aquamarine"),Turquoise:n("Turquoise"),"Light blue":n("Light blue"),Blue:n("Blue"),Purple:n("Purple")};return e.map((function(t){var e=r[t.label];return e&&e!=t.label&&(t.label=e),t}))}(n,e.config.get(this.componentName).colors.map(Zd).filter((function(t){return!!t}))),a=e.config.get(this.componentName+".documentColors");e.ui.componentFactory.add(this.componentName,(function(n){var s=xl(n);return t.colorTableView=function(t){var e=t.dropdownView,n=t.colors,r=t.columns,i=t.removeButtonLabel,o=t.documentColorsLabel,a=t.documentColorsCount,s=e.locale,u=new Hd(s,{colors:n,columns:r,removeButtonLabel:i,documentColorsLabel:o,documentColorsCount:a});return e.colorTableView=u,e.panelView.children.add(u),u.delegate("execute").to(e,"execute"),u}({dropdownView:s,colors:o.map((function(t){return{label:t.label,color:t.model,options:{hasBorder:t.hasBorder}}})),columns:t.columns,removeButtonLabel:r("Remove color"),documentColorsLabel:0!==a?r("Document colors"):void 0,documentColorsCount:void 0===a?t.columns:a}),t.colorTableView.bind("selectedColor").to(i,"value"),s.buttonView.set({label:t.dropdownLabel,icon:t.icon,tooltip:!0}),s.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),s.bind("isEnabled").to(i),s.on("execute",(function(n,r){e.execute(t.commandName,r),e.editing.view.focus()})),s.on("change:isOpen",(function(n,r,i){s.colorTableView.appendGrids(),i&&(0!==a&&t.colorTableView.updateDocumentColors(e.model,t.componentName),t.colorTableView.updateSelectedColors())})),s}))}}]),n}(Rl)),Xd=function(t){v(n,t);var e=g(n);function n(t){return h(this,n),e.call(this,t,Ud)}return n}(Fd);function Qd(t){return t.map((function(t){return function(t){if("object"==S(e=t)&&e.title&&e.model&&e.view)return eh(t);var e,n=function(t){return th[t]||th[t.model]}(t);return n?eh(n):"default"===t?{model:void 0,title:"Default"}:function(t){var e;if("object"==S(t)){if(!t.model)throw new Ye.b("font-size-invalid-definition: Provided font size definition is invalid.",null,t);e=parseFloat(t.model)}else e=parseFloat(t);return isNaN(e)}(t)?void 0:function(t){return"number"!=typeof t&&"string"!=typeof t||(t={title:String(t),model:parseFloat(t)+"px"}),t.view={name:"span",styles:{"font-size":t.model}},eh(t)}(t)}(t)})).filter((function(t){return!!t}))}var th={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}}},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}}},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}}},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}}}};function eh(t){return t.view.priority||(t.view.priority=7),t}var nh=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),r=e.call(this,t),t.config.define(Ud,{options:["tiny","small","default","big","huge"],supportAllValues:!1}),r}return m(n,null,[{key:"pluginName",get:function(){return"FontSizeEditing"}}]),m(n,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:Ud}),t.model.schema.setAttributeProperties(Ud,{isFormatting:!0,copyOnEnter:!0});var e=t.config.get("fontSize.supportAllValues"),n=function(t,e){var n,r={model:{key:"fontSize",values:[]},view:{},upcastAlso:{}},i=c(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;r.model.values.push(o.model),r.view[o.model]=o.view,o.upcastAlso&&(r.upcastAlso[o.model]=o.upcastAlso)}}catch(t){i.e(t)}finally{i.f()}return r}(0,Qd(this.editor.config.get("fontSize.options")).filter((function(t){return t.model})));e?this._prepareAnyValueConverters(n):t.conversion.attributeToElement(n),t.commands.add(Ud,new Xd(t))}},{key:"_prepareAnyValueConverters",value:function(t){var e=this.editor,n=t.model.values.filter((function(t){return!String(t).match(/[\d.]+[\w%]+/)}));if(n.length)throw new Ye.b("font-size-invalid-use-of-named-presets: If config.fontSize.supportAllValues is set to true, you need to use numerical values as font size options.",null,{presets:n});e.conversion.for("downcast").attributeToElement({model:Ud,view:function(t,e){var n=e.writer;if(t)return n.createAttributeElement("span",{style:"font-size:"+t},{priority:7})}}),e.conversion.for("upcast").attributeToAttribute({model:{key:Ud,value:function(t){return t.getStyle("font-size")}},view:{name:"span"}})}}]),n}(Rl),rh=function t(e,n){h(this,t),n&&lr(this,n),e&&this.set(e)};an(rh,pr),n(53);var ih=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t,r=this._getLocalizedOptions(),i=e.commands.get(Ud);e.ui.componentFactory.add(Ud,(function(o){var a=xl(o);return Cl(a,function(t,e){var n,r=new sn,i=c(t);try{var o=function(){var t=n.value,i={type:"button",model:new rh({commandName:Ud,commandParam:t.model,label:t.title,class:"ck-fontsize-option",withText:!0})};t.view&&t.view.styles&&i.model.set("labelStyle","font-size:"+t.view.styles["font-size"]),t.view&&t.view.classes&&i.model.set("class","".concat(i.model.class," ").concat(t.view.classes)),i.model.bind("isOn").to(e,"value",(function(e){return e===t.model})),r.add(i)};for(i.s();!(n=i.n()).done;)o()}catch(t){i.e(t)}finally{i.f()}return r}(r,i)),a.buttonView.set({label:n("Font Size"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5L7.038 4.785 4.261 11.5h5.555zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13zm7.55 2.279l.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825c0-.042 0-.083.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782c.002.043.003.089.003.135v10.454z"/></svg>',tooltip:!0}),a.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),a.bind("isEnabled").to(i),t.listenTo(a,"execute",(function(t){e.execute(t.source.commandName,{value:t.source.commandParam}),e.editing.view.focus()})),a}))}},{key:"_getLocalizedOptions",value:function(){var t=this.editor,e=t.t,n={Default:e("Default"),Tiny:e("Tiny"),Small:e("Small"),Big:e("Big"),Huge:e("Huge")};return Qd(t.config.get(Ud).options).map((function(t){var e=n[t.title];return e&&e!=t.title&&(t=Object.assign({},t,{title:e})),t}))}}]),n}(Rl),oh=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=this.editor.model,e=Ll(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&ah(e,t.schema)}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.editor.model,n=e.document;e.change((function(r){var i,o=c((t.selection||n.selection).getSelectedBlocks());try{for(o.s();!(i=o.n()).done;){var a=i.value;!a.is("element","paragraph")&&ah(a,e.schema)&&r.rename(a,"paragraph")}}catch(t){o.e(t)}finally{o.f()}}))}}]),n}(Dl);function ah(t,e){return e.checkChild(t.parent,"paragraph")&&!e.isObject(t)}var sh=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"execute",value:function(t){var e=this.editor.model,n=t.position;e.change((function(t){var r=t.createElement("paragraph");if(!e.schema.checkChild(n.parent,r)){var i=e.schema.findAllowedParent(n,r);if(!i)return;n=t.split(n,i).position}e.insertContent(r,n),t.setSelection(r,"in")}))}}]),n}(Dl),uh=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor,e=t.model;t.commands.add("paragraph",new oh(t)),t.commands.add("insertParagraph",new sh(t)),e.schema.register("paragraph",{inheritAllFrom:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:function(t,e){var r=e.writer;return n.paragraphLikeElements.has(t.name)?t.isEmpty?null:r.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}],[{key:"pluginName",get:function(){return"Paragraph"}}]),n}(Rl);uh.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var lh=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),(i=e.call(this,t)).modelElements=r,i}return m(n,[{key:"refresh",value:function(){var t=this,e=Ll(this.editor.model.document.selection.getSelectedBlocks());this.value=!!e&&this.modelElements.includes(e.name)&&e.name,this.isEnabled=!!e&&this.modelElements.some((function(n){return ch(e,n,t.editor.model.schema)}))}},{key:"execute",value:function(t){var e=this.editor.model,n=e.document,r=t.value;e.change((function(t){var i,o=c(Array.from(n.selection.getSelectedBlocks()).filter((function(t){return ch(t,r,e.schema)})));try{for(o.s();!(i=o.n()).done;){var a=i.value;a.is("element",r)||t.rename(a,r)}}catch(t){o.e(t)}finally{o.f()}}))}}]),n}(Dl);function ch(t,e,n){return n.checkChild(t.parent,e)&&!n.isObject(t)}var fh="paragraph",dh=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),r=e.call(this,t),t.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]}),r}return m(n,null,[{key:"pluginName",get:function(){return"HeadingEditing"}}]),m(n,[{key:"init",value:function(){var t,e=this.editor,n=[],r=c(e.config.get("heading.options"));try{for(r.s();!(t=r.n()).done;){var i=t.value;i.model!==fh&&(e.model.schema.register(i.model,{inheritAllFrom:"$block"}),e.conversion.elementToElement(i),n.push(i.model))}}catch(t){r.e(t)}finally{r.f()}this._addDefaultH1Conversion(e),e.commands.add("heading",new lh(e,n))}},{key:"afterInit",value:function(){var t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",(function(e,r){var i=t.model.document.selection.getFirstPosition().parent;n.some((function(t){return i.is("element",t.model)}))&&!i.is("element",fh)&&0===i.childCount&&r.writer.rename(i,fh)}))}},{key:"_addDefaultH1Conversion",value:function(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Ke.get("low")+1})}}],[{key:"requires",get:function(){return[uh]}}]),n}(Rl);n(11);var hh=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t,r=function(t){var e=t.t,n={Paragraph:e("Paragraph"),"Heading 1":e("Heading 1"),"Heading 2":e("Heading 2"),"Heading 3":e("Heading 3"),"Heading 4":e("Heading 4"),"Heading 5":e("Heading 5"),"Heading 6":e("Heading 6")};return t.config.get("heading.options").map((function(t){var e=n[t.title];return e&&e!=t.title&&(t.title=e),t}))}(e),i=n("Choose heading"),o=n("Heading");e.ui.componentFactory.add("heading",(function(n){var a,s={},u=new sn,l=e.commands.get("heading"),f=e.commands.get("paragraph"),d=[l],h=c(r);try{var p=function(){var t=a.value,e={type:"button",model:new rh({label:t.title,class:t.class,withText:!0})};"paragraph"===t.model?(e.model.bind("isOn").to(f,"value"),e.model.set("commandName","paragraph"),d.push(f)):(e.model.bind("isOn").to(l,"value",(function(e){return e===t.model})),e.model.set({commandName:"heading",commandValue:t.model})),u.add(e),s[t.model]=t.title};for(h.s();!(a=h.n()).done;)p()}catch(t){h.e(t)}finally{h.f()}var m=xl(n);return Cl(m,u),m.buttonView.set({isOn:!1,withText:!0,tooltip:o}),m.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),m.bind("isEnabled").toMany(d,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),m.buttonView.bind("label").to(l,"value",f,"value",(function(t,e){var n=t||e&&"paragraph";return s[n]?s[n]:i})),t.listenTo(m,"execute",(function(t){e.execute(t.source.commandName,t.source.commandValue?{value:t.source.commandValue}:void 0),e.editing.view.focus()})),m}))}}]),n}(Rl);n(56);var ph=["before","after"],mh=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><polyline points="8.05541992 0.263427734 8.05541992 4.23461914 1.28417969 4.23461914" transform="translate(1,0)"></polyline><line x1="0" y1="4.21581031" x2="2" y2="2.17810059" transform="translate(1, 0)"></line><line x1="0" y1="6.21581031" x2="2" y2="4.17810059" transform="translate(2, 5.196955) scale(1, -1) translate(-1, -5.196955)"></line></svg>\n',"image/svg+xml").firstChild,vh="ck-widget__type-around_disabled",gh=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t))._currentFakeCaretModelElement=null,r}return m(n,null,[{key:"pluginName",get:function(){return"WidgetTypeAround"}}]),m(n,[{key:"init",value:function(){var t=this.editor,e=t.editing.view;this.on("change:isEnabled",(function(n,r,i){e.change((function(t){var n,r=c(e.document.roots);try{for(r.s();!(n=r.n()).done;){var o=n.value;i?t.removeClass(vh,o):t.addClass(vh,o)}}catch(t){r.e(t)}finally{r.f()}})),i||t.model.change((function(t){t.removeSelectionAttribute(gc)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration()}},{key:"destroy",value:function(){this._currentFakeCaretModelElement=null}},{key:"_insertParagraph",value:function(t,e){var n=this.editor,r=n.editing.view;n.execute("insertParagraph",{position:n.model.createPositionAt(t,e)}),r.focus(),r.scrollToTheSelection()}},{key:"_listenToIfEnabled",value:function(t,e,n,r){var i=this;this.listenTo(t,e,(function(){i.isEnabled&&n.apply(void 0,arguments)}),r)}},{key:"_insertParagraphAccordingToFakeCaretPosition",value:function(){var t=this.editor.model.document.selection,e=yc(t);if(!e)return!1;var n=t.getSelectedElement();return this._insertParagraph(n,e),!0}},{key:"_enableTypeAroundUIInjection",value:function(){var t=this.editor,e=t.model.schema,n=t.locale.t,r={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",(function(t,n,i){var o=i.mapper.toViewElement(n.item);bc(o,n.item,e)&&function(t,e,n){var r=t.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(t){var n=this.toDomElement(t);return function(t,e){var n,r=c(ph);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=new Tu({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+i],title:e[i]},children:[t.ownerDocument.importNode(mh,!0)]});t.appendChild(o.render())}}catch(t){r.e(t)}finally{r.f()}}(n,e),function(t){var e=new Tu({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});t.appendChild(e.render())}(n),n}));t.insert(t.createPositionAt(n,"end"),r)}(i.writer,r,o)}),{priority:"low"})}},{key:"_enableTypeAroundFakeCaretActivationUsingKeyboardArrows",value:function(){var t=this,e=this.editor,n=e.model,r=n.document.selection,i=n.schema,o=e.editing.view;function a(t){return"ck-widget_type-around_show-fake-caret_"+t}this._listenToIfEnabled(o.document,"keydown",(function(e,n){Yr(n.keyCode)&&t._handleArrowKeyPress(e,n)}),{priority:Ke.get("high")+10}),this._listenToIfEnabled(r,"change:range",(function(t,n){n.directChange&&e.model.change((function(t){t.removeSelectionAttribute(gc)}))})),this._listenToIfEnabled(n.document,"change:data",(function(){var t=r.getSelectedElement();t&&bc(e.editing.mapper.toViewElement(t),t,i)||e.model.change((function(t){t.removeSelectionAttribute(gc)}))})),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(function(e,n,r){var o=r.writer;if(t._currentFakeCaretModelElement){var s=r.mapper.toViewElement(t._currentFakeCaretModelElement);s&&(o.removeClass(ph.map(a),s),t._currentFakeCaretModelElement=null)}var u=n.selection.getSelectedElement();if(u){var l=r.mapper.toViewElement(u);if(bc(l,u,i)){var c=yc(n.selection);c&&(o.addClass(a(c),l),t._currentFakeCaretModelElement=u)}}})),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(function(t,n,r){r||e.model.change((function(t){t.removeSelectionAttribute(gc)}))}))}},{key:"_handleArrowKeyPress",value:function(t,e){var n,r=this.editor,i=r.model,o=i.document.selection,a=i.schema,s=r.editing.view,u=Zr(e.keyCode,r.locale.contentLanguageDirection),l=s.document.selection.getSelectedElement();bc(l,r.editing.mapper.toModelElement(l),a)?n=this._handleArrowKeyPressOnSelectedWidget(u):o.isCollapsed&&(n=this._handleArrowKeyPressWhenSelectionNextToAWidget(u)),n&&(e.preventDefault(),t.stop())}},{key:"_handleArrowKeyPressOnSelectedWidget",value:function(t){var e=this.editor.model,n=yc(e.document.selection);return e.change((function(e){return n?n!==(t?"after":"before")&&(e.removeSelectionAttribute(gc),!0):(e.setSelectionAttribute(gc,t?"after":"before"),!0)}))}},{key:"_handleArrowKeyPressWhenSelectionNextToAWidget",value:function(t){var e=this.editor,n=e.model,r=n.schema,i=e.plugins.get("Widget"),o=i._getObjectElementNextToSelection(t);return!!bc(e.editing.mapper.toViewElement(o),o,r)&&(n.change((function(e){i._setSelectionOverElement(o),e.setSelectionAttribute(gc,t?"before":"after")})),!0)}},{key:"_enableInsertingParagraphsOnButtonClick",value:function(){var t=this,e=this.editor,n=e.editing.view;this._listenToIfEnabled(n.document,"mousedown",(function(r,i){var o=i.domTarget.closest(".ck-widget__type-around__button");if(o){var a=function(t){return t.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(o),s=function(t,e){var n=t.closest(".ck-widget");return e.mapDomToView(n)}(o,n.domConverter),u=e.editing.mapper.toModelElement(s);t._insertParagraph(u,a),i.preventDefault(),r.stop()}}))}},{key:"_enableInsertingParagraphsOnEnterKeypress",value:function(){var t=this,e=this.editor,n=e.editing.view;this._listenToIfEnabled(n.document,"enter",(function(r,i){var o,a=n.document.selection.getSelectedElement(),s=e.editing.mapper.toModelElement(a),u=e.model.schema;t._insertParagraphAccordingToFakeCaretPosition()?o=!0:bc(a,s,u)&&(t._insertParagraph(s,i.isSoft?"before":"after"),o=!0),o&&(i.preventDefault(),r.stop())}))}},{key:"_enableInsertingParagraphsOnTypingKeystroke",value:function(){var t=this,e=this.editor.editing.view,n=[Hr.enter,Hr.delete,Hr.backspace];this._listenToIfEnabled(e.document,"keydown",(function(e,r){n.includes(r.keyCode)||Jc(r)||t._insertParagraphAccordingToFakeCaretPosition()}),{priority:Ke.get("high")+1})}},{key:"_enableDeleteIntegration",value:function(){var t=this.editor,e=t.editing.view,n=t.model,r=n.schema;this._listenToIfEnabled(e.document,"delete",(function(e,i){var o=yc(n.document.selection);if(o){var a=i.direction,s=n.document.selection.getSelectedElement(),u="forward"==a;if("before"===o===u)t.execute("delete",{selection:n.createSelection(s,"on")});else{var l=r.getNearestSelectionRange(n.createPositionAt(s,o),a);if(l)if(l.isCollapsed){var f=n.createSelection(l.start);if(n.modifySelection(f,{direction:a}),f.focus.isEqual(l.start)){var d=function(t,e){var n,r=e,i=c(e.getAncestors({parentFirst:!0}));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.childCount>1||t.isLimit(o))break;r=o}}catch(t){i.e(t)}finally{i.f()}return r}(r,l.start.parent);n.deleteContent(n.createSelection(d,"on"),{doNotAutoparagraph:!0})}else n.change((function(e){e.setSelection(l),t.execute(u?"forwardDelete":"delete")}))}else n.change((function(e){e.setSelection(l),t.execute(u?"forwardDelete":"delete")}))}i.preventDefault(),e.stop()}}),{priority:Ke.get("high")+1})}},{key:"_enableInsertContentIntegration",value:function(){var t=this.editor,e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(t.model,"insertContent",(function(t,r){var i=l(r,2),o=i[0],a=i[1];if(!a||a.is("documentSelection")){var s=yc(n);return s?(t.stop(),e.change((function(t){var r=n.getSelectedElement(),i=e.createPositionAt(r,s),a=t.createSelection(i),u=e.insertContent(o,a);return t.setSelection(a),u}))):void 0}}),{priority:"high"})}}]),n}(Rl);function bh(t,e,n){var r,i=t.schema,o="forward"==n?"elementStart":"elementEnd",a=c(t.createRangeIn(e.root).getWalker({startPosition:e,direction:n}));try{for(a.s();!(r=a.n()).done;){var s=r.value,u=s.previousPosition,l=s.item,f=s.type;if(i.isLimit(l)&&!i.isInline(l))return u;if(f==o&&i.isBlock(l))return null}}catch(t){a.e(t)}finally{a.f()}return null}function yh(t,e,n){var r="backward"==n?e.end:e.start;if(t.checkChild(r,"$text"))return r;var i,o=c(e.getWalker({direction:n}));try{for(o.s();!(i=o.n()).done;){var a=i.value.nextPosition;if(t.checkChild(a,"$text"))return a}}catch(t){o.e(t)}finally{o.f()}}n(58);var wh=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor.editing.view,n=e.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(function(e,n,r){t._clearPreviouslySelectedWidgets(r.writer);var i,o=r.writer,a=o.document.selection,s=a.getSelectedElement(),u=null,l=c(a.getRanges());try{for(l.s();!(i=l.n()).done;){var f,d=c(i.value);try{for(d.s();!(f=d.n()).done;){var h=f.value.item;_c(h)&&!_h(h,u)&&(o.addClass(wc,h),t._previouslySelected.add(h),u=h,h==s&&o.setSelection(a.getRanges(),{fake:!0,label:xc(s)}))}}catch(t){d.e(t)}finally{d.f()}}}catch(t){l.e(t)}finally{l.f()}}),{priority:"low"}),e.addObserver(zc),this.listenTo(n,"mousedown",(function(){return t._onMousedown.apply(t,arguments)})),this.listenTo(n,"keydown",(function(){t._handleSelectionChangeOnArrowKeyPress.apply(t,arguments)}),{priority:"high"}),this.listenTo(n,"keydown",(function(){t._preventDefaultOnArrowKeyPress.apply(t,arguments)}),{priority:Ke.get("high")-20}),this.listenTo(n,"keydown",function(t){var e=t.model;return function(n,r){var i=r.keyCode==Hr.arrowup,o=r.keyCode==Hr.arrowdown,a=r.shiftKey,s=e.document.selection;if(i||o){var u=o;if(!a||!function(t,e){return!t.isCollapsed&&t.isBackward==e}(s,u)){var l=function(t,e,n){var r=t.model;if(n){var i=e.isCollapsed?e.focus:e.getLastPosition(),o=bh(r,i,"forward");if(!o)return null;var a=r.createRange(i,o),s=yh(r.schema,a,"backward");return s&&i.isBefore(s)?r.createRange(i,s):null}var u=e.isCollapsed?e.focus:e.getFirstPosition(),l=bh(r,u,"backward");if(!l)return null;var c=r.createRange(l,u),f=yh(r.schema,c,"forward");return f&&u.isAfter(f)?r.createRange(f,u):null}(t,s,u);l&&!l.isCollapsed&&function(t,e,n){var r=t.model,i=t.view.domConverter;if(n){var o=r.createSelection(e.start);r.modifySelection(o),o.focus.isAtEnd||e.start.isEqual(o.focus)||(e=r.createRange(o.focus,e.end))}var a,s,u=t.mapper.toViewRange(e),l=i.viewRangeToDom(u),f=c(Po.getDomRangeRects(l));try{for(f.s();!(s=f.n()).done;){var d=s.value;if(void 0!==a){if(Math.round(d.top)>=a)return!1;a=Math.max(a,Math.round(d.bottom))}else a=Math.round(d.bottom)}}catch(t){f.e(t)}finally{f.f()}return!0}(t,l,u)&&(e.change((function(t){var n=u?l.end:l.start;if(a){var r=e.createSelection(s.anchor);r.setFocus(n),t.setSelection(r)}else t.setSelection(n)})),n.stop(),r.preventDefault(),r.stopPropagation())}}}}(this.editor.editing)),this.listenTo(n,"delete",(function(e,n){t._handleDelete("forward"==n.direction)&&(n.preventDefault(),e.stop())}),{priority:"high"})}},{key:"_onMousedown",value:function(t,e){var n=this.editor,r=n.editing.view,i=r.document,o=e.target;if(function(t){for(;t;){if(t.is("editableElement")&&!t.is("rootElement"))return!0;if(_c(t))return!1;t=t.parent}return!1}(o)){if((zr||Br)&&e.domEvent.detail>=3){var a=n.editing.mapper,s=o.is("attributeElement")?o.findAncestor((function(t){return!t.is("attributeElement")})):o,u=a.toModelElement(s);e.preventDefault(),this.editor.model.change((function(t){t.setSelection(u,"in")}))}}else if(_c(o)||(o=o.findAncestor(_c))){e.preventDefault(),i.isFocused||r.focus();var l=n.editing.mapper.toModelElement(o);this._setSelectionOverElement(l)}}},{key:"_handleSelectionChangeOnArrowKeyPress",value:function(t,e){var n=e.keyCode;if(Yr(n)){var r=this.editor.model,i=r.schema,o=r.document.selection,a=o.getSelectedElement(),s=Zr(n,this.editor.locale.contentLanguageDirection);if(a&&i.isObject(a)){var u=s?o.getLastPosition():o.getFirstPosition(),l=i.getNearestSelectionRange(u,s?"forward":"backward");l&&(r.change((function(t){t.setSelection(l)})),e.preventDefault(),t.stop())}else if(o.isCollapsed){var c=this._getObjectElementNextToSelection(s);c&&i.isObject(c)&&(this._setSelectionOverElement(c),e.preventDefault(),t.stop())}}}},{key:"_preventDefaultOnArrowKeyPress",value:function(t,e){if(Yr(e.keyCode)){var n=this.editor.model,r=n.schema,i=n.document.selection.getSelectedElement();i&&r.isObject(i)&&(e.preventDefault(),t.stop())}}},{key:"_handleDelete",value:function(t){var e=this;if(!this.editor.isReadOnly){var n=this.editor.model.document.selection;if(n.isCollapsed){var r=this._getObjectElementNextToSelection(t);return r?(this.editor.model.change((function(t){for(var i=n.anchor.parent;i.isEmpty;){var o=i;i=o.parent,t.remove(o)}e._setSelectionOverElement(r)})),!0):void 0}}}},{key:"_setSelectionOverElement",value:function(t){this.editor.model.change((function(e){e.setSelection(e.createRangeOn(t))}))}},{key:"_getObjectElementNextToSelection",value:function(t){var e=this.editor.model,n=e.schema,r=e.document.selection,i=e.createSelection(r);e.modifySelection(i,{direction:t?"forward":"backward"});var o=t?i.focus.nodeBefore:i.focus.nodeAfter;return o&&n.isObject(o)?o:null}},{key:"_clearPreviouslySelectedWidgets",value:function(t){var e,n=c(this._previouslySelected);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.removeClass(wc,r)}}catch(t){n.e(t)}finally{n.f()}this._previouslySelected.clear()}}],[{key:"pluginName",get:function(){return"Widget"}},{key:"requires",get:function(){return[gh]}}]),n}(Rl);function _h(t,e){return!!e&&Array.from(t.getAncestors()).includes(e)}var kh=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=Pc(t),Pc(t)&&t.hasAttribute("alt")?this.value=t.getAttribute("alt"):this.value=!1}},{key:"execute",value:function(t){var e=this.editor.model,n=e.document.selection.getSelectedElement();e.change((function(e){e.setAttribute("alt",t.newValue,n)}))}}]),n}(Dl),Mh=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.editor.commands.add("imageTextAlternative",new kh(this.editor))}}],[{key:"pluginName",get:function(){return"ImageTextAlternativeEditing"}}]),n}(Rl);n(60);var xh=function(t){v(n,t);var e=g(n);function n(t,r){var i;h(this,n),i=e.call(this,t);var o="ck-labeled-field-view-"+We(),a="ck-labeled-field-view-status-"+We();i.fieldView=r(y(i),o,a),i.set("label"),i.set("isEnabled",!0),i.set("errorText",null),i.set("infoText",null),i.set("class"),i.labelView=i._createLabelView(o),i.statusView=i._createStatusView(a),i.bind("_statusText").to(y(i),"errorText",y(i),"infoText",(function(t,e){return t||e}));var s=i.bindTemplate;return i.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",s.to("class"),s.if("isEnabled","ck-disabled",(function(t){return!t}))]},children:[i.labelView,i.fieldView,i.statusView]}),i}return m(n,[{key:"_createLabelView",value:function(t){var e=new Ju(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}},{key:"_createStatusView",value:function(t){var e=new Ku(this.locale),n=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(function(t){return!t}))],id:t,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),e}},{key:"focus",value:function(){this.fieldView.focus()}}]),n}(Ku);n(62);var Sh=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n),(r=e.call(this,t)).set("value"),r.set("id"),r.set("placeholder"),r.set("isReadOnly",!1),r.set("hasError",!1),r.set("ariaDescribedById");var i=r.bindTemplate;return r.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",i.if("hasError","ck-error")],id:i.to("id"),placeholder:i.to("placeholder"),readonly:i.to("isReadOnly"),"aria-invalid":i.if("hasError",!0),"aria-describedby":i.to("ariaDescribedById")},on:{input:i.to("input")}}),r}return m(n,[{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this);var e=function(e){t.element.value=e||0===e?e:""};e(this.value),this.on("change:value",(function(t,n,r){e(r)}))}},{key:"select",value:function(){this.element.select()}},{key:"focus",value:function(){this.element.focus()}}]),n}(Ku);function Ch(t,e,n){var r=new Sh(t.locale);return r.set({id:e,ariaDescribedById:n}),r.bind("isReadOnly").to(t,"isEnabled",(function(t){return!t})),r.bind("hasError").to(t,"errorText",(function(t){return!!t})),r.on("input",(function(){t.errorText=null})),r}function Ah(t){var e=t.view;e.listenTo(e.element,"submit",(function(t,n){n.preventDefault(),e.fire("submit")}),{useCapture:!0})}var Th='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',Eh='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.591 10.177l4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>';n(64);var Oh=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n);var i=(r=e.call(this,t)).locale.t;return r.focusTracker=new yu,r.keystrokes=new fu,r.labeledInput=r._createLabeledInputView(),r.saveButtonView=r._createButton(i("Save"),Th,"ck-button-save"),r.saveButtonView.type="submit",r.cancelButtonView=r._createButton(i("Cancel"),Eh,"ck-button-cancel","cancel"),r._focusables=new Au,r._focusCycler=new rl({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form"],tabindex:"-1"},children:[r.labeledInput,r.saveButtonView,r.cancelButtonView]}),r}return m(n,[{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this),this.keystrokes.listenTo(this.element),Ah({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)}))}},{key:"_createButton",value:function(t,e,n,r){var i=new vl(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"_createLabeledInputView",value:function(){var t=this.locale.t,e=new xh(this.locale,Ch);return e.label=t("Text alternative"),e.fieldView.placeholder=t("Text alternative"),e}}]),n}(Ku);n(66),n(68);var Ph=tl("px"),Ih=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).positionLimiter=function(){var t=r.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null},r.set("visibleView",null),r.view=new dc(t.locale),t.ui.view.body.add(r.view),t.ui.focusTracker.add(r.view.element),r._viewToStack=new Map,r._idToStack=new Map,r.set("_numberOfStacks",0),r.set("_singleViewMode",!1),r._rotatorView=r._createRotatorView(),r._fakePanelsView=r._createFakePanelsView(),r}return m(n,null,[{key:"pluginName",get:function(){return"ContextualBalloon"}}]),m(n,[{key:"hasView",value:function(t){return Array.from(this._viewToStack.keys()).includes(t)}},{key:"add",value:function(t){if(this.hasView(t.view))throw new Ye.b("contextualballoon-add-view-exist: Cannot add configuration of the same view twice.",[this,t]);var e=t.stackId||"main";if(!this._idToStack.has(e))return this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!t.singleViewMode||this.showStack(e));var n=this._idToStack.get(e);t.singleViewMode&&this.showStack(e),n.set(t.view,t),this._viewToStack.set(t.view,n),n===this._visibleStack&&this._showView(t)}},{key:"remove",value:function(t){if(!this.hasView(t))throw new Ye.b("contextualballoon-remove-view-not-exist: Cannot remove the configuration of a non-existent view.",[this,t]);var e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(1===e.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),1===e.size?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t)}},{key:"updatePosition",value:function(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}},{key:"showStack",value:function(t){this.visibleStack=t;var e=this._idToStack.get(t);if(!e)throw new Ye.b("contextualballoon-showstack-stack-not-exist: Cannot show a stack that does not exist.",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}},{key:"_getStackId",value:function(t){return Array.from(this._idToStack.entries()).find((function(e){return e[1]===t}))[0]}},{key:"_showNextStack",value:function(){var t=Array.from(this._idToStack.values()),e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}},{key:"_showPrevStack",value:function(){var t=Array.from(this._idToStack.values()),e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}},{key:"_createRotatorView",value:function(){var t=this,e=new Rh(this.editor.locale),n=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(function(t,e){return!e&&t>1})),e.on("change:isNavigationVisible",(function(){return t.updatePosition()}),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(function(e,r){if(r<2)return"";var i=Array.from(t._idToStack.values()).indexOf(t._visibleStack)+1;return n("%0 of %1",[i,r])})),e.buttonNextView.on("execute",(function(){e.focusTracker.isFocused&&t.editor.editing.view.focus(),t._showNextStack()})),e.buttonPrevView.on("execute",(function(){e.focusTracker.isFocused&&t.editor.editing.view.focus(),t._showPrevStack()})),e}},{key:"_createFakePanelsView",value:function(){var t=new jh(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(function(t,e){return!e&&t>=2?Math.min(t-1,2):0})),t.listenTo(this.view,"change:top",(function(){return t.updatePosition()})),t.listenTo(this.view,"change:left",(function(){return t.updatePosition()})),this.editor.ui.view.body.add(t),t}},{key:"_showView",value:function(t){var e=t.view,n=t.balloonClassName,r=void 0===n?"":n,i=t.withArrow,o=void 0===i||i,a=t.singleViewMode,s=void 0!==a&&a;this.view.class=r,this.view.withArrow=o,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}},{key:"_getBalloonPosition",value:function(){var t=Array.from(this._visibleStack.values()).pop().position;return t&&!t.limiter&&(t=Object.assign({},t,{limiter:this.positionLimiter})),t}},{key:"_visibleStack",get:function(){return this._viewToStack.get(this.visibleView)}}]),n}(Rl),Rh=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n),r=e.call(this,t);var i=t.t,o=r.bindTemplate;return r.set("isNavigationVisible",!0),r.focusTracker=new yu,r.buttonPrevView=r._createButtonView(i("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),r.buttonNextView=r._createButtonView(i("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),r.content=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",o.to("isNavigationVisible",(function(t){return t?"":"ck-hidden"}))]},children:[r.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:o.to("counter")}]},r.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:r.content}]}),r}return m(n,[{key:"render",value:function(){s(x(n.prototype),"render",this).call(this),this.focusTracker.add(this.element)}},{key:"showView",value:function(t){this.hideView(),this.content.add(t)}},{key:"hideView",value:function(){this.content.clear()}},{key:"_createButtonView",value:function(t,e){var n=new vl(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}]),n}(Ku),jh=function(t){v(n,t);var e=g(n);function n(t,r){var i;h(this,n);var o=(i=e.call(this,t)).bindTemplate;return i.set("top",0),i.set("left",0),i.set("height",0),i.set("width",0),i.set("numberOfPanels",0),i.content=i.createCollection(),i._balloonPanelView=r,i.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",o.to("numberOfPanels",(function(t){return t?"":"ck-hidden"}))],style:{top:o.to("top",Ph),left:o.to("left",Ph),width:o.to("width",Ph),height:o.to("height",Ph)}},children:i.content}),i.on("change:numberOfPanels",(function(t,e,n,r){n>r?i._addPanels(n-r):i._removePanels(r-n),i.updatePosition()})),i}return m(n,[{key:"_addPanels",value:function(t){for(;t--;){var e=new Ku;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}},{key:"_removePanels",value:function(t){for(;t--;){var e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}},{key:"updatePosition",value:function(){if(this.numberOfPanels){var t=this._balloonPanelView,e=t.top,n=t.left,r=new Po(this._balloonPanelView.element),i=r.width,o=r.height;Object.assign(this,{top:e,left:n,width:i,height:o})}}}]),n}(Ku);function Dh(t){var e=t.editing.view,n=dc.defaultPositions;return{target:e.domConverter.viewToDom(e.document.selection.getSelectedElement()),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}var Nh=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){this._createButton(),this._createForm()}},{key:"destroy",value:function(){s(x(n.prototype),"destroy",this).call(this),this._form.destroy()}},{key:"_createButton",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add("imageTextAlternative",(function(r){var i=e.commands.get("imageTextAlternative"),o=new vl(r);return o.set({label:n("Change image text alternative"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22L2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21l-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),t.listenTo(o,"execute",(function(){t._showForm()})),o}))}},{key:"_createForm",value:function(){var t=this,e=this.editor,n=e.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new Oh(e.locale),this._form.render(),this.listenTo(this._form,"submit",(function(){e.execute("imageTextAlternative",{newValue:t._form.labeledInput.fieldView.element.value}),t._hideForm(!0)})),this.listenTo(this._form,"cancel",(function(){t._hideForm(!0)})),this._form.keystrokes.set("Esc",(function(e,n){t._hideForm(!0),n()})),this.listenTo(e.ui,"update",(function(){Oc(n.selection)?t._isVisible&&function(t){var e=t.plugins.get("ContextualBalloon");if(Oc(t.editing.view.document.selection)){var n=Dh(t);e.updatePosition(n)}}(e):t._hideForm(!0)})),Ml({emitter:this._form,activator:function(){return t._isVisible},contextElements:[this._balloon.view.element],callback:function(){return t._hideForm()}})}},{key:"_showForm",value:function(){if(!this._isVisible){var t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._isInBalloon||this._balloon.add({view:this._form,position:Dh(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select()}}},{key:"_hideForm",value:function(t){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus())}},{key:"_isVisible",get:function(){return this._balloon.visibleView===this._form}},{key:"_isInBalloon",get:function(){return this._balloon.hasView(this._form)}}],[{key:"requires",get:function(){return[Ih]}},{key:"pluginName",get:function(){return"ImageTextAlternativeUI"}}]),n}(Rl),Lh=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Mh,Nh]}},{key:"pluginName",get:function(){return"ImageTextAlternative"}}]),n}(Rl);n(70);var Bh=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Lc,wh,Lh]}},{key:"pluginName",get:function(){return"Image"}}]),n}(Rl);function zh(t){var e,n=c(t.getChildren());try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r&&r.is("element","caption"))return r}}catch(t){n.e(t)}finally{n.f()}return null}function Fh(t){var e=t.parent;return"figcaption"==t.name&&e&&"figure"==e.name&&e.hasClass("image")?{name:!0}:null}var qh=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view,r=e.model.schema,i=e.data,o=e.editing,a=e.t;r.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),e.model.document.registerPostFixer((function(e){return t._insertMissingModelCaptionElement(e)})),e.conversion.for("upcast").elementToElement({view:Fh,model:"caption"}),i.downcastDispatcher.on("insert:caption",Vh((function(t){return t.createContainerElement("figcaption")}),!1));var s=function(t,e){return function(n){var r=n.createEditableElement("figcaption");return n.setCustomProperty("imageCaption",!0,r),ku({view:t,element:r,text:e}),Sc(r,n)}}(n,a("Enter image caption"));o.downcastDispatcher.on("insert:caption",Vh(s)),o.downcastDispatcher.on("insert",this._fixCaptionVisibility((function(t){return t.item})),{priority:"high"}),o.downcastDispatcher.on("remove",this._fixCaptionVisibility((function(t){return t.position.parent})),{priority:"high"}),n.document.registerPostFixer((function(e){return t._updateCaptionVisibility(e)}))}},{key:"_updateCaptionVisibility",value:function(t){var e,n=this.editor.editing.mapper,r=this._lastSelectedCaption,i=this.editor.model.document.selection,o=i.getSelectedElement();if(o&&o.is("element","image")){var a=zh(o);e=n.toViewElement(a)}var s=$h(i.getFirstPosition().parent);if(s&&(e=n.toViewElement(s)),e)return r?(r===e||(Hh(r,t),this._lastSelectedCaption=e),Uh(e,t)):(this._lastSelectedCaption=e,Uh(e,t));if(r){var u=Hh(r,t);return this._lastSelectedCaption=null,u}return!1}},{key:"_fixCaptionVisibility",value:function(t){var e=this;return function(n,r,i){var o=$h(t(r)),a=e.editor.editing.mapper,s=i.writer;if(o){var u=a.toViewElement(o);u&&(o.childCount?s.removeClass("ck-hidden",u):s.addClass("ck-hidden",u))}}}},{key:"_insertMissingModelCaptionElement",value:function(t){var e,n=this.editor.model,r=[],i=c(n.document.differ.getChanges());try{for(i.s();!(e=i.n()).done;){var o=e.value;if("insert"==o.type&&"$text"!=o.name){var a=o.position.nodeAfter;if(a.is("element","image")&&!zh(a)&&r.push(a),!a.is("element","image")&&a.childCount){var s,u=c(n.createRangeIn(a).getItems());try{for(u.s();!(s=u.n()).done;){var l=s.value;l.is("element","image")&&!zh(l)&&r.push(l)}}catch(t){u.e(t)}finally{u.f()}}}}}catch(t){i.e(t)}finally{i.f()}for(var f=0,d=r;f<d.length;f++){var h=d[f];t.appendElement("caption",h)}return!!r.length}}],[{key:"pluginName",get:function(){return"ImageCaptionEditing"}}]),n}(Rl);function Vh(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(n,r,i){var o=r.item;if((o.childCount||e)&&Pc(o.parent)){if(!i.consumable.consume(r.item,"insert"))return;var a=i.mapper.toViewElement(r.range.start.parent),s=t(i.writer),u=i.writer;o.childCount||u.addClass("ck-hidden",s),function(t,e,n,r){var i=r.writer.createPositionAt(n,"end");r.writer.insert(i,t),r.mapper.bindElements(e,t)}(s,r.item,a,i)}}}function $h(t){var e=t.getAncestors({includeSelf:!0}).find((function(t){return"caption"==t.name}));return e&&e.parent&&"image"==e.parent.name?e:null}function Hh(t,e){return!t.childCount&&!t.hasClass("ck-hidden")&&(e.addClass("ck-hidden",t),!0)}function Uh(t,e){return!!t.hasClass("ck-hidden")&&(e.removeClass("ck-hidden",t),!0)}n(72);var Wh=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=this.editor.model.document.selection.getSelectedElement();this.isEnabled=Pc(t),t&&t.hasAttribute("width")?this.value={width:t.getAttribute("width"),height:null}:this.value=null}},{key:"execute",value:function(t){var e=this.editor.model,n=e.document.selection.getSelectedElement();this.value={width:t.width,height:null},n&&e.change((function(e){e.setAttribute("width",t.width,n)}))}}]),n}(Dl),Kh=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),r=e.call(this,t),t.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"imageResize:original",value:null,icon:"original"},{name:"imageResize:25",value:"25",icon:"small"},{name:"imageResize:50",value:"50",icon:"medium"},{name:"imageResize:75",value:"75",icon:"large"}]}),r}return m(n,null,[{key:"pluginName",get:function(){return"ImageResizeEditing"}}]),m(n,[{key:"init",value:function(){var t=this.editor,e=new Wh(t);this._registerSchema(),this._registerConverters(),t.commands.add("imageResize",e)}},{key:"_registerSchema",value:function(){this.editor.model.schema.extend("image",{allowAttributes:"width"}),this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0})}},{key:"_registerConverters",value:function(){var t=this.editor;t.conversion.for("downcast").add((function(t){return t.on("attribute:width:image",(function(t,e,n){if(n.consumable.consume(e.item,t.name)){var r=n.writer,i=n.mapper.toViewElement(e.item);null!==e.attributeNewValue?(r.setStyle("width",e.attributeNewValue,i),r.addClass("image_resized",i)):(r.removeStyle("width",i),r.removeClass("image_resized",i))}}))})),t.conversion.for("upcast").attributeToAttribute({view:{name:"figure",styles:{width:/.+/}},model:{key:"width",value:function(t){return t.getStyle("width")}}})}}]),n}(Rl),Yh='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',Gh={small:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',medium:Yh,large:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',original:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>'},Zh=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t))._resizeUnit=t.config.get("image.resizeUnit"),r}return m(n,null,[{key:"requires",get:function(){return[Kh]}},{key:"pluginName",get:function(){return"ImageResizeButtons"}}]),m(n,[{key:"init",value:function(){var t=this.editor,e=t.config.get("image.resizeOptions"),n=t.commands.get("imageResize");this.bind("isEnabled").to(n);var r,i=c(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;this._registerImageResizeButton(o)}}catch(t){i.e(t)}finally{i.f()}this._registerImageResizeDropdown(e)}},{key:"_registerImageResizeButton",value:function(t){var e=this,n=this.editor,r=t.name,i=t.value,o=t.icon,a=i?i+this._resizeUnit:null;n.ui.componentFactory.add(r,(function(i){var s=new vl(i),u=n.commands.get("imageResize"),l=e._getOptionLabelValue(t,!0);if(!Gh[o])throw new Ye.b('imageresizebuttons-missing-icon: The resize option "'+r+'" misses the "icon" property or the property value doesn\'t match any of the available icons.',n,t);return s.set({label:l,icon:Gh[o],tooltip:l,isToggleable:!0}),s.bind("isEnabled").to(e),s.bind("isOn").to(u,"value",Jh(a)),e.listenTo(s,"execute",(function(){n.execute("imageResize",{width:a})})),s}))}},{key:"_registerImageResizeDropdown",value:function(t){var e=this,n=this.editor,r=n.t,i=t.find((function(t){return!t.value}));n.ui.componentFactory.add("imageResize",(function(o){var a=n.commands.get("imageResize"),s=xl(o,bl),u=s.buttonView;return u.set({tooltip:r("Resize image"),commandValue:i.value,icon:Yh,isToggleable:!0,label:e._getOptionLabelValue(i),withText:!0,class:"ck-resize-image-button"}),u.bind("label").to(a,"value",(function(t){return t&&t.width?t.width:e._getOptionLabelValue(i)})),s.bind("isOn").to(a),s.bind("isEnabled").to(e),Cl(s,e._getResizeDropdownListItemDefinitions(t,a)),s.listView.ariaLabel=r("Image resize list"),e.listenTo(s,"execute",(function(t){n.execute(t.source.commandName,{width:t.source.commandValue}),n.editing.view.focus()})),s}))}},{key:"_getOptionLabelValue",value:function(t,e){var n=this.editor.t;return t.label?t.label:e?t.value?n("Resize image to %0",t.value+this._resizeUnit):n("Resize image to the original size"):t.value?t.value+this._resizeUnit:n("Original")}},{key:"_getResizeDropdownListItemDefinitions",value:function(t,e){var n=this,r=new sn;return t.map((function(t){var i=t.value?t.value+n._resizeUnit:null,o={type:"button",model:new rh({commandName:"imageResize",commandValue:i,label:n._getOptionLabelValue(t),withText:!0,icon:null})};o.model.bind("isOn").to(e,"value",Jh(i)),r.add(o)})),r}}]),n}(Rl);function Jh(t){return function(e){return null===t&&e===t||e&&e.width===t}}var Xh=function(){function t(e){h(this,t),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=e,this._referenceCoordinates=null}return m(t,[{key:"begin",value:function(t,e,n){var r=new Po(e);this.activeHandlePosition=function(t){for(var e=0,n=["top-left","top-right","bottom-right","bottom-left"];e<n.length;e++){var r=n[e];if(t.classList.contains(Qh(r)))return r}}(t),this._referenceCoordinates=function(t,e){var n=new Po(t),r=e.split("-"),i={x:"right"==r[1]?n.right:n.left,y:"bottom"==r[0]?n.bottom:n.top};return i.x+=t.ownerDocument.defaultView.scrollX,i.y+=t.ownerDocument.defaultView.scrollY,i}(e,function(t){var e=t.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return"".concat(n[e[0]],"-").concat(n[e[1]])}(this.activeHandlePosition)),this.originalWidth=r.width,this.originalHeight=r.height,this.aspectRatio=r.width/r.height;var i=n.style.width;i&&i.match(/^\d+\.?\d*%$/)?this.originalWidthPercents=parseFloat(i):this.originalWidthPercents=function(t,e){var n=t.parentElement,r=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);return e.width/r*100}(n,r)}},{key:"update",value:function(t){this.proposedWidth=t.width,this.proposedHeight=t.height,this.proposedWidthPercents=t.widthPercents,this.proposedHandleHostWidth=t.handleHostWidth,this.proposedHandleHostHeight=t.handleHostHeight}}]),t}();function Qh(t){return"ck-widget__resizer__handle-"+t}an(Xh,pr);var tp=function(){function t(e){var n=this;h(this,t),this._options=e,this._domResizerWrapper=null,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(function(t){n.state.proposedWidth||n.state.proposedWidthPercents||(n._cleanup(),t.stop())}),{priority:"high"}),this.on("change:isEnabled",(function(){n.isEnabled&&n.redraw()}))}return m(t,[{key:"attach",value:function(){var t=this,e=this,n=this._options.viewElement;this._options.editor.editing.view.change((function(r){var i=r.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(t){var n=this.toDomElement(t);return e._appendHandles(n),e._appendSizeUI(n),e._domResizerWrapper=n,e.on("change:isEnabled",(function(t,e,r){n.style.display=r?"":"none"})),n.style.display=e.isEnabled?"":"none",n}));r.insert(r.createPositionAt(n,"end"),i),r.addClass("ck-widget_with-resizer",n),t._viewResizerWrapper=i}))}},{key:"begin",value:function(t){this.state=new Xh(this._options),this._sizeUI.bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(t,this._getHandleHost(),this._getResizeHost())}},{key:"updateSize",value:function(t){var e=this,n=this._proposeNewSize(t);this._options.editor.editing.view.change((function(t){var r=e._options.unit||"%",i=("%"===r?n.widthPercents:n.width)+r;t.setStyle("width",i,e._options.viewElement)}));var r=this._getHandleHost(),i=new Po(r);n.handleHostWidth=Math.round(i.width),n.handleHostHeight=Math.round(i.height);var o=new Po(r);n.width=Math.round(o.width),n.height=Math.round(o.height),this.redraw(i),this.state.update(n)}},{key:"commit",value:function(){var t=this,e=this._options.unit||"%",n=("%"===e?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change((function(){t._cleanup(),t._options.onCommit(n)}))}},{key:"cancel",value:function(){this._cleanup()}},{key:"destroy",value:function(){this.cancel()}},{key:"redraw",value:function(t){var e=this._domResizerWrapper;if((n=e)&&n.ownerDocument&&n.ownerDocument.contains(n)){var n,r,i=e.parentElement,o=this._getHandleHost(),a=this._viewResizerWrapper,s=[a.getStyle("width"),a.getStyle("height"),a.getStyle("left"),a.getStyle("top")];if(i.isSameNode(o)){var u=t||new Po(o);r=[u.width+"px",u.height+"px",void 0,void 0]}else r=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];"same"!==pn(s,r)&&this._options.editor.editing.view.change((function(t){t.setStyle({width:r[0],height:r[1],left:r[2],top:r[3]},a)}))}}},{key:"containsHandle",value:function(t){return this._domResizerWrapper.contains(t)}},{key:"_cleanup",value:function(){var t=this;this._sizeUI.dismiss(),this._sizeUI.isVisible=!1,this._options.editor.editing.view.change((function(e){e.setStyle("width",t._initialViewWidth,t._options.viewElement)}))}},{key:"_proposeNewSize",value:function(t){var e,n=this.state,r=(e=t).pageX,i=e.pageY,o=!this._options.isCentered||this._options.isCentered(this),a={x:n._referenceCoordinates.x-(r+n.originalWidth),y:i-n.originalHeight-n._referenceCoordinates.y};o&&n.activeHandlePosition.endsWith("-right")&&(a.x=r-(n._referenceCoordinates.x+n.originalWidth)),o&&(a.x*=2);var s={width:Math.abs(n.originalWidth+a.x),height:Math.abs(n.originalHeight+a.y)};s.dominant=s.width/n.aspectRatio>s.height?"width":"height",s.max=s[s.dominant];var u={width:s.width,height:s.height};return"width"==s.dominant?u.height=u.width/n.aspectRatio:u.width=u.height*n.aspectRatio,{width:Math.round(u.width),height:Math.round(u.height),widthPercents:Math.min(Math.round(n.originalWidthPercents/n.originalWidth*u.width*100)/100,100)}}},{key:"_getResizeHost",value:function(){var t=this._domResizerWrapper.parentElement;return this._options.getResizeHost(t)}},{key:"_getHandleHost",value:function(){var t=this._domResizerWrapper.parentElement;return this._options.getHandleHost(t)}},{key:"_appendHandles",value:function(t){for(var e,n=0,r=["top-left","top-right","bottom-right","bottom-left"];n<r.length;n++){var i=r[n];t.appendChild(new Tu({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(e=i,"ck-widget__resizer__handle-"+e)}}).render())}}},{key:"_appendSizeUI",value:function(t){var e=new ep;e.render(),this._sizeUI=e,t.appendChild(e.element)}}],[{key:"isResizeHandle",value:function(t){return t.classList.contains("ck-widget__resizer__handle")}}]),t}();an(tp,pr);var ep=function(t){v(n,t);var e=g(n);function n(){var t;h(this,n);var r=(t=e.call(this)).bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",r.to("activeHandlePosition",(function(t){return t?"ck-orientation-"+t:""}))],style:{display:r.if("isVisible","none",(function(t){return!t}))}},children:[{text:r.to("label")}]}),t}return m(n,[{key:"bindToState",value:function(t,e){this.bind("isVisible").to(e,"proposedWidth",e,"proposedHeight",(function(t,e){return null!==t&&null!==e})),this.bind("label").to(e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",e,"proposedWidthPercents",(function(e,n,r){return"px"===t.unit?"".concat(e,"×").concat(n):r+"%"})),this.bind("activeHandlePosition").to(e)}},{key:"dismiss",value:function(){this.unbind(),this.isVisible=!1}}]),n}(Ku),np=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return U(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ko(t,e,{leading:r,maxWait:e,trailing:i})};n(74);var rp=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this;this.set("_visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map;var e=Ii.window.document;this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0}),this.editor.editing.view.addObserver(zc),this._observer=Object.create(qi),this.listenTo(this.editor.editing.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(e,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(e,"mouseup",this._mouseUpListener.bind(this));var n=function(){t._visibleResizer&&t._visibleResizer.redraw()},r=np(n,200);this.on("change:_visibleResizer",n),this.editor.ui.on("update",r),this._observer.listenTo(Ii.window,"resize",r);var i=this.editor.editing.view.document.selection;i.on("change",(function(){var e=i.getSelectedElement();t._visibleResizer=t._getResizerByViewElement(e)||null}))}},{key:"destroy",value:function(){this._observer.stopListening();var t,e=c(this._resizers.values());try{for(e.s();!(t=e.n()).done;){t.value.destroy()}}catch(t){e.e(t)}finally{e.f()}}},{key:"attachTo",value:function(t){var e=new tp(t),n=this.editor.plugins;if(e.attach(),n.has("WidgetToolbarRepository")){var r=n.get("WidgetToolbarRepository");e.on("begin",(function(){r.forceDisabled("resize")}),{priority:"lowest"}),e.on("cancel",(function(){r.clearForceDisabled("resize")}),{priority:"highest"}),e.on("commit",(function(){r.clearForceDisabled("resize")}),{priority:"highest"})}return this._resizers.set(t.viewElement,e),e}},{key:"_getResizerByHandle",value:function(t){var e,n=c(this._resizers.values());try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.containsHandle(t))return r}}catch(t){n.e(t)}finally{n.f()}}},{key:"_getResizerByViewElement",value:function(t){return this._resizers.get(t)}},{key:"_mouseDownListener",value:function(t,e){var n=e.domTarget;tp.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n),this._activeResizer&&(this._activeResizer.begin(n),t.stop(),e.preventDefault()))}},{key:"_mouseMoveListener",value:function(t,e){this._activeResizer&&this._activeResizer.updateSize(e)}},{key:"_mouseUpListener",value:function(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}],[{key:"pluginName",get:function(){return"WidgetResize"}}]),n}(Rl);an(rp,pr);var ip=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.commands.get("imageResize");this.bind("isEnabled").to(n),e.editing.downcastDispatcher.on("insert:image",(function(n,r,i){var o=i.mapper.toViewElement(r.item),a=e.plugins.get(rp).attachTo({unit:e.config.get("image.resizeUnit"),modelElement:r.item,viewElement:o,editor:e,getHandleHost:function(t){return t.querySelector("img")},getResizeHost:function(t){return t},isCentered:function(){var t=r.item.getAttribute("imageStyle");return!t||"full"==t||"alignCenter"==t},onCommit:function(t){e.execute("imageResize",{width:t})}});a.on("updateSize",(function(){o.hasClass("image_resized")||e.editing.view.change((function(t){t.addClass("image_resized",o)}))})),a.bind("isEnabled").to(t)}),{priority:"low"})}}],[{key:"requires",get:function(){return[rp]}},{key:"pluginName",get:function(){return"ImageResizeHandles"}}]),n}(Rl);n(76);var op=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),(i=e.call(this,t)).defaultStyle=!1,i.styles=r.reduce((function(t,e){return t[e.name]=e,e.isDefault&&(i.defaultStyle=e.name),t}),{}),i}return m(n,[{key:"refresh",value:function(){var t=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=Pc(t),t)if(t.hasAttribute("imageStyle")){var e=t.getAttribute("imageStyle");this.value=!!this.styles[e]&&e}else this.value=this.defaultStyle;else this.value=!1}},{key:"execute",value:function(t){var e=this,n=t.value,r=this.editor.model,i=r.document.selection.getSelectedElement();r.change((function(t){e.styles[n].isDefault?t.removeAttribute("imageStyle",i):t.setAttribute("imageStyle",n,i)}))}}]),n}(Dl);function ap(t,e){var n,r=c(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.name===t)return i}}catch(t){r.e(t)}finally{r.f()}}var sp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm2.5 3V12h11V7.5h-11zM4.061 6H15.94c.586 0 1.061.407 1.061.91v5.68c0 .503-.475.91-1.061.91H4.06c-.585 0-1.06-.407-1.06-.91V6.91C3 6.406 3.475 6 4.061 6zM2 16.5V15h16v1.5z"/></svg>',up='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M18 4.5V3H2v1.5h16zm0 3V6h-5.674v1.5H18zm0 3V9h-5.674v1.5H18zm0 3V12h-5.674v1.5H18zm-8.5-6V12h-6V7.5h6zm.818-1.5H2.682C2.305 6 2 6.407 2 6.91v5.68c0 .503.305.91.682.91h7.636c.377 0 .682-.407.682-.91V6.91c0-.503-.305-.91-.682-.91zM18 16.5V15H2v1.5h16z"/></svg>',lp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm4.5 3V12h7V7.5h-7zM5.758 6h8.484c.419 0 .758.407.758.91v5.681c0 .502-.34.909-.758.909H5.758c-.419 0-.758-.407-.758-.91V6.91c0-.503.34-.91.758-.91zM2 16.5V15h16v1.5z"/></svg>',cp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm0 3V6h5.674v1.5zm0 3V9h5.674v1.5zm0 3V12h5.674v1.5zm8.5-6V12h6V7.5h-6zM9.682 6h7.636c.377 0 .682.407.682.91v5.68c0 .503-.305.91-.682.91H9.682c-.377 0-.682-.407-.682-.91V6.91c0-.503.305-.91.682-.91zM2 16.5V15h16v1.5z"/></svg>',fp={full:{name:"full",title:"Full size image",icon:sp,isDefault:!0},side:{name:"side",title:"Side image",icon:cp,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:up,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:lp,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:cp,className:"image-style-align-right"}},dp={full:sp,left:up,right:cp,center:lp};function hp(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.map(pp)}function pp(t){if("string"==typeof t){var e=t;fp[e]?t=Object.assign({},fp[e]):(console.warn(Object(Ye.a)("image-style-not-found: There is no such image style of given name."),{name:e}),t={name:e})}else if(fp[t.name]){var n=fp[t.name],r=Object.assign({},t);for(var i in n)Object.prototype.hasOwnProperty.call(t,i)||(r[i]=n[i]);t=r}return"string"==typeof t.icon&&dp[t.icon]&&(t.icon=dp[t.icon]),t}var mp=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema,n=t.data,r=t.editing;t.config.define("image.styles",["full","side"]);var i=hp(t.config.get("image.styles"));e.extend("image",{allowAttributes:"imageStyle"});var o=function(t){return function(e,n,r){if(r.consumable.consume(n.item,e.name)){var i=ap(n.attributeNewValue,t),o=ap(n.attributeOldValue,t),a=r.mapper.toViewElement(n.item),s=r.writer;o&&s.removeClass(o.className,a),i&&s.addClass(i.className,a)}}}(i);r.downcastDispatcher.on("attribute:imageStyle:image",o),n.downcastDispatcher.on("attribute:imageStyle:image",o),n.upcastDispatcher.on("element:figure",function(t){var e=t.filter((function(t){return!t.isDefault}));return function(t,n,r){if(n.modelRange){var i=n.viewItem,o=Ll(n.modelRange.getItems());if(r.schema.checkAttribute(o,"imageStyle")){var a,s=c(e);try{for(s.s();!(a=s.n()).done;){var u=a.value;r.consumable.consume(i,{classes:u.className})&&r.writer.setAttribute("imageStyle",u.name,o)}}catch(t){s.e(t)}finally{s.f()}}}}}(i),{priority:"low"}),t.commands.add("imageStyle",new op(t,i))}}],[{key:"pluginName",get:function(){return"ImageStyleEditing"}}]),n}(Rl);n(78);var vp=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t,e=function(t,e){var n,r=c(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;e[i.title]&&(i.title=e[i.title])}}catch(t){r.e(t)}finally{r.f()}return t}(hp(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles),n=c(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._createButton(r)}}catch(t){n.e(t)}finally{n.f()}}},{key:"_createButton",value:function(t){var e=this,n=this.editor,r="imageStyle:"+t.name;n.ui.componentFactory.add(r,(function(r){var i=n.commands.get("imageStyle"),o=new vl(r);return o.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value",(function(e){return e===t.name})),e.listenTo(o,"execute",(function(){n.execute("imageStyle",{value:t.name}),n.editing.view.focus()})),o}))}},{key:"localizedDefaultStylesTitles",get:function(){var t=this.editor.t;return{"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")}}}],[{key:"pluginName",get:function(){return"ImageStyleUI"}}]),n}(Rl),gp=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor;if(e.plugins.has("BalloonToolbar")){var n=e.plugins.get("BalloonToolbar");this.listenTo(n,"show",(function(t){(function(t){var e=t.getSelectedElement();return!(!e||!_c(e))})(e.editing.view.document.selection)&&t.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(function(){t._updateToolbarsVisibility()})),this.listenTo(e.ui,"update",(function(){t._updateToolbarsVisibility()})),this.listenTo(e.ui.focusTracker,"change:isFocused",(function(){t._updateToolbarsVisibility()}),{priority:"low"})}},{key:"destroy",value:function(){s(x(n.prototype),"destroy",this).call(this);var t,e=c(this._toolbarDefinitions.values());try{for(e.s();!(t=e.n()).done;){t.value.view.destroy()}}catch(t){e.e(t)}finally{e.f()}}},{key:"register",value:function(t,e){var n=e.ariaLabel,r=e.items,i=e.getRelatedElement,o=e.balloonClassName,a=void 0===o?"ck-toolbar-container":o;if(r.length){var s=this.editor,u=s.t,l=new Al(s.locale);if(l.ariaLabel=n||u("Widget toolbar"),this._toolbarDefinitions.has(t))throw new Ye.b("widget-toolbar-duplicated: Toolbar with the given id was already added.",this,{toolbarId:t});l.fillFromConfig(r,s.ui.componentFactory),this._toolbarDefinitions.set(t,{view:l,getRelatedElement:i,balloonClassName:a})}else console.warn(Object(Ye.a)("widget-toolbar-no-items: Trying to register a toolbar without items."),{toolbarId:t})}},{key:"_updateToolbarsVisibility",value:function(){var t,e=0,n=null,r=null,i=c(this._toolbarDefinitions.values());try{for(i.s();!(t=i.n()).done;){var o=t.value,a=o.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&a)if(this.editor.ui.focusTracker.isFocused){var s=a.getAncestors().length;s>e&&(e=s,n=a,r=o)}else this._isToolbarVisible(o)&&this._hideToolbar(o);else this._isToolbarInBalloon(o)&&this._hideToolbar(o)}}catch(t){i.e(t)}finally{i.f()}r&&this._showToolbar(r,n)}},{key:"_hideToolbar",value:function(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}},{key:"_showToolbar",value:function(t,e){var n=this;this._isToolbarVisible(t)?bp(this.editor,e):this._isToolbarInBalloon(t)||(this._balloon.add({view:t.view,position:yp(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(function(){var t,e=c(n._toolbarDefinitions.values());try{for(e.s();!(t=e.n()).done;){var r=t.value;if(n._isToolbarVisible(r)){var i=r.getRelatedElement(n.editor.editing.view.document.selection);bp(n.editor,i)}}}catch(t){e.e(t)}finally{e.f()}})))}},{key:"_isToolbarVisible",value:function(t){return this._balloon.visibleView===t.view}},{key:"_isToolbarInBalloon",value:function(t){return this._balloon.hasView(t.view)}}],[{key:"requires",get:function(){return[Ih]}},{key:"pluginName",get:function(){return"WidgetToolbarRepository"}}]),n}(Rl);function bp(t,e){var n=t.plugins.get("ContextualBalloon"),r=yp(t,e);n.updatePosition(r)}function yp(t,e){var n=t.editing.view,r=dc.defaultPositions;return{target:n.domConverter.mapViewToDom(e),positions:[r.northArrowSouth,r.northArrowSouthWest,r.northArrowSouthEast,r.southArrowNorth,r.southArrowNorthWest,r.southArrowNorthEast,Ac]}}n(80);var wp=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n);var i=(r=e.call(this,t)).bindTemplate;return r.set("icon"),r.set("isEnabled",!0),r.set("isOn",!1),r.set("isToggleable",!1),r.set("isVisible",!0),r.set("keystroke"),r.set("label"),r.set("tabindex",-1),r.set("tooltip"),r.set("tooltipPosition","s"),r.set("type","button"),r.set("withText",!1),r.children=r.createCollection(),r.actionView=r._createActionView(),r.arrowView=r._createArrowView(),r.keystrokes=new fu,r.focusTracker=new yu,r.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",i.if("isVisible","ck-hidden",(function(t){return!t})),r.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:r.children}),r}return m(n,[{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(function(e,n){t.focusTracker.focusedElement===t.actionView.element&&(t.arrowView.focus(),n())})),this.keystrokes.set("arrowleft",(function(e,n){t.focusTracker.focusedElement===t.arrowView.element&&(t.actionView.focus(),n())}))}},{key:"focus",value:function(){this.actionView.focus()}},{key:"_createActionView",value:function(){var t=new vl;return t.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),t.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),t.delegate("execute").to(this),t}},{key:"_createArrowView",value:function(){var t=new vl,e=t.bindTemplate;return t.icon=gl,t.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":e.to("isOn",(function(t){return String(t)}))}}),t.bind("isEnabled").to(this),t.delegate("execute").to(this,"open"),t}}]),n}(Ku);n(82);var _p=function(t){v(n,t);var e=g(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,n);var o=(r=e.call(this,t)).bindTemplate;return r.set("class",i.class||null),r.children=r.createCollection(),i.children&&i.children.forEach((function(t){return r.children.add(t)})),r.set("_role",null),r.set("_ariaLabelledBy",null),i.labelView&&r.set({_role:"group",_ariaLabelledBy:i.labelView.id}),r.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",o.to("class")],role:o.to("_role"),"aria-labelledby":o.to("_ariaLabelledBy")},children:r.children}),r}return n}(Ku),kp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>';n(84);var Mp=function(t){v(n,t);var e=g(n);function n(t,r){var i;h(this,n);var o=(i=e.call(this,t))._createActionButtons(t),a=o.insertButtonView,s=o.cancelButtonView;if(i.insertButtonView=a,i.cancelButtonView=s,i.dropdownView=i._createDropdownView(t),i.set("imageURLInputValue",""),i.focusTracker=new yu,i.keystrokes=new fu,i._focusables=new Au,i._focusCycler=new rl({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i.set("_integrations",new sn),r)for(var c=function(){var t=l(d[f],2),e=t[0],n=t[1];"insertImageViaUrl"===e&&(n.fieldView.bind("value").to(y(i),"imageURLInputValue",(function(t){return t||""})),n.fieldView.on("input",(function(){i.imageURLInputValue=n.fieldView.element.value}))),i._integrations.add(n)},f=0,d=Object.entries(r);f<d.length;f++)c();return i.setTemplate({tag:"form",attributes:{class:["ck","ck-image-upload-form"],tabindex:"-1"},children:[].concat(u(i._integrations),[new _p(t,{children:[i.insertButtonView,i.cancelButtonView],class:"ck-image-upload-form__action-row"})])}),i}return m(n,[{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this),Ah({view:this});var e=[].concat(u(this._integrations),[this.insertButtonView,this.cancelButtonView]);e.forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element);var r=function(t){return t.stopPropagation()};this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r),this.listenTo(e[0].element,"selectstart",(function(t,e){e.stopPropagation()}),{priority:"high"})}},{key:"_createDropdownView",value:function(t){var e=t.t,n=xl(t,wp),r=n.buttonView,i=n.panelView;return r.set({label:e("Insert image"),icon:kp,tooltip:!0}),i.extendTemplate({attributes:{class:"ck-image-upload__panel"}}),n}},{key:"_createActionButtons",value:function(t){var e=t.t,n=new vl(t),r=new vl(t);return n.set({label:e("Insert"),icon:Th,class:"ck-button-save",type:"submit",withText:!0,isEnabled:this.imageURLInputValue}),r.set({label:e("Cancel"),icon:Eh,class:"ck-button-cancel",withText:!0}),n.bind("isEnabled").to(this,"imageURLInputValue"),n.delegate("execute").to(this,"submit"),r.delegate("execute").to(this,"cancel"),{insertButtonView:n,cancelButtonView:r}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}}]),n}(Ku),xp=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).buttonView=new vl(t),r._fileInputView=new Sp(t),r._fileInputView.bind("acceptedType").to(y(r)),r._fileInputView.bind("allowMultipleFiles").to(y(r)),r._fileInputView.delegate("done").to(y(r)),r.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[r.buttonView,r._fileInputView]}),r.buttonView.on("execute",(function(){r._fileInputView.open()})),r}return m(n,[{key:"focus",value:function(){this.buttonView.focus()}}]),n}(Ku),Sp=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n),(r=e.call(this,t)).set("acceptedType"),r.set("allowMultipleFiles",!1);var i=r.bindTemplate;return r.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:i.to("acceptedType"),multiple:i.to("allowMultipleFiles")},on:{change:i.to((function(){r.element&&r.element.files&&r.element.files.length&&r.fire("done",r.element.files),r.element.value=""}))}}),r}return m(n,[{key:"open",value:function(){this.element.click()}}]),n}(Ku);function Cp(t){var e=t.map((function(t){return t.replace("+","\\+")}));return new RegExp("^image\\/(".concat(e.join("|"),")$"))}function Ap(t){var e=t.t,n=new xh(t,Ch);return n.set({label:e("Insert image via URL")}),n.fieldView.placeholder="https://example.com/src/image.png",n.infoText=e("Paste the image source URL."),n}var Tp=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=!!e.config.get("image.upload.panel.items");e.ui.componentFactory.add("imageUpload",(function(e){return n?t._createDropdownView(e):t._createFileDialogButtonView(e)}))}},{key:"_setUpDropdown",value:function(t,e,n){var r=this.editor,i=r.t,o=e.insertButtonView;function a(){r.editing.view.focus(),t.isOpen=!1}return t.bind("isEnabled").to(n),t.on("change:isOpen",(function(){var n=r.model.document.selection.getSelectedElement();t.isOpen&&(e.focus(),Pc(n)?(e.imageURLInputValue=n.getAttribute("src"),o.label=i("Update")):(e.imageURLInputValue="",o.label=i("Insert")))})),e.delegate("submit","cancel").to(t),this.delegate("cancel").to(t),t.on("submit",(function(){a(),function(){var t=r.model.document.selection.getSelectedElement();Pc(t)?r.model.change((function(n){n.setAttribute("src",e.imageURLInputValue,t),n.removeAttribute("srcset",t),n.removeAttribute("sizes",t)})):r.execute("imageInsert",{source:e.imageURLInputValue})}()})),t.on("cancel",(function(){a()})),t}},{key:"_createDropdownView",value:function(t){var e=this.editor,n=new Mp(t,function(t){var e=t.config.get("image.upload.panel.items"),n=t.plugins.get("ImageUploadUI"),r={insertImageViaUrl:Ap(t.locale)};if(!e)return r;if(e.find((function(t){return"openCKFinder"===t}))&&t.ui.componentFactory.has("ckfinder")){var i=t.ui.componentFactory.create("ckfinder");i.set({withText:!0,class:"ck-image-upload__ck-finder-button"}),i.delegate("execute").to(n,"cancel"),r.openCKFinder=i}return e.reduce((function(e,n){return r[n]?e[n]=r[n]:t.ui.componentFactory.has(n)&&(e[n]=t.ui.componentFactory.create(n)),e}),{})}(e)),r=e.commands.get("imageUpload"),i=n.dropdownView,o=i.panelView;return i.buttonView.actionView=this._createFileDialogButtonView(t),o.children.add(n),this._setUpDropdown(i,n,r)}},{key:"_createFileDialogButtonView",value:function(t){var e=this.editor,n=t.t,r=e.config.get("image.upload.types"),i=new xp(t),o=Cp(r),a=e.commands.get("imageUpload");return i.set({acceptedType:r.map((function(t){return"image/"+t})).join(","),allowMultipleFiles:!0}),i.buttonView.set({label:n("Insert image"),icon:kp,tooltip:!0}),i.buttonView.bind("isEnabled").to(a),i.on("done",(function(t,n){var r=Array.from(n).filter((function(t){return o.test(t.type)}));r.length&&e.execute("imageUpload",{file:r})})),i}}],[{key:"pluginName",get:function(){return"ImageUploadUI"}}]),n}(Rl);n(86),n(88),n(90);var Ep=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).placeholder="data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><rect rx="4"/></svg>'),r}return m(n,[{key:"init",value:function(){var t=this;this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",(function(){return t.uploadStatusChange.apply(t,arguments)}))}},{key:"uploadStatusChange",value:function(t,e,n){var r=this.editor,i=e.item,o=i.getAttribute("uploadId");if(n.consumable.consume(e.item,t.name)){var a=r.plugins.get(Uf),s=o?e.attributeNewValue:null,u=this.placeholder,l=r.editing.mapper.toViewElement(i),c=n.writer;if("reading"==s)return Op(l,c),void Pp(u,l,c);if("uploading"==s){var f=a.loaders.get(o);return Op(l,c),void(f?(Ip(l,c),function(t,e,n,r){var i=function(t){var e=t.createUIElement("div",{class:"ck-progress-bar"});return t.setCustomProperty("progressBar",!0,e),e}(e);e.insert(e.createPositionAt(t,"end"),i),n.on("change:uploadedPercent",(function(t,e,n){r.change((function(t){t.setStyle("width",n+"%",i)}))}))}(l,c,f,r.editing.view),function(t,e,n){if(n.data){var r=jc(t);e.setAttribute("src",n.data,r)}}(l,c,f)):Pp(u,l,c))}"complete"==s&&a.loaders.get(o)&&function(t,e,n){var r=e.createUIElement("div",{class:"ck-image-upload-complete-icon"});e.insert(e.createPositionAt(t,"end"),r),setTimeout((function(){n.change((function(t){return t.remove(t.createRangeOn(r))}))}),3e3)}(l,c,r.editing.view),function(t,e){jp(t,e,"progressBar")}(l,c),Ip(l,c),function(t,e){e.removeClass("ck-appear",t)}(l,c)}}}]),n}(Rl);function Op(t,e){t.hasClass("ck-appear")||e.addClass("ck-appear",t)}function Pp(t,e,n){e.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",e);var r=jc(e);r.getAttribute("src")!==t&&n.setAttribute("src",t,r),Rp(e,"placeholder")||n.insert(n.createPositionAfter(r),function(t){var e=t.createUIElement("div",{class:"ck-upload-placeholder-loader"});return t.setCustomProperty("placeholder",!0,e),e}(n))}function Ip(t,e){t.hasClass("ck-image-upload-placeholder")&&e.removeClass("ck-image-upload-placeholder",t),jp(t,e,"placeholder")}function Rp(t,e){var n,r=c(t.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.getCustomProperty(e))return i}}catch(t){r.e(t)}finally{r.f()}}function jp(t,e,n){var r=Rp(t,n);r&&e.remove(e.createRangeOn(r))}var Dp=function(){function t(e){h(this,t),this.document=e}return m(t,[{key:"createDocumentFragment",value:function(t){return new ni(this.document,t)}},{key:"createElement",value:function(t,e,n){return new or(this.document,t,e,n)}},{key:"createText",value:function(t){return new gn(this.document,t)}},{key:"clone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t._clone(e)}},{key:"appendChild",value:function(t,e){return e._appendChild(t)}},{key:"insertChild",value:function(t,e,n){return n._insertChild(t,e)}},{key:"removeChildren",value:function(t,e,n){return n._removeChildren(t,e)}},{key:"remove",value:function(t){var e=t.parent;return e?this.removeChildren(e.getChildIndex(t),1,e):[]}},{key:"replace",value:function(t,e){var n=t.parent;if(n){var r=n.getChildIndex(t);return this.removeChildren(r,1,n),this.insertChild(r,e,n),!0}return!1}},{key:"unwrapElement",value:function(t){var e=t.parent;if(e){var n=e.getChildIndex(t);this.remove(t),this.insertChild(n,t.getChildren(),e)}}},{key:"rename",value:function(t,e){var n=new or(this.document,t,e.getAttributes(),e.getChildren());return this.replace(e,n)?n:null}},{key:"setAttribute",value:function(t,e,n){n._setAttribute(t,e)}},{key:"removeAttribute",value:function(t,e){e._removeAttribute(t)}},{key:"addClass",value:function(t,e){e._addClass(t)}},{key:"removeClass",value:function(t,e){e._removeClass(t)}},{key:"setStyle",value:function(t,e,n){B(t)&&void 0===n&&(n=e),n._setStyle(t,e)}},{key:"removeStyle",value:function(t,e){e._removeStyle(t)}},{key:"setCustomProperty",value:function(t,e,n){n._setCustomProperty(t,e)}},{key:"removeCustomProperty",value:function(t,e){return e._removeCustomProperty(t)}},{key:"createPositionAt",value:function(t,e){return xr._createAt(t,e)}},{key:"createPositionAfter",value:function(t){return xr._createAfter(t)}},{key:"createPositionBefore",value:function(t){return xr._createBefore(t)}},{key:"createRange",value:function(t,e){return new Sr(t,e)}},{key:"createRangeOn",value:function(t){return Sr._createOn(t)}},{key:"createRangeIn",value:function(t){return Sr._createIn(t)}},{key:"createSelection",value:function(t,e,n){return new Tr(t,e,n)}}]),t}(),Np=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=this.editor.model.document.selection.getSelectedElement(),e=t&&"image"===t.name||!1;this.isEnabled=Rc(this.editor.model)||e}},{key:"execute",value:function(t){var e=this.editor,n=e.model,r=e.plugins.get(Uf);n.change((function(e){var i,o=c(Array.isArray(t.file)?t.file:[t.file]);try{for(o.s();!(i=o.n()).done;){var a=i.value;Lp(e,n,r,a)}}catch(t){o.e(t)}finally{o.f()}}))}}]),n}(Dl);function Lp(t,e,n,r){var i=n.createLoader(r);i&&Ic(t,e,{uploadId:i.id})}var Bp=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),r=e.call(this,t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),r}return m(n,null,[{key:"requires",get:function(){return[Uf,zf,uf]}},{key:"pluginName",get:function(){return"ImageUploadEditing"}}]),m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.model.document,r=e.model.schema,i=e.conversion,o=e.plugins.get(Uf),a=Cp(e.config.get("image.upload.types"));r.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),e.commands.add("imageUpload",new Np(e)),i.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(e.editing.view.document,"clipboardInput",(function(t,n){if(r=n.dataTransfer,!Array.from(r.types).includes("text/html")||""===r.getData("text/html")){var r,i=Array.from(n.dataTransfer.files).filter((function(t){return!!t&&a.test(t.type)})),o=n.targetRanges.map((function(t){return e.editing.mapper.toModelRange(t)}));e.model.change((function(n){n.setSelection(o),i.length&&(t.stop(),e.model.enqueueChange("default",(function(){e.execute("imageUpload",{file:i})})))}))}})),this.listenTo(e.plugins.get(uf),"inputTransformation",(function(t,n){var r=Array.from(e.editing.view.createRangeIn(n.content)).filter((function(t){return!(!(e=t.item).is("element","img")||!e.getAttribute("src"))&&(e.getAttribute("src").match(/^data:image\/\w+;base64,/g)||e.getAttribute("src").match(/^blob:/g))&&!t.item.getAttribute("uploadProcessed");var e})).map((function(t){return{promise:(e=t.item,new Promise((function(t,n){var r=e.getAttribute("src");fetch(r).then((function(t){return t.blob()})).then((function(e){var n=function(t,e){return t.type?t.type:e.match(/data:(image\/\w+);base64/)?e.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}(e,r),i=n.replace("image/",""),o=new File([e],"image."+i,{type:n});t(o)})).catch(n)}))),imageElement:t.item};var e}));if(r.length){var i,a=new Dp(e.editing.view.document),s=c(r);try{for(s.s();!(i=s.n()).done;){var u=i.value;a.setAttribute("uploadProcessed",!0,u.imageElement);var l=o.createLoader(u.promise);l&&(a.setAttribute("src","",u.imageElement),a.setAttribute("uploadId",l.id,u.imageElement))}}catch(t){s.e(t)}finally{s.f()}}})),e.editing.view.document.on("dragover",(function(t,e){e.preventDefault()})),n.on("change",(function(){var r,i=c(n.differ.getChanges({includeChangesInGraveyard:!0}));try{for(i.s();!(r=i.n()).done;){var a=r.value;if("insert"==a.type&&"$text"!=a.name){var s,u=a.position.nodeAfter,l="$graveyard"==a.position.root.rootName,f=c(zp(e,u));try{for(f.s();!(s=f.n()).done;){var d=s.value,h=d.getAttribute("uploadId");if(h){var p=o.loaders.get(h);p&&(l?p.abort():"idle"==p.status&&t._readAndUpload(p,d))}}}catch(t){f.e(t)}finally{f.f()}}}}catch(t){i.e(t)}finally{i.f()}}))}},{key:"_readAndUpload",value:function(t,e){var n=this,r=this.editor,i=r.model,o=r.locale.t,a=r.plugins.get(Uf),s=r.plugins.get(zf);return i.enqueueChange("transparent",(function(t){t.setAttribute("uploadStatus","reading",e)})),t.read().then((function(){var n=t.upload();if(zr){var o=jc(r.editing.mapper.toViewElement(e));r.editing.view.once("render",(function(){if(o.parent){var t=r.editing.view.domConverter.mapViewToDom(o.parent);if(t){var e=t.style.display;t.style.display="none",t._ckHack=t.offsetHeight,t.style.display=e}}}))}return i.enqueueChange("transparent",(function(t){t.setAttribute("uploadStatus","uploading",e)})),n})).then((function(t){i.enqueueChange("transparent",(function(r){r.setAttributes({uploadStatus:"complete",src:t.default},e),n._parseAndSetSrcsetAttributeOnImage(t,e,r)})),u()})).catch((function(n){if("error"!==t.status&&"aborted"!==t.status)throw n;"error"==t.status&&n&&s.showWarning(n,{title:o("Upload failed"),namespace:"upload"}),u(),i.enqueueChange("transparent",(function(t){t.remove(e)}))}));function u(){i.enqueueChange("transparent",(function(t){t.removeAttribute("uploadId",e),t.removeAttribute("uploadStatus",e)})),a.destroyLoader(t)}}},{key:"_parseAndSetSrcsetAttributeOnImage",value:function(t,e,n){var r=0,i=Object.keys(t).filter((function(t){var e=parseInt(t,10);if(!isNaN(e))return r=Math.max(r,e),!0})).map((function(e){return"".concat(t[e]," ").concat(e,"w")})).join(", ");""!=i&&n.setAttribute("srcset",{data:i,width:r},e)}}]),n}(Rl);function zp(t,e){return Array.from(t.model.createRangeOn(e)).filter((function(t){return t.item.is("element","image")})).map((function(t){return t.item}))}var Fp=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t))._childCommands=[],r}return m(n,[{key:"refresh",value:function(){}},{key:"execute",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._getFirstEnabledCommand().execute(e)}},{key:"registerChildCommand",value:function(t){var e=this;this._childCommands.push(t),t.on("change:isEnabled",(function(){return e._checkEnabled()})),this._checkEnabled()}},{key:"_checkEnabled",value:function(){this.isEnabled=!!this._getFirstEnabledCommand()}},{key:"_getFirstEnabledCommand",value:function(){return this._childCommands.find((function(t){return t.isEnabled}))}}]),n}(Dl),qp=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor;t.commands.add("indent",new Fp(t)),t.commands.add("outdent",new Fp(t))}}],[{key:"pluginName",get:function(){return"IndentEditing"}}]),n}(Rl),Vp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95L5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',$p='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',Hp=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor,e=t.locale,n=t.t,r="ltr"==e.uiLanguageDirection?Vp:$p,i="ltr"==e.uiLanguageDirection?$p:Vp;this._defineButton("indent",n("Increase indent"),r),this._defineButton("outdent",n("Decrease indent"),i)}},{key:"_defineButton",value:function(t,e,n){var r=this,i=this.editor;i.ui.componentFactory.add(t,(function(o){var a=i.commands.get(t),s=new vl(o);return s.set({label:e,icon:n,tooltip:!0}),s.bind("isOn","isEnabled").to(a,"value","isEnabled"),r.listenTo(s,"execute",(function(){i.execute(t),i.editing.view.focus()})),s}))}}],[{key:"pluginName",get:function(){return"IndentUI"}}]),n}(Rl),Up="italic",Wp=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:Up}),t.model.schema.setAttributeProperties(Up,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Up,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(Up,new Ql(t,Up)),t.keystrokes.set("CTRL+I",Up)}}],[{key:"pluginName",get:function(){return"ItalicEditing"}}]),n}(Rl),Kp="italic",Yp=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add(Kp,(function(r){var i=e.commands.get(Kp),o=new vl(r);return o.set({label:n("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.586 14.633l.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),t.listenTo(o,"execute",(function(){e.execute(Kp),e.editing.view.focus()})),o}))}}]),n}(Rl),Gp=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).domEventType="click",r}return m(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}]),n}(co);n(92);var Zp=function(t){v(n,t);var e=g(n);function n(t,r,i){var o;h(this,n),o=e.call(this,t);var a=t.t;o.focusTracker=new yu,o.keystrokes=new fu,o.urlInputView=o._createUrlInput(i),o.saveButtonView=o._createButton(a("Save"),Th,"ck-button-save"),o.saveButtonView.type="submit",o.cancelButtonView=o._createButton(a("Cancel"),Eh,"ck-button-cancel","cancel"),o._manualDecoratorSwitches=o._createManualDecoratorSwitches(r),o.children=o._createFormChildren(r.manualDecorators),o._focusables=new Au,o._focusCycler=new rl({focusables:o._focusables,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});var s=["ck","ck-link-form"];return r.manualDecorators.length&&s.push("ck-link-form_layout-vertical"),o.setTemplate({tag:"form",attributes:{class:s,tabindex:"-1"},children:o.children}),o}return m(n,[{key:"getDecoratorSwitchesState",value:function(){return Array.from(this._manualDecoratorSwitches).reduce((function(t,e){return t[e.name]=e.isOn,t}),{})}},{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this),Ah({view:this}),[this.urlInputView].concat(u(this._manualDecoratorSwitches),[this.saveButtonView,this.cancelButtonView]).forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createUrlInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://",e=this.locale.t,n=new xh(this.locale,Ch);return n.label=e("Link URL"),n.fieldView.placeholder=t+"example.com",n}},{key:"_createButton",value:function(t,e,n,r){var i=new vl(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"_createManualDecoratorSwitches",value:function(t){var e,n=this,r=this.createCollection(),i=c(t.manualDecorators);try{var o=function(){var i=e.value,o=new kl(n.locale);o.set({name:i.id,label:i.label,withText:!0}),o.bind("isOn").toMany([i,t],"value",(function(t,e){return void 0===e&&void 0===t?i.defaultValue:t})),o.on("execute",(function(){i.set("value",!o.isOn)})),r.add(o)};for(i.s();!(e=i.n()).done;)o()}catch(t){i.e(t)}finally{i.f()}return r}},{key:"_createFormChildren",value:function(t){var e=this.createCollection();if(e.add(this.urlInputView),t.length){var n=new Ku;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((function(t){return{tag:"li",children:[t],attributes:{class:["ck","ck-list__item"]}}})),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(n)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}]),n}(Ku);n(94);var Jp=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n),r=e.call(this,t);var i=t.t;return r.focusTracker=new yu,r.keystrokes=new fu,r.previewButtonView=r._createPreviewButton(),r.unlinkButtonView=r._createButton(i("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562l-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),r.editButtonView=r._createButton(i("Edit link"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.3 17.37l-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506L13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5L9.375 17H19v1.5H8z"/></svg>',"edit"),r.set("href"),r._focusables=new Au,r._focusCycler=new rl({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions"],tabindex:"-1"},children:[r.previewButtonView,r.editButtonView,r.unlinkButtonView]}),r}return m(n,[{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createButton",value:function(t,e,n){var r=new vl(this.locale);return r.set({label:t,icon:e,tooltip:!0}),r.delegate("execute").to(this,n),r}},{key:"_createPreviewButton",value:function(){var t=new vl(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("Open link in new tab")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",(function(t){return t&&Tf(t)})),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",(function(t){return t||n("This link has no URL")})),t.bind("isEnabled").to(this,"href",(function(t){return!!t})),t.template.tag="a",t.template.eventListeners={},t}}]),n}(Ku),Xp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',Qp=/^((\w+:(\/{2,})?)|(\W))/i,tm=/[\w-]+@[\w-]+\.+[\w-]+/i,em="link-ui",nm=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor;t.editing.view.addObserver(Gp),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=t.plugins.get(Ih),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),t.conversion.for("editingDowncast").markerToHighlight({model:em,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:em,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}},{key:"destroy",value:function(){s(x(n.prototype),"destroy",this).call(this),this.formView.destroy()}},{key:"_createActionsView",value:function(){var t=this,e=this.editor,n=new Jp(e.locale),r=e.commands.get("link"),i=e.commands.get("unlink");return n.bind("href").to(r,"value"),n.editButtonView.bind("isEnabled").to(r),n.unlinkButtonView.bind("isEnabled").to(i),this.listenTo(n,"edit",(function(){t._addFormView()})),this.listenTo(n,"unlink",(function(){e.execute("unlink"),t._hideUI()})),n.keystrokes.set("Esc",(function(e,n){t._hideUI(),n()})),n.keystrokes.set(Cf,(function(e,n){t._addFormView(),n()})),n}},{key:"_createFormView",value:function(){var t=this,e=this.editor,n=e.commands.get("link"),r=e.config.get("link.defaultProtocol"),i=new Zp(e.locale,n,r);return i.urlInputView.fieldView.bind("value").to(n,"value"),i.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(t){return!t})),i.saveButtonView.bind("isEnabled").to(n),this.listenTo(i,"submit",(function(){var n=i.urlInputView.fieldView.element.value,o=!!r&&!Qp.test(n),a=tm.test(n),s=n&&o?(a?"mailto:":r)+n:n;e.execute("link",s,i.getDecoratorSwitchesState()),t._closeFormView()})),this.listenTo(i,"cancel",(function(){t._closeFormView()})),i.keystrokes.set("Esc",(function(e,n){t._closeFormView(),n()})),i}},{key:"_createToolbarLinkButton",value:function(){var t=this,e=this.editor,n=e.commands.get("link"),r=e.t;e.keystrokes.set(Cf,(function(e,n){n(),t._showUI(!0)})),e.ui.componentFactory.add("link",(function(e){var i=new vl(e);return i.isEnabled=!0,i.label=r("Link"),i.icon=Xp,i.keystroke=Cf,i.tooltip=!0,i.isToggleable=!0,i.bind("isEnabled").to(n,"isEnabled"),i.bind("isOn").to(n,"value",(function(t){return!!t})),t.listenTo(i,"execute",(function(){return t._showUI(!0)})),i}))}},{key:"_enableUserBalloonInteractions",value:function(){var t=this,e=this.editor.editing.view.document;this.listenTo(e,"click",(function(){t._getSelectedLinkElement()&&t._showUI()})),this.editor.keystrokes.set("Tab",(function(e,n){t._areActionsVisible&&!t.actionsView.focusTracker.isFocused&&(t.actionsView.focus(),n())}),{priority:"high"}),this.editor.keystrokes.set("Esc",(function(e,n){t._isUIVisible&&(t._hideUI(),n())})),Ml({emitter:this.formView,activator:function(){return t._isUIInPanel},contextElements:[this._balloon.view.element],callback:function(){return t._hideUI()}})}},{key:"_addActionsView",value:function(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}},{key:"_addFormView",value:function(){if(!this._isFormInPanel){var t=this.editor.commands.get("link");this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.urlInputView.fieldView.element.value=t.value||""}}},{key:"_closeFormView",value:function(){var t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}},{key:"_removeFormView",value:function(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}},{key:"_showUI",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}},{key:"_hideUI",value:function(){if(this._isUIInPanel){var t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}}},{key:"_startUpdatingUI",value:function(){var t=this,e=this.editor,n=e.editing.view.document,r=this._getSelectedLinkElement(),i=a(),o=function(){var e=t._getSelectedLinkElement(),n=a();r&&!e||!r&&n!==i?t._hideUI():t._isUIVisible&&t._balloon.updatePosition(t._getBalloonPositionData()),r=e,i=n};function a(){return n.selection.focus.getAncestors().reverse().find((function(t){return t.is("element")}))}this.listenTo(e.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}},{key:"_getBalloonPositionData",value:function(){var t=this.editor.editing.view,e=this.editor.model,n=t.document,r=this._getSelectedLinkElement(),i=e.markers.has(em)?this.editor.editing.mapper.toViewRange(e.markers.get(em).getRange()):n.selection.getFirstRange();return{target:r?t.domConverter.mapViewToDom(r):t.domConverter.viewRangeToDom(i)}}},{key:"_getSelectedLinkElement",value:function(){var t=this.editor.editing.view,e=t.document.selection;if(e.isCollapsed)return rm(e.getFirstPosition());var n=e.getFirstRange().getTrimmed(),r=rm(n.start),i=rm(n.end);return r&&r==i&&t.createRangeIn(r).getTrimmed().isEqual(n)?r:null}},{key:"_showFakeVisualSelection",value:function(){var t=this.editor.model;t.change((function(e){t.markers.has(em)?e.updateMarker(em,{range:t.document.selection.getFirstRange()}):e.addMarker(em,{usingOperation:!1,affectsData:!1,range:t.document.selection.getFirstRange()})}))}},{key:"_hideFakeVisualSelection",value:function(){var t=this.editor.model;t.markers.has(em)&&t.change((function(t){t.removeMarker(em)}))}},{key:"_isFormInPanel",get:function(){return this._balloon.hasView(this.formView)}},{key:"_areActionsInPanel",get:function(){return this._balloon.hasView(this.actionsView)}},{key:"_areActionsVisible",get:function(){return this._balloon.visibleView===this.actionsView}},{key:"_isUIInPanel",get:function(){return this._isFormInPanel||this._areActionsInPanel}},{key:"_isUIVisible",get:function(){return this._balloon.visibleView==this.formView||this._areActionsVisible}}],[{key:"requires",get:function(){return[Ih]}},{key:"pluginName",get:function(){return"LinkUI"}}]),n}(Rl);function rm(t){return t.getAncestors().find((function(t){return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e}))}var im=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("image",{allowAttributes:["linkHref"]}),t.conversion.for("upcast").add((function(t){t.on("element:a",(function(t,e,n){var r=e.viewItem,i=Array.from(r.getChildren()).find((function(t){return"img"===t.name}));if(i){if(n.consumable.consume(r,{attributes:["href"]})){var o=r.getAttribute("href");if(o){var a=e.modelCursor.parent;if(!a.is("element","image")){var s=n.convertItem(i,e.modelCursor);e.modelRange=s.modelRange,e.modelCursor=s.modelCursor,a=e.modelCursor.nodeBefore}a&&a.is("element","image")&&n.writer.setAttribute("linkHref",o,a)}}}}),{priority:"high"})})),t.conversion.for("editingDowncast").add(om({attachIconIndicator:!0})),t.conversion.for("dataDowncast").add(om({attachIconIndicator:!1})),this._enableAutomaticDecorators(),this._enableManualDecorators()}},{key:"_enableAutomaticDecorators",value:function(){var t=this.editor,e=t.commands.get("link").automaticDecorators;e.length&&t.conversion.for("downcast").add(e.getDispatcherForLinkedImage())}},{key:"_enableManualDecorators",value:function(){var t,e=this.editor,n=e.commands.get("link"),r=n.manualDecorators,i=c(n.manualDecorators);try{for(i.s();!(t=i.n()).done;){var o=t.value;e.model.schema.extend("image",{allowAttributes:o.id}),e.conversion.for("downcast").add(am(r,o)),e.conversion.for("upcast").add(sm(r,o))}}catch(t){i.e(t)}finally{i.f()}}}],[{key:"requires",get:function(){return[Lc,Df]}},{key:"pluginName",get:function(){return"LinkImageEditing"}}]),n}(Rl);function om(t){return function(e){e.on("attribute:linkHref:image",(function(e,n,r){var i,o=r.mapper.toViewElement(n.item),a=r.writer,s=Array.from(o.getChildren()).find((function(t){return"a"===t.name}));if(t.attachIconIndicator&&(i=a.createUIElement("span",{class:"ck ck-link-image_icon"},(function(t){var e=this.toDomElement(t);return e.innerHTML=Xp,e}))),s)if(n.attributeNewValue)a.setAttribute("href",n.attributeNewValue,s);else{var u=Array.from(s.getChildren()).find((function(t){return"img"===t.name}));a.move(a.createRangeOn(u),a.createPositionAt(o,0)),a.remove(s)}else{var l=a.createContainerElement("a",{href:n.attributeNewValue});a.insert(a.createPositionAt(o,0),l),a.move(a.createRangeOn(o.getChild(1)),a.createPositionAt(l,0)),i&&a.insert(a.createPositionAt(l,"end"),i)}}))}}function am(t,e){return function(n){n.on("attribute:".concat(e.id,":image"),(function(n,r,i){var o,a=t.get(e.id).attributes,s=i.mapper.toViewElement(r.item),u=Array.from(s.getChildren()).find((function(t){return"a"===t.name})),f=c(yn(a));try{for(f.s();!(o=f.n()).done;){var d=l(o.value,2),h=d[0],p=d[1];i.writer.setAttribute(h,p,u)}}catch(t){f.e(t)}finally{f.f()}}))}}function sm(t,e){return function(n){n.on("element:a",(function(n,r,i){var o=r.viewItem,a={attributes:t.get(e.id).attributes},s=new wn(a).match(o);if(s&&i.consumable.consume(o,s.match)){var u=r.modelCursor.parent;i.writer.setAttribute(e.id,!0,u)}}),{priority:"high"})}}var um=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor.editing.view.document;this.listenTo(t,"click",(function(e,n){lm(t.selection.getSelectedElement())&&n.preventDefault()})),this._createToolbarLinkImageButton()}},{key:"_createToolbarLinkImageButton",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add("linkImage",(function(r){var i=new vl(r),o=e.plugins.get("LinkUI"),a=e.commands.get("link");return i.set({isEnabled:!0,label:n("Link image"),icon:Xp,keystroke:Cf,tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(a,"isEnabled"),i.bind("isOn").to(a,"value",(function(t){return!!t})),t.listenTo(i,"execute",(function(){lm(e.editing.view.document.selection.getSelectedElement())?o._addActionsView():o._showUI(!0)})),i}))}}],[{key:"requires",get:function(){return[Bh,Df,nm]}},{key:"pluginName",get:function(){return"LinkImageUI"}}]),n}(Rl);function lm(t){return!(!t||!Ec(t))&&t.getChild(0).is("element","a")}n(96);var cm=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),(i=e.call(this,t)).type=r,i}return m(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var t=this,e=this.editor.model,n=e.document,r=Array.from(n.selection.getSelectedBlocks()).filter((function(t){return dm(t,e.schema)})),i=!0===this.value;e.change((function(e){if(i){for(var n=r[r.length-1].nextSibling,o=Number.POSITIVE_INFINITY,a=[];n&&"listItem"==n.name&&0!==n.getAttribute("listIndent");){var s=n.getAttribute("listIndent");s<o&&(o=s);var u=s-o;a.push({element:n,listIndent:u}),n=n.nextSibling}var l,f=c(a=a.reverse());try{for(f.s();!(l=f.n()).done;){var d=l.value;e.setAttribute("listIndent",d.listIndent,d.element)}}catch(t){f.e(t)}finally{f.f()}}if(!i){var h,p=Number.POSITIVE_INFINITY,m=c(r);try{for(m.s();!(h=m.n()).done;){var v=h.value;v.is("element","listItem")&&v.getAttribute("listIndent")<p&&(p=v.getAttribute("listIndent"))}}catch(t){m.e(t)}finally{m.f()}fm(r,!0,p=0===p?1:p),fm(r,!1,p)}var g,b=c(r.reverse());try{for(b.s();!(g=b.n()).done;){var y=g.value;i&&"listItem"==y.name?e.rename(y,"paragraph"):i||"listItem"==y.name?i||"listItem"!=y.name||y.getAttribute("listType")==t.type||e.setAttribute("listType",t.type,y):(e.setAttributes({listType:t.type,listIndent:0},y),e.rename(y,"listItem"))}}catch(t){b.e(t)}finally{b.f()}t.fire("_executeCleanup",r)}))}},{key:"_getValue",value:function(){var t=Ll(this.editor.model.document.selection.getSelectedBlocks());return!!t&&t.is("element","listItem")&&t.getAttribute("listType")==this.type}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var t=this.editor.model.document.selection,e=this.editor.model.schema,n=Ll(t.getSelectedBlocks());return!!n&&dm(n,e)}}]),n}(Dl);function fm(t,e,n){var r=e?t[0]:t[t.length-1];if(r.is("element","listItem"))for(var i=r[e?"previousSibling":"nextSibling"],o=r.getAttribute("listIndent");i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=n;)o>i.getAttribute("listIndent")&&(o=i.getAttribute("listIndent")),i.getAttribute("listIndent")==o&&t[e?"unshift":"push"](i),i=i[e?"previousSibling":"nextSibling"]}function dm(t,e){return e.checkChild(t.parent,"listItem")&&!e.isObject(t)}var hm=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),(i=e.call(this,t))._indentBy="forward"==r?1:-1,i}return m(n,[{key:"refresh",value:function(){this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var t=this,e=this.editor.model,n=e.document,r=Array.from(n.selection.getSelectedBlocks());e.change((function(e){for(var n=r[r.length-1],i=n.nextSibling;i&&"listItem"==i.name&&i.getAttribute("listIndent")>n.getAttribute("listIndent");)r.push(i),i=i.nextSibling;t._indentBy<0&&(r=r.reverse());var o,a=c(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=s.getAttribute("listIndent")+t._indentBy;u<0?e.rename(s,"paragraph"):e.setAttribute("listIndent",u,s)}}catch(t){a.e(t)}finally{a.f()}t.fire("_executeCleanup",r)}))}},{key:"_checkEnabled",value:function(){var t=Ll(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){for(var e=t.getAttribute("listIndent"),n=t.getAttribute("listType"),r=t.previousSibling;r&&r.is("element","listItem")&&r.getAttribute("listIndent")>=e;){if(r.getAttribute("listIndent")==e)return r.getAttribute("listType")==n;r=r.previousSibling}return!1}return!0}}]),n}(Dl);function pm(t,e,n,r){var i=e.parent,o=n.mapper,a=n.writer,s=o.toViewPosition(r.createPositionBefore(t)),u=gm(t.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:t.getAttribute("listIndent")}),l=t.previousSibling;if(u&&u.getAttribute("listIndent")==t.getAttribute("listIndent")){var f=o.toViewElement(u);s=a.breakContainer(a.createPositionAfter(f))}else if(l&&"listItem"==l.name){s=o.toViewPosition(r.createPositionAt(l,"end"));var d=o.findMappedViewAncestor(s),h=function(t){var e,n=c(t.getChildren());try{for(n.s();!(e=n.n()).done;){var r=e.value;if("ul"==r.name||"ol"==r.name)return r}}catch(t){n.e(t)}finally{n.f()}return null}(d);s=h?a.createPositionBefore(h):a.createPositionAt(d,"end")}else s=o.toViewPosition(r.createPositionBefore(t));if(s=vm(s),a.insert(s,i),l&&"listItem"==l.name){var p,m=o.toViewElement(l),v=a.createRange(a.createPositionAt(m,0),s).getWalker({ignoreElementEnd:!0}),g=c(v);try{for(g.s();!(p=g.n()).done;){var b=p.value;if(b.item.is("element","li")){var y=a.breakContainer(a.createPositionBefore(b.item)),w=b.item.parent,_=a.createPositionAt(e,"end");mm(a,_.nodeBefore,_.nodeAfter),a.move(a.createRangeOn(w),_),v.position=y}}}catch(t){g.e(t)}finally{g.f()}}else{var k=i.nextSibling;if(k&&(k.is("element","ul")||k.is("element","ol"))){var M,x=null,S=c(k.getChildren());try{for(S.s();!(M=S.n()).done;){var C=M.value,A=o.toModelElement(C);if(!(A&&A.getAttribute("listIndent")>t.getAttribute("listIndent")))break;x=C}}catch(t){S.e(t)}finally{S.f()}x&&(a.breakContainer(a.createPositionAfter(x)),a.move(a.createRangeOn(x.parent),a.createPositionAt(e,"end")))}}mm(a,i,i.nextSibling),mm(a,i.previousSibling,i)}function mm(t,e,n){return!e||!n||"ul"!=e.name&&"ol"!=e.name||e.name!=n.name||e.getAttribute("class")!==n.getAttribute("class")?null:t.mergeContainers(t.createPositionAfter(e))}function vm(t){return t.getLastMatchingPosition((function(t){return t.item.is("uiElement")}))}function gm(t,e){for(var n=!!e.sameIndent,r=!!e.smallerIndent,i=e.listIndent,o=t;o&&"listItem"==o.name;){var a=o.getAttribute("listIndent");if(n&&i==a||r&&i>a)return o;o=o.previousSibling}return null}function bm(t,e,n,r){t.ui.componentFactory.add(e,(function(i){var o=t.commands.get(e),a=new vl(i);return a.set({label:n,icon:r,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),a.on("execute",(function(){t.execute(e),t.editing.view.focus()})),a}))}function ym(){var t=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||t?0:ur.call(this)}function wm(t){return function(e,n,r){var i=r.consumable;if(i.test(n.item,"insert")&&i.test(n.item,"attribute:listType")&&i.test(n.item,"attribute:listIndent")){i.consume(n.item,"insert"),i.consume(n.item,"attribute:listType"),i.consume(n.item,"attribute:listIndent");var o=n.item;pm(o,function(t,e){var n=e.mapper,r=e.writer,i="numbered"==t.getAttribute("listType")?"ol":"ul",o=function(t){var e=t.createContainerElement("li");return e.getFillerOffset=ym,e}(r),a=r.createContainerElement(i,null);return r.insert(r.createPositionAt(a,0),o),n.bindElements(t,o),o}(o,r),r,t)}}}function _m(t,e,n){if(n.consumable.consume(e.item,"attribute:listType")){var r=n.mapper.toViewElement(e.item),i=n.writer;i.breakContainer(i.createPositionBefore(r)),i.breakContainer(i.createPositionAfter(r));var o=r.parent,a="numbered"==e.attributeNewValue?"ol":"ul";i.rename(a,o)}}function km(t,e,n){var r=n.mapper.toViewElement(e.item).parent,i=n.writer;mm(i,r,r.nextSibling),mm(i,r.previousSibling,r);var o,a=c(e.item.getChildren());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.consumable.consume(s,"insert")}}catch(t){a.e(t)}finally{a.f()}}function Mm(t,e,n){if("listItem"!=e.item.name){for(var r=n.mapper.toViewPosition(e.range.start),i=n.writer,o=[];("ul"==r.parent.name||"ol"==r.parent.name)&&"li"==(r=i.breakContainer(r)).parent.name;){var a=r,s=i.createPositionAt(r.parent,"end");if(!a.isEqual(s)){var u=i.remove(i.createRange(a,s));o.push(u)}r=i.createPositionAfter(r.parent)}if(o.length>0){for(var l=0;l<o.length;l++){var c=r.nodeBefore;if(r=i.insert(r,o[l]).end,l>0){var f=mm(i,c,c.nextSibling);f&&f.parent==c&&r.offset--}}mm(i,r.nodeBefore,r.nodeAfter)}}}function xm(t,e,n){var r=n.mapper.toViewPosition(e.position),i=r.nodeBefore,o=r.nodeAfter;mm(n.writer,i,o)}function Sm(t,e,n){if(n.consumable.consume(e.viewItem,{name:!0})){var r=n.writer,i=r.createElement("listItem"),o=function(t){for(var e=0,n=t.parent;n;){if(n.is("element","li"))e++;else{var r=n.previousSibling;r&&r.is("element","li")&&e++}n=n.parent}return e}(e.viewItem);r.setAttribute("listIndent",o,i);var a=e.viewItem.parent&&"ol"==e.viewItem.parent.name?"numbered":"bulleted";if(r.setAttribute("listType",a,i),!n.safeInsert(i,e.modelCursor))return;var s=function(t,e,n){var r,i=n.writer,o=n.schema,a=i.createPositionAfter(t),s=c(e);try{for(s.s();!(r=s.n()).done;){var u=r.value;if("ul"==u.name||"ol"==u.name)a=n.convertItem(u,a).modelCursor;else{var l=n.convertItem(u,i.createPositionAt(t,"end")),f=l.modelRange.start.nodeAfter;f&&f.is("element")&&!o.checkChild(t,f.name)&&(t=l.modelCursor.parent.is("element","listItem")?l.modelCursor.parent:Om(l.modelCursor),a=i.createPositionAfter(t))}}}catch(t){s.e(t)}finally{s.f()}return a}(i,e.viewItem.getChildren(),n);e.modelRange=r.createRange(e.modelCursor,s),n.updateConversionResult(i,e)}}function Cm(t,e,n){if(n.consumable.test(e.viewItem,{name:!0}))for(var r=0,i=Array.from(e.viewItem.getChildren());r<i.length;r++){var o=i[r];!o.is("element","li")&&!Im(o)&&o._remove()}}function Am(t,e,n){if(n.consumable.test(e.viewItem,{name:!0})){if(0===e.viewItem.childCount)return;var r,i=!1,o=!0,a=c(u(e.viewItem.getChildren()));try{for(a.s();!(r=a.n()).done;){var s=r.value;i&&!Im(s)&&s._remove(),s.is("$text")?(o&&(s._data=s.data.replace(/^\s+/,"")),s.nextSibling&&!Im(s.nextSibling)||(s._data=s.data.replace(/\s+$/,""))):Im(s)&&(i=!0),o=!1}}catch(t){a.e(t)}finally{a.f()}}}function Tm(t){return function(e,n){if(!n.isPhantom){var r=n.modelPosition.nodeBefore;if(r&&r.is("element","listItem")){var i,o=n.mapper.toViewElement(r),a=o.getAncestors().find(Im),s=c(t.createPositionAt(o,0).getWalker());try{for(s.s();!(i=s.n()).done;){var u=i.value;if("elementStart"==u.type&&u.item.is("element","li")){n.viewPosition=u.previousPosition;break}if("elementEnd"==u.type&&u.item==a){n.viewPosition=u.nextPosition;break}}}catch(t){s.e(t)}finally{s.f()}}}}}function Em(t,e){var n,r=l(e,2),i=r[0],o=r[1],a=i.is("documentFragment")?i.getChild(0):i;if(n=o?this.createSelection(o):this.document.selection,a&&a.is("element","listItem")){var s=n.getFirstPosition(),u=null;if(s.parent.is("element","listItem")?u=s.parent:s.nodeBefore&&s.nodeBefore.is("element","listItem")&&(u=s.nodeBefore),u){var c=u.getAttribute("listIndent");if(c>0)for(;a&&a.is("element","listItem");)a._setAttribute("listIndent",a.getAttribute("listIndent")+c),a=a.nextSibling}}}function Om(t){var e,n=new Zo({startPosition:t});do{e=n.next()}while(!e.value.item.is("element","listItem"));return e.value.item}function Pm(t,e,n,r,i,o){var a,s=gm(e.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:t,foo:"b"}),l=i.mapper,c=i.writer,f=s?s.getAttribute("listIndent"):null;if(s)if(f==t){var d=l.toViewElement(s).parent;a=c.createPositionAfter(d)}else{var h=o.createPositionAt(s,"end");a=l.toViewPosition(h)}else a=n;a=vm(a);for(var p=0,m=u(r.getChildren());p<m.length;p++){var v=m[p];Im(v)&&(a=c.move(c.createRangeOn(v),a).end,mm(c,v,v.nextSibling),mm(c,v.previousSibling,v))}}function Im(t){return t.is("element","ol")||t.is("element","ul")}var Rm=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor;e.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});var n,r=e.data,i=e.editing;e.model.document.registerPostFixer((function(t){return function(t,e){var n,r=t.document.differ.getChanges(),i=new Map,o=!1,a=c(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("insert"==s.type&&"listItem"==s.name)m(s.position);else if("insert"==s.type&&"listItem"!=s.name){if("$text"!=s.name){var u=s.position.nodeAfter;u.hasAttribute("listIndent")&&(e.removeAttribute("listIndent",u),o=!0),u.hasAttribute("listType")&&(e.removeAttribute("listType",u),o=!0),u.hasAttribute("listStyle")&&(e.removeAttribute("listStyle",u),o=!0);var l,f=c(Array.from(t.createRangeIn(u)).filter((function(t){return t.item.is("element","listItem")})));try{for(f.s();!(l=f.n()).done;){m(l.value.previousPosition)}}catch(t){f.e(t)}finally{f.f()}}m(s.position.getShiftedBy(s.length))}else"remove"==s.type&&"listItem"==s.name?m(s.position):("attribute"==s.type&&"listIndent"==s.attributeKey||"attribute"==s.type&&"listType"==s.attributeKey)&&m(s.range.start)}}catch(t){a.e(t)}finally{a.f()}var d,h=c(i.values());try{for(h.s();!(d=h.n()).done;){var p=d.value;v(p),g(p)}}catch(t){h.e(t)}finally{h.f()}return o;function m(t){var e=t.nodeBefore;if(e&&e.is("element","listItem")){var n=e;if(i.has(n))return;for(var r=n.previousSibling;r&&r.is("element","listItem");r=n.previousSibling)if(n=r,i.has(n))return;i.set(e,n)}else{var o=t.nodeAfter;o&&o.is("element","listItem")&&i.set(o,o)}}function v(t){for(var n=0,r=null;t&&t.is("element","listItem");){var i=t.getAttribute("listIndent");if(i>n){var a=void 0;null===r?(r=i-n,a=n):(r>i&&(r=i),a=i-r),e.setAttribute("listIndent",a,t),o=!0}else r=null,n=t.getAttribute("listIndent")+1;t=t.nextSibling}}function g(t){for(var n=[],r=null;t&&t.is("element","listItem");){var i=t.getAttribute("listIndent");if(r&&r.getAttribute("listIndent")>i&&(n=n.slice(0,i+1)),0!=i)if(n[i]){var a=n[i];t.getAttribute("listType")!=a&&(e.setAttribute("listType",a,t),o=!0)}else n[i]=t.getAttribute("listType");r=t,t=t.nextSibling}}}(e.model,t)})),i.mapper.registerViewToModelLength("li",jm),r.mapper.registerViewToModelLength("li",jm),i.mapper.on("modelToViewPosition",Tm(i.view)),i.mapper.on("viewToModelPosition",(n=e.model,function(t,e){var r=e.viewPosition,i=r.parent,o=e.mapper;if("ul"==i.name||"ol"==i.name){if(r.isAtEnd){var a=o.toModelElement(r.nodeBefore),s=o.getModelLength(r.nodeBefore);e.modelPosition=n.createPositionBefore(a).getShiftedBy(s)}else{var u=o.toModelElement(r.nodeAfter);e.modelPosition=n.createPositionBefore(u)}t.stop()}else if("li"==i.name&&r.nodeBefore&&("ul"==r.nodeBefore.name||"ol"==r.nodeBefore.name)){for(var l=o.toModelElement(i),c=1,f=r.nodeBefore;f&&Im(f);)c+=o.getModelLength(f),f=f.previousSibling;e.modelPosition=n.createPositionBefore(l).getShiftedBy(c),t.stop()}})),r.mapper.on("modelToViewPosition",Tm(i.view)),e.conversion.for("editingDowncast").add((function(t){t.on("insert",Mm,{priority:"high"}),t.on("insert:listItem",wm(e.model)),t.on("attribute:listType:listItem",_m,{priority:"high"}),t.on("attribute:listType:listItem",km,{priority:"low"}),t.on("attribute:listIndent:listItem",function(t){return function(e,n,r){if(r.consumable.consume(n.item,"attribute:listIndent")){var i=r.mapper.toViewElement(n.item),o=r.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));var a=i.parent,s=a.previousSibling,u=o.createRangeOn(a);o.remove(u),s&&s.nextSibling&&mm(o,s,s.nextSibling),Pm(n.attributeOldValue+1,n.range.start,u.start,i,r,t),pm(n.item,i,r,t);var l,f=c(n.item.getChildren());try{for(f.s();!(l=f.n()).done;){var d=l.value;r.consumable.consume(d,"insert")}}catch(t){f.e(t)}finally{f.f()}}}}(e.model)),t.on("remove:listItem",function(t){return function(e,n,r){var i=r.mapper.toViewPosition(n.position).getLastMatchingPosition((function(t){return!t.item.is("element","li")})).nodeAfter,o=r.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));var a=i.parent,s=a.previousSibling,u=o.createRangeOn(a),l=o.remove(u);s&&s.nextSibling&&mm(o,s,s.nextSibling),Pm(r.mapper.toModelElement(i).getAttribute("listIndent")+1,n.position,u.start,i,r,t);var f,d=c(o.createRangeIn(l).getItems());try{for(d.s();!(f=d.n()).done;){var h=f.value;r.mapper.unbindViewElement(h)}}catch(t){d.e(t)}finally{d.f()}e.stop()}}(e.model)),t.on("remove",xm,{priority:"low"})})),e.conversion.for("dataDowncast").add((function(t){t.on("insert",Mm,{priority:"high"}),t.on("insert:listItem",wm(e.model))})),e.conversion.for("upcast").add((function(t){t.on("element:ul",Cm,{priority:"high"}),t.on("element:ol",Cm,{priority:"high"}),t.on("element:li",Am,{priority:"high"}),t.on("element:li",Sm)})),e.model.on("insertContent",Em,{priority:"high"}),e.commands.add("numberedList",new cm(e,"numbered")),e.commands.add("bulletedList",new cm(e,"bulleted")),e.commands.add("indentList",new hm(e,"forward")),e.commands.add("outdentList",new hm(e,"backward"));var o=i.view.document;this.listenTo(o,"enter",(function(e,n){var r=t.editor.model.document,i=r.selection.getLastPosition().parent;r.selection.isCollapsed&&"listItem"==i.name&&i.isEmpty&&(t.editor.execute("outdentList"),n.preventDefault(),e.stop())})),this.listenTo(o,"delete",(function(e,n){if("backward"===n.direction){var r=t.editor.model.document.selection;if(r.isCollapsed){var i=r.getFirstPosition();if(i.isAtStart){var o=i.parent;"listItem"===o.name&&(o.previousSibling&&"listItem"===o.previousSibling.name||(t.editor.execute("outdentList"),n.preventDefault(),e.stop()))}}}}),{priority:"high"});var a=function(e){return function(n,r){t.editor.commands.get(e).isEnabled&&(t.editor.execute(e),r())}};e.keystrokes.set("Tab",a("indentList")),e.keystrokes.set("Shift+Tab",a("outdentList"))}},{key:"afterInit",value:function(){var t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"))}}],[{key:"pluginName",get:function(){return"ListEditing"}},{key:"requires",get:function(){return[uh]}}]),n}(Rl);function jm(t){var e,n=1,r=c(t.getChildren());try{for(r.s();!(e=r.n()).done;){var i=e.value;if("ul"==i.name||"ol"==i.name){var o,a=c(i.getChildren());try{for(a.s();!(o=a.n()).done;){n+=jm(o.value)}}catch(t){a.e(t)}finally{a.f()}}}}catch(t){r.e(t)}finally{r.f()}return n}var Dm=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor.t;bm(this.editor,"numberedList",t("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),bm(this.editor,"bulletedList",t("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>')}}]),n}(Rl);function Nm(t,e){return function(t){t.on("attribute:url:media",n)};function n(n,r,i){if(i.consumable.consume(r.item,n.name)){var o=r.attributeNewValue,a=i.writer,s=i.mapper.toViewElement(r.item),l=u(s.getChildren()).find((function(t){return t.getCustomProperty("media-content")}));a.remove(l);var c=t.getMediaViewElement(a,o,e);a.insert(a.createPositionAt(s,0),c)}}}function Lm(t,e,n,r){var i=t.createContainerElement("figure",{class:"media"});return t.insert(t.createPositionAt(i,0),e.getMediaViewElement(t,n,r)),i}function Bm(t){var e=t.getSelectedElement();return e&&e.is("element","media")?e:null}function zm(t,e,n){t.change((function(r){var i=r.createElement("media",{url:e});t.insertContent(i,n),r.setSelection(i,"on")}))}var Fm=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=this.editor.model,e=t.document.selection,n=t.schema,r=e.getFirstPosition(),i=Bm(e),o=r.parent;o!=o.root&&(o=o.parent),this.value=i?i.getAttribute("url"):null,this.isEnabled=n.checkChild(o,"media")}},{key:"execute",value:function(t){var e=this.editor.model,n=e.document.selection,r=Bm(n);if(r)e.change((function(e){e.setAttribute("url",t,r)}));else{var i=Cc(n,e);zm(e,t,i)}}}]),n}(Dl),qm=function(){function t(e,n){h(this,t);var r=n.providers,i=n.extraProviders||[],o=new Set(n.removeProviders),a=r.concat(i).filter((function(t){var e=t.name;return e?!o.has(e):(console.warn(Object(Ye.a)("media-embed-no-provider-name: The configured media provider has no name and cannot be used."),{provider:t}),!1)}));this.locale=e,this.providerDefinitions=a}return m(t,[{key:"hasMedia",value:function(t){return!!this._getMedia(t)}},{key:"getMediaViewElement",value:function(t,e,n){return this._getMedia(e).getViewElement(t,n)}},{key:"_getMedia",value:function(t){if(!t)return new Vm(this.locale);t=t.trim();var e,n=c(this.providerDefinitions);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.html,o=r.url;Array.isArray(o)||(o=[o]);var a,s=c(o);try{for(s.s();!(a=s.n()).done;){var u=a.value,l=this._getUrlMatches(t,u);if(l)return new Vm(this.locale,t,l,i)}}catch(t){s.e(t)}finally{s.f()}}}catch(t){n.e(t)}finally{n.f()}return null}},{key:"_getUrlMatches",value:function(t,e){var n=t.match(e);if(n)return n;var r=t.replace(/^https?:\/\//,"");return(n=r.match(e))||((n=(r=r.replace(/^www\./,"")).match(e))||null)}}]),t}(),Vm=function(){function t(e,n,r,i){h(this,t),this.url=this._getValidUrl(n),this._t=e.t,this._match=r,this._previewRenderer=i}return m(t,[{key:"getViewElement",value:function(t,e){var n,r={};if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(r["data-oembed-url"]=this.url),e.renderForEditingView&&(r.class="ck-media__wrapper");var i=this._getPreviewHtml(e);n=t.createRawElement("div",r,(function(t){t.innerHTML=i}))}else this.url&&(r.url=this.url),n=t.createEmptyElement("oembed",r);return t.setCustomProperty("media-content",!0,n),n}},{key:"_getPreviewHtml",value:function(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}},{key:"_getPlaceholderHtml",value:function(){var t=new ml,e=new pl;return t.text=this._t("Open media in new tab"),e.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',e.viewBox="0 0 64 42",new Tu({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[e]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},t]}]}).render().outerHTML}},{key:"_getValidUrl",value:function(t){return t?t.match(/^https?/)?t:"https://"+t:null}}]),t}();n(98);var $m=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),r=e.call(this,t),t.config.define("mediaEmbed",{providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:function(t){return'<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/'.concat(t[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>')}},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:function(t){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/'.concat(t[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>')}},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:function(t){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/'.concat(t[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>')}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:function(t){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/'.concat(t[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>')}},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:/^google\.com\/maps/},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),r.registry=new qm(t.locale,t.config.get("mediaEmbed")),r}return m(n,null,[{key:"pluginName",get:function(){return"MediaEmbedEditing"}}]),m(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema,n=t.t,r=t.conversion,i=t.config.get("mediaEmbed.previewsInData"),o=this.registry;t.commands.add("mediaEmbed",new Fm(t)),e.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),r.for("dataDowncast").elementToElement({model:"media",view:function(t,e){var n=e.writer,r=t.getAttribute("url");return Lm(n,o,r,{renderMediaPreview:r&&i})}}),r.for("dataDowncast").add(Nm(o,{renderMediaPreview:i})),r.for("editingDowncast").elementToElement({model:"media",view:function(t,e){var r=e.writer,i=t.getAttribute("url");return function(t,e,n){return e.setCustomProperty("media",!0,t),kc(t,e,{label:n})}(Lm(r,o,i,{renderForEditingView:!0}),r,n("media widget"))}}),r.for("editingDowncast").add(Nm(o,{renderForEditingView:!0})),r.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:function(t,e){var n=e.writer,r=t.getAttribute("url");if(o.hasMedia(r))return n.createElement("media",{url:r})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:function(t,e){var n=e.writer,r=t.getAttribute("data-oembed-url");if(o.hasMedia(r))return n.createElement("media",{url:r})}})}}]),n}(Rl),Hm=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/,Um=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t))._timeoutId=null,r._positionToInsert=null,r}return m(n,null,[{key:"requires",get:function(){return[uf,Nd]}},{key:"pluginName",get:function(){return"AutoMediaEmbed"}}]),m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.model.document;this.listenTo(e.plugins.get(uf),"inputTransformation",(function(){var e=n.selection.getFirstRange(),r=Ys.fromPosition(e.start);r.stickiness="toPrevious";var i=Ys.fromPosition(e.end);i.stickiness="toNext",n.once("change:data",(function(){t._embedMediaBetweenPositions(r,i),r.detach(),i.detach()}),{priority:"high"})})),e.commands.get("undo").on("execute",(function(){t._timeoutId&&(Ii.window.clearTimeout(t._timeoutId),t._positionToInsert.detach(),t._timeoutId=null,t._positionToInsert=null)}),{priority:"high"})}},{key:"_embedMediaBetweenPositions",value:function(t,e){var n,r=this,i=this.editor,o=i.plugins.get($m).registry,a=new ha(t,e),s=a.getWalker({ignoreElementEnd:!0}),u="",l=c(s);try{for(l.s();!(n=l.n()).done;){var f=n.value;f.item.is("$textProxy")&&(u+=f.item.data)}}catch(t){l.e(t)}finally{l.f()}(u=u.trim()).match(Hm)&&o.hasMedia(u)&&i.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Ys.fromPosition(t),this._timeoutId=Ii.window.setTimeout((function(){i.model.change((function(t){var e;r._timeoutId=null,t.remove(a),a.detach(),"$graveyard"!==r._positionToInsert.root.rootName&&(e=r._positionToInsert),zm(i.model,u,e),r._positionToInsert.detach(),r._positionToInsert=null}))}),100)):a.detach()}}]),n}(Rl);n(100);var Wm=function(t){v(n,t);var e=g(n);function n(t,r){var i;h(this,n),i=e.call(this,r);var o=r.t;return i.focusTracker=new yu,i.keystrokes=new fu,i.urlInputView=i._createUrlInput(),i.saveButtonView=i._createButton(o("Save"),Th,"ck-button-save"),i.saveButtonView.type="submit",i.cancelButtonView=i._createButton(o("Cancel"),Eh,"ck-button-cancel","cancel"),i._focusables=new Au,i._focusCycler=new rl({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i._validators=t,i.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form"],tabindex:"-1"},children:[i.urlInputView,i.saveButtonView,i.cancelButtonView]}),i}return m(n,[{key:"render",value:function(){var t=this;s(x(n.prototype),"render",this).call(this),Ah({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element);var e=function(t){return t.stopPropagation()};this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e),this.listenTo(this.urlInputView.element,"selectstart",(function(t,e){e.stopPropagation()}),{priority:"high"})}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"isValid",value:function(){this.resetFormStatus();var t,e=c(this._validators);try{for(e.s();!(t=e.n()).done;){var n=(0,t.value)(this);if(n)return this.urlInputView.errorText=n,!1}}catch(t){e.e(t)}finally{e.f()}return!0}},{key:"resetFormStatus",value:function(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}},{key:"_createUrlInput",value:function(){var t=this,e=this.locale.t,n=new xh(this.locale,Ch),r=n.fieldView;return this._urlInputViewInfoDefault=e("Paste the media URL in the input."),this._urlInputViewInfoTip=e("Tip: Paste the URL into the content to embed faster."),n.label=e("Media URL"),n.infoText=this._urlInputViewInfoDefault,r.placeholder="https://example.com",r.on("input",(function(){n.infoText=r.element.value?t._urlInputViewInfoTip:t._urlInputViewInfoDefault})),n}},{key:"_createButton",value:function(t,e,n,r){var i=new vl(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"url",get:function(){return this.urlInputView.fieldView.element.value.trim()},set:function(t){this.urlInputView.fieldView.element.value=t.trim()}}]),n}(Ku),Km=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.commands.get("mediaEmbed"),r=e.plugins.get($m).registry;e.ui.componentFactory.add("mediaEmbed",(function(i){var o=xl(i),a=new Wm(function(t,e){return[function(e){if(!e.url.length)return t("The URL must not be empty.")},function(n){if(!e.hasMedia(n.url))return t("This media URL is not supported.")}]}(e.t,r),e.locale);return t._setUpDropdown(o,a,n,e),t._setUpForm(o,a,n),o}))}},{key:"_setUpDropdown",value:function(t,e,n){var r=this.editor,i=r.t,o=t.buttonView;function a(){r.editing.view.focus(),t.isOpen=!1}t.bind("isEnabled").to(n),t.panelView.children.add(e),o.set({label:i("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0}),o.on("open",(function(){e.url=n.value||"",e.urlInputView.fieldView.select(),e.focus()}),{priority:"low"}),t.on("submit",(function(){e.isValid()&&(r.execute("mediaEmbed",e.url),a())})),t.on("change:isOpen",(function(){return e.resetFormStatus()})),t.on("cancel",(function(){return a()}))}},{key:"_setUpForm",value:function(t,e,n){e.delegate("submit","cancel").to(t),e.urlInputView.bind("value").to(n,"value"),e.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(t){return!t})),e.saveButtonView.bind("isEnabled").to(n)}}],[{key:"requires",get:function(){return[$m]}},{key:"pluginName",get:function(){return"MediaEmbedUI"}}]),n}(Rl);function Ym(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;e>i?r.setAttribute(t,e,n):r.removeAttribute(t,n)}function Gm(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.createElement("tableCell",n);return t.insertElement("paragraph",r),t.insert(r,e),r}function Zm(t,e){var n=e.parent.parent,r=parseInt(n.getAttribute("headingColumns")||0),i=t.getCellLocation(e).column;return!!r&&i<r}function Jm(t){return function(e){e.on("element:"+t,(function(t,e,n){if(e.modelRange){var r=e.modelRange.start.nodeAfter;if(!r.childCount){var i=n.writer.createPositionAt(r,0);n.writer.insertElement("paragraph",i)}}}),{priority:"low"})}}function Xm(t){for(var e=0,n=0,r=Array.from(t.getChildren()).filter((function(t){return"th"===t.name||"td"===t.name}));n<r.length&&"th"===r[n].name;){var i=r[n];e+=parseInt(i.getAttribute("colspan")||1),n++}return e}n(102);var Qm=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h(this,t),this._table=e,this._startRow=void 0!==n.row?n.row:n.startRow||0,this._endRow=void 0!==n.row?n.row:n.endRow,this._startColumn=void 0!==n.column?n.column:n.startColumn||0,this._endColumn=void 0!==n.column?n.column:n.endColumn,this._includeAllSlots=!!n.includeAllSlots,this._skipRows=new Set,this._row=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}return m(t,[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(){var t=this._table.getChild(this._row);if(!t||this._isOverEndRow())return{done:!0};if(this._isOverEndColumn())return this._advanceToNextRow();var e=null,n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(e=this._formatOutValue(n.cell,n.row,n.column));else{var r=t.getChild(this._cellIndex);if(!r)return this._advanceToNextRow();var i=parseInt(r.getAttribute("colspan")||1),o=parseInt(r.getAttribute("rowspan")||1);(i>1||o>1)&&this._recordSpans(r,o,i),this._shouldSkipSlot()||(e=this._formatOutValue(r)),this._nextCellAtColumn=this._column+i}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,e||this.next()}},{key:"skipRow",value:function(t){this._skipRows.add(t)}},{key:"_advanceToNextRow",value:function(){return this._row++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}},{key:"_isOverEndRow",value:function(){return void 0!==this._endRow&&this._row>this._endRow}},{key:"_isOverEndColumn",value:function(){return void 0!==this._endColumn&&this._column>this._endColumn}},{key:"_formatOutValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._row,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._column;return{done:!1,value:new tv(this,t,e,n)}}},{key:"_shouldSkipSlot",value:function(){var t=this._skipRows.has(this._row),e=this._row<this._startRow,n=this._column<this._startColumn,r=void 0!==this._endColumn&&this._column>this._endColumn;return t||e||n||r}},{key:"_getSpanned",value:function(){var t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null}},{key:"_recordSpans",value:function(t,e,n){for(var r={cell:t,row:this._row,column:this._column},i=this._row;i<this._row+e;i++)for(var o=this._column;o<this._column+n;o++)i==this._row&&o==this._column||this._markSpannedCell(i,o,r)}},{key:"_markSpannedCell",value:function(t,e,n){this._spannedCells.has(t)||this._spannedCells.set(t,new Map),this._spannedCells.get(t).set(e,n)}}]),t}(),tv=function(){function t(e,n,r,i){h(this,t),this.cell=n,this.row=e._row,this.column=e._column,this.cellAnchorRow=r,this.cellAnchorColumn=i,this._cellIndex=e._cellIndex,this._table=e._table}return m(t,[{key:"getPositionBefore",value:function(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}},{key:"isAnchor",get:function(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}},{key:"cellWidth",get:function(){return parseInt(this.cell.getAttribute("colspan")||1)}},{key:"cellHeight",get:function(){return parseInt(this.cell.getAttribute("rowspan")||1)}}]),t}();function ev(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e){return e.on("insert:table",(function(e,n,r){var i=n.item;if(r.consumable.consume(i,"insert")){r.consumable.consume(i,"attribute:headingRows:table"),r.consumable.consume(i,"attribute:headingColumns:table");var o,a,s,u=t&&t.asWidget,l=r.writer.createContainerElement("figure",{class:"table"}),f=r.writer.createContainerElement("table");r.writer.insert(r.writer.createPositionAt(l,0),f),u&&(a=l,(s=r.writer).setCustomProperty("table",!0,a),o=kc(a,s,{hasSelectionHandle:!0}));var d,h=new Qm(i),p={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0},m=new Map,v=c(h);try{for(v.s();!(d=v.n()).done;){var g=d.value,b=g.row,y=g.cell,w=i.getChild(b),_=m.get(b)||iv(f,w,b,p,r);m.set(b,_),r.consumable.consume(y,"insert"),rv(g,p,r.writer.createPositionAt(_,"end"),r,t)}}catch(t){v.e(t)}finally{v.f()}var k,M=c(i.getChildren());try{for(M.s();!(k=M.n()).done;){var x=k.value,S=x.index;m.has(S)||m.set(S,iv(f,x,S,p,r))}}catch(t){M.e(t)}finally{M.f()}var C=r.mapper.toViewPosition(n.range.start);r.mapper.bindElements(i,u?o:l),r.writer.insert(C,u?o:l)}}))}}function nv(t,e,n){var r=t.cell,i=ov(t,e),o=n.mapper.toViewElement(r);o&&o.name!==i&&function(t,e,n){var r=n.writer,i=n.mapper.toViewElement(t),o=Sc(r.createEditableElement(e,i.getAttributes()),r);Mc(o,r,(function(t,e,n){return n.addClass(uv(e.classes),t)}),(function(t,e,n){return n.removeClass(uv(e.classes),t)})),r.insert(r.createPositionAfter(i),o),r.move(r.createRangeIn(i),r.createPositionAt(o,0)),r.remove(r.createRangeOn(i)),n.mapper.unbindViewElement(i),n.mapper.bindElements(t,o)}(r,i,n)}function rv(t,e,n,r,i){var o=i&&i.asWidget,a=ov(t,e),s=o?Sc(r.writer.createEditableElement(a),r.writer):r.writer.createContainerElement(a);o&&Mc(s,r.writer,(function(t,e,n){return n.addClass(uv(e.classes),t)}),(function(t,e,n){return n.removeClass(uv(e.classes),t)}));var l=t.cell,c=l.getChild(0),f=1===l.childCount&&"paragraph"===c.name;if(r.writer.insert(n,s),f&&!u(c.getAttributeKeys()).length){var d=l.getChild(0),h=r.writer.createPositionAt(s,"end");if(r.consumable.consume(d,"insert"),o){var p=r.writer.createContainerElement("span",{style:"display:inline-block"});r.mapper.bindElements(d,p),r.writer.insert(h,p),r.mapper.bindElements(l,s)}else r.mapper.bindElements(l,s),r.mapper.bindElements(d,s)}else r.mapper.bindElements(l,s)}function iv(t,e,n,r,i){i.consumable.consume(e,"insert");var o=e.isEmpty?i.writer.createEmptyElement("tr"):i.writer.createContainerElement("tr");i.mapper.bindElements(e,o);var a=r.headingRows,s=function(t,e,n){return av(t,e)||function(t,e,n){var r=n.writer.createContainerElement(t),i=n.writer.createPositionAt(e,"tbody"==t?"end":0);return n.writer.insert(i,r),r}(t,e,n)}(function(t,e){return t<e.headingRows?"thead":"tbody"}(n,r),t,i),u=a>0&&n>=a?n-a:n,l=i.writer.createPositionAt(s,u);return i.writer.insert(l,o),o}function ov(t,e){var n=t.row,r=t.column,i=e.headingColumns,o=e.headingRows;return o&&o>n||i&&i>r?"th":"td"}function av(t,e){var n,r=c(e.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.name==t)return i}}catch(t){r.e(t)}finally{r.f()}}function sv(t,e,n){var r=av(t,e);r&&0===r.childCount&&n.writer.remove(n.writer.createRangeOn(r))}function uv(t){return Array.isArray(t)?t:[t]}var lv=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=this.editor.model,e=t.document.selection,n=t.schema,r=function(t){var e=t.parent;return e===e.root?e:e.parent}(e.getFirstPosition());this.isEnabled=n.checkChild(r,"table")}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.editor.model,n=e.document.selection,r=this.editor.plugins.get("TableUtils"),i=Cc(n,e);e.change((function(n){var o=r.createTable(n,t);e.insertContent(o,i),n.setSelection(n.createPositionAt(o.getNodeByPath([0,0,0]),0))}))}}]),n}(Dl);function cv(t){var e,n=[],r=c(vv(t.getRanges()));try{for(r.s();!(e=r.n()).done;){var i=e.value.getContainedElement();i&&i.is("element","tableCell")&&n.push(i)}}catch(t){r.e(t)}finally{r.f()}return n}function fv(t){var e,n=[],r=c(t.getRanges());try{for(r.s();!(e=r.n()).done;){var i=e.value.start.findAncestor("tableCell");i&&n.push(i)}}catch(t){r.e(t)}finally{r.f()}return n}function dv(t){var e=cv(t);return e.length?e:fv(t)}function hv(t){return gv(t.map((function(t){return t.parent.index})))}function pv(t){var e=t[0].findAncestor("table");return gv(u(new Qm(e)).filter((function(e){return t.includes(e.cell)})).map((function(t){return t.column})))}function mv(t,e){if(t.length<2||!function(t){var e=t[0].findAncestor("table");if(!yv(hv(t),parseInt(e.getAttribute("headingRows")||0)))return!1;var n=parseInt(e.getAttribute("headingColumns")||0);return yv(pv(t),n)}(t))return!1;var n,r=new Set,i=new Set,o=0,a=c(t);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=e.getCellLocation(s),f=l.row,d=l.column,h=parseInt(s.getAttribute("rowspan")||1),p=parseInt(s.getAttribute("colspan")||1);r.add(f),i.add(d),h>1&&r.add(f+h-1),p>1&&i.add(d+p-1),o+=h*p}}catch(t){a.e(t)}finally{a.f()}return function(t,e){var n=Array.from(t.values()),r=Array.from(e.values());return(Math.max.apply(Math,u(n))-Math.min.apply(Math,u(n))+1)*(Math.max.apply(Math,u(r))-Math.min.apply(Math,u(r))+1)}(r,i)==o}function vv(t){return Array.from(t).sort(bv)}function gv(t){var e=t.sort((function(t,e){return t-e}));return{first:e[0],last:e[e.length-1]}}function bv(t,e){var n=t.start,r=e.start;return n.isBefore(r)?-1:1}function yv(t,e){return t.first<e==t.last<e}var wv=function(t){v(n,t);var e=g(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,n),(r=e.call(this,t)).order=i.order||"below",r}return m(n,[{key:"refresh",value:function(){var t=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!t}},{key:"execute",value:function(){var t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),r="above"===this.order,i=dv(e),o=hv(i),a=r?o.first:o.last,s=i[0].findAncestor("table");n.insertRows(s,{at:r?a:a+1,copyStructureFromAbove:!r})}}]),n}(Dl),_v=function(t){v(n,t);var e=g(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,n),(r=e.call(this,t)).order=i.order||"right",r}return m(n,[{key:"refresh",value:function(){var t=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!t}},{key:"execute",value:function(){var t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),r="left"===this.order,i=dv(e),o=pv(i),a=r?o.first:o.last,s=i[0].findAncestor("table");n.insertColumns(s,{columns:1,at:r?a:a+1})}}]),n}(Dl),kv=function(t){v(n,t);var e=g(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h(this,n),(r=e.call(this,t)).direction=i.direction||"horizontally",r}return m(n,[{key:"refresh",value:function(){var t=dv(this.editor.model.document.selection);this.isEnabled=1===t.length}},{key:"execute",value:function(){var t=dv(this.editor.model.document.selection)[0],e="horizontally"===this.direction,n=this.editor.plugins.get("TableUtils");e?n.splitCellHorizontally(t,2):n.splitCellVertically(t,2)}}]),n}(Dl);function Mv(t,e,n){for(var r=e.startRow,i=e.startColumn,o=e.endRow,a=e.endColumn,s=n.createElement("table"),l=o-r+1,f=0;f<l;f++)n.insertElement("tableRow",s,"end");var d,h=c(u(new Qm(t,{startRow:r,endRow:o,startColumn:i,endColumn:a,includeAllSlots:!0})));try{for(h.s();!(d=h.n()).done;){var p=d.value,m=p.row,v=p.column,g=p.cell,b=p.isAnchor,y=p.cellAnchorRow,w=p.cellAnchorColumn,_=m-r,k=s.getChild(_);if(b){var M=n.cloneElement(g);n.append(M,k),Tv(M,m,v,o,a,n)}else(y<r||w<i)&&Gm(n,n.createPositionAt(k,"end"))}}catch(t){h.e(t)}finally{h.f()}return function(t,e,n,r,i){var o=parseInt(e.getAttribute("headingRows")||0);o>0&&Ym("headingRows",o-n,t,i,0);var a=parseInt(e.getAttribute("headingColumns")||0);a>0&&Ym("headingColumns",a-r,t,i,0)}(s,t,r,i,n),s}function xv(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[],o=new Qm(t,{startRow:r,endRow:e-1}),a=c(o);try{for(a.s();!(n=a.n()).done;){var s=n.value,u=s.row,l=s.cellHeight,f=u+l-1;u<e&&e<=f&&i.push(s)}}catch(t){a.e(t)}finally{a.f()}return i}function Sv(t,e,n){var r=t.parent,i=r.parent,o=r.index,a=e-o,s={},l=parseInt(t.getAttribute("rowspan"))-a;l>1&&(s.rowspan=l);var f=parseInt(t.getAttribute("colspan")||1);f>1&&(s.colspan=f);var d,h,p=o+a,m=null,v=c(u(new Qm(i,{startRow:o,endRow:p,includeAllSlots:!0})));try{for(v.s();!(h=v.n()).done;){var g=h.value,b=g.row,y=g.column;g.cell===t&&void 0===d&&(d=y),void 0!==d&&d===y&&b===p&&(m=Gm(n,g.getPositionBefore(),s))}}catch(t){v.e(t)}finally{v.f()}return Ym("rowspan",a,t,n),m}function Cv(t,e){var n,r=[],i=c(new Qm(t));try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.column,s=o.cellWidth;a<e&&e<=a+s-1&&r.push(o)}}catch(t){i.e(t)}finally{i.f()}return r}function Av(t,e,n,r){var i=n-e,o={},a=parseInt(t.getAttribute("colspan"))-i;a>1&&(o.colspan=a);var s=parseInt(t.getAttribute("rowspan")||1);s>1&&(o.rowspan=s);var u=Gm(r,r.createPositionAfter(t),o);return Ym("colspan",i,t,r),u}function Tv(t,e,n,r,i,o){var a=parseInt(t.getAttribute("colspan")||1),s=parseInt(t.getAttribute("rowspan")||1);n+a-1>i&&Ym("colspan",i-n+1,t,o,1),e+s-1>r&&Ym("rowspan",r-e+1,t,o,1)}function Ev(t,e){var n,r=e.getColumns(t),i=new Array(r).fill(0),o=c(new Qm(t));try{for(o.s();!(n=o.n()).done;){i[n.value.column]++}}catch(t){o.e(t)}finally{o.f()}var a=i.reduce((function(t,e,n){return e?t:[].concat(u(t),[n])}),[]);if(a.length>0){var s=a[a.length-1];return e.removeColumns(t,{at:s}),!0}return!1}function Ov(t,e){for(var n=[],r=0;r<t.childCount;r++)t.getChild(r).isEmpty&&n.push(r);if(n.length>0){var i=n[n.length-1];return e.removeRows(t,{at:i}),!0}return!1}function Pv(t,e){Ev(t,e)||Ov(t,e)}function Iv(t,e){var n=Array.from(new Qm(t,{startColumn:e.firstColumn,endColumn:e.lastColumn,row:e.lastRow}));if(n.every((function(t){return 1===t.cellHeight})))return e.lastRow;var r=n[0].cellHeight-1;return e.lastRow+r}function Rv(t,e){var n=Array.from(new Qm(t,{startRow:e.firstRow,endRow:e.lastRow,column:e.lastColumn}));if(n.every((function(t){return 1===t.cellWidth})))return e.lastColumn;var r=n[0].cellWidth-1;return e.lastColumn+r}var jv=function(t){v(n,t);var e=g(n);function n(t,r){var i;return h(this,n),(i=e.call(this,t)).direction=r.direction,i.isHorizontal="right"==i.direction||"left"==i.direction,i}return m(n,[{key:"refresh",value:function(){var t=this._getMergeableCell();this.value=t,this.isEnabled=!!t}},{key:"execute",value:function(){var t=this,e=this.editor.model,n=fv(e.document.selection)[0],r=this.value,i=this.direction;e.change((function(e){var o="right"==i||"down"==i,a=o?n:r,s=o?r:n,u=s.parent;!function(t,e,n){Dv(t)||(Dv(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end"))),n.remove(t)}(s,a,e);var l=t.isHorizontal?"colspan":"rowspan",c=parseInt(n.getAttribute(l)||1),f=parseInt(r.getAttribute(l)||1);e.setAttribute(l,c+f,a),e.setSelection(e.createRangeIn(a));var d=t.editor.plugins.get("TableUtils");Pv(u.findAncestor("table"),d)}))}},{key:"_getMergeableCell",value:function(){var t=fv(this.editor.model.document.selection)[0];if(t){var e=this.editor.plugins.get("TableUtils"),n=this.isHorizontal?function(t,e,n){var r=t.parent.parent,i="right"==e?t.nextSibling:t.previousSibling,o=(r.getAttribute("headingColumns")||0)>0;if(i){var a="right"==e?t:i,s="right"==e?i:t,u=n.getCellLocation(a).column,l=n.getCellLocation(s).column,c=parseInt(a.getAttribute("colspan")||1),f=Zm(n,a),d=Zm(n,s);if(!o||f==d)return u+c===l?i:void 0}}(t,this.direction,e):function(t,e){var n=t.parent,r=n.parent,i=r.getChildIndex(n);if(!("down"==e&&i===r.childCount-1||"up"==e&&0===i)){var o=parseInt(t.getAttribute("rowspan")||1),a=r.getAttribute("headingRows")||0;if(!a||!("down"==e&&i+o===a)&&!("up"==e&&i===a)){var s=parseInt(t.getAttribute("rowspan")||1),l="down"==e?i+s:i,c=u(new Qm(r,{endRow:l})),f=c.find((function(e){return e.cell===t})).column,d=c.find((function(t){var n=t.row,r=t.cellHeight;return t.column===f&&("down"==e?n===l:l===n+r)}));return d&&d.cell}}}(t,this.direction);if(n){var r=this.isHorizontal?"rowspan":"colspan",i=parseInt(t.getAttribute(r)||1);return parseInt(n.getAttribute(r)||1)===i?n:void 0}}}}]),n}(Dl);function Dv(t){return 1==t.childCount&&t.getChild(0).is("element","paragraph")&&t.getChild(0).isEmpty}var Nv=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=dv(this.editor.model.document.selection),e=t[0];if(e){var n=e.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getRows(n)-1,i=hv(t),o=0===i.first&&i.last===r;this.isEnabled=!o}else this.isEnabled=!1}},{key:"execute",value:function(){var t=this,e=this.editor.model,n=dv(e.document.selection),r=hv(n),i=n[0],o=i.findAncestor("table"),a=this.editor.plugins.get("TableUtils").getCellLocation(i).column;e.change((function(e){var n=r.last-r.first+1;t.editor.plugins.get("TableUtils").removeRows(o,{at:r.first,rows:n});var i=function(t,e,n){var r,i=t.getChild(e)||t.getChild(t.childCount-1),o=i.getChild(0),a=0,s=c(i.getChildren());try{for(s.s();!(r=s.n()).done;){var u=r.value;if(a>n)return o;o=u,a+=parseInt(u.getAttribute("colspan")||1)}}catch(t){s.e(t)}finally{s.f()}return o}(o,r.first,a);e.setSelection(e.createPositionAt(i,0))}))}}]),n}(Dl),Lv=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=dv(this.editor.model.document.selection),e=t[0];if(e){var n=e.findAncestor("table"),r=this.editor.plugins.get("TableUtils").getColumns(n),i=pv(t),o=i.first,a=i.last;this.isEnabled=a-o<r-1}else this.isEnabled=!1}},{key:"execute",value:function(){var t=this,e=l(function(t){var e=dv(t),n=e[0],r=e.pop(),i=[n,r];return n.isBefore(r)?i:i.reverse()}(this.editor.model.document.selection),2),n=e[0],r=e[1],i=n.parent.parent,o=u(new Qm(i)),a={first:o.find((function(t){return t.cell===n})).column,last:o.find((function(t){return t.cell===r})).column},s=function(t,e,n,r){return parseInt(n.getAttribute("colspan")||1)>1?n:e.previousSibling||n.nextSibling?n.nextSibling||e.previousSibling:r.first?t.reverse().find((function(t){return t.column<r.first})).cell:t.reverse().find((function(t){return t.column>r.last})).cell}(o,n,r,a);this.editor.model.change((function(e){var n=a.last-a.first+1;t.editor.plugins.get("TableUtils").removeColumns(i,{at:a.first,columns:n}),e.setSelection(e.createPositionAt(s,0))}))}}]),n}(Dl),Bv=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=this,e=dv(this.editor.model.document.selection),n=e.length>0;this.isEnabled=n,this.value=n&&e.every((function(e){return t._isInHeading(e,e.parent.parent)}))}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.forceValue!==this.value){var e=this.editor.model,n=dv(e.document.selection),r=n[0].findAncestor("table"),i=hv(n),o=i.first,a=i.last,s=this.value?o:a+1,u=r.getAttribute("headingRows")||0;e.change((function(t){if(s){var e,n=c(xv(r,s,s>u?u:0));try{for(n.s();!(e=n.n()).done;){Sv(e.value.cell,s,t)}}catch(t){n.e(t)}finally{n.f()}}Ym("headingRows",s,r,t,0)}))}}},{key:"_isInHeading",value:function(t,e){var n=parseInt(e.getAttribute("headingRows")||0);return!!n&&t.parent.index<n}}]),n}(Dl),zv=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=dv(this.editor.model.document.selection),e=this.editor.plugins.get("TableUtils"),n=t.length>0;this.isEnabled=n,this.value=n&&t.every((function(t){return Zm(e,t)}))}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t.forceValue!==this.value){var e=this.editor.model,n=dv(e.document.selection),r=n[0].findAncestor("table"),i=pv(n),o=i.first,a=i.last,s=this.value?o:a+1;e.change((function(t){if(s){var e,n=c(Cv(r,s));try{for(n.s();!(e=n.n()).done;){var i=e.value;Av(i.cell,i.column,s,t)}}catch(t){n.e(t)}finally{n.f()}}Ym("headingColumns",s,r,t,0)}))}}}]),n}(Dl),Fv=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"getCellLocation",value:function(t){var e,n=t.parent,r=n.parent,i=r.getChildIndex(n),o=c(new Qm(r,{row:i}));try{for(o.s();!(e=o.n()).done;){var a=e.value,s=a.cell,u=a.row,l=a.column;if(s===t)return{row:u,column:l}}}catch(t){o.e(t)}finally{o.f()}}},{key:"createTable",value:function(t,e){var n=t.createElement("table");return qv(t,n,0,parseInt(e.rows)||2,parseInt(e.columns)||2),e.headingRows&&Ym("headingRows",e.headingRows,n,t,0),e.headingColumns&&Ym("headingColumns",e.headingColumns,n,t,0),n}},{key:"insertRows",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.editor.model,r=e.at||0,i=e.rows||1,o=void 0!==e.copyStructureFromAbove,a=e.copyStructureFromAbove?r-1:r,s=this.getRows(t),u=this.getColumns(t);n.change((function(e){var n=t.getAttribute("headingRows")||0;if(n>r&&Ym("headingRows",n+i,t,e,0),o||0!==r&&r!==s){var l,f=o?Math.max(r,a):r,d=new Qm(t,{endRow:f}),h=new Array(u).fill(1),p=c(d);try{for(p.s();!(l=p.n()).done;){var m=l.value,v=m.row,g=m.column,b=m.cellHeight,y=m.cellWidth,w=m.cell,_=v+b-1,k=v<=a&&a<=_;v<r&&r<=_?(e.setAttribute("rowspan",b+i,w),h[g]=-y):o&&k&&(h[g]=y)}}catch(t){p.e(t)}finally{p.f()}for(var M=0;M<i;M++){var x=e.createElement("tableRow");e.insert(x,t,r);for(var S=0;S<h.length;S++){var C=h[S],A=e.createPositionAt(x,"end");C>0&&Gm(e,A,C>1?{colspan:C}:null),S+=Math.abs(C)-1}}}else qv(e,t,r,i,u)}))}},{key:"insertColumns",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.editor.model,i=n.at||0,o=n.columns||1;r.change((function(n){var r=t.getAttribute("headingColumns");i<r&&n.setAttribute("headingColumns",r+o,t);var a=e.getColumns(t);if(0!==i&&a!==i){var s,u=new Qm(t,{column:i,includeAllSlots:!0}),l=c(u);try{for(l.s();!(s=l.n()).done;){var f=s.value,d=f.row,h=f.cell,p=f.cellAnchorColumn,m=f.cellAnchorRow,v=f.cellWidth,g=f.cellHeight;if(p<i){n.setAttribute("colspan",v+o,h);for(var b=m+g-1,y=d;y<=b;y++)u.skipRow(y)}else Vv(o,n,f.getPositionBefore())}}catch(t){l.e(t)}finally{l.f()}}else{var w,_=c(t.getChildren());try{for(_.s();!(w=_.n()).done;){var k=w.value;Vv(o,n,n.createPositionAt(k,i?"end":0))}}catch(t){_.e(t)}finally{_.f()}}}))}},{key:"removeRows",value:function(t,e){var n=this,r=this.editor.model,i=e.rows||1,o=e.at,a=o+i-1;r.change((function(e){var r=function(t,e,n){var r,i=new Map,o=[],a=c(new Qm(t,{endRow:n}));try{for(a.s();!(r=a.n()).done;){var s=r.value,u=s.row,l=s.column,f=s.cellHeight,d=s.cell,h=u+f-1;if(u>=e&&u<=n&&h>n){var p=f-(n-u+1);i.set(l,{cell:d,rowspan:p})}if(u<e&&h>=e){var m;m=h>=n?n-e+1:h-e+1,o.push({cell:d,rowspan:f-m})}}}catch(t){a.e(t)}finally{a.f()}return{cellsToMove:i,cellsToTrim:o}}(t,o,a),i=r.cellsToMove,s=r.cellsToTrim;i.size&&function(t,e,n,r){var i,o,a=u(new Qm(t,{includeAllSlots:!0,row:e})),s=t.getChild(e),l=c(a);try{for(l.s();!(o=l.n()).done;){var f=o.value,d=f.column,h=f.cell,p=f.isAnchor;if(n.has(d)){var m=n.get(d),v=m.cell,g=m.rowspan,b=i?r.createPositionAfter(i):r.createPositionAt(s,0);r.move(r.createRangeOn(v),b),Ym("rowspan",g,v,r),i=v}else p&&(i=h)}}catch(t){l.e(t)}finally{l.f()}}(t,a+1,i,e);for(var l=a;l>=o;l--)e.remove(t.getChild(l));var f,d=c(s);try{for(d.s();!(f=d.n()).done;){var h=f.value;Ym("rowspan",h.rowspan,h.cell,e)}}catch(t){d.e(t)}finally{d.f()}!function(t,e,n,r){var i=t.getAttribute("headingRows")||0;e<i&&Ym("headingRows",n<i?i-(n-e+1):e,t,r,0)}(t,o,a,e),Ev(t,n)||Ov(t,n)}))}},{key:"removeColumns",value:function(t,e){var n=this,r=this.editor.model,i=e.at,o=e.columns||1,a=e.at+o-1;r.change((function(e){!function(t,e,n){var r=t.getAttribute("headingColumns")||0;if(r&&e.first<r){var i=Math.min(r-1,e.last)-e.first+1;n.setAttribute("headingColumns",r-i,t)}}(t,{first:i,last:a},e);for(var r=a;r>=i;r--)for(var o=0,s=u(new Qm(t));o<s.length;o++){var l=s[o],c=l.cell,f=l.column,d=l.cellWidth;f<=r&&d>1&&f+d>r?Ym("colspan",d-1,c,e):f===r&&e.remove(c)}Ov(t,n)||Ev(t,n)}))}},{key:"splitCellVertically",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,r=t.parent.parent,i=parseInt(t.getAttribute("rowspan")||1),o=parseInt(t.getAttribute("colspan")||1);n.change((function(n){if(o>1){var a=$v(o,e),s=a.newCellsSpan;Ym("colspan",a.updatedSpan,t,n);var l={};s>1&&(l.colspan=s),i>1&&(l.rowspan=i),Vv(o>e?e-1:o-1,n,n.createPositionAfter(t),l)}if(o<e){var f,d=e-o,h=u(new Qm(r)),p=h.find((function(e){return e.cell===t})).column,m=c(h.filter((function(e){var n=e.cell,r=e.cellWidth,i=e.column;return n!==t&&i===p||i<p&&i+r>p})));try{for(m.s();!(f=m.n()).done;){var v=f.value,g=v.cell,b=v.cellWidth;n.setAttribute("colspan",b+d,g)}}catch(t){m.e(t)}finally{m.f()}var y={};i>1&&(y.rowspan=i),Vv(d,n,n.createPositionAfter(t),y);var w=r.getAttribute("headingColumns")||0;w>p&&Ym("headingColumns",w+d,r,n)}}))}},{key:"splitCellHorizontally",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,r=t.parent,i=r.parent,o=i.getChildIndex(r),a=parseInt(t.getAttribute("rowspan")||1),s=parseInt(t.getAttribute("colspan")||1);n.change((function(n){if(a>1){var r=u(new Qm(i,{startRow:o,endRow:o+a-1,includeAllSlots:!0})),l=$v(a,e),f=l.newCellsSpan,d=l.updatedSpan;Ym("rowspan",d,t,n);var h=r.find((function(e){return e.cell===t})).column,p={};f>1&&(p.rowspan=f),s>1&&(p.colspan=s);for(var m=0,v=r;m<v.length;m++){var g=v[m],b=g.column,y=g.row;y>=o+d&&b===h&&(y+o+d)%f==0&&Vv(1,n,g.getPositionBefore(),p)}}if(a<e){var w,_=e-a,k=c(u(new Qm(i,{startRow:0,endRow:o})));try{for(k.s();!(w=k.n()).done;){var M=w.value,x=M.cell,S=M.cellHeight,C=M.row;if(x!==t&&C+S>o){var A=S+_;n.setAttribute("rowspan",A,x)}}}catch(t){k.e(t)}finally{k.f()}var T={};s>1&&(T.colspan=s),qv(n,i,o+1,_,1,T);var E=i.getAttribute("headingRows")||0;E>o&&Ym("headingRows",E+_,i,n)}}))}},{key:"getColumns",value:function(t){return u(t.getChild(0).getChildren()).reduce((function(t,e){return t+parseInt(e.getAttribute("colspan")||1)}),0)}},{key:"getRows",value:function(t){return t.childCount}}],[{key:"pluginName",get:function(){return"TableUtils"}}]),n}(Rl);function qv(t,e,n,r,i){for(var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=0;a<r;a++){var s=t.createElement("tableRow");t.insert(s,e,n),Vv(i,t,t.createPositionAt(s,"end"),o)}}function Vv(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=0;i<t;i++)Gm(e,n,r)}function $v(t,e){if(t<e)return{newCellsSpan:1,updatedSpan:1};var n=Math.floor(t/e);return{newCellsSpan:n,updatedSpan:t-n*e+n}}var Hv=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=cv(this.editor.model.document.selection);this.isEnabled=mv(t,this.editor.plugins.get(Fv))}},{key:"execute",value:function(){var t=this.editor.model,e=this.editor.plugins.get(Fv);t.change((function(n){var r=cv(t.document.selection),i=r.shift(),o=function(t,e,n){var r,i=0,o=0,a=c(e);try{for(a.s();!(r=a.n()).done;){var s=r.value,u=n.getCellLocation(s),l=u.row;i=Kv(s,u.column,i,"colspan"),o=Kv(s,l,o,"rowspan")}}catch(t){a.e(t)}finally{a.f()}var f=n.getCellLocation(t),d=f.row;return{mergeWidth:i-f.column,mergeHeight:o-d}}(i,r,e),a=o.mergeWidth,s=o.mergeHeight;Ym("colspan",a,i,n),Ym("rowspan",s,i,n);var u,l=c(r);try{for(l.s();!(u=l.n()).done;){Uv(u.value,i,n)}}catch(t){l.e(t)}finally{l.f()}Pv(i.findAncestor("table"),e),n.setSelection(i,"in")}))}}]),n}(Dl);function Uv(t,e,n){Wv(t)||(Wv(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end"))),n.remove(t)}function Wv(t){return 1==t.childCount&&t.getChild(0).is("element","paragraph")&&t.getChild(0).isEmpty}function Kv(t,e,n,r){var i=parseInt(t.getAttribute(r)||1);return Math.max(n,e+i)}var Yv=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=dv(this.editor.model.document.selection);this.isEnabled=t.length>0}},{key:"execute",value:function(){for(var t=this.editor.model,e=dv(t.document.selection),n=hv(e),r=e[0].findAncestor("table"),i=[],o=n.first;o<=n.last;o++){var a,s=c(r.getChild(o).getChildren());try{for(s.s();!(a=s.n()).done;){var u=a.value;i.push(t.createRangeOn(u))}}catch(t){s.e(t)}finally{s.f()}}t.change((function(t){t.setSelection(i)}))}}]),n}(Dl),Gv=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"refresh",value:function(){var t=dv(this.editor.model.document.selection);this.isEnabled=t.length>0}},{key:"execute",value:function(){var t,e=this.editor.model,n=dv(e.document.selection),r=n[0],i=n.pop(),o=r.findAncestor("table"),a=this.editor.plugins.get("TableUtils"),s=a.getCellLocation(r),u=a.getCellLocation(i),l=Math.min(s.column,u.column),f=Math.max(s.column,u.column),d=[],h=c(new Qm(o,{startColumn:l,endColumn:f}));try{for(h.s();!(t=h.n()).done;){var p=t.value;d.push(e.createRangeOn(p.cell))}}catch(t){h.e(t)}finally{h.f()}e.change((function(t){t.setSelection(d)}))}}]),n}(Dl);function Zv(t,e){var n=!1,r=function(t){var e,n=parseInt(t.getAttribute("headingRows")||0),r=t.childCount,i=[],o=c(new Qm(t));try{for(o.s();!(e=o.n()).done;){var a=e.value,s=a.row,u=a.cell,l=a.cellHeight;if(!(l<2)){var f=s<n?n:r;if(s+l>f){var d=f-s;i.push({cell:u,rowspan:d})}}}}catch(t){o.e(t)}finally{o.f()}return i}(t);if(r.length){n=!0;var i,o=c(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;Ym("rowspan",a.rowspan,a.cell,e,1)}}catch(t){o.e(t)}finally{o.f()}}return n}function Jv(t,e){var n,r=!1,i=function(t){var e,n=new Array(t.childCount).fill(0),r=c(new Qm(t,{includeAllSlots:!0}));try{for(r.s();!(e=r.n()).done;){n[e.value.row]++}}catch(t){r.e(t)}finally{r.f()}return n}(t),o=[],a=c(i.entries());try{for(a.s();!(n=a.n()).done;){var s=l(n.value,2),u=s[0];s[1]||o.push(u)}}catch(t){a.e(t)}finally{a.f()}if(o.length){r=!0;var f,d=c(o.reverse());try{for(d.s();!(f=d.n()).done;){var h=f.value;e.remove(t.getChild(h)),i.splice(h,1)}}catch(t){d.e(t)}finally{d.f()}}var p=i[0];if(!i.every((function(t){return t===p}))){var m,v=i.reduce((function(t,e){return e>t?e:t}),0),g=c(i.entries());try{for(g.s();!(m=g.n()).done;){var b=l(m.value,2),y=b[0],w=v-b[1];if(w){for(var _=0;_<w;_++)Gm(e,e.createPositionAt(t.getChild(y),"end"));r=!0}}}catch(t){g.e(t)}finally{g.f()}}return r}function Xv(t){var e="attribute"===t.type,n=t.attributeKey;return e&&("headingRows"===n||"colspan"===n||"rowspan"===n)}function Qv(t,e){var n,r=!1,i=c(t.getChildren());try{for(i.s();!(n=i.n()).done;){r=tg(n.value,e)||r}}catch(t){i.e(t)}finally{i.f()}return r}function tg(t,e){var n,r=!1,i=c(t.getChildren());try{for(i.s();!(n=i.n()).done;){r=eg(n.value,e)||r}}catch(t){i.e(t)}finally{i.f()}return r}function eg(t,e){if(0==t.childCount)return e.insertElement("paragraph",t),!0;var n,r=Array.from(t.getChildren()).filter((function(t){return t.is("$text")})),i=c(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;e.wrap(e.createRangeOn(o),"paragraph")}}catch(t){i.e(t)}finally{i.f()}return!!r.length}function ng(t){return!(!t.position||!t.position.parent.is("element","tableCell"))&&("insert"==t.type&&"$text"==t.name||"remove"==t.type)}function rg(t,e,n){if(!Array.from(t.getChildren()).some((function(t){return t.is("element","paragraph")})))return!1;if("attribute"==e){var r=Array.from(t.getChild(0).getAttributeKeys()).length;return 1===t.childCount&&r<2}return t.childCount<=("insert"==e?n+1:1)}n(104);var ig=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor,e=t.model,n=e.schema,r=t.conversion;n.register("table",{allowWhere:"$block",allowAttributes:["headingRows","headingColumns"],isObject:!0,isBlock:!0}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),n.extend("$block",{allowIn:"tableCell"}),n.addChildCheck((function(t,e){if("table"==e.name&&Array.from(t.getNames()).includes("table"))return!1})),r.for("upcast").add((function(t){t.on("element:table",(function(t,e,n){var r=e.viewItem;if(n.consumable.test(r,{name:!0})){var i=function(t){for(var e,n={headingRows:0,headingColumns:0},r=[],i=[],o=0,a=Array.from(t.getChildren());o<a.length;o++){var s=a[o];if("tbody"===s.name||"thead"===s.name||"tfoot"===s.name){"thead"!==s.name||e||(e=s);var u,l=c(Array.from(s.getChildren()).filter((function(t){return t.is("element","tr")})));try{for(l.s();!(u=l.n()).done;){var f=u.value;if("thead"===f.parent.name&&f.parent===e)n.headingRows++,r.push(f);else{i.push(f);var d=Xm(f);d>n.headingColumns&&(n.headingColumns=d)}}}catch(t){l.e(t)}finally{l.f()}}}return n.rows=[].concat(r,i),n}(r),o=i.rows,a=i.headingRows,s=i.headingColumns,u={};s&&(u.headingColumns=s),a&&(u.headingRows=a);var l=n.writer.createElement("table",u);if(n.safeInsert(l,e.modelCursor)){if(n.consumable.consume(r,{name:!0}),o.forEach((function(t){return n.convertItem(t,n.writer.createPositionAt(l,"end"))})),l.isEmpty){var f=n.writer.createElement("tableRow");n.writer.insert(f,n.writer.createPositionAt(l,"end")),Gm(n.writer,n.writer.createPositionAt(f,"end"))}n.updateConversionResult(l,e)}}}))})),r.for("editingDowncast").add(ev({asWidget:!0})),r.for("dataDowncast").add(ev()),r.for("upcast").elementToElement({model:"tableRow",view:"tr"}),r.for("upcast").add((function(t){t.on("element:tr",(function(t,e){e.viewItem.isEmpty&&0==e.modelCursor.index&&t.stop()}),{priority:"high"})})),r.for("editingDowncast").add((function(t){return t.on("insert:tableRow",(function(t,e,n){var r=e.item;if(n.consumable.consume(r,"insert")){var i,o=r.parent,a=function(t){var e,n=c(t.getChildren());try{for(n.s();!(e=n.n()).done;){var r=e.value;if("table"===r.name)return r}}catch(t){n.e(t)}finally{n.f()}}(n.mapper.toViewElement(o)),s=o.getChildIndex(r),u=new Qm(o,{row:s}),l={headingRows:o.getAttribute("headingRows")||0,headingColumns:o.getAttribute("headingColumns")||0},f=new Map,d=c(u);try{for(d.s();!(i=d.n()).done;){var h=i.value,p=f.get(s)||iv(a,r,s,l,n);f.set(s,p),n.consumable.consume(h.cell,"insert"),rv(h,l,n.writer.createPositionAt(p,"end"),n,{asWidget:!0})}}catch(t){d.e(t)}finally{d.f()}}}))})),r.for("editingDowncast").add((function(t){return t.on("remove:tableRow",(function(t,e,n){t.stop();var r,i=n.writer,o=n.mapper,a=o.toViewPosition(e.position).getLastMatchingPosition((function(t){return!t.item.is("element","tr")})).nodeAfter,s=a.parent.parent,u=i.createRangeOn(a),l=i.remove(u),f=c(i.createRangeIn(l).getItems());try{for(f.s();!(r=f.n()).done;){var d=r.value;o.unbindViewElement(d)}}catch(t){f.e(t)}finally{f.f()}sv("thead",s,n),sv("tbody",s,n)}),{priority:"higher"})})),r.for("upcast").elementToElement({model:"tableCell",view:"td"}),r.for("upcast").elementToElement({model:"tableCell",view:"th"}),r.for("upcast").add(Jm("td")),r.for("upcast").add(Jm("th")),r.for("editingDowncast").add((function(t){return t.on("insert:tableCell",(function(t,e,n){var r=e.item;if(n.consumable.consume(r,"insert")){var i,o=r.parent,a=o.parent,s=a.getChildIndex(o),u=new Qm(a,{row:s}),l={headingRows:a.getAttribute("headingRows")||0,headingColumns:a.getAttribute("headingColumns")||0},f=c(u);try{for(f.s();!(i=f.n()).done;){var d=i.value;if(d.cell===r){var h=n.mapper.toViewElement(o);return void rv(d,l,n.writer.createPositionAt(h,o.getChildIndex(r)),n,{asWidget:!0})}}}catch(t){f.e(t)}finally{f.f()}}}))})),r.attributeToAttribute({model:"colspan",view:"colspan"}),r.attributeToAttribute({model:"rowspan",view:"rowspan"}),r.for("editingDowncast").add((function(t){return t.on("attribute:headingColumns:table",(function(t,e,n){var r=e.item;if(n.consumable.consume(e.item,t.name)){var i,o={headingRows:r.getAttribute("headingRows")||0,headingColumns:r.getAttribute("headingColumns")||0},a=e.attributeOldValue,s=e.attributeNewValue,u=c(new Qm(r,{endColumn:(a>s?a:s)-1}));try{for(u.s();!(i=u.n()).done;){nv(i.value,o,n)}}catch(t){u.e(t)}finally{u.f()}}}))})),t.commands.add("insertTable",new lv(t)),t.commands.add("insertTableRowAbove",new wv(t,{order:"above"})),t.commands.add("insertTableRowBelow",new wv(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new _v(t,{order:"left"})),t.commands.add("insertTableColumnRight",new _v(t,{order:"right"})),t.commands.add("removeTableRow",new Nv(t)),t.commands.add("removeTableColumn",new Lv(t)),t.commands.add("splitTableCellVertically",new kv(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new kv(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new Hv(t)),t.commands.add("mergeTableCellRight",new jv(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new jv(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new jv(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new jv(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new zv(t)),t.commands.add("setTableRowHeader",new Bv(t)),t.commands.add("selectTableRow",new Yv(t)),t.commands.add("selectTableColumn",new Gv(t)),function(t){t.document.registerPostFixer((function(){return function(t){var e,n=t.document.differ,r=new Set,i=c(n.getChanges());try{for(i.s();!(e=i.n()).done;){var o=e.value;if("attribute"==o.type){var a=o.range.start.nodeAfter;a&&a.is("element","table")&&"headingRows"==o.attributeKey&&r.add(a)}}}catch(t){i.e(t)}finally{i.f()}if(r.size){var s,u=c(r.values());try{for(u.s();!(s=u.n()).done;){var l=s.value;n.refreshItem(l)}}catch(t){u.e(t)}finally{u.f()}return!0}return!1}(t)}))}(e),function(t){t.document.registerPostFixer((function(e){return function(t,e){var n,r=e.document.differ.getChanges(),i=!1,o=new Set,a=c(r);try{for(a.s();!(n=a.n()).done;){var s=n.value,u=void 0;"table"==s.name&&"insert"==s.type&&(u=s.position.nodeAfter),"tableRow"!=s.name&&"tableCell"!=s.name||(u=s.position.findAncestor("table")),Xv(s)&&(u=s.range.start.findAncestor("table")),u&&!o.has(u)&&(i=Zv(u,t)||i,i=Jv(u,t)||i,o.add(u))}}catch(t){a.e(t)}finally{a.f()}return i}(e,t)}))}(e),function(t){t.document.registerPostFixer((function(){return function(t){var e,n=t.document.differ,r=new Set,i=0,o=c(n.getChanges());try{for(o.s();!(e=o.n()).done;){var a=e.value,s="insert"==a.type||"remove"==a.type?a.position.parent:a.range.start.parent;s.is("element","tableCell")&&("insert"==a.type&&i++,rg(s,a.type,i)&&r.add(s))}}catch(t){o.e(t)}finally{o.f()}if(r.size){var u,l=c(r.values());try{for(l.s();!(u=l.n()).done;){var f=u.value;n.refreshItem(f)}}catch(t){l.e(t)}finally{l.f()}return!0}return!1}(t)}))}(e),function(t){t.document.registerPostFixer((function(e){return function(t,e){var n,r=!1,i=c(e.document.differ.getChanges());try{for(i.s();!(n=i.n()).done;){var o=n.value;"insert"==o.type&&"table"==o.name&&(r=Qv(o.position.nodeAfter,t)||r),"insert"==o.type&&"tableRow"==o.name&&(r=tg(o.position.nodeAfter,t)||r),"insert"==o.type&&"tableCell"==o.name&&(r=eg(o.position.nodeAfter,t)||r),ng(o)&&(r=eg(o.position.parent,t)||r)}}catch(t){i.e(t)}finally{i.f()}return r}(e,t)}))}(e)}}],[{key:"pluginName",get:function(){return"TableEditing"}},{key:"requires",get:function(){return[Fv]}}]),n}(Rl);n(106);var og=function(t){v(n,t);var e=g(n);function n(t){var r;h(this,n);var i=(r=e.call(this,t)).bindTemplate;return r.items=r._createGridCollection(),r.set("rows",0),r.set("columns",0),r.bind("label").to(y(r),"columns",y(r),"rows",(function(t,e){return"".concat(e," × ").concat(t)})),r.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":i.to("boxover")},children:r.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:i.to("label")}]}],on:{mousedown:i.to((function(t){t.preventDefault()})),click:i.to((function(){r.fire("execute")}))}}),r.on("boxover",(function(t,e){var n=e.target.dataset,i=n.row,o=n.column;r.set({rows:parseInt(i),columns:parseInt(o)})})),r.on("change:columns",(function(){r._highlightGridBoxes()})),r.on("change:rows",(function(){r._highlightGridBoxes()})),r}return m(n,[{key:"focus",value:function(){}},{key:"focusLast",value:function(){}},{key:"_highlightGridBoxes",value:function(){var t=this.rows,e=this.columns;this.items.map((function(n,r){var i=Math.floor(r/10)<t&&r%10<e;n.set("isOn",i)}))}},{key:"_createGridCollection",value:function(){for(var t=[],e=0;e<100;e++){var n=Math.floor(e/10),r=e%10;t.push(new ag(this.locale,n+1,r+1))}return this.createCollection(t)}}]),n}(Ku),ag=function(t){v(n,t);var e=g(n);function n(t,r,i){var o;h(this,n);var a=(o=e.call(this,t)).bindTemplate;return o.set("isOn",!1),o.setTemplate({tag:"div",attributes:{class:["ck-insert-table-dropdown-grid-box",a.if("isOn","ck-on")],"data-row":r,"data-column":i}}),o}return n}(Ku),sg=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=this.editor.t,r="ltr"===e.locale.contentLanguageDirection;e.ui.componentFactory.add("insertTable",(function(t){var r,i=e.commands.get("insertTable"),o=xl(t);return o.bind("isEnabled").to(i),o.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:n("Insert table"),tooltip:!0}),o.on("change:isOpen",(function(){r||(r=new og(t),o.panelView.children.add(r),r.delegate("execute").to(o),o.buttonView.on("open",(function(){r.rows=0,r.columns=0})),o.on("execute",(function(){e.execute("insertTable",{rows:r.rows,columns:r.columns}),e.editing.view.focus()})))})),o})),e.ui.componentFactory.add("tableColumn",(function(e){var i=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:n("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:r?"insertTableColumnLeft":"insertTableColumnRight",label:n("Insert column left")}},{type:"button",model:{commandName:r?"insertTableColumnRight":"insertTableColumnLeft",label:n("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:n("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:n("Select column")}}];return t._prepareDropdown(n("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',i,e)})),e.ui.componentFactory.add("tableRow",(function(e){var r=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:n("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:n("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:n("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:n("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:n("Select row")}}];return t._prepareDropdown(n("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',r,e)})),e.ui.componentFactory.add("mergeTableCells",(function(e){var i=[{type:"button",model:{commandName:"mergeTableCellUp",label:n("Merge cell up")}},{type:"button",model:{commandName:r?"mergeTableCellRight":"mergeTableCellLeft",label:n("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:n("Merge cell down")}},{type:"button",model:{commandName:r?"mergeTableCellLeft":"mergeTableCellRight",label:n("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:n("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:n("Split cell horizontally")}}];return t._prepareMergeSplitButtonDropdown(n("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',i,e)}))}},{key:"_prepareDropdown",value:function(t,e,n,r){var i=this.editor,o=xl(r),a=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:t,icon:e,tooltip:!0}),o.bind("isEnabled").toMany(a,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),this.listenTo(o,"execute",(function(t){i.execute(t.source.commandName),i.editing.view.focus()})),o}},{key:"_prepareMergeSplitButtonDropdown",value:function(t,e,n,r){var i=this.editor,o=xl(r,wp);return this._fillDropdownWithListOptions(o,n),o.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),this.listenTo(o.buttonView,"execute",(function(){i.execute("mergeTableCells"),i.editing.view.focus()})),this.listenTo(o,"execute",(function(t){i.execute(t.source.commandName),i.editing.view.focus()})),o}},{key:"_fillDropdownWithListOptions",value:function(t,e){var n,r=this.editor,i=[],o=new sn,a=c(e);try{for(a.s();!(n=a.n()).done;){ug(n.value,r,i,o)}}catch(t){a.e(t)}finally{a.f()}return Cl(t,o,r.ui.componentFactory),i}}]),n}(Rl);function ug(t,e,n,r){var i=t.model=new rh(t.model),o=t.model,a=o.commandName,s=o.bindIsOn;if("button"===t.type||"switchbutton"===t.type){var u=e.commands.get(a);n.push(u),i.set({commandName:a}),i.bind("isEnabled").to(u),s&&i.bind("isOn").to(u,"value")}i.set({withText:!0}),r.add(t)}n(108);var lg=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor.model;this.listenTo(e,"deleteContent",(function(e,n){return t._handleDeleteContent(e,n)}),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}},{key:"getSelectedTableCells",value:function(){var t=cv(this.editor.model.document.selection);return 0==t.length?null:t}},{key:"getSelectionAsFragment",value:function(){var t=this,e=this.getSelectedTableCells();return e?this.editor.model.change((function(n){var r=n.createDocumentFragment(),i=t.editor.plugins.get("TableUtils"),o=pv(e),a=o.first,s=o.last,u=hv(e),l=u.first,c=u.last,f=e[0].findAncestor("table"),d=c,h=s;if(mv(e,i)){var p={firstColumn:a,lastColumn:s,firstRow:l,lastRow:c};d=Iv(f,p),h=Rv(f,p)}var m=Mv(f,{startRow:l,startColumn:a,endRow:d,endColumn:h},n);return n.insert(m,r,0),r})):null}},{key:"setCellSelection",value:function(t,e){var n=this._getCellsToSelect(t,e);this.editor.model.change((function(t){t.setSelection(n.cells.map((function(e){return t.createRangeOn(e)})),{backward:n.backward})}))}},{key:"getFocusCell",value:function(){var t=u(this.editor.model.document.selection.getRanges()).pop().getContainedElement();return t&&t.is("element","tableCell")?t:null}},{key:"getAnchorCell",value:function(){var t=Ll(this.editor.model.document.selection.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null}},{key:"_defineSelectionConverter",value:function(){var t=this,e=this.editor,n=new Set;e.conversion.for("editingDowncast").add((function(e){return e.on("selection",(function(e,r,i){var o=i.writer;!function(t){var e,r=c(n);try{for(r.s();!(e=r.n()).done;){var i=e.value;t.removeClass("ck-editor__editable_selected",i)}}catch(t){r.e(t)}finally{r.f()}n.clear()}(o);var a=t.getSelectedTableCells();if(a){var s,u=c(a);try{for(u.s();!(s=u.n()).done;){var l=s.value,f=i.mapper.toViewElement(l);o.addClass("ck-editor__editable_selected",f),n.add(f)}}catch(t){u.e(t)}finally{u.f()}var d=i.mapper.toViewElement(a[a.length-1]);o.setSelection(d,0)}}),{priority:"lowest"})}))}},{key:"_enablePluginDisabling",value:function(){var t=this,e=this.editor;this.on("change:isEnabled",(function(){if(!t.isEnabled){var n=t.getSelectedTableCells();if(!n)return;e.model.change((function(t){var r=t.createPositionAt(n[0],0),i=e.model.schema.getNearestSelectionRange(r);t.setSelection(i)}))}}))}},{key:"_handleDeleteContent",value:function(t,e){var n=l(e,2),r=n[0],i=n[1],o=this.editor.model,a=!i||"backward"==i.direction,s=cv(r);s.length&&(t.stop(),o.change((function(t){var e=s[a?s.length-1:0];o.change((function(t){var e,n=c(s);try{for(n.s();!(e=n.n()).done;){var r=e.value;o.deleteContent(t.createSelection(r,"in"))}}catch(t){n.e(t)}finally{n.f()}}));var n=o.schema.getNearestSelectionRange(t.createPositionAt(e,0));r.is("documentSelection")?t.setSelection(n):r.setTo(n)})))}},{key:"_getCellsToSelect",value:function(t,e){var n,r=this.editor.plugins.get("TableUtils"),i=r.getCellLocation(t),o=r.getCellLocation(e),a=Math.min(i.row,o.row),s=Math.max(i.row,o.row),u=Math.min(i.column,o.column),l=Math.max(i.column,o.column),f=new Array(s-a+1).fill(null).map((function(){return[]})),d={startRow:a,endRow:s,startColumn:u,endColumn:l},h=c(new Qm(t.findAncestor("table"),d));try{for(h.s();!(n=h.n()).done;){var p=n.value,m=p.row,v=p.cell;f[m-a].push(v)}}catch(t){h.e(t)}finally{h.f()}var g=o.row<i.row,b=o.column<i.column;return g&&f.reverse(),b&&f.forEach((function(t){return t.reverse()})),{cells:f.flat(),backward:g||b}}}],[{key:"pluginName",get:function(){return"TableSelection"}},{key:"requires",get:function(){return[Fv]}}]),n}(Rl),cg=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view.document;this.listenTo(n,"copy",(function(e,n){return t._onCopyCut(e,n)})),this.listenTo(n,"cut",(function(e,n){return t._onCopyCut(e,n)})),this.listenTo(e.model,"insertContent",(function(e,n){return t._onInsertContent.apply(t,[e].concat(u(n)))}),{priority:"high"})}},{key:"_onCopyCut",value:function(t,e){var n=this.editor.plugins.get(lg);if(n.getSelectedTableCells()&&("cut"!=t.name||!this.editor.isReadOnly)){e.preventDefault(),t.stop();var r=this.editor.data,i=this.editor.editing.view.document,o=r.toView(n.getSelectionAsFragment());i.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:o,method:t.name})}}},{key:"_onInsertContent",value:function(t,e,n){var r=this;if(!n||n.is("documentSelection")){var i=this.editor.model,o=this.editor.plugins.get(Fv),a=function(t,e){if(!t.is("documentFragment")&&!t.is("element"))return null;if(t.is("element","table"))return t;if(1==t.childCount&&t.getChild(0).is("element","table"))return t.getChild(0);var n,r=e.createRangeIn(t),i=c(r.getItems());try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.is("element","table")){var a=e.createRange(r.start,e.createPositionBefore(o));if(e.hasContent(a,{ignoreWhitespaces:!0}))return null;var s=e.createRange(e.createPositionAfter(o),r.end);return e.hasContent(s,{ignoreWhitespaces:!0})?null:o}}}catch(t){i.e(t)}finally{i.f()}return null}(e,i);if(a){var s=dv(i.document.selection);s.length?(t.stop(),i.change((function(t){var e={width:o.getColumns(a),height:o.getRows(a)},n=function(t,e,n,r){var i=t[0].findAncestor("table"),o=pv(t),a=hv(t),s={firstColumn:o.first,lastColumn:o.last,firstRow:a.first,lastRow:a.last},u=1===t.length;return u&&(s.lastRow+=e.height-1,s.lastColumn+=e.width-1,function(t,e,n,r){var i=r.getColumns(t),o=r.getRows(t);n>i&&r.insertColumns(t,{at:i,columns:n-i}),e>o&&r.insertRows(t,{at:o,rows:e-o})}(i,s.lastRow+1,s.lastColumn+1,r)),u||!mv(t,r)?function(t,e,n){var r=e.firstRow,i=e.lastRow,o=e.firstColumn,a=e.lastColumn,s={first:r,last:i},u={first:o,last:a};dg(t,o,s,n),dg(t,a+1,s,n),fg(t,r,u,n),fg(t,i+1,u,n,r)}(i,s,n):(s.lastRow=Iv(i,s),s.lastColumn=Rv(i,s)),s}(s,e,t,o),i=n.lastRow-n.firstRow+1,l=n.lastColumn-n.firstColumn+1,f={startRow:0,startColumn:0,endRow:Math.min(i,e.height)-1,endColumn:Math.min(l,e.width)-1};a=Mv(a,f,t);var d=s[0].findAncestor("table"),h=function(t,e,n,r,i){for(var o,a=e.width,s=e.height,l=function(t,e,n){var r,i=new Array(n).fill(null).map((function(){return new Array(e).fill(null)})),o=c(new Qm(t));try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.column,u=a.row,l=a.cell;i[u][s]=l}}catch(t){o.e(t)}finally{o.f()}return i}(t,a,s),f=[],d=0,h=u(new Qm(n,{startRow:r.firstRow,endRow:r.lastRow,startColumn:r.firstColumn,endColumn:r.lastColumn,includeAllSlots:!0}));d<h.length;d++){var p=h[d],m=p.row,v=p.column,g=p.cell,b=p.isAnchor;v===r.firstColumn&&(o=p.getPositionBefore()),b&&i.remove(g);var y=m-r.firstRow,w=v-r.firstColumn,_=l[y%s][w%a];if(_){var k=i.cloneElement(_);Tv(k,m,v,r.lastRow,r.lastColumn,i),i.insert(k,o),f.push(k),o=i.createPositionAfter(k)}}var M=parseInt(n.getAttribute("headingRows")||0),x=parseInt(n.getAttribute("headingColumns")||0),S=r.firstRow<M&&M<=r.lastRow,C=r.firstColumn<x&&x<=r.lastColumn;if(S){var A=fg(n,M,{first:r.firstColumn,last:r.lastColumn},i,r.firstRow);f.push.apply(f,u(A))}if(C){var T=dg(n,x,{first:r.firstRow,last:r.lastRow},i);f.push.apply(f,u(T))}return f}(a,e,d,n,t);if(r.editor.plugins.get("TableSelection").isEnabled){var p=vv(h.map((function(e){return t.createRangeOn(e)})));t.setSelection(p)}else t.setSelection(h[0],0)}))):Pv(a,o)}}}}],[{key:"pluginName",get:function(){return"TableClipboard"}},{key:"requires",get:function(){return[lg,Fv]}}]),n}(Rl);function fg(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!(e<1))return xv(t,e,i).filter((function(t){return hg(t.column,t.cellWidth,n)})).map((function(t){return Sv(t.cell,e,r)}))}function dg(t,e,n,r){if(!(e<1))return Cv(t,e).filter((function(t){return hg(t.row,t.cellHeight,n)})).map((function(t){return Av(t.cell,t.column,e,r)}))}function hg(t,e,n){var r=t+e-1,i=n.first,o=n.last;return t>=i&&t<=o||t<i&&r>=i}var pg=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor.editing.view.document;this.editor.keystrokes.set("Tab",(function(){return t._handleTabOnSelectedTable.apply(t,arguments)}),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(e,"keydown",(function(){return t._onKeydown.apply(t,arguments)}),{priority:Ke.get("high")-10})}},{key:"_handleTabOnSelectedTable",value:function(t,e){var n=this.editor,r=n.model.document.selection.getSelectedElement();r&&r.is("element","table")&&(e(),n.model.change((function(t){t.setSelection(t.createRangeIn(r.getChild(0).getChild(0)))})))}},{key:"_getTabHandler",value:function(t){var e=this,n=this.editor;return function(r,i){var o=fv(n.model.document.selection)[0];if(o||(o=e.editor.plugins.get("TableSelection").getFocusCell()),o){i();var a=o.parent,s=a.parent,u=s.getChildIndex(a),l=a.getChildIndex(o),c=0===l;if(t||!c||0!==u){var f=l===a.childCount-1,d=u===s.childCount-1;if(t&&d&&f&&(n.execute("insertTableRowBelow"),u===s.childCount-1))n.model.change((function(t){t.setSelection(t.createRangeOn(s))}));else{var h;if(t&&f){var p=s.getChild(u+1);h=p.getChild(0)}else if(!t&&c){var m=s.getChild(u-1);h=m.getChild(m.childCount-1)}else h=a.getChild(l+(t?1:-1));n.model.change((function(t){t.setSelection(t.createRangeIn(h))}))}}else n.model.change((function(t){t.setSelection(t.createRangeOn(s))}))}}}},{key:"_onKeydown",value:function(t,e){var n=this.editor,r=e.keyCode;if(Yr(r)){var i=Gr(r,n.locale.contentLanguageDirection);this._handleArrowKeys(i,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}}},{key:"_handleArrowKeys",value:function(t,e){var n,r=this.editor.model.document.selection,i=["right","down"].includes(t),o=cv(r);if(o.length)return n=e?this.editor.plugins.get("TableSelection").getFocusCell():i?o[o.length-1]:o[0],this._navigateFromCellInDirection(n,t,e),!0;var a=r.focus.findAncestor("tableCell");return!(!a||e&&!r.isCollapsed&&r.isBackward==i||!this._isSelectionAtCellEdge(r,a,i)||(this._navigateFromCellInDirection(a,t,e),0))}},{key:"_isSelectionAtCellEdge",value:function(t,e,n){var r=this.editor.model,i=this.editor.model.schema,o=n?t.getLastPosition():t.getFirstPosition();if(!i.getLimitElement(o).is("element","tableCell"))return r.createPositionAt(e,n?"end":0).isTouching(o);var a=r.createSelection(o);return r.modifySelection(a,{direction:n?"forward":"backward"}),o.isEqual(a.focus)}},{key:"_navigateFromCellInDirection",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.editor.model,i=t.findAncestor("table"),o=u(new Qm(i,{includeAllSlots:!0})),a=o[o.length-1],s=a.row,l=a.column,c=o.find((function(e){return e.cell==t})),f=c.row,d=c.column;switch(e){case"left":d--;break;case"up":f--;break;case"right":d+=c.cellWidth;break;case"down":f+=c.cellHeight}if(f<0||f>s||d<0&&f<=0||d>l&&f>=s)r.change((function(t){t.setSelection(t.createRangeOn(i))}));else{d<0?(d=n?0:l,f--):d>l&&(d=n?l:0,f++);var h=o.find((function(t){return t.row==f&&t.column==d})).cell,p=["right","down"].includes(e),m=this.editor.plugins.get("TableSelection");if(n&&m.isEnabled){var v=m.getAnchorCell()||t;m.setCellSelection(v,h)}else{var g=r.createPositionAt(h,p?0:"end");r.change((function(t){t.setSelection(g)}))}}}}],[{key:"pluginName",get:function(){return"TableKeyboard"}},{key:"requires",get:function(){return[lg]}}]),n}(Rl),mg=function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).domEventType=["mousemove","mouseup","mouseleave"],r}return m(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}]),n}(co),vg=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){this.editor.editing.view.addObserver(mg),this._enableShiftClickSelection(),this._enableMouseDragSelection()}},{key:"_enableShiftClickSelection",value:function(){var t=this,e=this.editor,n=!1,r=e.plugins.get(lg);this.listenTo(e.editing.view.document,"mousedown",(function(i,o){if(t.isEnabled&&r.isEnabled&&o.domEvent.shiftKey){var a=r.getAnchorCell()||fv(e.model.document.selection)[0];if(a){var s=t._getModelTableCellFromDomEvent(o);s&&gg(a,s)&&(n=!0,r.setCellSelection(a,s),o.preventDefault())}}})),this.listenTo(e.editing.view.document,"mouseup",(function(){n=!1})),this.listenTo(e.editing.view.document,"selectionChange",(function(t){n&&t.stop()}),{priority:"highest"})}},{key:"_enableMouseDragSelection",value:function(){var t,e,n=this,r=this.editor,i=!1,o=!1,a=r.plugins.get(lg);this.listenTo(r.editing.view.document,"mousedown",(function(e,r){n.isEnabled&&a.isEnabled&&(r.domEvent.shiftKey||r.domEvent.ctrlKey||r.domEvent.altKey||(t=n._getModelTableCellFromDomEvent(r)))})),this.listenTo(r.editing.view.document,"mousemove",(function(r,s){if(s.domEvent.buttons&&t){var u=n._getModelTableCellFromDomEvent(s);u&&gg(t,u)&&(e=u,i||e==t||(i=!0)),i&&(o=!0,a.setCellSelection(t,e),s.preventDefault())}})),this.listenTo(r.editing.view.document,"mouseup",(function(){i=!1,o=!1,t=null,e=null})),this.listenTo(r.editing.view.document,"selectionChange",(function(t){o&&t.stop()}),{priority:"highest"})}},{key:"_getModelTableCellFromDomEvent",value:function(t){var e=t.target,n=this.editor.editing.view.createPositionAt(e,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}],[{key:"pluginName",get:function(){return"TableMouse"}},{key:"requires",get:function(){return[lg]}}]),n}(Rl);function gg(t,e){return t.parent.parent==e.parent.parent}function bg(t){var e=t.getSelectedElement();return e&&wg(e)?e:null}function yg(t){var e=function(t,e){for(var n=e.parent;n;){if("table"===n.name)return n;n=n.parent}}(0,t.getFirstPosition());return e&&wg(e.parent)?e.parent:null}function wg(t){return!!t.getCustomProperty("table")&&_c(t)}n(110);var _g=/[\\^$.*+?()[\]{}|]/g,kg=RegExp(_g.source),Mg={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:"1/2",to:"½"},oneThird:{from:"1/3",to:"⅓"},twoThirds:{from:"2/3",to:"⅔"},oneForth:{from:"1/4",to:"¼"},threeQuarters:{from:"3/4",to:"¾"},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:Eg('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:Eg("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:Eg("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:Eg('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:Eg('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:Eg("'"),to:[null,"‚",null,"’"]}},xg={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},Sg=["symbols","mathematical","typography","quotes"];function Cg(t){return"string"==typeof t?new RegExp("(".concat(function(t){return(t=Rn(t))&&kg.test(t)?t.replace(_g,"\\$&"):t}(t),")$")):t}function Ag(t){return"string"==typeof t?function(){return[t]}:t instanceof Array?function(){return t}:t}function Tg(t){return(t.textNode?t.textNode:t.nodeAfter).getAttributes()}function Eg(t){return new RegExp("(^|\\s)(".concat(t,")([^").concat(t,"]*)(").concat(t,")$"))}function Og(t){if(t.is("$text")||t.is("$textProxy"))return t.data;var e,n="",r=null,i=c(t.getChildren());try{for(i.s();!(e=i.n()).done;){var o=e.value,a=Og(o);r&&r.is("element")&&(n+="\n"),n+=a,r=o}}catch(t){i.e(t)}finally{i.f()}return n}var Pg=function(){function t(e,n){h(this,t),this.loader=e,this.options=n}return m(t,[{key:"upload",value:function(){var t=this;return this.loader.file.then((function(e){return new Promise((function(n,r){t._initRequest(),t._initListeners(n,r,e),t._sendRequest(e)}))}))}},{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"_initRequest",value:function(){var t=this.xhr=new XMLHttpRequest;t.open("POST",this.options.uploadUrl,!0),t.responseType="json"}},{key:"_initListeners",value:function(t,e,n){var r=this.xhr,i=this.loader,o="Couldn't upload file: ".concat(n.name,".");r.addEventListener("error",(function(){return e(o)})),r.addEventListener("abort",(function(){return e()})),r.addEventListener("load",(function(){var n=r.response;if(!n||n.error)return e(n&&n.error&&n.error.message?n.error.message:o);t(n.url?{default:n.url}:n.urls)})),r.upload&&r.upload.addEventListener("progress",(function(t){t.lengthComputable&&(i.uploadTotal=t.total,i.uploaded=t.loaded)}))}},{key:"_sendRequest",value:function(t){for(var e=this.options.headers||{},n=this.options.withCredentials||!1,r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];this.xhr.setRequestHeader(o,e[o])}this.xhr.withCredentials=n;var a=new FormData;a.append("upload",t),this.xhr.send(a)}}]),t}(),Ig=function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return n}(Il);Ig.builtinPlugins=[function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[$l,Kl]}},{key:"pluginName",get:function(){return"Alignment"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this,e=this.editor.model.document.selection;e.on("change:range",(function(){t.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}},{key:"afterInit",value:function(){this._enableEnterHandling(),this._enableShiftEnterHandling()}},{key:"_enableTypingHandling",value:function(){var t=this,e=this.editor,n=new Gl(e.model,(function(t){if(function(t){return t.length>4&&" "===t[t.length-1]&&" "!==t[t.length-2]}(t)){var e=Xl(t.substr(0,t.length-1));return e?{url:e}:void 0}})),r=e.plugins.get("Input");n.on("matched:data",(function(n,i){var o=i.batch,a=i.range,s=i.url;if(r.isInput(o)){var u=a.end.getShiftedBy(-1),l=u.getShiftedBy(-s.length),c=e.model.createRange(l,u);t._applyAutoLink(s,c)}})),n.bind("isEnabled").to(this)}},{key:"_enableEnterHandling",value:function(){var t=this,e=this.editor,n=e.model,r=e.commands.get("enter");r&&r.on("execute",(function(){var e=n.document.selection.getFirstPosition(),r=n.createRange(n.createPositionAt(e.parent.previousSibling,0),n.createPositionAt(e.parent.previousSibling,"end"));t._checkAndApplyAutoLinkOnRange(r)}))}},{key:"_enableShiftEnterHandling",value:function(){var t=this,e=this.editor,n=e.model,r=e.commands.get("shiftEnter");r&&r.on("execute",(function(){var e=n.document.selection.getFirstPosition(),r=n.createRange(n.createPositionAt(e.parent,0),e.getShiftedBy(-1));t._checkAndApplyAutoLinkOnRange(r)}))}},{key:"_checkAndApplyAutoLinkOnRange",value:function(t){var e=this.editor.model,n=Yl(t,e),r=n.text,i=n.range,o=Xl(r);if(o){var a=e.createRange(i.end.getShiftedBy(-o.length),i.end);this._applyAutoLink(o,a)}}},{key:"_applyAutoLink",value:function(t,e){var n=this.editor.model;this.isEnabled&&function(t,e){return e.schema.checkAttributeInSelection(e.createSelection(t),"linkHref")}(e,n)&&n.enqueueChange((function(n){var r,i=(r=t,Jl.exec(r)?"mailto:"+t:t);n.setAttribute("linkHref",i,e)}))}}],[{key:"pluginName",get:function(){return"AutoLink"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[ec,rc]}},{key:"pluginName",get:function(){return"Bold"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"pluginName",get:function(){return"CKFinder"}},{key:"requires",get:function(){return[Vf,ic,Gf]}}]),n}(Rl),Gf,function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[uf,ed,fd,od,md,Nd]}},{key:"pluginName",get:function(){return"Essentials"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Gd,Jd]}},{key:"pluginName",get:function(){return"FontColor"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[nh,ih]}},{key:"pluginName",get:function(){return"FontSize"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[dh,hh]}},{key:"pluginName",get:function(){return"Heading"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Bd,zd]}},{key:"pluginName",get:function(){return"HorizontalLine"}}]),n}(Rl),Bh,function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[qh]}},{key:"pluginName",get:function(){return"ImageCaption"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Kh,ip,Zh]}},{key:"pluginName",get:function(){return"ImageResize"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[mp,vp]}},{key:"pluginName",get:function(){return"ImageStyle"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"afterInit",value:function(){var t=this.editor,e=t.t;t.plugins.get(gp).register("image",{ariaLabel:e("Image toolbar"),items:t.config.get("image.toolbar")||[],getRelatedElement:Oc})}}],[{key:"requires",get:function(){return[gp]}},{key:"pluginName",get:function(){return"ImageToolbar"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"pluginName",get:function(){return"ImageUpload"}},{key:"requires",get:function(){return[Bp,Tp,Ep]}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"pluginName",get:function(){return"Indent"}},{key:"requires",get:function(){return[qp,Hp]}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Wp,Yp]}},{key:"pluginName",get:function(){return"Italic"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Df,nm]}},{key:"pluginName",get:function(){return"Link"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[im,um]}},{key:"pluginName",get:function(){return"LinkImage"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[Rm,Dm]}},{key:"pluginName",get:function(){return"List"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[$m,Km,Um,wh]}},{key:"pluginName",get:function(){return"MediaEmbed"}}]),n}(Rl),uh,function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"init",value:function(){var t=this.editor.config.get("simpleUpload");t&&(t.uploadUrl?this.editor.plugins.get(Uf).createUploadAdapter=function(e){return new Pg(e,t)}:console.warn(Object(Ye.a)('simple-upload-adapter-missing-uploadUrl: Missing the "uploadUrl" property in the "simpleUpload" editor configuration.')))}}],[{key:"requires",get:function(){return[Uf]}},{key:"pluginName",get:function(){return"SimpleUploadAdapter"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,null,[{key:"requires",get:function(){return[ig,sg,lg,vg,pg,cg,wh]}},{key:"pluginName",get:function(){return"Table"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(){return h(this,n),e.apply(this,arguments)}return m(n,[{key:"afterInit",value:function(){var t=this.editor,e=t.t,n=t.plugins.get(gp),r=t.config.get("table.contentToolbar"),i=t.config.get("table.tableToolbar");r&&n.register("tableContent",{ariaLabel:e("Table toolbar"),items:r,getRelatedElement:yg}),i&&n.register("table",{ariaLabel:e("Table toolbar"),items:i,getRelatedElement:bg})}}],[{key:"requires",get:function(){return[gp]}},{key:"pluginName",get:function(){return"TableToolbar"}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),r=e.call(this,t),t.config.define("typing",{transformations:{include:Sg}}),r}return m(n,null,[{key:"pluginName",get:function(){return"TextTransformation"}}]),m(n,[{key:"init",value:function(){var t=this,e=this.editor.model.document.selection;e.on("change:range",(function(){t.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}},{key:"_enableTransformationWatchers",value:function(){var t=this.editor,e=t.model,n=t.plugins.get("Input"),r=function(t){var e=t.extra||[],n=t.remove||[],r=function(t){return!n.includes(t)};return function(t){var e,n=new Set,r=c(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(xg[i]){var o,a=c(xg[i]);try{for(a.s();!(o=a.n()).done;){var s=o.value;n.add(s)}}catch(t){a.e(t)}finally{a.f()}}else n.add(i)}}catch(t){r.e(t)}finally{r.f()}return Array.from(n)}(t.include.concat(e).filter(r)).filter(r).map((function(t){return Mg[t]||t})).map((function(t){return{from:Cg(t.from),to:Ag(t.to)}}))}(t.config.get("typing.transformations")),i=new Gl(t.model,(function(t){var e,n=c(r);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(i.from.test(t))return{normalizedTransformation:i}}}catch(t){n.e(t)}finally{n.f()}}));i.on("matched:data",(function(t,r){if(n.isInput(r.batch)){var i=r.normalizedTransformation,o=i.from,a=i.to,s=o.exec(r.text),u=a(s.slice(1)),l=r.range,c=s.index;e.enqueueChange((function(t){for(var n=1;n<s.length;n++){var r=s[n],i=u[n-1];if(null!=i){var o=l.start.getShiftedBy(c),a=e.createRange(o,o.getShiftedBy(r.length)),f=Tg(o);e.insertContent(t.createText(i,f),a),c+=i.length}else c+=r.length}}))}})),i.bind("isEnabled").to(this)}}]),n}(Rl),function(t){v(n,t);var e=g(n);function n(t){var r;return h(this,n),(r=e.call(this,t)).set("characters",0),r.set("words",0),Object.defineProperties(y(r),{characters:{get:function(){return this.characters=this._getCharacters()}},words:{get:function(){return this.words=this._getWords()}}}),r.set("_wordsLabel"),r.set("_charactersLabel"),r._config=t.config.get("wordCount")||{},r._outputView,r._wordsMatchRegExp=qr.isRegExpUnicodePropertySupported?new RegExp("[\\p{L}\\p{N}\\p{M}\\p{Pd}\\p{Pc}]+","gu"):/[\x2D0-9A-Z_a-z\xC0-\u017E]+/g,r}return m(n,[{key:"init",value:function(){var t=this;this.editor.model.document.on("change:data",np(this._refreshStats.bind(this),250)),"function"==typeof this._config.onUpdate&&this.on("update",(function(e,n){t._config.onUpdate(n)})),Fe(this._config.container)&&this._config.container.appendChild(this.wordCountContainer)}},{key:"destroy",value:function(){this._outputView&&(this._outputView.element.remove(),this._outputView.destroy()),s(x(n.prototype),"destroy",this).call(this)}},{key:"_getCharacters",value:function(){return Og(this.editor.model.document.getRoot()).replace(/\n/g,"").length}},{key:"_getWords",value:function(){return(Og(this.editor.model.document.getRoot()).match(this._wordsMatchRegExp)||[]).length}},{key:"_refreshStats",value:function(){var t=this.words=this._getWords(),e=this.characters=this._getCharacters();this.fire("update",{words:t,characters:e})}},{key:"wordCountContainer",get:function(){var t=this.editor,e=t.t,n=t.config.get("wordCount.displayWords"),r=t.config.get("wordCount.displayCharacters"),i=Tu.bind(this,this),o=[];return this._outputView||(this._outputView=new Ku,(n||void 0===n)&&(this.bind("_wordsLabel").to(this,"words",(function(t){return e("Words: %0",[t])})),o.push({tag:"div",children:[{text:[i.to("_wordsLabel")]}],attributes:{class:"ck-word-count__words"}})),(r||void 0===r)&&(this.bind("_charactersLabel").to(this,"characters",(function(t){return e("Characters: %0",[t])})),o.push({tag:"div",children:[{text:[i.to("_charactersLabel")]}],attributes:{class:"ck-word-count__characters"}})),this._outputView.setTemplate({tag:"div",attributes:{class:["ck","ck-word-count"]},children:o}),this._outputView.render()),this._outputView.element}}],[{key:"pluginName",get:function(){return"WordCount"}}]),n}(Rl)],e.default=Ig}]).default}))}).call(this,n(299)(t))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof f?e:f,o=Object.create(i.prototype),a=new M(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return S()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var c={};function f(){}function d(){}function h(){}var p={};p[i]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(x([])));v&&v!==e&&n.call(v,i)&&(p=v);var g=h.prototype=f.prototype=Object.create(p);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var r;this._invoke=function(i,o){function a(){return new e((function(r,a){!function r(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,c;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function x(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return d.prototype=g.constructor=h,h.constructor=d,d.displayName=s(h,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,s(t,a,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(y.prototype),y.prototype[o]=function(){return this},t.AsyncIterator=y,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new y(u(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,a,"Generator"),g[i]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=x,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,c):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:x(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e){(function(e){t.exports=e}).call(this,{})},function(t,e,n){"use strict";var r=n(55);n.n(r).a},function(t,e,n){(e=n(9)(!1)).push([t.i,"div.ck-editor__editable{min-height:500px}",""]),t.exports=e},function(t,e,n){"use strict";var r=n(56);n.n(r).a},function(t,e,n){(e=n(9)(!1)).push([t.i,".mw-fc[data-v-1526165e]{max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}",""]),t.exports=e},function(t,e,n){"use strict";var r=n(57);n.n(r).a},function(t,e,n){(e=n(9)(!1)).push([t.i,"div.ck-editor__editable{min-height:500px}",""]),t.exports=e},function(t,e,n){"use strict";var r=n(58);n.n(r).a},function(t,e,n){(e=n(9)(!1)).push([t.i,".card .card-icon--success[data-v-77d962d2]{background-color:rgba(67,155,115,.03)}.card .card-icon--info[data-v-77d962d2]{background-color:rgba(31,162,255,.03)}.card .card-icon--warn[data-v-77d962d2]{background-color:rgba(255,143,0,.03)}.card .card-icon--danger[data-v-77d962d2]{background-color:rgba(192,36,40,.03)}.card .card-icon[data-v-77d962d2]{text-align:center;height:72px;width:72px;min-width:72px;border-radius:50%;margin-right:20px}.card--shadow[data-v-77d962d2]{box-shadow:0 1px 1px 0 rgba(10,22,70,.1),0 0 1px 0 rgba(10,22,70,.06)}.card[data-v-77d962d2]{padding:24px 36px;width:100%}.bg-white[data-v-77d962d2]{background-color:#fff!important}.d-flex[data-v-77d962d2]{display:flex!important;flex-direction:row}.flex-content-center[data-v-77d962d2]{align-content:center!important}.flex-justify-between[data-v-77d962d2]{justify-content:space-between!important}.card .card-content[data-v-77d962d2]{border-left:1px solid #f7f8f9;padding-left:20px;flex-grow:1;min-height:72px}.flex-justify-center[data-v-77d962d2]{justify-content:center!important}.flex-column[data-v-77d962d2]{flex-direction:column!important}.flex-items-center[data-v-77d962d2]{align-items:center!important}",""]),t.exports=e},function(t,e,n){"use strict";const r=n(311);t.exports={Accounts:n(135),Account:n(135),AccountLinks:n(423),ApplePayDomains:n(424),ApplicationFees:n(425),Balance:n(426),BalanceTransactions:n(427),Charges:n(428),CountrySpecs:n(429),Coupons:n(430),CreditNotes:n(431),Customers:n(432),Disputes:n(433),EphemeralKeys:n(434),Events:n(435),ExchangeRates:n(436),Files:n(437),FileLinks:n(439),Invoices:n(440),InvoiceItems:n(441),IssuerFraudRecords:n(442),Mandates:n(443),OAuth:n(444),Orders:n(445),OrderReturns:n(446),PaymentIntents:n(447),PaymentMethods:n(448),Payouts:n(449),Plans:n(450),Prices:n(451),Products:n(452),PromotionCodes:n(453),Refunds:n(454),Reviews:n(455),SetupAttempts:n(456),SetupIntents:n(457),Skus:n(458),Sources:n(459),Subscriptions:n(460),SubscriptionItems:n(461),SubscriptionSchedules:n(462),TaxRates:n(463),Tokens:n(464),Topups:n(465),Transfers:n(466),WebhookEndpoints:n(467),BillingPortal:r("billingPortal",{Sessions:n(468)}),Checkout:r("checkout",{Sessions:n(469)}),Issuing:r("issuing",{Authorizations:n(470),Cards:n(471),Cardholders:n(472),Disputes:n(473),Transactions:n(474)}),Radar:r("radar",{EarlyFraudWarnings:n(475),ValueLists:n(476),ValueListItems:n(477)}),Reporting:r("reporting",{ReportRuns:n(478),ReportTypes:n(479)}),Sigma:r("sigma",{ScheduledQueryRuns:n(480)}),Terminal:r("terminal",{ConnectionTokens:n(481),Locations:n(482),Readers:n(483)})}},function(t,e,n){"use strict";function r(t,e){for(const n in e){const r=n[0].toLowerCase()+n.substring(1),i=new e[n](t);this[r]=i}}t.exports=function(t,e){return function(t){return new r(t,e)}},t.exports.ResourceNamespace=r},function(t,e,n){(function(e,r,i){var o=n(137),a=n(2),s=n(138),u=n(33),l=n(317),c=s.IncomingMessage,f=s.readyStates;var d=t.exports=function(t){var n,r=this;u.Writable.call(r),r._opts=t,r._body=[],r._headers={},t.auth&&r.setHeader("Authorization","Basic "+new e(t.auth).toString("base64")),Object.keys(t.headers).forEach((function(e){r.setHeader(e,t.headers[e])}));var i=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!o.abortController)i=!1,n=!0;else if("prefer-streaming"===t.mode)n=!1;else if("allow-wrong-content-type"===t.mode)n=!o.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(t,e){return o.fetch&&e?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&t?"arraybuffer":o.vbArray&&t?"text:vbarray":"text"}(n,i),r._fetchTimer=null,r.on("finish",(function(){r._onFinish()}))};a(d,u.Writable),d.prototype.setHeader=function(t,e){var n=t.toLowerCase();-1===h.indexOf(n)&&(this._headers[n]={name:t,value:e})},d.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},d.prototype.removeHeader=function(t){delete this._headers[t.toLowerCase()]},d.prototype._onFinish=function(){var t=this;if(!t._destroyed){var n=t._opts,a=t._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=o.arraybuffer?l(e.concat(t._body)):o.blobConstructor?new r.Blob(t._body.map((function(t){return l(t)})),{type:(a["content-type"]||{}).value||""}):e.concat(t._body).toString());var u=[];if(Object.keys(a).forEach((function(t){var e=a[t].name,n=a[t].value;Array.isArray(n)?n.forEach((function(t){u.push([e,t])})):u.push([e,n])})),"fetch"===t._mode){var c=null;if(o.abortController){var d=new AbortController;c=d.signal,t._fetchAbortController=d,"requestTimeout"in n&&0!==n.requestTimeout&&(t._fetchTimer=r.setTimeout((function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()}),n.requestTimeout))}r.fetch(t._opts.url,{method:t._opts.method,headers:u,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:c}).then((function(e){t._fetchResponse=e,t._connect()}),(function(e){r.clearTimeout(t._fetchTimer),t._destroyed||t.emit("error",e)}))}else{var h=t._xhr=new r.XMLHttpRequest;try{h.open(t._opts.method,t._opts.url,!0)}catch(e){return void i.nextTick((function(){t.emit("error",e)}))}"responseType"in h&&(h.responseType=t._mode.split(":")[0]),"withCredentials"in h&&(h.withCredentials=!!n.withCredentials),"text"===t._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(h.timeout=n.requestTimeout,h.ontimeout=function(){t.emit("requestTimeout")}),u.forEach((function(t){h.setRequestHeader(t[0],t[1])})),t._response=null,h.onreadystatechange=function(){switch(h.readyState){case f.LOADING:case f.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(h.onprogress=function(){t._onXHRProgress()}),h.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{h.send(s)}catch(e){return void i.nextTick((function(){t.emit("error",e)}))}}}},d.prototype._onXHRProgress=function(){(function(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},d.prototype._connect=function(){var t=this;t._destroyed||(t._response=new c(t._xhr,t._fetchResponse,t._mode,t._fetchTimer),t._response.on("error",(function(e){t.emit("error",e)})),t.emit("response",t._response))},d.prototype._write=function(t,e,n){this._body.push(t),n()},d.prototype.abort=d.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},d.prototype.end=function(t,e,n){"function"==typeof t&&(n=t,t=void 0),u.Writable.prototype.end.call(this,t,e,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(6).Buffer,n(7),n(5))},function(t,e){},function(t,e,n){"use strict";var r=n(4).Buffer,i=n(315);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,i,o=r.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,n=o,i=s,e.copy(n,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,n){"use strict";t.exports=o;var r=n(142),i=Object.create(n(34));function o(t){if(!(this instanceof o))return new o(t);r.call(this,t)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){var r=n(6).Buffer;t.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(r.isBuffer(t)){for(var e=new Uint8Array(t.length),n=t.length,i=0;i<n;i++)e[i]=t[i];return e.buffer}throw new Error("Argument must be a Buffer")}},function(t,e){t.exports=function(){for(var t={},e=0;e<arguments.length;e++){var r=arguments[e];for(var i in r)n.call(r,i)&&(t[i]=r[i])}return t};var n=Object.prototype.hasOwnProperty},function(t,e){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(t,e,n){(function(t,r){var i;!function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,l=/^xn--/,c=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=Math.floor,p=String.fromCharCode;function m(t){throw new RangeError(d[t])}function v(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function g(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+v((t=t.replace(f,".")).split("."),e).join(".")}function b(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function y(t){return v(t,(function(t){var e="";return t>65535&&(e+=p((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=p(t)})).join("")}function w(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function _(t,e,n){var r=0;for(t=n?h(t/700):t>>1,t+=h(t/e);t>455;r+=36)t=h(t/35);return h(r+36*t/(t+38))}function k(t){var e,n,r,i,o,a,s,l,c,f,d,p=[],v=t.length,g=0,b=128,w=72;for((n=t.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&m("not-basic"),p.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<v;){for(o=g,a=1,s=36;i>=v&&m("invalid-input"),((l=(d=t.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||l>h((u-g)/a))&&m("overflow"),g+=l*a,!(l<(c=s<=w?1:s>=w+26?26:s-w));s+=36)a>h(u/(f=36-c))&&m("overflow"),a*=f;w=_(g-o,e=p.length+1,0==o),h(g/e)>u-b&&m("overflow"),b+=h(g/e),g%=e,p.splice(g++,0,b)}return y(p)}function M(t){var e,n,r,i,o,a,s,l,c,f,d,v,g,y,k,M=[];for(v=(t=b(t)).length,e=128,n=0,o=72,a=0;a<v;++a)(d=t[a])<128&&M.push(p(d));for(r=i=M.length,i&&M.push("-");r<v;){for(s=u,a=0;a<v;++a)(d=t[a])>=e&&d<s&&(s=d);for(s-e>h((u-n)/(g=r+1))&&m("overflow"),n+=(s-e)*g,e=s,a=0;a<v;++a)if((d=t[a])<e&&++n>u&&m("overflow"),d==e){for(l=n,c=36;!(l<(f=c<=o?1:c>=o+26?26:c-o));c+=36)k=l-f,y=36-f,M.push(p(w(f+k%y,0))),l=h(k/y);M.push(p(w(l,0))),o=_(n,g,r==i),n=0,++r}++n,++e}return M.join("")}s={version:"1.4.1",ucs2:{decode:b,encode:y},decode:k,encode:M,toASCII:function(t){return g(t,(function(t){return c.test(t)?"xn--"+M(t):t}))},toUnicode:function(t){return g(t,(function(t){return l.test(t)?k(t.slice(4).toLowerCase()):t}))}},void 0===(i=function(){return s}.call(e,n,e,t))||(t.exports=i)}()}).call(this,n(14)(t),n(7))},function(t,e,n){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,n){"use strict";e.decode=e.parse=n(323),e.encode=e.stringify=n(324)},function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,o){e=e||"&",n=n||"=";var a={};if("string"!=typeof t||0===t.length)return a;var s=/\+/g;t=t.split(e);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var l=t.length;u>0&&l>u&&(l=u);for(var c=0;c<l;++c){var f,d,h,p,m=t[c].replace(s,"%20"),v=m.indexOf(n);v>=0?(f=m.substr(0,v),d=m.substr(v+1)):(f=m,d=""),h=decodeURIComponent(f),p=decodeURIComponent(d),r(a,h)?i(a[h])?a[h].push(p):a[h]=[a[h],p]:a[h]=p}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";var r=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,s){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?o(a(t),(function(a){var s=encodeURIComponent(r(a))+n;return i(t[a])?o(t[a],(function(t){return s+encodeURIComponent(r(t))})).join(e):s+encodeURIComponent(r(t[a]))})).join(e):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var n=[],r=0;r<t.length;r++)n.push(e(t[r],r));return n}var a=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e}},function(t,e,n){var r=n(136),i=n(143),o=t.exports;for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);function s(t){if("string"==typeof t&&(t=i.parse(t)),t.protocol||(t.protocol="https:"),"https:"!==t.protocol)throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}o.request=function(t,e){return t=s(t),r.request.call(this,t,e)},o.get=function(t,e){return t=s(t),r.get.call(this,t,e)}},function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var i=t[r];"."===i?t.splice(r,1):".."===i?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}e.resolve=function(){for(var e="",i=!1,o=arguments.length-1;o>=-1&&!i;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,i="/"===a.charAt(0))}return(i?"/":"")+(e=n(r(e.split("/"),(function(t){return!!t})),!i).join("/"))||"."},e.normalize=function(t){var o=e.isAbsolute(t),a="/"===i(t,-1);return(t=n(r(t.split("/"),(function(t){return!!t})),!o).join("/"))||o||(t="."),t&&a&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var i=r(t.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var l=[];for(u=s;u<i.length;u++)l.push("..");return(l=l.concat(o.slice(s))).join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){if("string"!=typeof t&&(t+=""),0===t.length)return".";for(var e=t.charCodeAt(0),n=47===e,r=-1,i=!0,o=t.length-1;o>=1;--o)if(47===(e=t.charCodeAt(o))){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":t.slice(0,r)},e.basename=function(t,e){var n=function(t){"string"!=typeof t&&(t+="");var e,n=0,r=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){n=e+1;break}}else-1===r&&(i=!1,r=e+1);return-1===r?"":t.slice(n,r)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,n=0,r=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){n=a+1;break}}return-1===e||-1===r||0===o||1===o&&e===r-1&&e===n+1?"":t.slice(e,r)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n(5))},function(t,e,n){var r=n(6),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){(e=t.exports=n(146)).Stream=e,e.Readable=e,e.Writable=n(150),e.Duplex=n(26),e.Transform=n(151),e.PassThrough=n(334),e.finished=n(75),e.pipeline=n(335)},function(t,e){},function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(6).Buffer,s=n(331).inspect,u=s&&s.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,n,l;return e=t,(n=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,n,r,i=a.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,n=i,r=s,a.prototype.copy.call(e,n,r),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,n=1,r=e.data;for(t-=r.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),0==(t-=o)){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&&o(e.prototype,n),l&&o(e,l),t}()},function(t,e){},function(t,e,n){"use strict";(function(e){var r;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(75),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var n=t[d].read();null!==n&&(t[c]=null,t[a]=null,t[s]=null,e(h(n,!1)))}}function m(t){e.nextTick(p,t)}var v=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((i(r={get stream(){return this[d]},next:function(){var t=this,n=this[u];if(null!==n)return Promise.reject(n);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(n,r){e.nextTick((function(){t[u]?r(t[u]):n(h(void 0,!0))}))}));var r,i=this[c];if(i)r=new Promise(function(t,e){return function(n,r){t.then((function(){e[l]?n(h(void 0,!0)):e[f](n,r)}),r)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));r=new Promise(this[f])}return this[c]=r,r}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var t=this;return new Promise((function(e,n){t[d].destroy(null,(function(t){t?n(t):e(h(void 0,!0))}))}))})),r),v);t.exports=function(t){var e,n=Object.create(g,(i(e={},d,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,l,{value:t._readableState.endEmitted,writable:!0}),i(e,f,{value:function(t,e){var r=n[d].read();r?(n[c]=null,n[a]=null,n[s]=null,t(h(r,!1))):(n[a]=t,n[s]=e)},writable:!0}),e));return n[c]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];return null!==e&&(n[c]=null,n[a]=null,n[s]=null,e(t)),void(n[u]=t)}var r=n[a];null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(h(void 0,!0))),n[l]=!0})),t.on("readable",m.bind(null,n)),n}}).call(this,n(5))},function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(t,e,n){"use strict";t.exports=i;var r=n(151);function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}n(2)(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){"use strict";var r;var i=n(25).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function u(t,e,i,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var s=!1;t.on("close",(function(){s=!0})),void 0===r&&(r=n(75)),r(t,{readable:e,writable:i},(function(t){if(t)return o(t);s=!0,o()}));var u=!1;return function(e){if(!s&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}function l(t){t()}function c(t,e){return t.pipe(e)}function f(t){return t.length?"function"!=typeof t[t.length-1]?s:t.pop():s}t.exports=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var a=e.map((function(t,n){var o=n<e.length-1;return u(t,o,n>0,(function(t){r||(r=t),t&&a.forEach(l),o||(a.forEach(l),i(r))}))}));return e.reduce(c)}},function(t,e,n){var r=n(2),i=n(27),o=n(4).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function l(t){return t<<30|t>>>2}function c(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,f=0;f<16;++f)n[f]=t.readInt32BE(4*f);for(;f<80;++f)n[f]=n[f-3]^n[f-8]^n[f-14]^n[f-16];for(var d=0;d<80;++d){var h=~~(d/20),p=0|((e=r)<<5|e>>>27)+c(h,i,o,s)+u+n[d]+a[h];u=s,s=o,o=l(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},function(t,e,n){var r=n(2),i=n(27),o=n(4).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function l(t){return t<<5|t>>>27}function c(t){return t<<30|t>>>2}function f(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)n[d]=t.readInt32BE(4*d);for(;d<80;++d)n[d]=(e=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|e>>>31;for(var h=0;h<80;++h){var p=~~(h/20),m=l(r)+f(p,i,o,s)+u+n[h]+a[p]|0;u=s,s=o,o=c(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},function(t,e,n){var r=n(2),i=n(152),o=n(27),a=n(4).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}r(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=u},function(t,e,n){var r=n(2),i=n(153),o=n(27),a=n(4).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}r(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=u},function(t,e,n){t.exports=i;var r=n(15).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(33),i.Writable=n(341),i.Duplex=n(342),i.Transform=n(343),i.PassThrough=n(344),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",s),n.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function l(t){if(c(),0===r.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",s),n.removeListener("close",u),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",l),t.on("error",l),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t}},function(t,e,n){t.exports=n(72)},function(t,e,n){t.exports=n(21)},function(t,e,n){t.exports=n(33).Transform},function(t,e,n){t.exports=n(33).PassThrough},function(t,e,n){"use strict";var r=n(2),i=n(4).Buffer,o=n(20),a=i.alloc(128);function s(t,e){o.call(this,"digest"),"string"==typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>64?e=t(e):e.length<64&&(e=i.concat([e,a],64));for(var n=this._ipad=i.allocUnsafe(64),r=this._opad=i.allocUnsafe(64),s=0;s<64;s++)n[s]=54^e[s],r[s]=92^e[s];this._hash=[n]}r(s,o),s.prototype._update=function(t){this._hash.push(t)},s.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=s},function(t,e,n){t.exports=n(156)},function(t,e,n){(function(e,r){var i,o=n(4).Buffer,a=n(158),s=n(159),u=n(160),l=n(161),c=e.crypto&&e.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(t,e,n,r,i){return c.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return c.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:i}},t,r<<3)})).then((function(t){return o.from(t)}))}t.exports=function(t,n,p,m,v,g){"function"==typeof v&&(g=v,v=void 0);var b=f[(v=v||"sha1").toLowerCase()];if(!b||"function"!=typeof e.Promise)return r.nextTick((function(){var e;try{e=u(t,n,p,m,v)}catch(t){return g(t)}g(null,e)}));if(a(p,m),t=l(t,s,"Password"),n=l(n,s,"Salt"),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){r.nextTick((function(){e(null,t)}))}),(function(t){r.nextTick((function(){e(t)}))}))}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==d[t])return d[t];var n=h(i=i||o.alloc(8),i,10,128,t).then((function(){return!0})).catch((function(){return!1}));return d[t]=n,n}(b).then((function(e){return e?h(t,n,p,m,b):u(t,n,p,m,v)})),g)}}).call(this,n(7),n(5))},function(t,e,n){var r=n(349),i=n(79),o=n(80),a=n(362),s=n(47);function u(t,e,n){if(t=t.toLowerCase(),o[t])return i.createCipheriv(t,e,n);if(a[t])return new r({key:e,iv:n,mode:t});throw new TypeError("invalid suite type")}function l(t,e,n){if(t=t.toLowerCase(),o[t])return i.createDecipheriv(t,e,n);if(a[t])return new r({key:e,iv:n,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var n,r;if(t=t.toLowerCase(),o[t])n=o[t].key,r=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,r=a[t].iv}var i=s(e,!1,n,r);return u(t,i.key,i.iv)},e.createCipheriv=e.Cipheriv=u,e.createDecipher=e.Decipher=function(t,e){var n,r;if(t=t.toLowerCase(),o[t])n=o[t].key,r=o[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,r=a[t].iv}var i=s(e,!1,n,r);return l(t,i.key,i.iv)},e.createDecipheriv=e.Decipheriv=l,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(i.getCiphers())}},function(t,e,n){var r=n(20),i=n(350),o=n(2),a=n(4).Buffer,s={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(t){r.call(this);var e,n=t.mode.toLowerCase(),i=s[n];e=t.decrypt?"decrypt":"encrypt";var o=t.key;a.isBuffer(o)||(o=a.from(o)),"des-ede"!==n&&"des-ede-cbc"!==n||(o=a.concat([o,o.slice(0,8)]));var u=t.iv;a.isBuffer(u)||(u=a.from(u)),this._des=i.create({key:o,iv:u,type:e})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=u,o(u,r),u.prototype._update=function(t){return a.from(this._des.update(t))},u.prototype._final=function(){return a.from(this._des.final())}},function(t,e,n){"use strict";e.utils=n(162),e.Cipher=n(78),e.DES=n(163),e.CBC=n(351),e.EDE=n(352)},function(t,e,n){"use strict";var r=n(12),i=n(2),o={};function a(t){r.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}i(e,t);for(var n=Object.keys(o),r=0;r<n.length;r++){var a=n[r];e.prototype[a]=o[a]}return e.create=function(t){return new e(t)},e},o._cbcInit=function(){var t=new a(this.options.iv);this._cbcState=t},o._update=function(t,e,n,r){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=t[e+s];o._update.call(this,a,0,n,r);for(s=0;s<this.blockSize;s++)a[s]=n[r+s]}else{o._update.call(this,t,e,n,r);for(s=0;s<this.blockSize;s++)n[r+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=t[e+s]}}},function(t,e,n){"use strict";var r=n(12),i=n(2),o=n(78),a=n(163);function s(t,e){r.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),i=e.slice(8,16),o=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:i}),a.create({type:"encrypt",key:o})]:[a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:i}),a.create({type:"decrypt",key:n})]}function u(t){o.call(this,t);var e=new s(this.type,this.options.key);this._edeState=e}i(u,o),t.exports=u,u.create=function(t){return new u(t)},u.prototype._update=function(t,e,n,r){var i=this._edeState;i.ciphers[0]._update(t,e,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},u.prototype._pad=a.prototype._pad,u.prototype._unpad=a.prototype._unpad},function(t,e,n){var r=n(80),i=n(167),o=n(4).Buffer,a=n(168),s=n(20),u=n(46),l=n(47);function c(t,e,n){s.call(this),this._cache=new d,this._cipher=new u.AES(e),this._prev=o.from(n),this._mode=t,this._autopadding=!0}n(2)(c,s),c.prototype._update=function(t){var e,n;this._cache.add(t);for(var r=[];e=this._cache.get();)n=this._mode.encrypt(this,e),r.push(n);return o.concat(r)};var f=o.alloc(16,16);function d(){this.cache=o.allocUnsafe(0)}function h(t,e,n){var s=r[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof e&&(e=o.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);if("string"==typeof n&&(n=o.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new a(s.module,e,n):"auth"===s.type?new i(s.module,e,n):new c(s.module,e,n)}c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=o.concat([this.cache,t])},d.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},d.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),n=-1;++n<t;)e.writeUInt8(t,n);return o.concat([this.cache,e])},e.createCipheriv=h,e.createCipher=function(t,e){var n=r[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=l(e,!1,n.key,n.iv);return h(t,i.key,i.iv)}},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,n){var r=n(36);e.encrypt=function(t,e){var n=r(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},e.decrypt=function(t,e){var n=t._prev;t._prev=e;var i=t._cipher.decryptBlock(e);return r(i,n)}},function(t,e,n){var r=n(4).Buffer,i=n(36);function o(t,e,n){var o=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=r.concat([t._prev,n?e:a]),a}e.encrypt=function(t,e,n){for(var i,a=r.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=r.allocUnsafe(0)),!(t._cache.length<=e.length)){a=r.concat([a,o(t,e,n)]);break}i=t._cache.length,a=r.concat([a,o(t,e.slice(0,i),n)]),e=e.slice(i)}return a}},function(t,e,n){var r=n(4).Buffer;function i(t,e,n){var i=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=r.concat([t._prev.slice(1),r.from([n?e:i])]),i}e.encrypt=function(t,e,n){for(var o=e.length,a=r.allocUnsafe(o),s=-1;++s<o;)a[s]=i(t,e[s],n);return a}},function(t,e,n){var r=n(4).Buffer;function i(t,e,n){for(var r,i,a=-1,s=0;++a<8;)r=e&1<<7-a?128:0,s+=(128&(i=t._cipher.encryptBlock(t._prev)[0]^r))>>a%8,t._prev=o(t._prev,n?r:i);return s}function o(t,e){var n=t.length,i=-1,o=r.allocUnsafe(t.length);for(t=r.concat([t,r.from([e])]);++i<n;)o[i]=t[i]<<1|t[i+1]>>7;return o}e.encrypt=function(t,e,n){for(var o=e.length,a=r.allocUnsafe(o),s=-1;++s<o;)a[s]=i(t,e[s],n);return a}},function(t,e,n){(function(t){var r=n(36);function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,n){for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,i(e)]);var o=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),r(n,o)}}).call(this,n(6).Buffer)},function(t,e,n){var r=n(4).Buffer,i=r.alloc(16,0);function o(t){var e=r.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},a.prototype._multiply=function(){for(var t,e,n,r=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],i=[0,0,0,0],a=-1;++a<128;){for(0!=(this.state[~~(a/8)]&1<<7-a%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=0!=(1&r[3]),e=3;e>0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=o(i)},a.prototype.update=function(t){var e;for(this.cache=r.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=a},function(t,e,n){var r=n(167),i=n(4).Buffer,o=n(80),a=n(168),s=n(20),u=n(46),l=n(47);function c(t,e,n){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(e),this._prev=i.from(n),this._mode=t,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function d(t,e,n){var s=o[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof e&&(e=i.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new a(s.module,e,n,!0):"auth"===s.type?new r(s.module,e,n,!0):new c(s.module,e,n)}n(2)(c,s),c.prototype._update=function(t){var e,n;this._cache.add(t);for(var r=[];e=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,e),r.push(n);return i.concat(r)},c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var n=-1;for(;++n<e;)if(t[n+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},f.prototype.add=function(t){this.cache=i.concat([this.cache,t])},f.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var n=o[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=l(e,!1,n.key,n.iv);return d(t,r.key,r.iv)},e.createDecipheriv=d},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,n){(function(t){var r=n(169),i=n(368),o=n(369);var a={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var n=new t(i[e].prime,"hex"),r=new t(i[e].gen,"hex");return new o(n,r)},e.createDiffieHellman=e.DiffieHellman=function e(n,i,s,u){return t.isBuffer(i)||void 0===a[i]?e(n,"binary",i,s):(i=i||"binary",u=u||"binary",s=s||new t([2]),t.isBuffer(s)||(s=new t(s,u)),"number"==typeof n?new o(r(n,s),s,!0):(t.isBuffer(n)||(n=new t(n,i)),new o(n,s,!0)))}}).call(this,n(6).Buffer)},function(t,e){},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(366).Buffer}catch(t){}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c<s;c+=r)l=u(t,c,c+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=u(t,c,t.length,e),c=0;c<a;c++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var c=u>>>26,f=67108863&u,d=Math.min(l,e.length-1),h=Math.max(0,l-t.length+1);h<=d;h++){var p=l-h|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[h])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=c[t],h=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(t);n=(p=p.idivn(h)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var h=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,_=y>>>13,k=0|a[4],M=8191&k,x=k>>>13,S=0|a[5],C=8191&S,A=S>>>13,T=0|a[6],E=8191&T,O=T>>>13,P=0|a[7],I=8191&P,R=P>>>13,j=0|a[8],D=8191&j,N=j>>>13,L=0|a[9],B=8191&L,z=L>>>13,F=0|s[0],q=8191&F,V=F>>>13,$=0|s[1],H=8191&$,U=$>>>13,W=0|s[2],K=8191&W,Y=W>>>13,G=0|s[3],Z=8191&G,J=G>>>13,X=0|s[4],Q=8191&X,tt=X>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ft=8191&ct,dt=ct>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,V))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,V))+Math.imul(m,q)|0,o=Math.imul(m,V);var gt=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,U)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,U)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,q),i=(i=Math.imul(g,V))+Math.imul(b,q)|0,o=Math.imul(b,V),r=r+Math.imul(p,H)|0,i=(i=i+Math.imul(p,U)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,U)|0;var bt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,K)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,V))+Math.imul(_,q)|0,o=Math.imul(_,V),r=r+Math.imul(g,H)|0,i=(i=i+Math.imul(g,U)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,U)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Y)|0;var yt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,Z)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,V))+Math.imul(x,q)|0,o=Math.imul(x,V),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,U)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,U)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0;var wt=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,V))+Math.imul(A,q)|0,o=Math.imul(A,V),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,U)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,U)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(d,nt)|0))<<13)|0;l=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,V))+Math.imul(O,q)|0,o=Math.imul(O,V),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,U)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,U)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,r=r+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var kt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(d,ot)|0))<<13)|0;l=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(I,q),i=(i=Math.imul(I,V))+Math.imul(R,q)|0,o=Math.imul(R,V),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,U)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,U)|0,r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(l+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(d,ut)|0))<<13)|0;l=((o=o+Math.imul(d,lt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,V))+Math.imul(N,q)|0,o=Math.imul(N,V),r=r+Math.imul(I,H)|0,i=(i=i+Math.imul(I,U)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,U)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0;var xt=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,dt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,V))+Math.imul(z,q)|0,o=Math.imul(z,V),r=r+Math.imul(D,H)|0,i=(i=i+Math.imul(D,U)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,U)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,H),i=(i=Math.imul(B,U))+Math.imul(z,H)|0,o=Math.imul(z,U),r=r+Math.imul(D,K)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0;var Ct=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,K),i=(i=Math.imul(B,Y))+Math.imul(z,K)|0,o=Math.imul(z,Y),r=r+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,lt)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,dt)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0;var At=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(B,Z),i=(i=Math.imul(B,J))+Math.imul(z,Z)|0,o=Math.imul(z,J),r=r+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,lt)|0,r=r+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,dt)|0;var Tt=(l+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,tt))+Math.imul(z,Q)|0,o=Math.imul(z,tt),r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,lt)|0,r=r+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0;var Et=(l+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(z,nt)|0,o=Math.imul(z,rt),r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,lt)|0,r=r+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,dt)|0)+Math.imul(O,ft)|0,o=o+Math.imul(O,dt)|0;var Ot=(l+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,lt)|0,r=r+Math.imul(I,ft)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0;var Pt=(l+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(O,pt)|0))<<13)|0;l=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,lt))+Math.imul(z,ut)|0,o=Math.imul(z,lt),r=r+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(N,ft)|0,o=o+Math.imul(N,dt)|0;var It=(l+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(R,pt)|0))<<13)|0;l=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(B,ft),i=(i=Math.imul(B,dt))+Math.imul(z,ft)|0,o=Math.imul(z,dt);var Rt=(l+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,mt)|0)+Math.imul(N,pt)|0))<<13)|0;l=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(l+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(z,pt)|0))<<13)|0;return l=((o=Math.imul(z,mt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=xt,u[9]=St,u[10]=Ct,u[11]=At,u[12]=Tt,u[13]=Et,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=Rt,u[18]=jt,0!==l&&(u[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(h=d),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?h(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=u;l++){var c=o-l,f=(0|t.words[c])*(0|e.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},m.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=u,d=l,h=0;h<a;h++){var p=n[c+h],m=r[c+h],v=n[c+h+a],g=r[c+h+a],b=f*v-d*g;g=f*g+d*v,v=b,n[c+h]=p+v,r[c+h]=m+g,n[c+h+a]=p-v,r[c+h+a]=m-g,h!==s&&(b=u*f-l*d,d=u*d+l*f,f=b)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},m.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),l=new Array(r),c=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,l,r),this.transform(a,o,s,u,r,i),this.transform(l,o,c,f,r,i);for(var h=0;h<r;h++){var p=s[h]*c[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var l=0;l<a;l++)u.words[l]=this.words[l];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=r.clone()._ishlnsubmul(i,1,u);0===c.negative&&(r=c,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=e.clone();!e.isZero();){for(var d=0,h=1;0==(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0==(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function M(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(b,g),b.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(y,g),i(w,g),i(_,g),_.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return v[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;0!==h.cmp(s);){for(var m=h,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new o(1).iushln(p-v-1));d=d.redMul(g),f=g.redSqr(),h=h.redMul(f),p=v}return d},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),r=e.length-1;r>=0;r--){for(var l=e.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new M(t)},i(M,k),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(14)(t))},function(t,e){},function(t,e){},function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(t,e,n){(function(e){var r=n(170),i=new(n(171)),o=new r(24),a=new r(11),s=new r(10),u=new r(3),l=new r(7),c=n(169),f=n(24);function d(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._pub=new r(t),this}function h(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._priv=new r(t),this}t.exports=m;var p={};function m(t,e,n){this.setGenerator(e),this.__prime=new r(t),this._prime=r.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=d,this.setPrivateKey=h):this._primeCode=8}function v(t,n){var r=new e(t.toArray());return n?r.toString(n):r}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var n=e.toString("hex"),r=[n,t.toString(16)].join("_");if(r in p)return p[r];var f,d=0;if(t.isEven()||!c.simpleSieve||!c.fermatTest(t)||!i.test(t))return d+=1,d+="02"===n||"05"===n?8:4,p[r]=d,d;switch(i.test(t.shrn(1))||(d+=2),n){case"02":t.mod(o).cmp(a)&&(d+=8);break;case"05":(f=t.mod(s)).cmp(u)&&f.cmp(l)&&(d+=8);break;default:d+=4}return p[r]=d,d}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new r(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(t){var n=(t=(t=new r(t)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new e(n.toArray()),o=this.getPrime();if(i.length<o.length){var a=new e(o.length-i.length);a.fill(0),i=e.concat([a,i])}return i},m.prototype.getPublicKey=function(t){return v(this._pub,t)},m.prototype.getPrivateKey=function(t){return v(this._priv,t)},m.prototype.getPrime=function(t){return v(this.__prime,t)},m.prototype.getGenerator=function(t){return v(this._gen,t)},m.prototype.setGenerator=function(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this.__gen=t,this._gen=new r(t),this}}).call(this,n(6).Buffer)},function(t,e,n){var r=n(82).Buffer,i=n(35),o=n(371),a=n(2),s=n(379),u=n(412),l=n(156);function c(t){o.Writable.call(this);var e=l[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function f(t){o.Writable.call(this);var e=l[t];if(!e)throw new Error("Unknown message digest");this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){return new c(t)}function h(t){return new f(t)}Object.keys(l).forEach((function(t){l[t].id=r.from(l[t].id,"hex"),l[t.toLowerCase()]=l[t]})),a(c,o.Writable),c.prototype._write=function(t,e,n){this._hash.update(t),n()},c.prototype.update=function(t,e){return"string"==typeof t&&(t=r.from(t,e)),this._hash.update(t),this},c.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),r=s(n,t,this._hashType,this._signType,this._tag);return e?r.toString(e):r},a(f,o.Writable),f.prototype._write=function(t,e,n){this._hash.update(t),n()},f.prototype.update=function(t,e){return"string"==typeof t&&(t=r.from(t,e)),this._hash.update(t),this},f.prototype.verify=function(t,e,n){"string"==typeof e&&(e=r.from(e,n)),this.end();var i=this._hash.digest();return u(e,i,t,this._signType,this._tag)},t.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},function(t,e,n){(e=t.exports=n(172)).Stream=e,e.Readable=e,e.Writable=n(176),e.Duplex=n(29),e.Transform=n(177),e.PassThrough=n(377),e.finished=n(83),e.pipeline=n(378)},function(t,e){},function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var a=n(6).Buffer,s=n(374).inspect,u=s&&s.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,n,l;return e=t,(n=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,n,r,i=a.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,n=i,r=s,a.prototype.copy.call(e,n,r),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,n=1,r=e.data;for(t-=r.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),0==(t-=o)){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:u,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&&o(e.prototype,n),l&&o(e,l),t}()},function(t,e){},function(t,e,n){"use strict";(function(e){var r;function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(83),a=Symbol("lastResolve"),s=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),f=Symbol("handlePromise"),d=Symbol("stream");function h(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var n=t[d].read();null!==n&&(t[c]=null,t[a]=null,t[s]=null,e(h(n,!1)))}}function m(t){e.nextTick(p,t)}var v=Object.getPrototypeOf((function(){})),g=Object.setPrototypeOf((i(r={get stream(){return this[d]},next:function(){var t=this,n=this[u];if(null!==n)return Promise.reject(n);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise((function(n,r){e.nextTick((function(){t[u]?r(t[u]):n(h(void 0,!0))}))}));var r,i=this[c];if(i)r=new Promise(function(t,e){return function(n,r){t.then((function(){e[l]?n(h(void 0,!0)):e[f](n,r)}),r)}}(i,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(h(o,!1));r=new Promise(this[f])}return this[c]=r,r}},Symbol.asyncIterator,(function(){return this})),i(r,"return",(function(){var t=this;return new Promise((function(e,n){t[d].destroy(null,(function(t){t?n(t):e(h(void 0,!0))}))}))})),r),v);t.exports=function(t){var e,n=Object.create(g,(i(e={},d,{value:t,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,l,{value:t._readableState.endEmitted,writable:!0}),i(e,f,{value:function(t,e){var r=n[d].read();r?(n[c]=null,n[a]=null,n[s]=null,t(h(r,!1))):(n[a]=t,n[s]=e)},writable:!0}),e));return n[c]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];return null!==e&&(n[c]=null,n[a]=null,n[s]=null,e(t)),void(n[u]=t)}var r=n[a];null!==r&&(n[c]=null,n[a]=null,n[s]=null,r(h(void 0,!0))),n[l]=!0})),t.on("readable",m.bind(null,n)),n}}).call(this,n(5))},function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(t,e,n){"use strict";t.exports=i;var r=n(177);function i(t){if(!(this instanceof i))return new i(t);r.call(this,t)}n(2)(i,r),i.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){"use strict";var r;var i=n(28).codes,o=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function u(t,e,i,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var s=!1;t.on("close",(function(){s=!0})),void 0===r&&(r=n(83)),r(t,{readable:e,writable:i},(function(t){if(t)return o(t);s=!0,o()}));var u=!1;return function(e){if(!s&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new a("pipe"))}}function l(t){t()}function c(t,e){return t.pipe(e)}function f(t){return t.length?"function"!=typeof t[t.length-1]?s:t.pop():s}t.exports=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i=f(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var a=e.map((function(t,n){var o=n<e.length-1;return u(t,o,n>0,(function(t){r||(r=t),t&&a.forEach(l),o||(a.forEach(l),i(r))}))}));return e.reduce(c)}},function(t,e,n){var r=n(82).Buffer,i=n(154),o=n(84),a=n(85).ec,s=n(183),u=n(49),l=n(190);function c(t,e,n,o){if((t=r.from(t.toArray())).length<e.byteLength()){var a=r.alloc(e.byteLength()-t.length);t=r.concat([a,t])}var s=n.length,u=function(t,e){t=(t=f(t,e)).mod(e);var n=r.from(t.toArray());if(n.length<e.byteLength()){var i=r.alloc(e.byteLength()-n.length);n=r.concat([i,n])}return n}(n,e),l=r.alloc(s);l.fill(1);var c=r.alloc(s);return c=i(o,c).update(l).update(r.from([0])).update(t).update(u).digest(),l=i(o,c).update(l).digest(),{k:c=i(o,c).update(l).update(r.from([1])).update(t).update(u).digest(),v:l=i(o,c).update(l).digest()}}function f(t,e){var n=new s(t),r=(t.length<<3)-e.bitLength();return r>0&&n.ishrn(r),n}function d(t,e,n){var o,a;do{for(o=r.alloc(0);8*o.length<t.bitLength();)e.v=i(n,e.k).update(e.v).digest(),o=r.concat([o,e.v]);a=f(o,t),e.k=i(n,e.k).update(e.v).update(r.from([0])).digest(),e.v=i(n,e.k).update(e.v).digest()}while(-1!==a.cmp(t));return a}function h(t,e,n,r){return t.toRed(s.mont(n)).redPow(e).fromRed().mod(r)}t.exports=function(t,e,n,i,p){var m=u(e);if(m.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(t,e){var n=l[e.curve.join(".")];if(!n)throw new Error("unknown curve "+e.curve.join("."));var i=new a(n).keyFromPrivate(e.privateKey).sign(t);return r.from(i.toDER())}(t,m)}if("dsa"===m.type){if("dsa"!==i)throw new Error("wrong private key type");return function(t,e,n){var i,o=e.params.priv_key,a=e.params.p,u=e.params.q,l=e.params.g,p=new s(0),m=f(t,u).mod(u),v=!1,g=c(o,u,t,n);for(;!1===v;)i=d(u,g,n),p=h(l,i,a,u),0===(v=i.invm(u).imul(m.add(o.mul(p))).mod(u)).cmpn(0)&&(v=!1,p=new s(0));return function(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t));128&e[0]&&(e=[0].concat(e));var n=[48,t.length+e.length+4,2,t.length];return n=n.concat(t,[2,e.length],e),r.from(n)}(p,v)}(t,m,n)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");t=r.concat([p,t]);for(var v=m.modulus.byteLength(),g=[0,1];t.length+g.length+1<v;)g.push(255);g.push(0);for(var b=-1;++b<t.length;)g.push(t[b]);return o(g,m)},t.exports.getKey=c,t.exports.makeKey=d},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(381).Buffer}catch(t){}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c<s;c+=r)l=u(t,c,c+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=u(t,c,t.length,e),c=0;c<a;c++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var c=u>>>26,f=67108863&u,d=Math.min(l,e.length-1),h=Math.max(0,l-t.length+1);h<=d;h++){var p=l-h|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[h])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=c[t],h=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(t);n=(p=p.idivn(h)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var h=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,_=y>>>13,k=0|a[4],M=8191&k,x=k>>>13,S=0|a[5],C=8191&S,A=S>>>13,T=0|a[6],E=8191&T,O=T>>>13,P=0|a[7],I=8191&P,R=P>>>13,j=0|a[8],D=8191&j,N=j>>>13,L=0|a[9],B=8191&L,z=L>>>13,F=0|s[0],q=8191&F,V=F>>>13,$=0|s[1],H=8191&$,U=$>>>13,W=0|s[2],K=8191&W,Y=W>>>13,G=0|s[3],Z=8191&G,J=G>>>13,X=0|s[4],Q=8191&X,tt=X>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ft=8191&ct,dt=ct>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,V))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,V))+Math.imul(m,q)|0,o=Math.imul(m,V);var gt=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,U)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,U)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,q),i=(i=Math.imul(g,V))+Math.imul(b,q)|0,o=Math.imul(b,V),r=r+Math.imul(p,H)|0,i=(i=i+Math.imul(p,U)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,U)|0;var bt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,K)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,V))+Math.imul(_,q)|0,o=Math.imul(_,V),r=r+Math.imul(g,H)|0,i=(i=i+Math.imul(g,U)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,U)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Y)|0;var yt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,Z)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,V))+Math.imul(x,q)|0,o=Math.imul(x,V),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,U)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,U)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0;var wt=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,V))+Math.imul(A,q)|0,o=Math.imul(A,V),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,U)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,U)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(d,nt)|0))<<13)|0;l=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,V))+Math.imul(O,q)|0,o=Math.imul(O,V),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,U)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,U)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,r=r+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var kt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(d,ot)|0))<<13)|0;l=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(I,q),i=(i=Math.imul(I,V))+Math.imul(R,q)|0,o=Math.imul(R,V),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,U)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,U)|0,r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(l+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(d,ut)|0))<<13)|0;l=((o=o+Math.imul(d,lt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,V))+Math.imul(N,q)|0,o=Math.imul(N,V),r=r+Math.imul(I,H)|0,i=(i=i+Math.imul(I,U)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,U)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0;var xt=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,dt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,V))+Math.imul(z,q)|0,o=Math.imul(z,V),r=r+Math.imul(D,H)|0,i=(i=i+Math.imul(D,U)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,U)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,H),i=(i=Math.imul(B,U))+Math.imul(z,H)|0,o=Math.imul(z,U),r=r+Math.imul(D,K)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0;var Ct=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,K),i=(i=Math.imul(B,Y))+Math.imul(z,K)|0,o=Math.imul(z,Y),r=r+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,lt)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,dt)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0;var At=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(B,Z),i=(i=Math.imul(B,J))+Math.imul(z,Z)|0,o=Math.imul(z,J),r=r+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,lt)|0,r=r+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,dt)|0;var Tt=(l+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,tt))+Math.imul(z,Q)|0,o=Math.imul(z,tt),r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,lt)|0,r=r+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0;var Et=(l+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(z,nt)|0,o=Math.imul(z,rt),r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,lt)|0,r=r+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,dt)|0)+Math.imul(O,ft)|0,o=o+Math.imul(O,dt)|0;var Ot=(l+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,lt)|0,r=r+Math.imul(I,ft)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0;var Pt=(l+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(O,pt)|0))<<13)|0;l=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,lt))+Math.imul(z,ut)|0,o=Math.imul(z,lt),r=r+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(N,ft)|0,o=o+Math.imul(N,dt)|0;var It=(l+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(R,pt)|0))<<13)|0;l=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(B,ft),i=(i=Math.imul(B,dt))+Math.imul(z,ft)|0,o=Math.imul(z,dt);var Rt=(l+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,mt)|0)+Math.imul(N,pt)|0))<<13)|0;l=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(l+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(z,pt)|0))<<13)|0;return l=((o=Math.imul(z,mt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=xt,u[9]=St,u[10]=Ct,u[11]=At,u[12]=Tt,u[13]=Et,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=Rt,u[18]=jt,0!==l&&(u[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(h=d),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?h(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=u;l++){var c=o-l,f=(0|t.words[c])*(0|e.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},m.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=u,d=l,h=0;h<a;h++){var p=n[c+h],m=r[c+h],v=n[c+h+a],g=r[c+h+a],b=f*v-d*g;g=f*g+d*v,v=b,n[c+h]=p+v,r[c+h]=m+g,n[c+h+a]=p-v,r[c+h+a]=m-g,h!==s&&(b=u*f-l*d,d=u*d+l*f,f=b)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},m.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),l=new Array(r),c=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,l,r),this.transform(a,o,s,u,r,i),this.transform(l,o,c,f,r,i);for(var h=0;h<r;h++){var p=s[h]*c[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var l=0;l<a;l++)u.words[l]=this.words[l];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=r.clone()._ishlnsubmul(i,1,u);0===c.negative&&(r=c,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=e.clone();!e.isZero();){for(var d=0,h=1;0==(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0==(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function M(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(b,g),b.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(y,g),i(w,g),i(_,g),_.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return v[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;0!==h.cmp(s);){for(var m=h,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new o(1).iushln(p-v-1));d=d.redMul(g),f=g.redSqr(),h=h.redMul(f),p=v}return d},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),r=e.length-1;r>=0;r--){for(var l=e.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new M(t)},i(M,k),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(14)(t))},function(t,e){},function(t){t.exports=JSON.parse('{"_args":[["elliptic@6.5.3","/home/louis/dev/psq"]],"_development":true,"_from":"elliptic@6.5.3","_id":"elliptic@6.5.3","_inBundle":false,"_integrity":"sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.5.3","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.3","saveSpec":null,"fetchSpec":"6.5.3"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz","_spec":"6.5.3","_where":"/home/louis/dev/psq","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.3"}')},function(t,e){},function(t,e,n){"use strict";var r=n(13),i=n(18),o=n(2),a=n(48),s=r.assert;function u(t){a.call(this,"short",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(t,e,n,r){a.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(e,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(t,e,n,r){a.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(e,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),t.exports=u,u.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new i(t.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);e=(e=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(t.lambda)n=new i(t.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(e))?n=o[0]:(n=o[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:n,basis:t.basis?t.basis.map((function(t){return{a:new i(t.a,16),b:new i(t.b,16)}})):this._getEndoBasis(n)}}},u.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:i.mont(t),n=new i(2).toRed(e).redInvm(),r=n.redNeg(),o=new i(3).toRed(e).redNeg().redSqrt().redMul(n);return[r.redAdd(o).fromRed(),r.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(t){for(var e,n,r,o,a,s,u,l,c,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=t,h=this.n.clone(),p=new i(1),m=new i(0),v=new i(0),g=new i(1),b=0;0!==d.cmpn(0);){var y=h.div(d);l=h.sub(y.mul(d)),c=v.sub(y.mul(p));var w=g.sub(y.mul(m));if(!r&&l.cmp(f)<0)e=u.neg(),n=p,r=l.neg(),o=c;else if(r&&2==++b)break;u=l,h=d,d=l,v=p,p=c,g=m,m=w}a=l.neg(),s=c;var _=r.sqr().add(o.sqr());return a.sqr().add(s.sqr()).cmp(_)>=0&&(a=e,s=n),r.negative&&(r=r.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:r,b:o},{a:a,b:s}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),u=i.mul(n.b),l=o.mul(r.b);return{k1:t.sub(a).sub(s),k2:u.add(l).neg()}},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var o=r.fromRed().isOdd();return(e&&!o||!e&&o)&&(r=r.redNeg()),this.point(t,r)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<t.length;o++){var a=this._endoSplit(e[o]),s=t[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),r[2*o]=s,r[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var l=this._wnafMulAdd(1,r,i,2*o,n),c=0;c<2*o;c++)r[c]=null,i[c]=null;return l},o(l,a.BasePoint),u.prototype.point=function(t,e,n){return new l(this,t,e,n)},u.prototype.pointFromJSON=function(t,e){return l.fromJSON(this,t,e)},l.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var n=this.curve,r=function(t){return n.point(t.x.redMul(n.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(r)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(r)}}}return e}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(t,e,n){"string"==typeof e&&(e=JSON.parse(e));var r=t.point(e[0],e[1],n);if(!e[2])return r;function i(e){return t.point(e[0],e[1],n)}var o=e[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},l.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},l.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},l.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},l.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},l.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(c,a.BasePoint),u.prototype.jpoint=function(t,e,n){return new c(this,t,e,n)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=s.redSqr(),c=l.redMul(s),f=r.redMul(l),d=u.redSqr().redIAdd(c).redISub(f).redISub(f),h=u.redMul(f.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(d,h,p)},c.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),l=u.redMul(a),c=n.redMul(u),f=s.redSqr().redIAdd(l).redISub(c).redISub(c),d=s.redMul(c.redISub(f)).redISub(i.redMul(l)),h=this.z.redMul(a);return this.curve.jpoint(f,d,h)},c.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),l=a.redAdd(a);for(n=0;n<t;n++){var c=o.redSqr(),f=l.redSqr(),d=f.redSqr(),h=c.redAdd(c).redIAdd(c).redIAdd(r.redMul(u)),p=o.redMul(f),m=h.redSqr().redISub(p.redAdd(p)),v=p.redISub(m),g=h.redMul(v);g=g.redIAdd(g).redISub(d);var b=l.redMul(s);n+1<t&&(u=u.redMul(d)),o=m,s=b,l=g}return this.curve.jpoint(o,l.redMul(i),s)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),u=s.redSqr().redISub(a).redISub(a),l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),t=u,e=s.redMul(a.redISub(u)).redISub(l),n=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),h=this.x.redAdd(f).redSqr().redISub(c).redISub(d);h=h.redIAdd(h);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),v=d.redIAdd(d);v=(v=v.redIAdd(v)).redIAdd(v),t=m.redISub(h).redISub(h),e=p.redMul(h.redISub(t)).redISub(v),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(t,e,n)},c.prototype._threeDbl=function(){var t,e,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);t=u;var l=o.redIAdd(o);l=(l=l.redIAdd(l)).redIAdd(l),e=s.redMul(a.redISub(u)).redISub(l),n=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),h=this.x.redSub(c).redMul(this.x.redAdd(c));h=h.redAdd(h).redIAdd(h);var p=d.redIAdd(d),m=(p=p.redIAdd(p)).redAdd(p);t=h.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(c);var v=f.redSqr();v=(v=(v=v.redIAdd(v)).redIAdd(v)).redIAdd(v),e=h.redMul(p.redISub(t)).redISub(v)}return this.curve.jpoint(t,e,n)},c.prototype._dbl=function(){var t=this.curve.a,e=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=e.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(t.redMul(i)),u=e.redAdd(e),l=(u=u.redIAdd(u)).redMul(a),c=s.redSqr().redISub(l.redAdd(l)),f=l.redISub(c),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=s.redMul(f).redISub(d),p=n.redAdd(n).redMul(r);return this.curve.jpoint(c,h,p)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr(),r=e.redSqr(),i=t.redAdd(t).redIAdd(t),o=i.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=r.redIAdd(r);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var l=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),c=e.redMul(l);c=(c=c.redIAdd(c)).redIAdd(c);var f=this.x.redMul(s).redISub(c);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(l.redMul(u.redISub(l)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,d,h)},c.prototype.mul=function(t,e){return t=new i(t,e),this.curve._wnafMul(this,t)},c.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),n=t.z.redSqr();if(0!==this.x.redMul(n).redISub(t.x.redMul(e)).cmpn(0))return!1;var r=e.redMul(this.z),i=n.redMul(t.z);return 0===this.y.redMul(i).redISub(t.y.redMul(r)).cmpn(0)},c.prototype.eqXToP=function(t){var e=this.z.redSqr(),n=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(n))return!0;for(var r=t.clone(),i=this.curve.redN.redMul(e);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,n){"use strict";var r=n(18),i=n(2),o=n(48),a=n(13);function s(t){o.call(this,"mont",t),this.a=new r(t.a,16).toRed(this.red),this.b=new r(t.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(t,e,n){o.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(e,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),t.exports=s,s.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),r=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===r.redSqrt().redSqr().cmp(r)},i(u,o.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},s.prototype.point=function(t,e){return new u(this,t,e)},s.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),r=t.redMul(e),i=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(n),a=i.redMul(r),s=e.z.redMul(o.redAdd(a).redSqr()),u=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(t){for(var e=t.clone(),n=this,r=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,n){"use strict";var r=n(13),i=n(18),o=n(2),a=n(48),s=r.assert;function u(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function l(t,e,n,r,o){a.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(e,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),t.exports=u,u.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},u.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},u.prototype.jpoint=function(t,e,n,r){return this.point(t,e,n,r)},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),r=this.c2.redSub(this.a.redMul(n)),o=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=r.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(e&&!u||!e&&u)&&(s=s.redNeg()),this.point(t,s)},u.prototype.pointFromY=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),r=n.redSub(this.c2),o=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=r.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==e&&(s=s.redNeg()),this.point(s,t)},u.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),r=e.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===r.cmp(i)},o(l,a.BasePoint),u.prototype.pointFromJSON=function(t){return l.fromJSON(this,t)},u.prototype.point=function(t,e,n,r){return new l(this,t,e,n,r)},l.fromJSON=function(t,e){return new l(t,e[0],e[1],e[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=r.redAdd(e),a=o.redSub(n),s=r.redSub(e),u=i.redMul(a),l=o.redMul(s),c=i.redMul(s),f=a.redMul(o);return this.curve.point(u,l,f,c)},l.prototype._projDbl=function(){var t,e,n,r=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(l=this.curve._mulA(i)).redAdd(o);if(this.zOne)t=r.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),e=a.redMul(l.redSub(o)),n=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);t=r.redSub(i).redISub(o).redMul(u),e=a.redMul(l.redSub(o)),n=a.redMul(u)}}else{var l=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=l.redSub(s).redSub(s);t=this.curve._mulC(r.redISub(l)).redMul(u),e=this.curve._mulC(l).redMul(i.redISub(o)),n=l.redMul(u)}return this.curve.point(t,e,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),r=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=n.redSub(e),a=i.redSub(r),s=i.redAdd(r),u=n.redAdd(e),l=o.redMul(a),c=s.redMul(u),f=o.redMul(u),d=a.redMul(s);return this.curve.point(l,c,d,f)},l.prototype._projAdd=function(t){var e,n,r=this.z.redMul(t.z),i=r.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),l=i.redAdd(s),c=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),f=r.redMul(u).redMul(c);return this.curve.twisted?(e=r.redMul(l).redMul(a.redSub(this.curve._mulA(o))),n=u.redMul(l)):(e=r.redMul(l).redMul(a.redSub(o)),n=this.curve._mulC(u).redMul(l)),this.curve.point(f,e,n)},l.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},l.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},l.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},l.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},l.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(r),0===this.x.cmp(e))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},function(t,e,n){"use strict";e.sha1=n(388),e.sha224=n(389),e.sha256=n(181),e.sha384=n(390),e.sha512=n(182)},function(t,e,n){"use strict";var r=n(16),i=n(37),o=n(180),a=r.rotl32,s=r.sum32,u=r.sum32_5,l=o.ft_1,c=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,c),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],c=this.h[2],d=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var p=~~(r/20),m=u(a(i,5),l(p,o,c,d),h,n[r],f[p]);h=d,d=c,c=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],h)},d.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},function(t,e,n){"use strict";var r=n(16),i=n(181);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),t.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},function(t,e,n){"use strict";var r=n(16),i=n(182);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),t.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},function(t,e,n){"use strict";var r=n(16),i=n(37),o=r.rotl32,a=r.sum32,s=r.sum32_3,u=r.sum32_4,l=i.BlockHash;function c(){if(!(this instanceof c))return new c;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(t,e,n,r){return t<=15?e^n^r:t<=31?e&n|~e&r:t<=47?(e|~n)^r:t<=63?e&r|n&~r:e^(n|~r)}function d(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function h(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}r.inherits(c,l),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(t,e){for(var n=this.h[0],r=this.h[1],i=this.h[2],l=this.h[3],c=this.h[4],b=n,y=r,w=i,_=l,k=c,M=0;M<80;M++){var x=a(o(u(n,f(M,r,i,l),t[p[M]+e],d(M)),v[M]),c);n=c,c=l,l=o(i,10),i=r,r=x,x=a(o(u(b,f(79-M,y,w,_),t[m[M]+e],h(M)),g[M]),k),b=k,k=_,_=o(w,10),w=y,y=x}x=s(this.h[1],i,_),this.h[1]=s(this.h[2],l,k),this.h[2]=s(this.h[3],c,b),this.h[3]=s(this.h[4],n,y),this.h[4]=s(this.h[0],r,w),this.h[0]=x},c.prototype._digest=function(t){return"hex"===t?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],v=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(t,e,n){"use strict";var r=n(16),i=n(12);function o(t,e,n){if(!(this instanceof o))return new o(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(e,n))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},o.prototype.update=function(t,e){return this.inner.update(t,e),this},o.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(t,e,n){"use strict";var r=n(18),i=n(395),o=n(13),a=n(86),s=n(81),u=o.assert,l=n(396),c=n(397);function f(t){if(!(this instanceof f))return new f(t);"string"==typeof t&&(u(a.hasOwnProperty(t),"Unknown curve "+t),t=a[t]),t instanceof a.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=f,f.prototype.keyPair=function(t){return new l(this,t)},f.prototype.keyFromPrivate=function(t,e){return l.fromPrivate(this,t,e)},f.prototype.keyFromPublic=function(t,e){return l.fromPublic(this,t,e)},f.prototype.genKeyPair=function(t){t||(t={});for(var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||s(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),o=this.n.sub(new r(2));;){var a=new r(e.generate(n));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},f.prototype.sign=function(t,e,n,o){"object"==typeof n&&(o=n,n=null),o||(o={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new r(t,16));for(var a=this.n.byteLength(),s=e.getPrivate().toArray("be",a),u=t.toArray("be",a),l=new i({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new r(1)),d=0;;d++){var h=o.k?o.k(d):new r(l.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(f)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var m=p.getX(),v=m.umod(this.n);if(0!==v.cmpn(0)){var g=h.invm(this.n).mul(v.mul(e.getPrivate()).iadd(t));if(0!==(g=g.umod(this.n)).cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==m.cmp(v)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),b^=1),new c({r:v,s:g,recoveryParam:b})}}}}}},f.prototype.verify=function(t,e,n,i){t=this._truncateToN(new r(t,16)),n=this.keyFromPublic(n,i);var o=(e=new c(e,"hex")).r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),l=u.mul(t).umod(this.n),f=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(l,n.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(l,n.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(t,e,n,i){u((3&n)===n,"The recovery param is more than two bits"),e=new c(e,i);var o=this.n,a=new r(t),s=e.r,l=e.s,f=1&n,d=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var h=e.r.invm(o),p=o.sub(a).mul(h).umod(o),m=l.mul(h).umod(o);return this.g.mulAdd(p,s,m)},f.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new c(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},function(t,e,n){"use strict";var r=n(87),i=n(178),o=n(12);function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=i.toArray(t.entropy,t.entropyEnc||"hex"),n=i.toArray(t.nonce,t.nonceEnc||"hex"),r=i.toArray(t.pers,t.persEnc||"hex");o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}t.exports=a,a.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},a.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(t,e,n,r){"string"!=typeof e&&(r=n,n=e,e=null),t=i.toArray(t,e),n=i.toArray(n,r),o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},a.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var o=[];o.length<t;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var a=o.slice(0,t);return this._update(n),this._reseed++,i.encode(a,e)}},function(t,e,n){"use strict";var r=n(18),i=n(13).assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=o,o.fromPublic=function(t,e,n){return e instanceof o?e:new o(t,{pub:e,pubEnc:n})},o.fromPrivate=function(t,e,n){return e instanceof o?e:new o(t,{priv:e,privEnc:n})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new r(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.mul(this.priv).getX()},o.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},o.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,n){"use strict";var r=n(18),i=n(13),o=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new r(t.r,16),this.s=new r(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function u(t,e){var n=t[e.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=e.place;o<r;o++,a++)i<<=8,i|=t[a],i>>>=0;return!(i<=127)&&(e.place=a,i)}function l(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e<n;)e++;return 0===e?t:t.slice(e)}function c(t,e){if(e<128)t.push(e);else{var n=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var n=new s;if(48!==t[n.place++])return!1;var o=u(t,n);if(!1===o)return!1;if(o+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var a=u(t,n);if(!1===a)return!1;var l=t.slice(n.place,a+n.place);if(n.place+=a,2!==t[n.place++])return!1;var c=u(t,n);if(!1===c)return!1;if(t.length!==c+n.place)return!1;var f=t.slice(n.place,c+n.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new r(l),this.s=new r(f),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=l(e),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];c(r,e.length),(r=r.concat(e)).push(2),c(r,n.length);var o=r.concat(n),a=[48];return c(a,o.length),a=a.concat(o),i.encode(a,t)}},function(t,e,n){"use strict";var r=n(87),i=n(86),o=n(13),a=o.assert,s=o.parseBytes,u=n(399),l=n(400);function c(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof c))return new c(t);t=i[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=r.sha512}t.exports=c,c.prototype.sign=function(t,e){t=s(t);var n=this.keyFromSecret(e),r=this.hashInt(n.messagePrefix(),t),i=this.g.mul(r),o=this.encodePoint(i),a=this.hashInt(o,n.pubBytes(),t).mul(n.priv()),u=r.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(t,e,n){t=s(t),e=this.makeSignature(e);var r=this.keyFromPublic(n),i=this.hashInt(e.Rencoded(),r.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(r.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return o.intFromLE(t.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(t){return u.fromPublic(this,t)},c.prototype.keyFromSecret=function(t){return u.fromSecret(this,t)},c.prototype.makeSignature=function(t){return t instanceof l?t:new l(this,t)},c.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},c.prototype.decodePoint=function(t){var e=(t=o.parseBytes(t)).length-1,n=t.slice(0,e).concat(-129&t[e]),r=0!=(128&t[e]),i=o.intFromLE(n);return this.curve.pointFromY(i,r)},c.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(t){return o.intFromLE(t)},c.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,n){"use strict";var r=n(13),i=r.assert,o=r.parseBytes,a=r.cachedProperty;function s(t,e){this.eddsa=t,this._secret=o(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=o(e.pub)}s.fromPublic=function(t,e){return e instanceof s?e:new s(t,{pub:e})},s.fromSecret=function(t,e){return e instanceof s?e:new s(t,{secret:e})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,r=e.slice(0,t.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(t){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},s.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},s.prototype.getSecret=function(t){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),t)},s.prototype.getPublic=function(t){return r.encode(this.pubBytes(),t)},t.exports=s},function(t,e,n){"use strict";var r=n(18),i=n(13),o=i.assert,a=i.cachedProperty,s=i.parseBytes;function u(t,e){this.eddsa=t,"object"!=typeof e&&(e=s(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),o(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof r&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=u},function(t,e){},function(t,e,n){"use strict";var r=n(184);e.certificate=n(409);var i=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=i;var o=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=o;var a=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));e.PublicKey=a;var s=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=u;var l=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=l;var c=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=c,e.DSAparam=r.define("DSAparam",(function(){this.int()}));var f=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=f;var d=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(t,e){},function(t,e,n){"use strict";const r=n(186),i=n(188),o=n(2);function a(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new a(t,e)},a.prototype._createNamed=function(t){const e=this.name;function n(t){this._initNamed(t,e)}return o(n,t),n.prototype._initNamed=function(e,n){t.call(this,e,n)},new n(this)},a.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(i[t])),this.decoders[t]},a.prototype.decode=function(t,e,n){return this._getDecoder(e).decode(t,n)},a.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(r[t])),this.encoders[t]},a.prototype.encode=function(t,e,n){return this._getEncoder(e).encode(t,n)}},function(t,e,n){"use strict";const r=n(2),i=n(187);function o(t){i.call(this,t),this.enc="pem"}r(o,i),t.exports=o,o.prototype.encode=function(t,e){const n=i.prototype.encode.call(this,t).toString("base64"),r=["-----BEGIN "+e.label+"-----"];for(let t=0;t<n.length;t+=64)r.push(n.slice(t,t+64));return r.push("-----END "+e.label+"-----"),r.join("\n")}},function(t,e,n){"use strict";const r=n(2),i=n(88).Buffer,o=n(189);function a(t){o.call(this,t),this.enc="pem"}r(a,o),t.exports=a,a.prototype.decode=function(t,e){const n=t.toString().split(/[\r\n]+/g),r=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/;let s=-1,u=-1;for(let t=0;t<n.length;t++){const e=n[t].match(a);if(null!==e&&e[2]===r){if(-1!==s){if("END"!==e[1])break;u=t;break}if("BEGIN"!==e[1])break;s=t}}if(-1===s||-1===u)throw new Error("PEM section not found for: "+r);const l=n.slice(s+1,u).join("");l.replace(/[^a-z0-9+/=]+/gi,"");const c=i.from(l,"base64");return o.prototype.decode.call(this,c,e)}},function(t,e,n){"use strict";const r=e;r.Reporter=n(90).Reporter,r.DecoderBuffer=n(38).DecoderBuffer,r.EncoderBuffer=n(38).EncoderBuffer,r.Node=n(89)},function(t,e,n){"use strict";const r=e;r._reverse=function(t){const e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);const r=t[n];e[r]=n})),e},r.der=n(91)},function(t,e,n){"use strict";var r=n(184),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),u=r.define("RelativeDistinguishedName",(function(){this.setof(o)})),l=r.define("RDNSequence",(function(){this.seqof(u)})),c=r.define("Name",(function(){this.choice({rdnSequence:this.use(l)})})),f=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),d=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(c),this.key("validity").use(f),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),p=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=p},function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(t,e,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=n(47),s=n(79),u=n(4).Buffer;t.exports=function(t,e){var n,l=t.toString(),c=l.match(r);if(c){var f="aes"+c[1],d=u.from(c[2],"hex"),h=u.from(c[3].replace(/[\r\n]/g,""),"base64"),p=a(e,d.slice(0,8),parseInt(c[1],10)).key,m=[],v=s.createDecipheriv(f,p,d);m.push(v.update(h)),m.push(v.final()),n=u.concat(m)}else{var g=l.match(o);n=u.from(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(i)[1],data:n}}},function(t,e,n){var r=n(82).Buffer,i=n(183),o=n(85).ec,a=n(49),s=n(190);function u(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}t.exports=function(t,e,n,l,c){var f=a(n);if("ec"===f.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(t,e,n){var r=s[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new o(r),a=n.data.subjectPrivateKey.data;return i.verify(e,t,a)}(t,e,f)}if("dsa"===f.type){if("dsa"!==l)throw new Error("wrong public key type");return function(t,e,n){var r=n.data.p,o=n.data.q,s=n.data.g,l=n.data.pub_key,c=a.signature.decode(t,"der"),f=c.s,d=c.r;u(f,o),u(d,o);var h=i.mont(r),p=f.invm(o);return 0===s.toRed(h).redPow(new i(e).mul(p).mod(o)).fromRed().mul(l.toRed(h).redPow(d.mul(p).mod(o)).fromRed()).mod(r).mod(o).cmp(d)}(t,e,f)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");e=r.concat([c,e]);for(var d=f.modulus.byteLength(),h=[1],p=0;e.length+h.length+2<d;)h.push(255),p++;h.push(0);for(var m=-1;++m<e.length;)h.push(e[m]);h=r.from(h);var v=i.mont(f.modulus);t=(t=new i(t).toRed(v)).redPow(new i(f.publicExponent)),t=r.from(t.fromRed().toArray());var g=p<8?1:0;for(d=Math.min(t.length,h.length),t.length!==h.length&&(g=1),m=-1;++m<d;)g|=t[m]^h[m];return 0===g}},function(t,e,n){(function(e){var r=n(85),i=n(414);t.exports=function(t){return new a(t)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(t){this.curveType=o[t],this.curveType||(this.curveType={name:t}),this.curve=new r.ec(this.curveType.name),this.keys=void 0}function s(t,n,r){Array.isArray(t)||(t=t.toArray());var i=new e(t);if(r&&i.length<r){var o=new e(r-i.length);o.fill(0),i=e.concat([o,i])}return n?i.toString(n):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},a.prototype.computeSecret=function(t,n,r){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),s(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},a.prototype.getPublicKey=function(t,e){var n=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,t)},a.prototype.getPrivateKey=function(t){return s(this.keys.getPrivate(),t)},a.prototype.setPublicKey=function(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this.keys._importPublic(t),this},a.prototype.setPrivateKey=function(t,n){n=n||"utf8",e.isBuffer(t)||(t=new e(t,n));var r=new i(t);return r=r.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(r),this}}).call(this,n(6).Buffer)},function(t,e,n){(function(t){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=n(415).Buffer}catch(t){}function s(t,e,n){for(var r=0,i=Math.min(t.length,n),o=e;o<i;o++){var a=t.charCodeAt(o)-48;r<<=4,r|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a<o;a++){var s=t.charCodeAt(a)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=t.length-1,o=0;i>=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<t.length;i+=3)a=t[i]|t[i+1]<<8|t[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,i,o=0;for(n=t.length-6,r=0;n>=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<<o&67108863,this.words[r+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c<s;c+=r)l=u(t,c,c+r,e),this.imuln(i),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=u(t,c,t.length,e),c=0;c<a;c++)f*=e;this.imuln(f),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}},o.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},o.prototype.clone=function(){var t=new o(null);return this.copy(t),t},o.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l<r;l++){for(var c=u>>>26,f=67108863&u,d=Math.min(l,e.length-1),h=Math.max(0,l-t.length+1);h<=d;h++){var p=l-h|0;c+=(a=(i=0|t.words[p])*(o=0|e.words[h])+f)/67108864|0,f=67108863&a}n.words[l]=0|f,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);n=0!==(o=s>>>24-i&16777215)||a!==this.length-1?l[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var d=c[t],h=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(h).toString(t);n=(p=p.idivn(h)).isZero()?m+n:l[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r(void 0!==a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s<o;s++)l[s]=0}else{for(s=0;s<o-i;s++)l[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[o-s-1]=a}return l},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},o.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},o.prototype.ior=function(t){return r(0==(this.negative|t.negative)),this.iuor(t)},o.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},o.prototype.iand=function(t){return r(0==(this.negative|t.negative)),this.iuand(t)},o.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this.strip()},o.prototype.ixor=function(t){return r(0==(this.negative|t.negative)),this.iuxor(t)},o.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i<e;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},o.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o<r.length;o++)e=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&e,i=e>>>26;for(;0!==i&&o<n.length;o++)e=(0|n.words[o])+i,this.words[o]=67108863&e,i=e>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a<r.length;a++)o=(e=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&e;for(;0!==o&&a<n.length;a++)o=(e=(0|n.words[a])+o)>>26,this.words[a]=67108863&e;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(t){return this.clone().isub(t)};var h=function(t,e,n){var r,i,o,a=t.words,s=e.words,u=n.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,v=0|a[2],g=8191&v,b=v>>>13,y=0|a[3],w=8191&y,_=y>>>13,k=0|a[4],M=8191&k,x=k>>>13,S=0|a[5],C=8191&S,A=S>>>13,T=0|a[6],E=8191&T,O=T>>>13,P=0|a[7],I=8191&P,R=P>>>13,j=0|a[8],D=8191&j,N=j>>>13,L=0|a[9],B=8191&L,z=L>>>13,F=0|s[0],q=8191&F,V=F>>>13,$=0|s[1],H=8191&$,U=$>>>13,W=0|s[2],K=8191&W,Y=W>>>13,G=0|s[3],Z=8191&G,J=G>>>13,X=0|s[4],Q=8191&X,tt=X>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ft=8191&ct,dt=ct>>>13,ht=0|s[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19;var vt=(l+(r=Math.imul(f,q))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(d,q)|0))<<13)|0;l=((o=Math.imul(d,V))+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,q),i=(i=Math.imul(p,V))+Math.imul(m,q)|0,o=Math.imul(m,V);var gt=(l+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,U)|0)+Math.imul(d,H)|0))<<13)|0;l=((o=o+Math.imul(d,U)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,q),i=(i=Math.imul(g,V))+Math.imul(b,q)|0,o=Math.imul(b,V),r=r+Math.imul(p,H)|0,i=(i=i+Math.imul(p,U)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,U)|0;var bt=(l+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,K)|0))<<13)|0;l=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,q),i=(i=Math.imul(w,V))+Math.imul(_,q)|0,o=Math.imul(_,V),r=r+Math.imul(g,H)|0,i=(i=i+Math.imul(g,U)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,U)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Y)|0;var yt=(l+(r=r+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,Z)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(M,q),i=(i=Math.imul(M,V))+Math.imul(x,q)|0,o=Math.imul(x,V),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,U)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,U)|0,r=r+Math.imul(g,K)|0,i=(i=i+Math.imul(g,Y)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Z)|0,o=o+Math.imul(m,J)|0;var wt=(l+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(C,q),i=(i=Math.imul(C,V))+Math.imul(A,q)|0,o=Math.imul(A,V),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,U)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,U)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,J)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0;var _t=(l+(r=r+Math.imul(f,nt)|0)|0)+((8191&(i=(i=i+Math.imul(f,rt)|0)+Math.imul(d,nt)|0))<<13)|0;l=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,q),i=(i=Math.imul(E,V))+Math.imul(O,q)|0,o=Math.imul(O,V),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,U)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,U)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(x,K)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(w,Z)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,r=r+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0;var kt=(l+(r=r+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(d,ot)|0))<<13)|0;l=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(I,q),i=(i=Math.imul(I,V))+Math.imul(R,q)|0,o=Math.imul(R,V),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,U)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,U)|0,r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,o=o+Math.imul(b,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0;var Mt=(l+(r=r+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(d,ut)|0))<<13)|0;l=((o=o+Math.imul(d,lt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,V))+Math.imul(N,q)|0,o=Math.imul(N,V),r=r+Math.imul(I,H)|0,i=(i=i+Math.imul(I,U)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,U)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(C,Z)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,tt)|0,r=r+Math.imul(w,nt)|0,i=(i=i+Math.imul(w,rt)|0)+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(b,ot)|0,o=o+Math.imul(b,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0;var xt=(l+(r=r+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,dt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,q),i=(i=Math.imul(B,V))+Math.imul(z,q)|0,o=Math.imul(z,V),r=r+Math.imul(D,H)|0,i=(i=i+Math.imul(D,U)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,U)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(O,Z)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(M,nt)|0,i=(i=i+Math.imul(M,rt)|0)+Math.imul(x,nt)|0,o=o+Math.imul(x,rt)|0,r=r+Math.imul(w,ot)|0,i=(i=i+Math.imul(w,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(b,ut)|0,o=o+Math.imul(b,lt)|0,r=r+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(m,ft)|0,o=o+Math.imul(m,dt)|0;var St=(l+(r=r+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,mt)|0)+Math.imul(d,pt)|0))<<13)|0;l=((o=o+Math.imul(d,mt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,H),i=(i=Math.imul(B,U))+Math.imul(z,H)|0,o=Math.imul(z,U),r=r+Math.imul(D,K)|0,i=(i=i+Math.imul(D,Y)|0)+Math.imul(N,K)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(I,Z)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(R,Z)|0,o=o+Math.imul(R,J)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(M,ot)|0,i=(i=i+Math.imul(M,at)|0)+Math.imul(x,ot)|0,o=o+Math.imul(x,at)|0,r=r+Math.imul(w,ut)|0,i=(i=i+Math.imul(w,lt)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(b,ft)|0,o=o+Math.imul(b,dt)|0;var Ct=(l+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;l=((o=o+Math.imul(m,mt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,K),i=(i=Math.imul(B,Y))+Math.imul(z,K)|0,o=Math.imul(z,Y),r=r+Math.imul(D,Z)|0,i=(i=i+Math.imul(D,J)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,J)|0,r=r+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(R,Q)|0,o=o+Math.imul(R,tt)|0,r=r+Math.imul(E,nt)|0,i=(i=i+Math.imul(E,rt)|0)+Math.imul(O,nt)|0,o=o+Math.imul(O,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(M,ut)|0,i=(i=i+Math.imul(M,lt)|0)+Math.imul(x,ut)|0,o=o+Math.imul(x,lt)|0,r=r+Math.imul(w,ft)|0,i=(i=i+Math.imul(w,dt)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,dt)|0;var At=(l+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;l=((o=o+Math.imul(b,mt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(B,Z),i=(i=Math.imul(B,J))+Math.imul(z,Z)|0,o=Math.imul(z,J),r=r+Math.imul(D,Q)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(R,nt)|0,o=o+Math.imul(R,rt)|0,r=r+Math.imul(E,ot)|0,i=(i=i+Math.imul(E,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(A,ut)|0,o=o+Math.imul(A,lt)|0,r=r+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,dt)|0)+Math.imul(x,ft)|0,o=o+Math.imul(x,dt)|0;var Tt=(l+(r=r+Math.imul(w,pt)|0)|0)+((8191&(i=(i=i+Math.imul(w,mt)|0)+Math.imul(_,pt)|0))<<13)|0;l=((o=o+Math.imul(_,mt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,tt))+Math.imul(z,Q)|0,o=Math.imul(z,tt),r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(R,ot)|0,o=o+Math.imul(R,at)|0,r=r+Math.imul(E,ut)|0,i=(i=i+Math.imul(E,lt)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,lt)|0,r=r+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(A,ft)|0,o=o+Math.imul(A,dt)|0;var Et=(l+(r=r+Math.imul(M,pt)|0)|0)+((8191&(i=(i=i+Math.imul(M,mt)|0)+Math.imul(x,pt)|0))<<13)|0;l=((o=o+Math.imul(x,mt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(z,nt)|0,o=Math.imul(z,rt),r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,lt)|0)+Math.imul(R,ut)|0,o=o+Math.imul(R,lt)|0,r=r+Math.imul(E,ft)|0,i=(i=i+Math.imul(E,dt)|0)+Math.imul(O,ft)|0,o=o+Math.imul(O,dt)|0;var Ot=(l+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,mt)|0)+Math.imul(A,pt)|0))<<13)|0;l=((o=o+Math.imul(A,mt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(z,ot)|0,o=Math.imul(z,at),r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,lt)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,lt)|0,r=r+Math.imul(I,ft)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(R,ft)|0,o=o+Math.imul(R,dt)|0;var Pt=(l+(r=r+Math.imul(E,pt)|0)|0)+((8191&(i=(i=i+Math.imul(E,mt)|0)+Math.imul(O,pt)|0))<<13)|0;l=((o=o+Math.imul(O,mt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,lt))+Math.imul(z,ut)|0,o=Math.imul(z,lt),r=r+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(N,ft)|0,o=o+Math.imul(N,dt)|0;var It=(l+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,mt)|0)+Math.imul(R,pt)|0))<<13)|0;l=((o=o+Math.imul(R,mt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(B,ft),i=(i=Math.imul(B,dt))+Math.imul(z,ft)|0,o=Math.imul(z,dt);var Rt=(l+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,mt)|0)+Math.imul(N,pt)|0))<<13)|0;l=((o=o+Math.imul(N,mt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863;var jt=(l+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,mt))+Math.imul(z,pt)|0))<<13)|0;return l=((o=Math.imul(z,mt))+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,u[0]=vt,u[1]=gt,u[2]=bt,u[3]=yt,u[4]=wt,u[5]=_t,u[6]=kt,u[7]=Mt,u[8]=xt,u[9]=St,u[10]=Ct,u[11]=At,u[12]=Tt,u[13]=Et,u[14]=Ot,u[15]=Pt,u[16]=It,u[17]=Rt,u[18]=jt,0!==l&&(u[19]=l,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(h=d),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?h(this,t,e):n<63?d(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,e.length-1),l=Math.max(0,o-t.length+1);l<=u;l++){var c=o-l,f=(0|t.words[c])*(0|e.words[l]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r<t;r++)e[r]=this.revBin(r,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var r=0,i=0;i<e;i++)r|=(1&t)<<e-i-1,t>>=1;return r},m.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a<o;a++)r[a]=e[t[a]],i[a]=n[t[a]]},m.prototype.transform=function(t,e,n,r,i,o){this.permute(o,t,e,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),l=Math.sin(2*Math.PI/s),c=0;c<i;c+=s)for(var f=u,d=l,h=0;h<a;h++){var p=n[c+h],m=r[c+h],v=n[c+h+a],g=r[c+h+a],b=f*v-d*g;g=f*g+d*v,v=b,n[c+h]=p+v,r[c+h]=m+g,n[c+h+a]=p-v,r[c+h+a]=m-g,h!==s&&(b=u*f-l*d,d=u*d+l*f,f=b)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=t[r];t[r]=t[n-r-1],t[n-r-1]=i,i=e[r],e[r]=-e[n-r-1],e[n-r-1]=-i}},m.prototype.normalize13b=function(t,e){for(var n=0,r=0;r<e/2;r++){var i=8192*Math.round(t[2*r+1]/e)+Math.round(t[2*r]/e)+n;t[r]=67108863&i,n=i<67108864?0:i/67108864|0}return t},m.prototype.convert13b=function(t,e,n,i){for(var o=0,a=0;a<e;a++)o+=0|t[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a<i;++a)n[a]=0;r(0===o),r(0==(-8192&o))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var r=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),l=new Array(r),c=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(t.words,t.length,a,r),this.convert13b(e.words,e.length,l,r),this.transform(a,o,s,u,r,i),this.transform(l,o,c,f,r,i);for(var h=0;h<r;h++){var p=s[h]*c[h]-u[h]*f[h];u[h]=s[h]*f[h]+u[h]*c[h],s[h]=p}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),p(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){r("number"==typeof t),r(t<67108864);for(var e=0,n=0;n<this.length;n++){var i=(0|this.words[n])*t,o=(67108863&i)+(67108863&e);e>>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,i=n%26;e[n]=(t.words[r]&1<<i)>>>i}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(t){r("number"==typeof t&&t>=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&o,u=(0|this.words[e])-s<<n;this.words[e]=u|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e<i;e++)this.words[e]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(t){return r(0===this.negative),this.iushln(t)},o.prototype.iushrn=function(t,e,n){var i;r("number"==typeof t&&t>=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var l=0;l<a;l++)u.words[l]=this.words[l];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=i);l--){var f=0|this.words[l];this.words[l]=c<<26-o|f>>>o,c=f&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<<e;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<<e;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(t){return this.clone().imaskn(t)},o.prototype.iaddn=function(t){return r("number"==typeof t),r(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},o.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},o.prototype.addn=function(t){return this.clone().iaddn(t)},o.prototype.subn=function(t){return this.clone().isubn(t)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(t,e,n){var i,o,a=t.length+n;this._expand(a);var s=0;for(i=0;i<t.length;i++){o=(0|this.words[i+n])+s;var u=(0|t.words[i])*e;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var l=0;l<s.length;l++)s.words[l]=0}var c=r.clone()._ishlnsubmul(i,1,u);0===c.negative&&(r=c,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),f=e.clone();!e.isZero();){for(var d=0,h=1;0==(e.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0==(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0==(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:i<t?-1:1}return 0!==this.negative?0|-e:e},o.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},o.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){r<i?e=-1:r>i&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function M(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(b,g),b.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r<n;r++)e.words[r]=t.words[r];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&i,r=10;r<t.length;r++){var o=0|t.words[r];t.words[r-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},i(y,g),i(w,g),i(_,g),_.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,i=67108863&r;r>>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return v[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=a;0!==h.cmp(s);){for(var m=h,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v<p);var g=this.pow(f,new o(1).iushln(p-v-1));d=d.redMul(g),f=g.redSqr(),h=h.redMul(f),p=v}return d},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new o(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],a=0,s=0,u=e.bitLength()%26;for(0===u&&(u=26),r=e.length-1;r>=0;r--){for(var l=e.words[r],c=u-1;c>=0;c--){var f=l>>c&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===c)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new M(t)},i(M,k),M.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},M.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},M.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},M.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(14)(t))},function(t,e){},function(t,e,n){e.publicEncrypt=n(417),e.privateDecrypt=n(419),e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}},function(t,e,n){var r=n(49),i=n(24),o=n(35),a=n(191),s=n(192),u=n(92),l=n(193),c=n(84),f=n(4).Buffer;t.exports=function(t,e,n){var d;d=t.padding?t.padding:n?1:4;var h,p=r(t);if(4===d)h=function(t,e){var n=t.modulus.byteLength(),r=e.length,l=o("sha1").update(f.alloc(0)).digest(),c=l.length,d=2*c;if(r>n-d-2)throw new Error("message too long");var h=f.alloc(n-r-d-2),p=n-c-1,m=i(c),v=s(f.concat([l,h,f.alloc(1,1),e],p),a(m,p)),g=s(m,a(v,c));return new u(f.concat([f.alloc(1),g,v],n))}(p,e);else if(1===d)h=function(t,e,n){var r,o=e.length,a=t.modulus.byteLength();if(o>a-11)throw new Error("message too long");r=n?f.alloc(a-o-3,255):function(t){var e,n=f.allocUnsafe(t),r=0,o=i(2*t),a=0;for(;r<t;)a===o.length&&(o=i(2*t),a=0),(e=o[a++])&&(n[r++]=e);return n}(a-o-3);return new u(f.concat([f.from([0,n?1:2]),r,f.alloc(1),e],a))}(p,e,n);else{if(3!==d)throw new Error("unknown padding");if((h=new u(e)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return n?c(h,p):l(h,p)}},function(t,e){},function(t,e,n){var r=n(49),i=n(191),o=n(192),a=n(92),s=n(84),u=n(35),l=n(193),c=n(4).Buffer;t.exports=function(t,e,n){var f;f=t.padding?t.padding:n?1:4;var d,h=r(t),p=h.modulus.byteLength();if(e.length>p||new a(e).cmp(h.modulus)>=0)throw new Error("decryption error");d=n?l(new a(e),h):s(e,h);var m=c.alloc(p-d.length);if(d=c.concat([m,d],p),4===f)return function(t,e){var n=t.modulus.byteLength(),r=u("sha1").update(c.alloc(0)).digest(),a=r.length;if(0!==e[0])throw new Error("decryption error");var s=e.slice(1,a+1),l=e.slice(a+1),f=o(s,i(l,a)),d=o(l,i(f,n-a-1));if(function(t,e){t=c.from(t),e=c.from(e);var n=0,r=t.length;t.length!==e.length&&(n++,r=Math.min(t.length,e.length));var i=-1;for(;++i<r;)n+=t[i]^e[i];return n}(r,d.slice(0,a)))throw new Error("decryption error");var h=a;for(;0===d[h];)h++;if(1!==d[h++])throw new Error("decryption error");return d.slice(h)}(h,d);if(1===f)return function(t,e,n){var r=e.slice(0,2),i=2,o=0;for(;0!==e[i++];)if(i>=e.length){o++;break}var a=e.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(i)}(0,d,n);if(3===f)return d;throw new Error("unknown padding")}},function(t,e,n){"use strict";(function(t,r){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=n(4),a=n(24),s=o.Buffer,u=o.kMaxLength,l=t.crypto||t.msCrypto,c=Math.pow(2,32)-1;function f(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>c||t<0)throw new TypeError("offset must be a uint32");if(t>u||t>e)throw new RangeError("offset out of range")}function d(t,e,n){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>c||t<0)throw new TypeError("size must be a uint32");if(t+e>n||t>u)throw new RangeError("buffer too small")}function h(t,e,n,i){if(r.browser){var o=t.buffer,s=new Uint8Array(o,e,n);return l.getRandomValues(s),i?void r.nextTick((function(){i(null,t)})):t}if(!i)return a(n).copy(t,e),t;a(n,(function(n,r){if(n)return i(n);r.copy(t,e),i(null,t)}))}l&&l.getRandomValues||!r.browser?(e.randomFill=function(e,n,r,i){if(!(s.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)i=n,n=0,r=e.length;else if("function"==typeof r)i=r,r=e.length-n;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return f(n,e.length),d(r,n,e.length),h(e,n,r,i)},e.randomFillSync=function(e,n,r){void 0===n&&(n=0);if(!(s.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');f(n,e.length),void 0===r&&(r=e.length-n);return d(r,n,e.length),h(e,n,r)}):(e.randomFill=i,e.randomFillSync=i)}).call(this,n(7),n(5))},function(t,e,n){"use strict";const r=n(195),i=n(19);function o(){return"undefined"!=typeof Symbol&&Symbol.asyncIterator?Symbol.asyncIterator:"@@asyncIterator"}function a(t){if(t.length<2)return;const e=t[1];if("function"!=typeof e)throw Error("The second argument to autoPagingEach, if present, must be a callback function; receieved "+typeof e);return e}function s(t){if(0===t.length)return;const e=t[0];if("function"!=typeof e)throw Error("The first argument to autoPagingEach, if present, must be a callback function; receieved "+typeof e);if(2===e.length)return e;if(e.length>2)throw Error("The `onItem` callback function passed to autoPagingEach must accept at most two arguments; got "+e);return function(t,n){n(e(t))}}function u(t,e){return new Promise((n,r)=>{t().then((function r(i){if(i.done)return void n();const o=i.value;return new Promise(t=>{e(o,t)}).then(e=>!1===e?r({done:!0}):t().then(r))})).catch(r)})}t.exports.makeAutoPaginationMethods=function(t,e,n,l){const c={currentPromise:null};let f=l,d=0;function h(i){if(!i||!i.data||"number"!=typeof i.data.length)throw Error("Unexpected: Stripe API response does not have a well-formed `data` array.");if(d<i.data.length){const t=i.data[d];return d+=1,{value:t,done:!1}}if(i.has_more){d=0;const o=function(t){const e=t.data.length-1,n=t.data[e],r=n&&n.id;if(!r)throw Error("Unexpected: No `id` found on the last item while auto-paging a list.");return r}(i);return f=r(t,e,n,{starting_after:o}),f.then(h)}return{value:void 0,done:!0}}function p(){return function(t,e){if(t.currentPromise)return t.currentPromise;return t.currentPromise=new Promise(e).then(e=>(t.currentPromise=void 0,e)),t.currentPromise}(c,(t,e)=>f.then(h).then(t).catch(e))}const m=function(t){return function(){const e=[].slice.call(arguments),n=s(e),r=a(e);if(e.length>2)throw Error("autoPagingEach takes up to two arguments; received:",e);const o=u(t,n);return i.callbackifyPromiseWithTimeout(o,r)}}(p),v=function(t){return function(e,n){const r=e&&e.limit;if(!r)throw Error("You must pass a `limit` option to autoPagingToArray, e.g., `autoPagingToArray({limit: 1000});`.");if(r>1e4)throw Error("You cannot specify a limit of more than 10,000 items to fetch in `autoPagingToArray`; use `autoPagingEach` to iterate through longer lists.");const o=new Promise((e,n)=>{const i=[];t(t=>{if(i.push(t),i.length>=r)return!1}).then(()=>{e(i)}).catch(n)});return i.callbackifyPromiseWithTimeout(o,n)}}(m),g={autoPagingEach:m,autoPagingToArray:v,next:p,return:()=>({}),[o()]:()=>g};return g}},function(t,e,n){"use strict";const r=n(194);t.exports={create:r({method:"POST"}),list:r({method:"GET",methodType:"list"}),retrieve:r({method:"GET",path:"/{id}"}),update:r({method:"POST",path:"{id}"}),del:r({method:"DELETE",path:"{id}"})}},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"account_links",includeBasic:["create"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"apple_pay/domains",includeBasic:["create","del","list","retrieve"]})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"application_fees",includeBasic:["list","retrieve"],createRefund:i({method:"POST",path:"/{id}/refunds"}),listRefunds:i({method:"GET",path:"/{id}/refunds",methodType:"list"}),retrieveRefund:i({method:"GET",path:"/{fee}/refunds/{id}"}),updateRefund:i({method:"POST",path:"/{fee}/refunds/{id}"})})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"balance",retrieve:i({method:"GET",path:""})})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"balance_transactions",includeBasic:["list","retrieve"]})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"charges",includeBasic:["create","list","retrieve","update"],capture:i({method:"POST",path:"/{charge}/capture"})})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"country_specs",includeBasic:["list","retrieve"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"coupons",includeBasic:["create","del","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"credit_notes",includeBasic:["create","list","retrieve","update"],preview:i({method:"GET",path:"/preview"}),voidCreditNote:i({method:"POST",path:"/{id}/void"}),listLineItems:i({method:"GET",path:"/{creditNote}/lines",methodType:"list"}),listPreviewLineItems:i({method:"GET",path:"/preview/lines",methodType:"list"})})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"customers",includeBasic:["create","del","list","retrieve","update"],deleteDiscount:i({method:"DELETE",path:"/{customer}/discount"}),createBalanceTransaction:i({method:"POST",path:"/{customer}/balance_transactions"}),listBalanceTransactions:i({method:"GET",path:"/{customer}/balance_transactions",methodType:"list"}),retrieveBalanceTransaction:i({method:"GET",path:"/{customer}/balance_transactions/{transaction}"}),updateBalanceTransaction:i({method:"POST",path:"/{customer}/balance_transactions/{transaction}"}),createSource:i({method:"POST",path:"/{customer}/sources"}),listSources:i({method:"GET",path:"/{customer}/sources",methodType:"list"}),retrieveSource:i({method:"GET",path:"/{customer}/sources/{id}"}),updateSource:i({method:"POST",path:"/{customer}/sources/{id}"}),deleteSource:i({method:"DELETE",path:"/{customer}/sources/{id}"}),verifySource:i({method:"POST",path:"/{customer}/sources/{id}/verify"}),createTaxId:i({method:"POST",path:"/{customer}/tax_ids"}),deleteTaxId:i({method:"DELETE",path:"/{customer}/tax_ids/{id}"}),listTaxIds:i({method:"GET",path:"/{customer}/tax_ids",methodType:"list"}),retrieveTaxId:i({method:"GET",path:"/{customer}/tax_ids/{id}"})})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"disputes",includeBasic:["list","retrieve","update"],close:i({method:"POST",path:"/{dispute}/close"})})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"ephemeral_keys",includeBasic:["del"],create:i({method:"POST",path:"",validator:(t,e)=>{if(!e.headers||!e.headers["Stripe-Version"])throw new Error("stripe_version must be specified to create an ephemeral key")}})})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"events",includeBasic:["list","retrieve"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"exchange_rates",includeBasic:["list","retrieve"]})},function(t,e,n){"use strict";const{multipartRequestDataProcessor:r}=n(438),i=n(1),o=i.method;t.exports=i.extend({path:"files",includeBasic:["list","retrieve"],create:o({method:"POST",headers:{"Content-Type":"multipart/form-data"},host:"files.stripe.com"}),requestDataProcessor:r})},function(t,e,n){"use strict";(function(e){const r=n(19),{StripeError:i}=n(39);class o extends i{}const a=(t,n,i)=>{const o=(Math.round(1e16*Math.random())+Math.round(1e16*Math.random())).toString();i["Content-Type"]="multipart/form-data; boundary="+o;let a=e.alloc(0);function s(t){const n=a,r=t instanceof e?t:e.from(t);a=e.alloc(n.length+r.length+2),n.copy(a),r.copy(a,n.length),a.write("\r\n",a.length-2)}function u(t){return`"${t.replace(/"|"/g,"%22").replace(/\r\n|\r|\n/g," ")}"`}const l=r.flattenAndStringify(n);for(const t in l){const e=l[t];s("--"+o),e.hasOwnProperty("data")?(s(`Content-Disposition: form-data; name=${u(t)}; filename=${u(e.name||"blob")}`),s("Content-Type: "+(e.type||"application/octet-stream")),s(""),s(e.data)):(s("Content-Disposition: form-data; name="+u(t)),s(""),s(e))}return s(`--${o}--`),a};t.exports.multipartRequestDataProcessor=(t,n,i,s)=>{if(n=n||{},"POST"!==t)return s(null,r.stringifyRequestData(n));if(r.checkForStream(n))return((t,n,r,i)=>{const s=[];n.file.data.on("data",t=>{s.push(t)}).once("end",()=>{const t=Object.assign({},n);t.file.data=e.concat(s);const o=a(0,t,r);i(null,o)}).on("error",t=>{i(new o({message:"An error occurred while attempting to process the file for upload.",detail:t}),null)})})(0,n,i,s);return s(null,a(0,n,i))}}).call(this,n(6).Buffer)},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"file_links",includeBasic:["create","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"invoices",includeBasic:["create","del","list","retrieve","update"],finalizeInvoice:i({method:"POST",path:"/{invoice}/finalize"}),markUncollectible:i({method:"POST",path:"/{invoice}/mark_uncollectible"}),pay:i({method:"POST",path:"/{invoice}/pay"}),sendInvoice:i({method:"POST",path:"/{invoice}/send"}),retrieveUpcoming:i({method:"GET",path:"/upcoming"}),voidInvoice:i({method:"POST",path:"/{invoice}/void"}),listLineItems:i({method:"GET",path:"/{invoice}/lines",methodType:"list"}),listUpcomingLineItems:i({method:"GET",path:"/upcoming/lines",methodType:"list"})})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"invoiceitems",includeBasic:["create","del","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"issuer_fraud_records",includeBasic:["list","retrieve"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"mandates",includeBasic:["retrieve"]})},function(t,e,n){"use strict";const r=n(1),i=r.method,o=n(19),a="connect.stripe.com";t.exports=r.extend({basePath:"/",authorizeUrl(t,e){t=t||{};let n="oauth/authorize";return(e=e||{}).express&&(n="express/"+n),t.response_type||(t.response_type="code"),t.client_id||(t.client_id=this._stripe.getClientId()),t.scope||(t.scope="read_write"),`https://${a}/${n}?${o.stringifyRequestData(t)}`},token:i({method:"POST",path:"oauth/token",host:a}),deauthorize(t){return t.client_id||(t.client_id=this._stripe.getClientId()),i({method:"POST",path:"oauth/deauthorize",host:a}).apply(this,arguments)}})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"orders",includeBasic:["create","list","retrieve","update"],pay:i({method:"POST",path:"/{id}/pay"}),returnOrder:i({method:"POST",path:"/{id}/returns"})})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"order_returns",includeBasic:["list","retrieve"]})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"payment_intents",includeBasic:["create","list","retrieve","update"],cancel:i({method:"POST",path:"/{intent}/cancel"}),capture:i({method:"POST",path:"/{intent}/capture"}),confirm:i({method:"POST",path:"/{intent}/confirm"})})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"payment_methods",includeBasic:["create","list","retrieve","update"],attach:i({method:"POST",path:"/{paymentMethod}/attach"}),detach:i({method:"POST",path:"/{paymentMethod}/detach"})})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"payouts",includeBasic:["create","list","retrieve","update"],cancel:i({method:"POST",path:"/{payout}/cancel"}),reverse:i({method:"POST",path:"/{payout}/reverse"})})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"plans",includeBasic:["create","del","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"prices",includeBasic:["create","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"products",includeBasic:["create","del","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"promotion_codes",includeBasic:["create","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"refunds",includeBasic:["create","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"reviews",includeBasic:["list","retrieve"],approve:i({method:"POST",path:"/{review}/approve"})})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"setup_attempts",includeBasic:["list"]})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"setup_intents",includeBasic:["create","list","retrieve","update"],cancel:i({method:"POST",path:"/{intent}/cancel"}),confirm:i({method:"POST",path:"/{intent}/confirm"})})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"skus",includeBasic:["create","del","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"sources",includeBasic:["create","retrieve","update"],listSourceTransactions:i({method:"GET",path:"/{source}/source_transactions",methodType:"list"}),verify:i({method:"POST",path:"/{source}/verify"})})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"subscriptions",includeBasic:["create","list","retrieve","update","del"],deleteDiscount:i({method:"DELETE",path:"/{subscriptionExposedId}/discount"})})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"subscription_items",includeBasic:["create","del","list","retrieve","update"],createUsageRecord:i({method:"POST",path:"/{subscriptionItem}/usage_records"}),listUsageRecordSummaries:i({method:"GET",path:"/{subscriptionItem}/usage_record_summaries",methodType:"list"})})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"subscription_schedules",includeBasic:["create","list","retrieve","update"],cancel:i({method:"POST",path:"/{schedule}/cancel"}),release:i({method:"POST",path:"/{schedule}/release"})})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"tax_rates",includeBasic:["create","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"tokens",includeBasic:["create","retrieve"]})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"topups",includeBasic:["create","list","retrieve","update"],cancel:i({method:"POST",path:"/{topup}/cancel"})})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"transfers",includeBasic:["create","list","retrieve","update"],createReversal:i({method:"POST",path:"/{id}/reversals"}),listReversals:i({method:"GET",path:"/{id}/reversals",methodType:"list"}),retrieveReversal:i({method:"GET",path:"/{transfer}/reversals/{id}"}),updateReversal:i({method:"POST",path:"/{transfer}/reversals/{id}"})})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"webhook_endpoints",includeBasic:["create","del","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"billing_portal/sessions",includeBasic:["create"]})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"checkout/sessions",includeBasic:["create","list","retrieve"],listLineItems:i({method:"GET",path:"/{session}/line_items",methodType:"list"})})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"issuing/authorizations",includeBasic:["list","retrieve","update"],approve:i({method:"POST",path:"/{authorization}/approve"}),decline:i({method:"POST",path:"/{authorization}/decline"})})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"issuing/cards",includeBasic:["create","list","retrieve","update"],retrieveDetails:i({method:"GET",path:"/{card}/details"})})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"issuing/cardholders",includeBasic:["create","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1),i=r.method;t.exports=r.extend({path:"issuing/disputes",includeBasic:["create","list","retrieve","update"],submit:i({method:"POST",path:"/{dispute}/submit"})})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"issuing/transactions",includeBasic:["list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"radar/early_fraud_warnings",includeBasic:["list","retrieve"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"radar/value_lists",includeBasic:["create","del","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"radar/value_list_items",includeBasic:["create","del","list","retrieve"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"reporting/report_runs",includeBasic:["create","list","retrieve"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"reporting/report_types",includeBasic:["list","retrieve"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"sigma/scheduled_query_runs",includeBasic:["list","retrieve"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"terminal/connection_tokens",includeBasic:["create"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"terminal/locations",includeBasic:["create","del","list","retrieve","update"]})},function(t,e,n){"use strict";const r=n(1);t.exports=r.extend({path:"terminal/readers",includeBasic:["create","del","list","retrieve","update"]})},function(t){t.exports=JSON.parse('{"_from":"stripe@^8.112.0","_id":"stripe@8.112.0","_inBundle":false,"_integrity":"sha512-8rCW8b/IowG0ul2bkbj/qnZtQTpQrnJuKIwddo+gE/id+AVHFcA1w7RBFqmVdvACzuAV4LMb5FBh5RICCykq5w==","_location":"/stripe","_phantomChildren":{},"_requested":{"type":"range","registry":true,"raw":"stripe@^8.112.0","name":"stripe","escapedName":"stripe","rawSpec":"^8.112.0","saveSpec":null,"fetchSpec":"^8.112.0"},"_requiredBy":["#USER","/"],"_resolved":"https://registry.npmjs.org/stripe/-/stripe-8.112.0.tgz","_shasum":"cacd04b8811a10188e4522af4f5e0342ca99272e","_spec":"stripe@^8.112.0","_where":"/home/louis/dev/psq","author":{"name":"Stripe","email":"support@stripe.com","url":"https://stripe.com/"},"bugs":{"url":"https://github.com/stripe/stripe-node/issues"},"bugs:":"https://github.com/stripe/stripe-node/issues","bundleDependencies":false,"contributors":[{"name":"Ask Bjørn Hansen","email":"ask@develooper.com","url":"http://www.askask.com/"},{"name":"Michelle Bu","email":"michelle@stripe.com"},{"name":"Alex Sexton","email":"alex@stripe.com"},{"name":"James Padolsey"}],"dependencies":{"@types/node":">=8.1.0","qs":"^6.6.0"},"deprecated":false,"description":"Stripe API wrapper","devDependencies":{"@typescript-eslint/eslint-plugin":"^2.13.0","@typescript-eslint/parser":"^2.13.0","chai":"~4.2.0","chai-as-promised":"~7.1.1","coveralls":"^3.0.0","eslint":"^6.8.0","eslint-config-prettier":"^4.1.0","eslint-plugin-chai-friendly":"^0.4.0","eslint-plugin-prettier":"^3.0.1","mocha":"~6.1.4","mocha-junit-reporter":"^1.23.1","nock":"^10.0.6","nyc":"^14.1.0","prettier":"^1.16.4","typescript":"^3.7.2"},"engines":{"node":"^8.1 || >=10.*"},"homepage":"https://github.com/stripe/stripe-node","keywords":["stripe","payment processing","credit cards","api"],"license":"MIT","main":"lib/stripe.js","name":"stripe","repository":{"type":"git","url":"git://github.com/stripe/stripe-node.git"},"scripts":{"clean":"rm -rf ./.nyc_output ./node_modules/.cache ./coverage","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"yarn lint --fix && ./scripts/updateAPIVersion.js","lint":"eslint --ext .js,.jsx,.ts .","mocha":"nyc mocha","mocha-only":"mocha","report":"nyc -r text -r lcov report","test":"yarn lint && yarn test-typescript && yarn mocha","test-typescript":"tsc --build types/test"},"types":"types/2020-08-27/index.d.ts","version":"8.112.0"}')},function(t,e,n){"use strict";var r=n(59);n.n(r).a},function(t,e,n){(e=n(9)(!1)).push([t.i,".ElementsModal--modal[data-v-27732283]{all:initial;box-sizing:border-box;position:fixed;font-family:-apple-system,BlinkMacSystemFont,sans-serif;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);opacity:0;visibility:hidden;transform:scale(1.1);transition:visibility 0s linear .25s,opacity .25s 0s,transform .25s;z-index:100001!important}.ElementsModal--modal-content[data-v-27732283]{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);border-radius:10px;background:#fff;overflow:hidden;width:385px;border-radius:.5rem}@media screen and (max-width:600px){.ElementsModal--modal-content[data-v-27732283]{height:100vh;width:100%;border-radius:0}.ElementsModal--close[data-v-27732283],.ElementsModal--top[data-v-27732283]{padding-top:4em}}.ElementsModal--top[data-v-27732283]{display:flex;justify-content:flex-end;position:relative}.ElementsModal--close[data-v-27732283]{background:none;color:inherit;padding:0;font:inherit;outline:inherit;color:#fff;cursor:pointer;position:absolute;top:0;right:0;border:none}.ElementsModal--show-modal[data-v-27732283]{opacity:1;visibility:visible;transform:scale(1);transition:visibility 0s linear 0s,opacity .25s 0s,transform .25s}.ElementsModal--details[data-v-27732283]{margin-bottom:2px}.ElementsModal--price[data-v-27732283]{color:#fff;font-size:36px;font-weight:600}.ElementsModal--top-banner[data-v-27732283]{background-color:#000;text-align:center;background:#000;padding:20px 1em 2em}.ElementsModal--email[data-v-27732283],.ElementsModal--product[data-v-27732283]{color:hsla(0,0%,100%,.5);font-size:16px;font-weight:500}.ElementsModal--company[data-v-27732283]{color:#fff;font-size:18px;font-weight:700;margin:auto auto 32px}.ElementsModal--footer-text[data-v-27732283]{color:rgba(0,0,0,.4);font-size:12px;font-weight:400;text-align:center;line-height:16px}.ElementsModal--error-message[data-v-27732283]{margin-top:5px;color:#dc2727;font-size:13px;line-height:17px}.ElementsModal--pay-button-wrapper[data-v-27732283]{font-family:-apple-system,BlinkMacSystemFont,sans-serif;margin:25px;width:350px;height:40px}.ElementsModal--pay-button[data-v-27732283]{cursor:pointer;border:0;width:100%;text-align:center;height:40px;box-shadow:inset 0 0 0 1px rgba(50,50,93,.1),0 2px 5px 0 rgba(50,50,93,.1),0 1px 1px 0 rgba(0,0,0,.07);border-radius:6px 6px 6px 6px;font-size:16px;font-weight:600;background-color:#0074d4;color:#fff}.ElementsModal--pay-button[data-v-27732283]:focus{outline:none;box-shadow:0 0 0 1px rgba(50,151,211,.3),0 1px 1px 0 rgba(0,0,0,.07),0 0 0 4px rgba(50,151,211,.3)}.ElementsModal--dropdowns[data-v-27732283]{margin:10px;-webkit-appearance:none;background:#fff;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px 0 rgba(0,0,0,.07),0 1px 1.5px 0 rgba(0,0,0,.05);border-radius:4px 4px 4px 4px}.ElementsModal--payment-form[data-v-27732283]{margin-bottom:0}.ElementsModal--label[data-v-27732283]{color:rgba(0,0,0,.6);font-size:14px;font-weight:500}.ElementsModal--forms[data-v-27732283]{padding:5%}.ElementsModal--form[data-v-27732283]{margin-bottom:14px}.ElementsModal--form-label[data-v-27732283]{font-size:13px;margin-bottom:4px;display:block;color:rgba(0,0,0,.6)}.ElementsModal--form-select select[data-v-27732283]{padding:10px 12px;width:100%;border:1px solid transparent;outline:none;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px 0 rgba(0,0,0,.07),0 1px 1.5px 0 rgba(0,0,0,.05);transition:box-shadow .15s ease;border-radius:5px 5px 5px 5px;background-color:#fff;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.193 3.97a.75.75 0 011.062 1.062L6.53 9.756a.75.75 0 01-1.06 0L.745 5.032A.75.75 0 011.807 3.97L6 8.163l4.193-4.193z' fill-rule='evenodd' fill-opacity='.4'/%3E%3C/svg%3E\");background-size:12px;background-position:calc(100% - 16px) 50%;background-repeat:no-repeat;color:#282828;font-size:16px;font-weight:400}.ElementsModal--form-select select[data-v-27732283]:-moz-focusring{color:transparent;text-shadow:0 0 0 #000}.ElementsModal--form-select select[data-v-27732283]:focus{box-shadow:0 0 0 1px rgba(50,151,211,.3),0 1px 1px 0 rgba(0,0,0,.07),0 0 0 4px rgba(50,151,211,.3)}.ElementsModal--form-select select[data-v-27732283]::-ms-expand{display:none}.ElementsModal--form-divider[data-v-27732283]{margin-top:14px;margin-bottom:25px;text-align:center;border-bottom:1px solid #e7e7e7;height:20px;width:100%}.ElementsModal--form-divider-text[data-v-27732283]{position:relative;bottom:-10px;padding:0 10px;background:#fff;color:#909090;font-size:14px;font-weight:400}.StripeElement--payment-request[data-v-27732283]{display:none;margin-bottom:14px}.StripeElement--payment-request-button[data-v-27732283]{margin-bottom:12px}.StripeElement--card[data-v-27732283]{box-sizing:border-box;height:40px;padding:10px 12px;border:1px solid transparent;border-radius:5px 5px 5px 5px;background-color:#fff;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px 0 rgba(0,0,0,.07),0 1px 1.5px 0 rgba(0,0,0,.05);transition:box-shadow .15s ease}.StripeElement--card--focus[data-v-27732283]{box-shadow:0 1px 3px 0 #cfd7df}.StripeElement--card--invalid[data-v-27732283]{border-color:#ef9896}.StripeElement--card--webkit-autofill[data-v-27732283]{background-color:#fefde5!important}",""]),t.exports=e},function(t,e,n){"use strict";n.r(e);var r={en:{next:"Next",back:"Back",finish:"Finish"},es:{next:"Siguiente",back:"Atrás",finish:"Finalizar"},pt:{next:"Próximo",back:"Voltar",finish:"Finalizar"},ja:{next:"次へ",back:"戻る",finish:"完了"},he:{next:"הבא",back:"חזרה",finish:"סיום"},cn:{next:"下一步",back:"返回",finish:"完成"},ru:{next:"Вперед",back:"Назад",finish:"Готово"},ar:{next:"التالي",back:"السابق",finish:"انهاء"},nl:{next:"Volgende",back:"Vorige",finish:"Klaar"},sv:{next:"Nästa",back:"Tillbaka",finish:"Skicka"}},i={filters:{translate:function(t,e){return r[e][t]}},props:{locale:{type:String,default:"en"},topButtons:{type:Boolean,default:!1},steps:{type:Array,default:function(){return[{icon:"mail",name:"first",title:"Sample title 1",subtitle:"Subtitle sample"},{icon:"report_problem",name:"second",title:"Sample title 2",subtitle:"Subtitle sample"}]}},keepAlive:{type:Boolean,default:!0},reset:{type:Boolean,default:!1}},data(){return{currentStep:{},previousStep:{},nextButton:{},canContinue:!1,finalStep:!1,keepAliveData:this.keepAlive}},computed:{enterAnimation(){return this.currentStep.index<this.previousStep.index?"animated quick fadeInLeft":"animated quick fadeInRight"},leaveAnimation(){return this.currentStep.index>this.previousStep.index?"animated quick fadeOutLeft":"animated quick fadeOutRight"}},methods:{isStepActive(t,e){return this.currentStep.index===t?"activated":"deactivated"},activateStep(t,e=!1){this.steps[t]&&(this.previousStep=this.currentStep,this.currentStep={name:this.steps[t].name,index:t},t+1===this.steps.length?this.finalStep=!0:this.finalStep=!1,e||this.$emit("completed-step",this.previousStep)),this.$emit("active-step",this.currentStep)},nextStepAction(){if(this.nextButton[this.currentStep.name]=!0,this.canContinue){this.finalStep&&this.$emit("stepper-finished",this.currentStep);let t=this.currentStep.index+1;this.activateStep(t)}this.canContinue=!1,this.$forceUpdate()},nextStep(){this.$listeners&&this.$listeners["before-next-step"]||this.nextStepAction(),this.canContinue=!1,this.$emit("before-next-step",{currentStep:this.currentStep},(t=!0)=>{this.canContinue=!0,t&&this.nextStepAction()})},backStep(){this.$emit("clicking-back");let t=this.currentStep.index-1;t>=0&&this.activateStep(t,!0)},proceed(t){this.canContinue=t.value},changeNextBtnValue(t){this.nextButton[this.currentStep.name]=t.nextBtnValue,this.$forceUpdate()},init(){this.activateStep(0),this.steps.forEach(t=>{this.nextButton[t.name]=!1})}},watch:{reset(t){t&&(this.keepAliveData=!1,this.init(),this.previousStep={},this.$nextTick(()=>{this.keepAliveData=this.keepAlive,this.$emit("reset",!0)}))}},created(){this.init()}},o=(n(292),n(294),n(3)),a=Object(o.a)(i,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"stepper-box"},[n("div",{staticClass:"top"},[n("div",{staticClass:"divider-line",style:{width:100/t.steps.length*(t.steps.length-1)-10+"%"}}),t._v(" "),n("div",{staticClass:"steps-wrapper"},[t.topButtons?[t.currentStep.index>0?n("div",{staticClass:"stepper-button-top previous",on:{click:function(e){return t.backStep()}}},[n("i",{staticClass:"material-icons"},[t._v("keyboard_arrow_left")])]):t._e()]:t._e(),t._v(" "),t._l(t.steps,(function(e,r){return[n("div",{key:r,class:["step",t.isStepActive(r,e)],style:{width:100/t.steps.length+"%"}},[n("div",{staticClass:"circle"},[n("i",{staticClass:"material-icons md-18"},[t._v("\n                            "+t._s(e.completed?"done":e.icon)+"\n                        ")])]),t._v(" "),n("div",{staticClass:"step-title"},[n("h4",[t._v(t._s(e.title))]),t._v(" "),n("h5",{staticClass:"step-subtitle"},[t._v(t._s(e.subtitle))])])])]})),t._v(" "),t.topButtons?n("div",{class:["stepper-button-top next",t.canContinue?"":"deactivated"],on:{click:function(e){return t.nextStep()}}},[n("i",{staticClass:"material-icons"},[t._v("keyboard_arrow_right")])]):t._e()],2)]),t._v(" "),n("div",{staticClass:"content"},[n("transition",{attrs:{"enter-active-class":t.enterAnimation,"leave-active-class":t.leaveAnimation,mode:"out-in"}},[t.keepAliveData?n("keep-alive",[n(t.steps[t.currentStep.index].component,{tag:"component",attrs:{clickedNext:t.nextButton[t.currentStep.name],"current-step":t.currentStep},on:{"can-continue":t.proceed,"change-next":t.changeNextBtnValue}})],1):n(t.steps[t.currentStep.index].component,{tag:"component",attrs:{clickedNext:t.nextButton[t.currentStep.name],"current-step":t.currentStep},on:{"can-continue":t.proceed,"change-next":t.changeNextBtnValue}})],1)],1),t._v(" "),n("div",{class:["bottom",t.currentStep.index>0?"":"only-next"]},[t.currentStep.index>0?n("div",{staticClass:"stepper-button previous",on:{click:function(e){return t.backStep()}}},[n("i",{staticClass:"material-icons"},[t._v("keyboard_arrow_left")]),t._v(" "),n("span",[t._v(t._s(t._f("translate")("back",t.locale)))])]):t._e(),t._v(" "),n("div",{class:["stepper-button next",t.canContinue?"":"deactivated"],on:{click:function(e){return t.nextStep()}}},[n("span",[t._v(t._s(t._f("translate")(t.finalStep?"finish":"next",t.locale)))]),t._v(" "),n("i",{staticClass:"material-icons"},[t._v("keyboard_arrow_right")])])])])}),[],!1,null,"0cd2e8d8",null);e.default=a.exports},function(t,e,n){"use strict";n.r(e);var r={mixins:[n(30).a],mounted:function(){},computed:{}},i=n(3),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("ais-instant-search",{attrs:{"search-client":t.searchClient,"index-name":t.prefix+"searchable_texts"}},[n("ais-configure",{attrs:{hitsPerPage:12}}),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"px-3"},[n("ais-search-box",{staticClass:"searchbox ",attrs:{placeholder:"Rechercher..."}})],1),t._v(" "),n("ais-stats",{staticClass:"mt-2 ml-3"}),t._v(" "),n("div",{staticClass:"my-4"},[n("ais-infinite-hits",{attrs:{"class-names":{"ais-InfiniteHits-list":"row","ais-InfiniteHits-item":"col-sm-3 mb-3"}},scopedSlots:t._u([{key:"item",fn:function(t){var e=t.item,r=t.index;return n("file-hit",{key:r,attrs:{hit:e}})}},{key:"loadMore",fn:function(e){e.page;var r=e.isLastPage,i=e.refineNext;return n("button",{staticClass:"btn btn-big mt-5",attrs:{disabled:r},on:{click:i}},[n("i",{staticClass:"far fa-plus-square mr-1"}),t._v("Voir plus\n                        ")])}}])})],1)],1)])],1)],1)}),[],!1,null,null,null);e.default=o.exports},function(t,e,n){"use strict";n.r(e);var r={name:"ActuLabosHit"},i=n(3),o=Object(i.a)(r,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,"5bd42f3b",null);e.default=o.exports},function(t,e,n){"use strict";n.r(e);var r={name:"CampaignHit",props:["hit","flip"]},i=(n(288),n(3)),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.hit?n("div",{staticClass:"box p-1"},[n("div",[n("a",{attrs:{href:t.hit.url}},[n("h3",[void 0===t.hit._highlightResult?n("span",{domProps:{innerHTML:t._s(t.hit.title)}}):t._e(),t._v(" "),n("ais-highlight",{attrs:{attribute:"title",hit:t.hit}})],1)])]),t._v(" "),n("div",[n("img",{class:{"mh-campaign":!0,"float-left mr-3":!t.flip,"float-right ml-3":t.flip},attrs:{src:t.hit.image,alt:""}}),t._v(" "),n("div",{staticClass:"pb-2",domProps:{innerHTML:t._s(t.hit.description)}}),t._v(" "),n("a",{class:{"click-here":!0,"bottom-right":!t.flip,"bottom-left":t.flip},attrs:{href:t.hit.url}},[t._v("Lire ici")])])]):t._e()}),[],!1,null,"6009d5bd",null);e.default=o.exports},function(t,e,n){"use strict";n.r(e);var r={name:"CampaignInstantSearch",mixins:[n(30).a],mounted:function(){},computed:{}},i=n(3),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("ais-instant-search",{attrs:{"search-client":t.searchClient,"index-name":t.prefix+"ad_campaigns"}},[n("ais-configure",{attrs:{hitsPerPage:10}}),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"px-3"},[n("ais-search-box",{staticClass:"searchbox ",attrs:{placeholder:"Rechercher..."}})],1),t._v(" "),n("ais-stats",{staticClass:"mt-2 ml-3"}),t._v(" "),n("div",{staticClass:"my-4"},[n("ais-infinite-hits",{attrs:{"class-names":{"ais-InfiniteHits-list":"row","ais-InfiniteHits-item":"col-sm-12 mb-3"}},scopedSlots:t._u([{key:"item",fn:function(t){var e=t.item,r=t.index;return n("campaign-hit",{key:r,attrs:{hit:e}})}},{key:"loadMore",fn:function(e){e.page;var r=e.isLastPage,i=e.refineNext;return n("button",{staticClass:"ais-InfiniteHits-loadMore",attrs:{disabled:r},on:{click:i}},[t._v("\n                      Voir plus\n                  ")])}}])})],1)],1)])],1)],1)}),[],!1,null,null,null);e.default=o.exports},function(t,e,n){"use strict";n.r(e);var r={name:"FileHit",props:["hit"],data:function(){return{}},computed:{viewLink:function(){var t="none"===this.hit._highlightResult.content.matchLevel?"1":this.hit.page;return"/view/".concat(this.hit.file.slug,"#page=").concat(t)}}},i=n(3),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card w-100"},[n("img",{staticClass:"card-img-top",attrs:{src:t.hit.file.cover,alt:"Cover"}}),t._v(" "),n("div",{staticClass:"card-body"},[n("h5",{staticClass:"card-title text-center",domProps:{textContent:t._s(t.hit.file.title)}}),t._v(" "),n("p",{staticClass:"card-text"},t._l(t.hit.file.tags,(function(e){return n("span",{staticClass:"badge badge-light mr-1"},[n("i",{staticClass:"fas fa-tag"}),t._v(" "+t._s(e)+"\n            ")])})),0),t._v(" "),n("p",{staticClass:"card-text"},["none"!==t.hit._highlightResult.content.matchLevel?n("ais-snippet",{attrs:{attribute:"content",hit:t.hit}}):t._e()],1)]),t._v(" "),n("a",{staticClass:"btn btn-big mb-0",attrs:{href:t.viewLink,target:"_blank"}},[n("i",{staticClass:"fas fa-book-open mr-1"}),t._v(" Lire cette édition")])])}),[],!1,null,"fcf1250c",null);e.default=o.exports},function(t,e,n){"use strict";n.r(e);var r={mixins:[n(30).a],mounted:function(){},computed:{}},i=n(3),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h1",[t._v("Les archives de P.S.Q.")]),t._v(" "),n("ais-instant-search",{attrs:{"search-client":t.searchClient,"index-name":t.prefix+"searchable_texts"}},[n("ais-configure",{attrs:{hitsPerPage:12}}),t._v(" "),n("div",{staticClass:"row"},[n("div",{staticClass:"col-md-12"},[n("div",{staticClass:"px-3"},[n("ais-search-box",{staticClass:"searchbox ",attrs:{placeholder:"Rechercher..."}})],1),t._v(" "),n("ais-stats",{staticClass:"mt-2 ml-3"}),t._v(" "),n("div",{staticClass:"my-4"},[n("ais-infinite-hits",{attrs:{"class-names":{"ais-InfiniteHits-list":"row","ais-InfiniteHits-item":"col-sm-3 mb-3"}},scopedSlots:t._u([{key:"item",fn:function(t){var e=t.item,r=t.index;return n("file-hit",{key:r,attrs:{hit:e}})}},{key:"loadMore",fn:function(e){e.page;var r=e.isLastPage,i=e.refineNext;return n("button",{staticClass:"btn btn-big mt-5",attrs:{disabled:r},on:{click:i}},[n("i",{staticClass:"far fa-plus-square mr-1"}),t._v("Voir plus\n                        ")])}}])})],1)],1)])],1)],1)}),[],!1,null,null,null);e.default=o.exports},function(t,e,n){"use strict";n.r(e);var r={name:"cover",mounted:function(){this.isMounted=!0},props:["dataImage","width","height"],data:function(){return{isMounted:!1,mouseX:0,mouseY:0,mouseLeaveDelay:null}},computed:{dimensions:function(){return{width:this.width,height:Math.round(this.c_height)+"px"}},c_width:function(){return this.isMounted?this.$refs.card.offsetWidth:0},c_height:function(){return this.isMounted?void 0===this.height?1.38*this.c_inner_width:this.height:0},c_inner_width:function(){return this.isMounted?this.$refs.inner.offsetWidth:0},mousePX:function(){return this.mouseX/this.c_width},mousePY:function(){return this.mouseY/this.c_height},cardStyle:function(){var t=20*this.mousePX,e=-20*this.mousePY;return{transform:"rotateY(".concat(t,"deg) rotateX(").concat(e,"deg)")}},cardBgTransform:function(){},cardBgImage:function(){return{backgroundImage:"url(".concat(this.dataImage,")")}}},methods:{handleMouseMove:function(t){this.mouseX=t.pageX-$(this.$refs.card).offset().left-this.c_width/2,this.mouseY=t.pageY-$(this.$refs.card).offset().top-this.c_height/2},handleMouseEnter:function(){clearTimeout(this.mouseLeaveDelay)},handleMouseLeave:function(){var t=this;this.mouseLeaveDelay=setTimeout((function(){t.mouseX=0,t.mouseY=0}),500)}}},i=(n(290),n(3)),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"card",staticClass:"card-wrap",style:t.dimensions,on:{mousemove:t.handleMouseMove,mouseenter:t.handleMouseEnter,mouseleave:t.handleMouseLeave}},[n("div",{ref:"inner",staticClass:"cover",style:t.cardStyle},[n("div",{staticClass:"card-bg",style:[t.cardBgTransform,t.cardBgImage]}),t._v(" "),n("div",{staticClass:"card-info",style:{width:t.c_inner_width+"px"}},[t._t("header"),t._v(" "),t._t("content")],2)])])}),[],!1,null,"1a8b3214",null);e.default=o.exports},function(t,e,n){"use strict";n.r(e);var r={components:{},data:function(){return{}},mounted:function(){},methods:{}},i=n(3),o=Object(i.a)(r,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("h1",{staticClass:"mb-6"},[this._v("Live stats")]),this._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col"},[e("mg-stats",{attrs:{icon:"delivered",current:"20",total:"80",text:"delivered"}})],1),this._v(" "),e("div",{staticClass:"col"},[e("mg-stats",{attrs:{icon:"clicked",current:"20",total:"80",text:"clicked"}})],1),this._v(" "),e("div",{staticClass:"col"},[e("mg-stats",{attrs:{icon:"opened",current:"20",total:"80",text:"opened"}})],1)])])}),[],!1,null,"17570ad5",null);e.default=o.exports},function(t,e,n){"use strict";n.r(e);var r={name:"PollAnswers",data:function(){return{polls:[],selected_poll:null,poll_data:null,loaded:!1,selected_question:null}},watch:{selected_poll:function(t){var e=this;axios.get("/otherContent/pollAnswers/"+t.id).then((function(t){return e.poll_data=t.data}))}},mounted:function(){var t=this;axios.get("/otherContent/pollAnswers/list").then((function(e){t.polls=e.data,t.loaded=!0}))}},i=n(3),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.polls.length>0?n("div",[n("div",{staticClass:"form-group mb-4"},[n("label",{attrs:{for:"polls"}}),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.selected_poll,expression:"selected_poll"}],staticClass:"form-control",attrs:{name:"polls",id:"polls"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selected_poll=e.target.multiple?n:n[0]}}},t._l(t.polls,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e.title))])})),0)]),t._v(" "),t.selected_poll?[null===t.poll_data?n("div",{staticClass:"alert alert-info"},[t._v("\n                    Chargement en cours...\n                ")]):t.poll_data&&0===t.poll_data.entries_count?n("div",{staticClass:"alert alert-warning"},[t._v("\n                    Aucune réponse pour le moment !\n                ")]):n("div",{staticClass:"box p-3"},[n("p",{staticClass:"lead"},[t._v(t._s(t.poll_data.entries_count)+" réponses enregistrées")]),t._v(" "),n("div",{staticClass:"form-group mb-2"},[n("label",{attrs:{for:"question"}},[t._v("Sélectionnez une question pour voir les résultats")]),t._v(" "),n("select",{directives:[{name:"model",rawName:"v-model",value:t.selected_question,expression:"selected_question"}],staticClass:"form-control",attrs:{name:"question",id:"question"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.selected_question=e.target.multiple?n:n[0]}}},t._l(t.poll_data.questions,(function(e){return n("option",{domProps:{value:e}},[t._v(t._s(e.question))])})),0)]),t._v(" "),null===t.selected_question?n("div",{staticClass:"alert alert-info"},[t._v("\n                        Sélectionnez une question pour voir les réponses\n                    ")]):n("div",[n("table",{staticClass:"table table-hover"},[n("thead",{staticClass:"thead-light"},[n("tr",[n("th",[t._v("Réponse")]),t._v(" "),"poll_text"!==t.selected_question.type?n("th",[t._v("Occurences")]):t._e(),t._v(" "),"poll_text"!==t.selected_question.type?n("th",[t._v("Pourcentage")]):t._e()])]),t._v(" "),n("tbody",t._l(t.selected_question.answers,(function(e){return n("tr",{class:{"table-warning":"[no-answer]"===e.value}},[n("td",{domProps:{textContent:t._s("[no-answer]"===e.value?"[Aucune réponse]":e.value)}}),t._v(" "),"poll_text"!==t.selected_question.type?n("td",[t._v(t._s(e.count))]):t._e(),t._v(" "),"poll_text"!==t.selected_question.type?n("td",[t._v(t._s(e.percentage)+"%")]):t._e()])})),0)])])])]:t._e()],2):t.loaded?n("div",{staticClass:"alert alert-warning"},[t._v("\n            Aucun sondage trouvé\n        ")]):n("div",{staticClass:"alert alert-info"},[t._v("\n            Chargement en cours...\n        ")])])}),[],!1,null,"19882d56",null);e.default=o.exports},function(t,e,n){"use strict";n.r(e);var r={name:"HeadlineRepeater",props:{value:{required:!0}},data:function(){return{headline:"",content:""}},computed:{val:{get:function(){return{headline:this.headline,content:this.content}},set:function(t){this.$emit("input",t)}}},watch:{val:function(t){this.$emit("input",t)}}},i=n(3),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("input",{directives:[{name:"model",rawName:"v-model",value:t.headline,expression:"headline"}],staticClass:"form-control",attrs:{type:"text",placeholder:"Tapez le titre ici..."},domProps:{value:t.headline},on:{input:function(e){e.target.composing||(t.headline=e.target.value)}}}),t._v(" "),n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.content,expression:"content"}],staticClass:"form-control mt-1",attrs:{placeholder:"Description rapide",rows:"4"},domProps:{value:t.content},on:{input:function(e){e.target.composing||(t.content=e.target.value)}}})])}),[],!1,null,"c9f24a5c",null);e.default=o.exports},function(t,e,n){"use strict";n.r(e);var r=n(61),i=n.n(r),o=n(94),a=n(95),s=n(40),u={components:{HorizontalStepper:i.a},data:function(){return{steps:[{icon:"cloud_upload",name:"upload",title:"Mise en ligne du PDF",subtitle:"Création de la liseuse",component:o.default,completed:!1},{icon:"mail",name:"email",title:"Mise en forme du message",subtitle:"",component:a.default,completed:!1},{icon:"send",name:"review",title:"Récapitulatif et envoi",subtitle:"Suivi des envois",component:s.default,completed:!1}]}},mounted:function(){},methods:{completeStep:function(t){this.steps.forEach((function(e){e.name===t.name&&(e.completed=!0)}))},isStepActive:function(t){this.steps.forEach((function(e){e.name===t.name&&!0===e.completed&&(e.completed=!1)}))},alert:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){alert("end")}))}},l=n(3),c=Object(l.a)(u,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("h1",{staticClass:"mb-6"},[this._v("Publier une lettre")]),this._v(" "),e("horizontal-stepper",{attrs:{steps:this.steps},on:{"completed-step":this.completeStep,"active-step":this.isStepActive,"stepper-finished":this.alert}})],1)}),[],!1,null,null,null);e.default=c.exports},function(t,e,n){"use strict";n.r(e);var r=n(61),i=n.n(r),o=n(96),a=n(40),s={components:{HorizontalStepper:i.a},data:function(){return{steps:[{icon:"mail",name:"email",title:"Mise en forme du message",subtitle:"",component:o.default,completed:!1},{icon:"send",name:"review",title:"Récapitulatif et envoi",subtitle:"Suivi des envois",component:a.default,completed:!1}]}},mounted:function(){},methods:{completeStep:function(t){this.steps.forEach((function(e){e.name===t.name&&(e.completed=!0)}))},isStepActive:function(t){this.steps.forEach((function(e){e.name===t.name&&!0===e.completed&&(e.completed=!1)}))},alert:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){alert("end")}))}},u=n(3),l=Object(u.a)(s,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("h1",{staticClass:"mb-6"},[this._v("Envoyer une newsletter")]),this._v(" "),e("horizontal-stepper",{attrs:{steps:this.steps},on:{"completed-step":this.completeStep,"active-step":this.isStepActive,"stepper-finished":this.alert}})],1)}),[],!1,null,null,null);e.default=l.exports},function(t,e,n){"use strict";n.r(e);var r={components:{},data:function(){return{batch:1,batches:[]}},mounted:function(){var t=this;axios.get("/statistics/batches").then((function(e){return t.batches=e.data.data}))},methods:{}},i=n(3),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("h2",[t._v("Statistiques")]),t._v(" "),n("hr"),t._v(" "),n("div",{staticClass:"form-group"},[n("select",{directives:[{name:"model",rawName:"v-model",value:t.batch,expression:"batch"}],staticClass:"form-control",attrs:{name:"batch",id:"batch"},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.batch=e.target.multiple?n:n[0]}}},t._l(t.batches,(function(e){return n("option",{attrs:{value:"bat.id"}},[t._v(t._s(e.file.title))])})),0)])])}),[],!1,null,"e7971362",null);e.default=o.exports},function(t,e,n){"use strict";n.r(e);var r={components:{},props:["icon","current","total","text","customMetric","customLabel"],data:function(){return{}},methods:{}},i=(n(308),n(3)),o=Object(i.a)(r,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"card d-flex bg-white flex-items-center flex-content-center flex-justify-between card--shadow"},["delivered"===t.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--success"},[n("svg",{staticClass:"svg-icon",attrs:{height:"24",width:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"delivered"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[n("path",{attrs:{"fill-rule":"nonzero",d:"M1 11l4-2.9v5.082zM23 11l-4-2.9v5.082z"}}),t._v(" "),n("path",{attrs:{stroke:"#8BC1A9","stroke-width":"2",d:"M5 8.1L1 11v12h22V11l-4-2.9"}}),t._v(" "),n("path",{attrs:{stroke:"#439B73","stroke-width":"2",d:"M5 13.2V1h14v12.2"}}),t._v(" "),n("path",{attrs:{stroke:"#8BC1A9","stroke-width":"2",d:"M1 11l22 12M23 11l-11 6"}}),t._v(" "),n("path",{attrs:{stroke:"#439B73","stroke-linecap":"square","stroke-width":"2",d:"M9 6h6M9 10h6"}})])])]):t._e(),t._v(" "),"opened"===t.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--info"},[n("svg",{staticClass:"svg-icon",attrs:{height:"23",width:"24",viewBox:"0 0 24 23",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"open-book"}},[n("g",{attrs:{stroke:"#006CE6","stroke-width":"2",fill:"none","fill-rule":"evenodd","stroke-linecap":"square"}},[n("path",{attrs:{opacity:".5",d:"M1 2l11 3 11-3v17l-11 3-11-3z"}}),t._v(" "),n("path",{attrs:{d:"M5 15.9L9 17M9 8.3L5 7.2M9 12.5l-4-1M19 15.9L15 17M15 8.3l4-1.1M15 12.5l4-1"}})])])]):t._e(),t._v(" "),"clicked"===t.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--warn"},[n("svg",{staticClass:"svg-icon",attrs:{height:"30",width:"30",viewBox:"0 0 30 30",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"click"}},[n("g",{attrs:{"stroke-width":"2",fill:"none","fill-rule":"evenodd","stroke-linecap":"square"}},[n("path",{attrs:{fill:"#FFBA62",d:"M15.0086638 29.1674982L9.5629583 9.5629583l19.6045399 5.4457055-7.1528135 3.0654915 6.3995289 6.3995289-3.9405294 3.9405294-6.3995289-6.3995289-3.0654915 7.1528135zm-2.5716221-16.7304565l2.9753471 10.7112496 1.9871401-4.6366602 7.0741553 7.0741553 1.1121022-1.1121022-7.0741553-7.0741553 4.6366602-1.9871401-10.7112496-2.9753471z"}}),t._v(" "),n("path",{attrs:{fill:"#FF8F00",d:"M3.34314558 4.75735971l1.41421356-1.41421356 2.82842712 2.82842712L6.1715727 7.58578683 3.34314558 4.7573597zM11.53554435.5355302l2.00000001.00000704-.00001414 4.00000209-2.00000005-.00000707.00001418-4.00000206zm8.77816397 2.80761595L21.7279219 4.7573597l-2.82842713 2.82842713-1.41421356-1.41421356 2.82842712-2.82842713zM4.75735914 21.72792244l-1.41421356-1.41421356 2.82842713-2.82842712 1.41421356 1.41421356-2.82842713 2.82842712zM.53554024 13.5355343v-2H4.5355352l3e-8 2.00000003-3.99999498-3e-8z"}})])])]):t._e(),t._v(" "),"failed"===t.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--danger"},[n("svg",{staticClass:"svg-icon",attrs:{height:"23",width:"24",viewBox:"0 0 23 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"suppressed"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd","stroke-width":"2"}},[n("path",{attrs:{stroke:"#E47573",d:"M5 7.1L1 10v12h22V10l-4-2.9M1 10l22 12M23 10l-11 6"}}),t._v(" "),n("path",{attrs:{stroke:"#D41E1B","stroke-linecap":"square",d:"M15 2L9 8M9 2l6 6"}})])])]):t._e(),t._v(" "),"suppressed"===t.icon?n("div",{staticClass:"card-icon d-flex flex-items-center flex-justify-center card-icon--warn"},[n("svg",{staticClass:"svg-icon",attrs:{height:"23",width:"24",viewBox:"0 0 23 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",icon:"suppressed"}},[n("g",{attrs:{fill:"none","fill-rule":"evenodd","stroke-width":"2"}},[n("path",{attrs:{stroke:"#FFBA62",d:"M5 7.1L1 10v12h22V10l-4-2.9M1 10l22 12M23 10l-11 6"}}),t._v(" "),n("path",{attrs:{stroke:"#FF8F00","stroke-linecap":"square",d:"M15 2L9 8M9 2l6 6"}})])])]):t._e(),t._v(" "),n("div",{staticClass:"card-content d-flex flex-column flex-justify-center"},[n("div",{staticClass:"card-label text-small text-gray-light"},[t.customLabel?[t._v(t._s(t.customLabel))]:[t._v("\n                "+t._s(t.current)+" / "+t._s(t.total)+" "+t._s(t.text)+"\n            ")]],2),t._v(" "),n("div",{staticClass:"h3"},[t.customMetric?[t._v(t._s(t.customMetric))]:[t._v("\n                "+t._s(0!==t.total?Math.ceil(100*t.current/t.total):0)+"%\n            ")]],2)])])}),[],!1,null,"77d962d2",null);e.default=o.exports},function(t,e,n){"use strict";n.r(e);var r=n(200),i=n.n(r),o={name:"StripeModal",props:["product","amount","email","paymentIntent"],data:function(){return{_elementsModal_stripe:"",_elementsModal_HOST_URL:"#",elementsModal:null}},mounted:function(){var t=this;this.getPublicKey().then((function(e){t._elementsModal_stripe=i()(e),t.createElements(content,t.paymentIntent),t.createPaymentRequest(content,t.paymentIntent)}))},methods:{getPublicKey:function(){return"pk_test_51HcBp3KZBXuYePomhVUc9RxbsZbSfuoiu0NKiotBW4ZKwCbM6sLlPMLSyPDQeB0MUXoQD3qbk23eJ41NVpM1z1oT00lg84Ywcq"},toggleElementsModalVisibility:function(){var t=document.querySelector(".ElementsModal--modal");t&&t.classList&&t.classList.toggle("ElementsModal--show-modal")},createPaymentIntent:function(t){return fetch(_elementsModal_HOST_URL+"/payment_intents",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then((function(t){return t.json()})).then((function(t){return t}))},createPaymentRequest:function(t,e){var n=_elementsModal_stripe.paymentRequest({country:"US",currency:t.currency,total:{label:t.productName+", "+t.businessName,amount:e.amount},requestPayerName:!0,requestPayerEmail:!0}),r=_elementsModal_stripe.elements().create("paymentRequestButton",{paymentRequest:n});n.canMakePayment().then((function(t){t?(document.getElementById("payment-request-section").style.display="block",r.mount("#payment-request-button")):(document.getElementById("payment-request-button").style.display="none",document.getElementById("payment-request-section").style.display="none")})),n.on("paymentmethod",(function(t){_elementsModal_stripe.confirmCardPayment(e.client_secret,{payment_method:t.paymentMethod.id},{handleActions:!1}).then((function(n){if(n.error)t.complete("fail");else{if(t.complete("success"),"succeeded"===n.paymentIntent.status)return stripePaymentHandler();_elementsModal_stripe.confirmCardPayment(e.client_secret).then((function(t){t.error?document.getElementById("paymentRequest-errors").textContent=t.error.message:stripePaymentHandler()}))}}))}))},create:function(t){createPaymentIntent(t).then((function(e){init(t,e)}))},createElements:function(t,e){var n=_elementsModal_stripe.elements().create("card",{style:{base:{color:"#32325d",fontFamily:"-apple-system, BlinkMacSystemFont, sans-serif",fontSmoothing:"antialiased",fontSize:"16px","::placeholder":{color:"#aab7c4"}},invalid:{color:"#fa755a",iconColor:"#fa755a"}}});n.mount("#card-element"),document.getElementById("payment-form").addEventListener("submit",(function(r){r.preventDefault(),_elementsModal_stripe.confirmCardPayment(e.client_secret,{payment_method:{card:n,billing_details:{name:t.customerName}}}).then((function(t){t.error?document.getElementById("card-errors").textContent=t.error.message:stripePaymentHandler()}))}))},stripePaymentHandler:function(){toggleElementsModalVisibility(),document.querySelectorAll(".payment-view").forEach((function(t){t.classList.add("hidden")})),document.querySelectorAll(".completed-view").forEach((function(t){t.classList.remove("hidden")}))},browserLocale:function(){return navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.userLanguage?navigator.userLanguage:navigator.language},zeroDecimalCurrencies:function(t){return["BIF","CLP","DJF","GNF","JPY","KMF","KRW","XPF","XOF","XAF","VUV","VND","UGX","RWF","PYG","MGA"].indexOf(t)},calculateDisplayAmountFromCurrency:function(t){var e=t.amount;return-1===zeroDecimalCurrencies(t.currency)&&(e/=100),e.toLocaleString(browserLocale(),{style:"currency",currency:t.currency})}}},a=(n(485),n(3)),s=Object(a.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ElementsModal--modal-content"},[n("div",{staticClass:"ElementsModal--top-banner"},[n("div",{staticClass:"ElementsModal--sales-info"},[n("div",{staticClass:"ElementsModal--top"},[n("div",{staticClass:"ElementsModal--company"},[t._v("PSQ")]),t._v(" "),n("button",{staticClass:"ElementsModal--close",attrs:{onClick:"elementsModal.toggleElementsModalVisibility()"}},[n("svg",{attrs:{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[n("defs",[n("path",{attrs:{d:"M10,8.8766862 L13.6440403,5.2326459 C13.9542348,4.92245137 14.4571596,4.92245137 14.7673541,5.2326459 C15.0775486,5.54284044 15.0775486,6.04576516 14.7673541,6.3559597 L11.1238333,9.99948051 L14.7673541,13.6430016 C15.0775486,13.9531961 15.0775486,14.4561209 14.7673541,14.7663154 C14.4571596,15.0765099 13.9542348,15.0765099 13.6440403,14.7663154 L10,11.1222751 L6.3559597,14.7663154 C6.04576516,15.0765099 5.54284044,15.0765099 5.2326459,14.7663154 C4.92245137,14.4561209 4.92245137,13.9531961 5.2326459,13.6430016 L8.87616671,9.99948051 L5.2326459,6.3559597 C4.92245137,6.04576516 4.92245137,5.54284044 5.2326459,5.2326459 C5.54284044,4.92245137 6.04576516,4.92245137 6.3559597,5.2326459 L10,8.8766862 Z",id:"path-1"}})]),t._v(" "),n("g",{attrs:{id:"Payment-recipes",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"}},[n("g",{attrs:{id:"Elements-Popup",transform:"translate(-816.000000, -97.000000)"}},[n("g",{attrs:{id:"close-btn",transform:"translate(816.000000, 97.000000)"}},[n("circle",{attrs:{id:"Oval","fill-opacity":"0.3",fill:"#AEAEAE",cx:"10",cy:"10",r:"10"}}),t._v(" "),n("mask",{attrs:{id:"mask-2",fill:"white"}},[n("use",{attrs:{"xlink:href":"#path-1"}})]),t._v(" "),n("use",{attrs:{id:"Mask","fill-opacity":"0.5",fill:"#FFFFFF",opacity:"0.5","xlink:href":"#path-1"}})])])])])])]),t._v(" "),n("div",{staticClass:"ElementsModal--product ElementsModal--details"},[t._v(t._s(t.product))]),t._v(" "),n("div",{staticClass:"ElementsModal--price ElementsModal--details"},[t._v(t._s(t.amount))]),t._v(" "),n("div",{staticClass:"ElementsModal--email ElementsModal--details"},[t._v(t._s(t.email))])])]),t._v(" "),n("div",{staticClass:"ElementsModal--payment-details"},[n("form",{staticClass:"ElementsModal--payment-form",attrs:{id:"payment-form"}},[n("div",{staticClass:"form-row"},[n("div",{staticClass:"ElementsModal--forms"},[t._m(0),t._v(" "),t._m(1),t._v(" "),t._m(2),t._v(" "),n("div",{staticClass:"ElementsModal--form"},[n("input",{attrs:{type:"hidden",name:"amount",value:"${content.amount}"}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"currency",value:"${content.currency}"}}),t._v(" "),n("input",{attrs:{type:"hidden",name:"description",value:"${content.productName}"}}),t._v(" "),n("button",{staticClass:"ElementsModal--pay-button"},[t._v("Pay "+t._s(t.amount))])]),t._v(" "),t._m(3)])])])])])}),[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"StripeElement--payment-request",attrs:{id:"payment-request-section"}},[e("div",{staticClass:"StripeElement--payment-request-button",attrs:{id:"payment-request-button"}}),this._v(" "),e("div",{staticClass:"ElementsModal--error-message",attrs:{id:"paymentRequest-errors",role:"alert"}}),this._v(" "),e("div",{staticClass:"ElementsModal--form-divider"},[e("span",{staticClass:"ElementsModal--form-divider-text"},[this._v("Or pay with card")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"ElementsModal--form"},[e("label",{attrs:{for:"ElementsModal--card-element"}},[e("span",{staticClass:"ElementsModal--form-label spacer"},[this._v("Card details")]),this._v(" "),e("div",{staticClass:"StripeElement--card",attrs:{id:"card-element"}})]),this._v(" "),e("div",{staticClass:"ElementsModal--error-message",attrs:{id:"card-errors",role:"alert"}})])},function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ElementsModal--form"},[n("label",{staticClass:"select"},[n("span",{staticClass:"ElementsModal--form-label spacer"},[t._v("Country or region")]),t._v(" "),n("div",{staticClass:"ElementsModal--form-select",attrs:{id:"country"}},[n("select",{attrs:{name:"country",autocomplete:"billing country","aria-label":"Country or region"}},[n("option",{attrs:{value:"AF"}},[t._v("Afghanistan")]),n("option",{attrs:{value:"AX"}},[t._v("Åland Islands")]),n("option",{attrs:{value:"AL"}},[t._v("Albania")]),n("option",{attrs:{value:"DZ"}},[t._v("Algeria")]),n("option",{attrs:{value:"AD"}},[t._v("Andorra")]),n("option",{attrs:{value:"AO"}},[t._v("Angola")]),n("option",{attrs:{value:"AI"}},[t._v("Anguilla")]),n("option",{attrs:{value:"AQ"}},[t._v("Antarctica")]),n("option",{attrs:{value:"AG"}},[t._v("Antigua & Barbuda")]),n("option",{attrs:{value:"AR"}},[t._v("Argentina")]),n("option",{attrs:{value:"AM"}},[t._v("Armenia")]),n("option",{attrs:{value:"AW"}},[t._v("Aruba")]),n("option",{attrs:{value:"AC"}},[t._v("Ascension Island")]),n("option",{attrs:{value:"AU"}},[t._v("Australia")]),n("option",{attrs:{value:"AT"}},[t._v("Austria")]),n("option",{attrs:{value:"AZ"}},[t._v("Azerbaijan")]),n("option",{attrs:{value:"BS"}},[t._v("Bahamas")]),n("option",{attrs:{value:"BH"}},[t._v("Bahrain")]),n("option",{attrs:{value:"BD"}},[t._v("Bangladesh")]),n("option",{attrs:{value:"BB"}},[t._v("Barbados")]),n("option",{attrs:{value:"BY"}},[t._v("Belarus")]),n("option",{attrs:{value:"BE"}},[t._v("Belgium")]),n("option",{attrs:{value:"BZ"}},[t._v("Belize")]),n("option",{attrs:{value:"BJ"}},[t._v("Benin")]),n("option",{attrs:{value:"BM"}},[t._v("Bermuda")]),n("option",{attrs:{value:"BT"}},[t._v("Bhutan")]),n("option",{attrs:{value:"BO"}},[t._v("Bolivia")]),n("option",{attrs:{value:"BA"}},[t._v("Bosnia & Herzegovina")]),n("option",{attrs:{value:"BW"}},[t._v("Botswana")]),n("option",{attrs:{value:"BV"}},[t._v("Bouvet Island")]),n("option",{attrs:{value:"BR"}},[t._v("Brazil")]),n("option",{attrs:{value:"IO"}},[t._v("British Indian Ocean Territory")]),n("option",{attrs:{value:"VG"}},[t._v("British Virgin Islands")]),n("option",{attrs:{value:"BN"}},[t._v("Brunei")]),n("option",{attrs:{value:"BG"}},[t._v("Bulgaria")]),n("option",{attrs:{value:"BF"}},[t._v("Burkina Faso")]),n("option",{attrs:{value:"BI"}},[t._v("Burundi")]),n("option",{attrs:{value:"KH"}},[t._v("Cambodia")]),n("option",{attrs:{value:"CM"}},[t._v("Cameroon")]),n("option",{attrs:{value:"CA"}},[t._v("Canada")]),n("option",{attrs:{value:"CV"}},[t._v("Cape Verde")]),n("option",{attrs:{value:"BQ"}},[t._v("Caribbean Netherlands")]),n("option",{attrs:{value:"KY"}},[t._v("Cayman Islands")]),n("option",{attrs:{value:"CF"}},[t._v("Central African Republic")]),n("option",{attrs:{value:"TD"}},[t._v("Chad")]),n("option",{attrs:{value:"CL"}},[t._v("Chile")]),n("option",{attrs:{value:"CN"}},[t._v("China")]),n("option",{attrs:{value:"CO"}},[t._v("Colombia")]),n("option",{attrs:{value:"KM"}},[t._v("Comoros")]),n("option",{attrs:{value:"CG"}},[t._v("Congo - Brazzaville")]),n("option",{attrs:{value:"CD"}},[t._v("Congo - Kinshasa")]),n("option",{attrs:{value:"CK"}},[t._v("Cook Islands")]),n("option",{attrs:{value:"CR"}},[t._v("Costa Rica")]),n("option",{attrs:{value:"CI"}},[t._v("Côte d’Ivoire")]),n("option",{attrs:{value:"HR"}},[t._v("Croatia")]),n("option",{attrs:{value:"CW"}},[t._v("Curaçao")]),n("option",{attrs:{value:"CY"}},[t._v("Cyprus")]),n("option",{attrs:{value:"CZ"}},[t._v("Czechia")]),n("option",{attrs:{value:"DK"}},[t._v("Denmark")]),n("option",{attrs:{value:"DJ"}},[t._v("Djibouti")]),n("option",{attrs:{value:"DM"}},[t._v("Dominica")]),n("option",{attrs:{value:"DO"}},[t._v("Dominican Republic")]),n("option",{attrs:{value:"EC"}},[t._v("Ecuador")]),n("option",{attrs:{value:"EG"}},[t._v("Egypt")]),n("option",{attrs:{value:"SV"}},[t._v("El Salvador")]),n("option",{attrs:{value:"GQ"}},[t._v("Equatorial Guinea")]),n("option",{attrs:{value:"ER"}},[t._v("Eritrea")]),n("option",{attrs:{value:"EE"}},[t._v("Estonia")]),n("option",{attrs:{value:"ET"}},[t._v("Ethiopia")]),n("option",{attrs:{value:"FK"}},[t._v("Falkland Islands")]),n("option",{attrs:{value:"FO"}},[t._v("Faroe Islands")]),n("option",{attrs:{value:"FJ"}},[t._v("Fiji")]),n("option",{attrs:{value:"FI"}},[t._v("Finland")]),n("option",{attrs:{value:"FR"}},[t._v("France")]),n("option",{attrs:{value:"GF"}},[t._v("French Guiana")]),n("option",{attrs:{value:"PF"}},[t._v("French Polynesia")]),n("option",{attrs:{value:"TF"}},[t._v("French Southern Territories")]),n("option",{attrs:{value:"GA"}},[t._v("Gabon")]),n("option",{attrs:{value:"GM"}},[t._v("Gambia")]),n("option",{attrs:{value:"GE"}},[t._v("Georgia")]),n("option",{attrs:{value:"DE"}},[t._v("Germany")]),n("option",{attrs:{value:"GH"}},[t._v("Ghana")]),n("option",{attrs:{value:"GI"}},[t._v("Gibraltar")]),n("option",{attrs:{value:"GR"}},[t._v("Greece")]),n("option",{attrs:{value:"GL"}},[t._v("Greenland")]),n("option",{attrs:{value:"GD"}},[t._v("Grenada")]),n("option",{attrs:{value:"GP"}},[t._v("Guadeloupe")]),n("option",{attrs:{value:"GU"}},[t._v("Guam")]),n("option",{attrs:{value:"GT"}},[t._v("Guatemala")]),n("option",{attrs:{value:"GG"}},[t._v("Guernsey")]),n("option",{attrs:{value:"GN"}},[t._v("Guinea")]),n("option",{attrs:{value:"GW"}},[t._v("Guinea-Bissau")]),n("option",{attrs:{value:"GY"}},[t._v("Guyana")]),n("option",{attrs:{value:"HT"}},[t._v("Haiti")]),n("option",{attrs:{value:"HN"}},[t._v("Honduras")]),n("option",{attrs:{value:"HK"}},[t._v("Hong Kong SAR China")]),n("option",{attrs:{value:"HU"}},[t._v("Hungary")]),n("option",{attrs:{value:"IS"}},[t._v("Iceland")]),n("option",{attrs:{value:"IN"}},[t._v("India")]),n("option",{attrs:{value:"ID"}},[t._v("Indonesia")]),n("option",{attrs:{value:"IR"}},[t._v("Iran")]),n("option",{attrs:{value:"IQ"}},[t._v("Iraq")]),n("option",{attrs:{value:"IE"}},[t._v("Ireland")]),n("option",{attrs:{value:"IM"}},[t._v("Isle of Man")]),n("option",{attrs:{value:"IL"}},[t._v("Israel")]),n("option",{attrs:{value:"IT"}},[t._v("Italy")]),n("option",{attrs:{value:"JM"}},[t._v("Jamaica")]),n("option",{attrs:{value:"JP"}},[t._v("Japan")]),n("option",{attrs:{value:"JE"}},[t._v("Jersey")]),n("option",{attrs:{value:"JO"}},[t._v("Jordan")]),n("option",{attrs:{value:"KZ"}},[t._v("Kazakhstan")]),n("option",{attrs:{value:"KE"}},[t._v("Kenya")]),n("option",{attrs:{value:"KI"}},[t._v("Kiribati")]),n("option",{attrs:{value:"XK"}},[t._v("Kosovo")]),n("option",{attrs:{value:"KW"}},[t._v("Kuwait")]),n("option",{attrs:{value:"KG"}},[t._v("Kyrgyzstan")]),n("option",{attrs:{value:"LA"}},[t._v("Laos")]),n("option",{attrs:{value:"LV"}},[t._v("Latvia")]),n("option",{attrs:{value:"LB"}},[t._v("Lebanon")]),n("option",{attrs:{value:"LS"}},[t._v("Lesotho")]),n("option",{attrs:{value:"LR"}},[t._v("Liberia")]),n("option",{attrs:{value:"LY"}},[t._v("Libya")]),n("option",{attrs:{value:"LI"}},[t._v("Liechtenstein")]),n("option",{attrs:{value:"LT"}},[t._v("Lithuania")]),n("option",{attrs:{value:"LU"}},[t._v("Luxembourg")]),n("option",{attrs:{value:"MO"}},[t._v("Macau SAR China")]),n("option",{attrs:{value:"MK"}},[t._v("Macedonia")]),n("option",{attrs:{value:"MG"}},[t._v("Madagascar")]),n("option",{attrs:{value:"MW"}},[t._v("Malawi")]),n("option",{attrs:{value:"MY"}},[t._v("Malaysia")]),n("option",{attrs:{value:"MV"}},[t._v("Maldives")]),n("option",{attrs:{value:"ML"}},[t._v("Mali")]),n("option",{attrs:{value:"MT"}},[t._v("Malta")]),n("option",{attrs:{value:"MQ"}},[t._v("Martinique")]),n("option",{attrs:{value:"MR"}},[t._v("Mauritania")]),n("option",{attrs:{value:"MU"}},[t._v("Mauritius")]),n("option",{attrs:{value:"YT"}},[t._v("Mayotte")]),n("option",{attrs:{value:"MX"}},[t._v("Mexico")]),n("option",{attrs:{value:"MD"}},[t._v("Moldova")]),n("option",{attrs:{value:"MC"}},[t._v("Monaco")]),n("option",{attrs:{value:"MN"}},[t._v("Mongolia")]),n("option",{attrs:{value:"ME"}},[t._v("Montenegro")]),n("option",{attrs:{value:"MS"}},[t._v("Montserrat")]),n("option",{attrs:{value:"MA"}},[t._v("Morocco")]),n("option",{attrs:{value:"MZ"}},[t._v("Mozambique")]),n("option",{attrs:{value:"MM"}},[t._v("Myanmar (Burma)")]),n("option",{attrs:{value:"NA"}},[t._v("Namibia")]),n("option",{attrs:{value:"NR"}},[t._v("Nauru")]),n("option",{attrs:{value:"NP"}},[t._v("Nepal")]),n("option",{attrs:{value:"NL"}},[t._v("Netherlands")]),n("option",{attrs:{value:"NC"}},[t._v("New Caledonia")]),n("option",{attrs:{value:"NZ"}},[t._v("New Zealand")]),n("option",{attrs:{value:"NI"}},[t._v("Nicaragua")]),n("option",{attrs:{value:"NE"}},[t._v("Niger")]),n("option",{attrs:{value:"NG"}},[t._v("Nigeria")]),n("option",{attrs:{value:"NU"}},[t._v("Niue")]),n("option",{attrs:{value:"NO"}},[t._v("Norway")]),n("option",{attrs:{value:"OM"}},[t._v("Oman")]),n("option",{attrs:{value:"PK"}},[t._v("Pakistan")]),n("option",{attrs:{value:"PS"}},[t._v("Palestinian Territories")]),n("option",{attrs:{value:"PA"}},[t._v("Panama")]),n("option",{attrs:{value:"PG"}},[t._v("Papua New Guinea")]),n("option",{attrs:{value:"PY"}},[t._v("Paraguay")]),n("option",{attrs:{value:"PE"}},[t._v("Peru")]),n("option",{attrs:{value:"PH"}},[t._v("Philippines")]),n("option",{attrs:{value:"PN"}},[t._v("Pitcairn Islands")]),n("option",{attrs:{value:"PL"}},[t._v("Poland")]),n("option",{attrs:{value:"PT"}},[t._v("Portugal")]),n("option",{attrs:{value:"PR"}},[t._v("Puerto Rico")]),n("option",{attrs:{value:"QA"}},[t._v("Qatar")]),n("option",{attrs:{value:"RE"}},[t._v("Réunion")]),n("option",{attrs:{value:"RO"}},[t._v("Romania")]),n("option",{attrs:{value:"RU"}},[t._v("Russia")]),n("option",{attrs:{value:"RW"}},[t._v("Rwanda")]),n("option",{attrs:{value:"WS"}},[t._v("Samoa")]),n("option",{attrs:{value:"SM"}},[t._v("San Marino")]),n("option",{attrs:{value:"ST"}},[t._v("São Tomé & Príncipe")]),n("option",{attrs:{value:"SA"}},[t._v("Saudi Arabia")]),n("option",{attrs:{value:"SN"}},[t._v("Senegal")]),n("option",{attrs:{value:"RS"}},[t._v("Serbia")]),n("option",{attrs:{value:"SC"}},[t._v("Seychelles")]),n("option",{attrs:{value:"SL"}},[t._v("Sierra Leone")]),n("option",{attrs:{value:"SG"}},[t._v("Singapore")]),n("option",{attrs:{value:"SX"}},[t._v("Sint Maarten")]),n("option",{attrs:{value:"SK"}},[t._v("Slovakia")]),n("option",{attrs:{value:"SI"}},[t._v("Slovenia")]),n("option",{attrs:{value:"SB"}},[t._v("Solomon Islands")]),n("option",{attrs:{value:"SO"}},[t._v("Somalia")]),n("option",{attrs:{value:"ZA"}},[t._v("South Africa")]),n("option",{attrs:{value:"GS"}},[t._v("South Georgia & South Sandwich Islands")]),n("option",{attrs:{value:"KR"}},[t._v("South Korea")]),n("option",{attrs:{value:"SS"}},[t._v("South Sudan")]),n("option",{attrs:{value:"ES"}},[t._v("Spain")]),n("option",{attrs:{value:"LK"}},[t._v("Sri Lanka")]),n("option",{attrs:{value:"BL"}},[t._v("St. Barthélemy")]),n("option",{attrs:{value:"SH"}},[t._v("St. Helena")]),n("option",{attrs:{value:"KN"}},[t._v("St. Kitts & Nevis")]),n("option",{attrs:{value:"LC"}},[t._v("St. Lucia")]),n("option",{attrs:{value:"MF"}},[t._v("St. Martin")]),n("option",{attrs:{value:"PM"}},[t._v("St. Pierre & Miquelon")]),n("option",{attrs:{value:"VC"}},[t._v("St. Vincent & Grenadines")]),n("option",{attrs:{value:"SR"}},[t._v("Suriname")]),n("option",{attrs:{value:"SJ"}},[t._v("Svalbard & Jan Mayen")]),n("option",{attrs:{value:"SZ"}},[t._v("Swaziland")]),n("option",{attrs:{value:"SE"}},[t._v("Sweden")]),n("option",{attrs:{value:"CH"}},[t._v("Switzerland")]),n("option",{attrs:{value:"TW"}},[t._v("Taiwan")]),n("option",{attrs:{value:"TJ"}},[t._v("Tajikistan")]),n("option",{attrs:{value:"TZ"}},[t._v("Tanzania")]),n("option",{attrs:{value:"TH"}},[t._v("Thailand")]),n("option",{attrs:{value:"TL"}},[t._v("Timor-Leste")]),n("option",{attrs:{value:"TG"}},[t._v("Togo")]),n("option",{attrs:{value:"TK"}},[t._v("Tokelau")]),n("option",{attrs:{value:"TO"}},[t._v("Tonga")]),n("option",{attrs:{value:"TT"}},[t._v("Trinidad & Tobago")]),n("option",{attrs:{value:"TA"}},[t._v("Tristan da Cunha")]),n("option",{attrs:{value:"TN"}},[t._v("Tunisia")]),n("option",{attrs:{value:"TR"}},[t._v("Turkey")]),n("option",{attrs:{value:"TM"}},[t._v("Turkmenistan")]),n("option",{attrs:{value:"TC"}},[t._v("Turks & Caicos Islands")]),n("option",{attrs:{value:"TV"}},[t._v("Tuvalu")]),n("option",{attrs:{value:"UG"}},[t._v("Uganda")]),n("option",{attrs:{value:"UA"}},[t._v("Ukraine")]),n("option",{attrs:{value:"AE"}},[t._v("United Arab Emirates")]),n("option",{attrs:{value:"GB"}},[t._v("United Kingdom")]),n("option",{attrs:{value:"US",selected:"selected"}},[t._v("United States")]),n("option",{attrs:{value:"UY"}},[t._v("Uruguay")]),n("option",{attrs:{value:"UZ"}},[t._v("Uzbekistan")]),n("option",{attrs:{value:"VU"}},[t._v("Vanuatu")]),n("option",{attrs:{value:"VA"}},[t._v("Vatican City")]),n("option",{attrs:{value:"VE"}},[t._v("Venezuela")]),n("option",{attrs:{value:"VN"}},[t._v("Vietnam")]),n("option",{attrs:{value:"WF"}},[t._v("Wallis & Futuna")]),n("option",{attrs:{value:"EH"}},[t._v("Western Sahara")]),n("option",{attrs:{value:"YE"}},[t._v("Yemen")]),n("option",{attrs:{value:"ZM"}},[t._v("Zambia")]),n("option",{attrs:{value:"ZW"}},[t._v("Zimbabwe")])])])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"footer ElementsModal--footer-text"},[this._v("\n                        By purchasing this chair, you agree to KAVHOLM’s\n                        "),e("a",{staticClass:"ElementsModal--footer-text",attrs:{href:"stripe.com"}},[this._v("Terms and Conditions.")])])}],!1,null,"27732283",null);e.default=s.exports},function(t,e,n){"use strict";n.r(e);n(214);class r{constructor(t){this._defaultOptions={auth:{headers:{}},authEndpoint:"/broadcasting/auth",broadcaster:"pusher",csrfToken:null,host:null,key:null,namespace:"App.Events"},this.setOptions(t),this.connect()}setOptions(t){return this.options=Object.assign(this._defaultOptions,t),this.csrfToken()&&(this.options.auth.headers["X-CSRF-TOKEN"]=this.csrfToken()),t}csrfToken(){let t;return"undefined"!=typeof window&&window.Laravel&&window.Laravel.csrfToken?window.Laravel.csrfToken:this.options.csrfToken?this.options.csrfToken:"undefined"!=typeof document&&"function"==typeof document.querySelector&&(t=document.querySelector('meta[name="csrf-token"]'))?t.getAttribute("content"):null}}class i{listenForWhisper(t,e){return this.listen(".client-"+t,e)}notification(t){return this.listen(".Illuminate\\Notifications\\Events\\BroadcastNotificationCreated",t)}stopListeningForWhisper(t){return this.stopListening(".client-"+t)}}class o{constructor(t){this.setNamespace(t)}format(t){return"."===t.charAt(0)||"\\"===t.charAt(0)?t.substr(1):(this.namespace&&(t=this.namespace+"."+t),t.replace(/\./g,"\\"))}setNamespace(t){this.namespace=t}}class a extends i{constructor(t,e,n){super(),this.name=e,this.pusher=t,this.options=n,this.eventFormatter=new o(this.options.namespace),this.subscribe()}subscribe(){this.subscription=this.pusher.subscribe(this.name)}unsubscribe(){this.pusher.unsubscribe(this.name)}listen(t,e){return this.on(this.eventFormatter.format(t),e),this}stopListening(t){return this.subscription.unbind(this.eventFormatter.format(t)),this}on(t,e){return this.subscription.bind(t,e),this}}class s extends a{whisper(t,e){return this.pusher.channels.channels[this.name].trigger("client-"+t,e),this}}class u extends a{whisper(t,e){return this.pusher.channels.channels[this.name].trigger("client-"+t,e),this}}class l extends a{here(t){return this.on("pusher:subscription_succeeded",e=>{t(Object.keys(e.members).map(t=>e.members[t]))}),this}joining(t){return this.on("pusher:member_added",e=>{t(e.info)}),this}leaving(t){return this.on("pusher:member_removed",e=>{t(e.info)}),this}whisper(t,e){return this.pusher.channels.channels[this.name].trigger("client-"+t,e),this}}class c extends i{constructor(t,e,n){super(),this.events={},this.name=e,this.socket=t,this.options=n,this.eventFormatter=new o(this.options.namespace),this.subscribe(),this.configureReconnector()}subscribe(){this.socket.emit("subscribe",{channel:this.name,auth:this.options.auth||{}})}unsubscribe(){this.unbind(),this.socket.emit("unsubscribe",{channel:this.name,auth:this.options.auth||{}})}listen(t,e){return this.on(this.eventFormatter.format(t),e),this}stopListening(t){const e=this.eventFormatter.format(t);return this.socket.removeListener(e),delete this.events[e],this}on(t,e){let n=(t,n)=>{this.name==t&&e(n)};this.socket.on(t,n),this.bind(t,n)}configureReconnector(){const t=()=>{this.subscribe()};this.socket.on("reconnect",t),this.bind("reconnect",t)}bind(t,e){this.events[t]=this.events[t]||[],this.events[t].push(e)}unbind(){Object.keys(this.events).forEach(t=>{this.events[t].forEach(e=>{this.socket.removeListener(t,e)}),delete this.events[t]})}}class f extends c{whisper(t,e){return this.socket.emit("client event",{channel:this.name,event:"client-"+t,data:e}),this}}class d extends f{here(t){return this.on("presence:subscribed",e=>{t(e.map(t=>t.user_info))}),this}joining(t){return this.on("presence:joining",e=>t(e.user_info)),this}leaving(t){return this.on("presence:leaving",e=>t(e.user_info)),this}}class h extends i{subscribe(){}unsubscribe(){}listen(t,e){return this}stopListening(t){return this}on(t,e){return this}}class p extends h{whisper(t,e){return this}}class m extends h{here(t){return this}joining(t){return this}leaving(t){return this}whisper(t,e){return this}}class v extends r{constructor(){super(...arguments),this.channels={}}connect(){void 0!==this.options.client?this.pusher=this.options.client:this.pusher=new Pusher(this.options.key,this.options)}listen(t,e,n){return this.channel(t).listen(e,n)}channel(t){return this.channels[t]||(this.channels[t]=new a(this.pusher,t,this.options)),this.channels[t]}privateChannel(t){return this.channels["private-"+t]||(this.channels["private-"+t]=new s(this.pusher,"private-"+t,this.options)),this.channels["private-"+t]}encryptedPrivateChannel(t){return this.channels["private-encrypted-"+t]||(this.channels["private-encrypted-"+t]=new u(this.pusher,"private-encrypted-"+t,this.options)),this.channels["private-encrypted-"+t]}presenceChannel(t){return this.channels["presence-"+t]||(this.channels["presence-"+t]=new l(this.pusher,"presence-"+t,this.options)),this.channels["presence-"+t]}leave(t){[t,"private-"+t,"presence-"+t].forEach((t,e)=>{this.leaveChannel(t)})}leaveChannel(t){this.channels[t]&&(this.channels[t].unsubscribe(),delete this.channels[t])}socketId(){return this.pusher.connection.socket_id}disconnect(){this.pusher.disconnect()}}class g extends r{constructor(){super(...arguments),this.channels={}}connect(){let t=this.getSocketIO();return this.socket=t(this.options.host,this.options),this.socket}getSocketIO(){if(void 0!==this.options.client)return this.options.client;if("undefined"!=typeof io)return io;throw new Error("Socket.io client not found. Should be globally available or passed via options.client")}listen(t,e,n){return this.channel(t).listen(e,n)}channel(t){return this.channels[t]||(this.channels[t]=new c(this.socket,t,this.options)),this.channels[t]}privateChannel(t){return this.channels["private-"+t]||(this.channels["private-"+t]=new f(this.socket,"private-"+t,this.options)),this.channels["private-"+t]}presenceChannel(t){return this.channels["presence-"+t]||(this.channels["presence-"+t]=new d(this.socket,"presence-"+t,this.options)),this.channels["presence-"+t]}leave(t){[t,"private-"+t,"presence-"+t].forEach(t=>{this.leaveChannel(t)})}leaveChannel(t){this.channels[t]&&(this.channels[t].unsubscribe(),delete this.channels[t])}socketId(){return this.socket.id}disconnect(){this.socket.disconnect()}}class b extends r{constructor(){super(...arguments),this.channels={}}connect(){}listen(t,e,n){return new h}channel(t){return new h}privateChannel(t){return new p}presenceChannel(t){return new m}leave(t){}leaveChannel(t){}socketId(){return"fake-socket-id"}disconnect(){}}var y=class{constructor(t){this.options=t,this.connect(),this.options.withoutInterceptors||this.registerInterceptors()}channel(t){return this.connector.channel(t)}connect(){"pusher"==this.options.broadcaster?this.connector=new v(this.options):"socket.io"==this.options.broadcaster?this.connector=new g(this.options):"null"==this.options.broadcaster?this.connector=new b(this.options):"function"==typeof this.options.broadcaster&&(this.connector=new this.options.broadcaster(this.options))}disconnect(){this.connector.disconnect()}join(t){return this.connector.presenceChannel(t)}leave(t){this.connector.leave(t)}leaveChannel(t){this.connector.leaveChannel(t)}listen(t,e,n){return this.connector.listen(t,e,n)}private(t){return this.connector.privateChannel(t)}encryptedPrivate(t){return this.connector.encryptedPrivateChannel(t)}socketId(){return this.connector.socketId()}registerInterceptors(){"function"==typeof Vue&&Vue.http&&this.registerVueRequestInterceptor(),"function"==typeof axios&&this.registerAxiosRequestInterceptor(),"function"==typeof jQuery&&this.registerjQueryAjaxSetup()}registerVueRequestInterceptor(){Vue.http.interceptors.push((t,e)=>{this.socketId()&&t.headers.set("X-Socket-ID",this.socketId()),e()})}registerAxiosRequestInterceptor(){axios.interceptors.request.use(t=>(this.socketId()&&(t.headers["X-Socket-Id"]=this.socketId()),t))}registerjQueryAjaxSetup(){void 0!==jQuery.ajax&&jQuery.ajaxPrefilter((t,e,n)=>{this.socketId()&&n.setRequestHeader("X-Socket-Id",this.socketId())})}};window._=n(68);try{window.Popper=n(108).default,window.$=window.jQuery=n(69),n(216)}catch(t){}window.axios=n(217),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",window.Pusher=n(234),window.Echo=new y({broadcaster:"pusher",key:"459380cb6d0a29d6861f",cluster:"eu",encrypted:!0})},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"01f9":function(t,e,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),u=n("41a0"),l=n("7f20"),c=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,p,m,v,g){u(n,e,p);var b,y,w,_=function(t){if(!d&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},k=e+" Iterator",M="values"==m,x=!1,S=t.prototype,C=S[f]||S["@@iterator"]||m&&S[m],A=C||_(m),T=m?M?_("entries"):A:void 0,E="Array"==e&&S.entries||C;if(E&&(w=c(E.call(new t)))!==Object.prototype&&w.next&&(l(w,k,!0),r||"function"==typeof w[f]||a(w,f,h)),M&&C&&"values"!==C.name&&(x=!0,A=function(){return C.call(this)}),r&&!g||!d&&!x&&S[f]||a(S,f,A),s[e]=A,s[k]=h,m)if(b={values:M?A:_("values"),keys:v?A:_("keys"),entries:T},g)for(y in b)y in S||o(S,y,b[y]);else i(i.P+i.F*(d||x),e,b);return b}},"07e3":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"0d58":function(t,e,n){var r=n("ce10"),i=n("e11e");t.exports=Object.keys||function(t){return r(t,i)}},"11e9":function(t,e,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),u=n("c69a"),l=Object.getOwnPropertyDescriptor;e.f=n("9e1e")?l:function(t,e){if(t=o(t),e=a(e,!0),u)try{return l(t,e)}catch(t){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},1495:function(t,e,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");t.exports=n("9e1e")?Object.defineProperties:function(t,e){i(t);for(var n,a=o(e),s=a.length,u=0;s>u;)r.f(t,n=a[u++],e[n]);return t}},"1bc3":function(t,e,n){var r=n("f772");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"1ec9":function(t,e,n){var r=n("f772"),i=n("e53d").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"1ecd":function(t,e,n){"use strict";var r=n("629f");n.n(r).a},"230e":function(t,e,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},2621:function(t,e){e.f=Object.getOwnPropertySymbols},"294c":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"2aba":function(t,e,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),u=(""+s).split("toString");n("8378").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||i(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(t,e,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},u=function(){var t,e=n("230e")("iframe"),r=o.length;for(e.style.display="none",n("fab2").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[a]=t):n=u(),void 0===e?n:i(n,e)}},"2b4c":function(t,e,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},"2d00":function(t,e){t.exports=!1},"2d95":function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},"2ef0":function(t,e,n){(function(t,r){var i;(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",l="[object Array]",c="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Function]",p="[object GeneratorFunction]",m="[object Map]",v="[object Number]",g="[object Object]",b="[object RegExp]",y="[object Set]",w="[object String]",_="[object Symbol]",k="[object WeakMap]",M="[object ArrayBuffer]",x="[object DataView]",S="[object Float32Array]",C="[object Float64Array]",A="[object Int8Array]",T="[object Int16Array]",E="[object Int32Array]",O="[object Uint8Array]",P="[object Uint16Array]",I="[object Uint32Array]",R=/\b__p \+= '';/g,j=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,N=/&(?:amp|lt|gt|quot|#39);/g,L=/[&<>"']/g,B=RegExp(N.source),z=RegExp(L.source),F=/<%-([\s\S]+?)%>/g,q=/<%([\s\S]+?)%>/g,V=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,H=/^\w*$/,U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,K=RegExp(W.source),Y=/^\s+|\s+$/g,G=/^\s+/,Z=/\s+$/,J=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,Q=/,? & /,tt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,rt=/\w*$/,it=/^[-+]0x[0-9a-f]+$/i,ot=/^0b[01]+$/i,at=/^\[object .+?Constructor\]$/,st=/^0o[0-7]+$/i,ut=/^(?:0|[1-9]\d*)$/,lt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ct=/($^)/,ft=/['\n\r\u2028\u2029\\]/g,dt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ht="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pt="[\\ud800-\\udfff]",mt="["+ht+"]",vt="["+dt+"]",gt="\\d+",bt="[\\u2700-\\u27bf]",yt="[a-z\\xdf-\\xf6\\xf8-\\xff]",wt="[^\\ud800-\\udfff"+ht+gt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_t="\\ud83c[\\udffb-\\udfff]",kt="[^\\ud800-\\udfff]",Mt="(?:\\ud83c[\\udde6-\\uddff]){2}",xt="[\\ud800-\\udbff][\\udc00-\\udfff]",St="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ct="(?:"+yt+"|"+wt+")",At="(?:"+St+"|"+wt+")",Tt="(?:"+vt+"|"+_t+")"+"?",Et="[\\ufe0e\\ufe0f]?"+Tt+("(?:\\u200d(?:"+[kt,Mt,xt].join("|")+")[\\ufe0e\\ufe0f]?"+Tt+")*"),Ot="(?:"+[bt,Mt,xt].join("|")+")"+Et,Pt="(?:"+[kt+vt+"?",vt,Mt,xt,pt].join("|")+")",It=RegExp("['’]","g"),Rt=RegExp(vt,"g"),jt=RegExp(_t+"(?="+_t+")|"+Pt+Et,"g"),Dt=RegExp([St+"?"+yt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[mt,St,"$"].join("|")+")",At+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[mt,St+Ct,"$"].join("|")+")",St+"?"+Ct+"+(?:['’](?:d|ll|m|re|s|t|ve))?",St+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",gt,Ot].join("|"),"g"),Nt=RegExp("[\\u200d\\ud800-\\udfff"+dt+"\\ufe0e\\ufe0f]"),Lt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zt=-1,Ft={};Ft[S]=Ft[C]=Ft[A]=Ft[T]=Ft[E]=Ft[O]=Ft["[object Uint8ClampedArray]"]=Ft[P]=Ft[I]=!0,Ft[u]=Ft[l]=Ft[M]=Ft[c]=Ft[x]=Ft[f]=Ft[d]=Ft[h]=Ft[m]=Ft[v]=Ft[g]=Ft[b]=Ft[y]=Ft[w]=Ft[k]=!1;var qt={};qt[u]=qt[l]=qt[M]=qt[x]=qt[c]=qt[f]=qt[S]=qt[C]=qt[A]=qt[T]=qt[E]=qt[m]=qt[v]=qt[g]=qt[b]=qt[y]=qt[w]=qt[_]=qt[O]=qt["[object Uint8ClampedArray]"]=qt[P]=qt[I]=!0,qt[d]=qt[h]=qt[k]=!1;var Vt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$t=parseFloat,Ht=parseInt,Ut="object"==typeof t&&t&&t.Object===Object&&t,Wt="object"==typeof self&&self&&self.Object===Object&&self,Kt=Ut||Wt||Function("return this")(),Yt=e&&!e.nodeType&&e,Gt=Yt&&"object"==typeof r&&r&&!r.nodeType&&r,Zt=Gt&&Gt.exports===Yt,Jt=Zt&&Ut.process,Xt=function(){try{var t=Gt&&Gt.require&&Gt.require("util").types;return t||Jt&&Jt.binding&&Jt.binding("util")}catch(t){}}(),Qt=Xt&&Xt.isArrayBuffer,te=Xt&&Xt.isDate,ee=Xt&&Xt.isMap,ne=Xt&&Xt.isRegExp,re=Xt&&Xt.isSet,ie=Xt&&Xt.isTypedArray;function oe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function ae(t,e,n,r){for(var i=-1,o=null==t?0:t.length;++i<o;){var a=t[i];e(r,a,n(a),t)}return r}function se(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}function ue(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function le(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(!e(t[n],n,t))return!1;return!0}function ce(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function fe(t,e){return!!(null==t?0:t.length)&&_e(t,e,0)>-1}function de(t,e,n){for(var r=-1,i=null==t?0:t.length;++r<i;)if(n(e,t[r]))return!0;return!1}function he(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}function pe(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}function me(t,e,n,r){var i=-1,o=null==t?0:t.length;for(r&&o&&(n=t[++i]);++i<o;)n=e(n,t[i],i,t);return n}function ve(t,e,n,r){var i=null==t?0:t.length;for(r&&i&&(n=t[--i]);i--;)n=e(n,t[i],i,t);return n}function ge(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}var be=Se("length");function ye(t,e,n){var r;return n(t,(function(t,n,i){if(e(t,n,i))return r=n,!1})),r}function we(t,e,n,r){for(var i=t.length,o=n+(r?1:-1);r?o--:++o<i;)if(e(t[o],o,t))return o;return-1}function _e(t,e,n){return e==e?function(t,e,n){var r=n-1,i=t.length;for(;++r<i;)if(t[r]===e)return r;return-1}(t,e,n):we(t,Me,n)}function ke(t,e,n,r){for(var i=n-1,o=t.length;++i<o;)if(r(t[i],e))return i;return-1}function Me(t){return t!=t}function xe(t,e){var n=null==t?0:t.length;return n?Te(t,e)/n:NaN}function Se(t){return function(e){return null==e?void 0:e[t]}}function Ce(t){return function(e){return null==t?void 0:t[e]}}function Ae(t,e,n,r,i){return i(t,(function(t,i,o){n=r?(r=!1,t):e(n,t,i,o)})),n}function Te(t,e){for(var n,r=-1,i=t.length;++r<i;){var o=e(t[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function Ee(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function Oe(t){return function(e){return t(e)}}function Pe(t,e){return he(e,(function(e){return t[e]}))}function Ie(t,e){return t.has(e)}function Re(t,e){for(var n=-1,r=t.length;++n<r&&_e(e,t[n],0)>-1;);return n}function je(t,e){for(var n=t.length;n--&&_e(e,t[n],0)>-1;);return n}function De(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}var Ne=Ce({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Le=Ce({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function Be(t){return"\\"+Vt[t]}function ze(t){return Nt.test(t)}function Fe(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function qe(t,e){return function(n){return t(e(n))}}function Ve(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var s=t[n];s!==e&&s!==a||(t[n]=a,o[i++]=n)}return o}function $e(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}function He(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=[t,t]})),n}function Ue(t){return ze(t)?function(t){var e=jt.lastIndex=0;for(;jt.test(t);)++e;return e}(t):be(t)}function We(t){return ze(t)?function(t){return t.match(jt)||[]}(t):function(t){return t.split("")}(t)}var Ke=Ce({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var Ye=function t(e){var n,r=(e=null==e?Kt:Ye.defaults(Kt.Object(),e,Ye.pick(Kt,Bt))).Array,i=e.Date,dt=e.Error,ht=e.Function,pt=e.Math,mt=e.Object,vt=e.RegExp,gt=e.String,bt=e.TypeError,yt=r.prototype,wt=ht.prototype,_t=mt.prototype,kt=e["__core-js_shared__"],Mt=wt.toString,xt=_t.hasOwnProperty,St=0,Ct=(n=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",At=_t.toString,Tt=Mt.call(mt),Et=Kt._,Ot=vt("^"+Mt.call(xt).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pt=Zt?e.Buffer:void 0,jt=e.Symbol,Nt=e.Uint8Array,Vt=Pt?Pt.allocUnsafe:void 0,Ut=qe(mt.getPrototypeOf,mt),Wt=mt.create,Yt=_t.propertyIsEnumerable,Gt=yt.splice,Jt=jt?jt.isConcatSpreadable:void 0,Xt=jt?jt.iterator:void 0,be=jt?jt.toStringTag:void 0,Ce=function(){try{var t=Qi(mt,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ge=e.clearTimeout!==Kt.clearTimeout&&e.clearTimeout,Ze=i&&i.now!==Kt.Date.now&&i.now,Je=e.setTimeout!==Kt.setTimeout&&e.setTimeout,Xe=pt.ceil,Qe=pt.floor,tn=mt.getOwnPropertySymbols,en=Pt?Pt.isBuffer:void 0,nn=e.isFinite,rn=yt.join,on=qe(mt.keys,mt),an=pt.max,sn=pt.min,un=i.now,ln=e.parseInt,cn=pt.random,fn=yt.reverse,dn=Qi(e,"DataView"),hn=Qi(e,"Map"),pn=Qi(e,"Promise"),mn=Qi(e,"Set"),vn=Qi(e,"WeakMap"),gn=Qi(mt,"create"),bn=vn&&new vn,yn={},wn=Ao(dn),_n=Ao(hn),kn=Ao(pn),Mn=Ao(mn),xn=Ao(vn),Sn=jt?jt.prototype:void 0,Cn=Sn?Sn.valueOf:void 0,An=Sn?Sn.toString:void 0;function Tn(t){if(Ha(t)&&!Ra(t)&&!(t instanceof In)){if(t instanceof Pn)return t;if(xt.call(t,"__wrapped__"))return To(t)}return new Pn(t)}var En=function(){function t(){}return function(e){if(!$a(e))return{};if(Wt)return Wt(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function On(){}function Pn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}function In(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function jn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Dn(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Nn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Dn;++e<n;)this.add(t[e])}function Ln(t){var e=this.__data__=new jn(t);this.size=e.size}function Bn(t,e){var n=Ra(t),r=!n&&Ia(t),i=!n&&!r&&La(t),o=!n&&!r&&!i&&Xa(t),a=n||r||i||o,s=a?Ee(t.length,gt):[],u=s.length;for(var l in t)!e&&!xt.call(t,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||ao(l,u))||s.push(l);return s}function zn(t){var e=t.length;return e?t[Nr(0,e-1)]:void 0}function Fn(t,e){return xo(gi(t),Gn(e,0,t.length))}function qn(t){return xo(gi(t))}function Vn(t,e,n){(void 0!==n&&!Ea(t[e],n)||void 0===n&&!(e in t))&&Kn(t,e,n)}function $n(t,e,n){var r=t[e];xt.call(t,e)&&Ea(r,n)&&(void 0!==n||e in t)||Kn(t,e,n)}function Hn(t,e){for(var n=t.length;n--;)if(Ea(t[n][0],e))return n;return-1}function Un(t,e,n,r){return tr(t,(function(t,i,o){e(r,t,n(t),o)})),r}function Wn(t,e){return t&&bi(e,ws(e),t)}function Kn(t,e,n){"__proto__"==e&&Ce?Ce(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Yn(t,e){for(var n=-1,i=e.length,o=r(i),a=null==t;++n<i;)o[n]=a?void 0:ms(t,e[n]);return o}function Gn(t,e,n){return t==t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}function Zn(t,e,n,r,i,o){var a,s=1&e,l=2&e,d=4&e;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!$a(t))return t;var k=Ra(t);if(k){if(a=function(t){var e=t.length,n=new t.constructor(e);e&&"string"==typeof t[0]&&xt.call(t,"index")&&(n.index=t.index,n.input=t.input);return n}(t),!s)return gi(t,a)}else{var R=no(t),j=R==h||R==p;if(La(t))return fi(t,s);if(R==g||R==u||j&&!i){if(a=l||j?{}:io(t),!s)return l?function(t,e){return bi(t,eo(t),e)}(t,function(t,e){return t&&bi(e,_s(e),t)}(a,t)):function(t,e){return bi(t,to(t),e)}(t,Wn(a,t))}else{if(!qt[R])return i?t:{};a=function(t,e,n){var r=t.constructor;switch(e){case M:return di(t);case c:case f:return new r(+t);case x:return function(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case S:case C:case A:case T:case E:case O:case"[object Uint8ClampedArray]":case P:case I:return hi(t,n);case m:return new r;case v:case w:return new r(t);case b:return function(t){var e=new t.constructor(t.source,rt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case y:return new r;case _:return i=t,Cn?mt(Cn.call(i)):{}}var i}(t,R,s)}}o||(o=new Ln);var D=o.get(t);if(D)return D;o.set(t,a),Ga(t)?t.forEach((function(r){a.add(Zn(r,e,n,r,t,o))})):Ua(t)&&t.forEach((function(r,i){a.set(i,Zn(r,e,n,i,t,o))}));var N=k?void 0:(d?l?Wi:Ui:l?_s:ws)(t);return se(N||t,(function(r,i){N&&(r=t[i=r]),$n(a,i,Zn(r,e,n,i,t,o))})),a}function Jn(t,e,n){var r=n.length;if(null==t)return!r;for(t=mt(t);r--;){var i=n[r],o=e[i],a=t[i];if(void 0===a&&!(i in t)||!o(a))return!1}return!0}function Xn(t,e,n){if("function"!=typeof t)throw new bt(o);return wo((function(){t.apply(void 0,n)}),e)}function Qn(t,e,n,r){var i=-1,o=fe,a=!0,s=t.length,u=[],l=e.length;if(!s)return u;n&&(e=he(e,Oe(n))),r?(o=de,a=!1):e.length>=200&&(o=Ie,a=!1,e=new Nn(e));t:for(;++i<s;){var c=t[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f==f){for(var d=l;d--;)if(e[d]===f)continue t;u.push(c)}else o(e,f,r)||u.push(c)}return u}Tn.templateSettings={escape:F,evaluate:q,interpolate:V,variable:"",imports:{_:Tn}},Tn.prototype=On.prototype,Tn.prototype.constructor=Tn,Pn.prototype=En(On.prototype),Pn.prototype.constructor=Pn,In.prototype=En(On.prototype),In.prototype.constructor=In,Rn.prototype.clear=function(){this.__data__=gn?gn(null):{},this.size=0},Rn.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Rn.prototype.get=function(t){var e=this.__data__;if(gn){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return xt.call(e,t)?e[t]:void 0},Rn.prototype.has=function(t){var e=this.__data__;return gn?void 0!==e[t]:xt.call(e,t)},Rn.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=gn&&void 0===e?"__lodash_hash_undefined__":e,this},jn.prototype.clear=function(){this.__data__=[],this.size=0},jn.prototype.delete=function(t){var e=this.__data__,n=Hn(e,t);return!(n<0)&&(n==e.length-1?e.pop():Gt.call(e,n,1),--this.size,!0)},jn.prototype.get=function(t){var e=this.__data__,n=Hn(e,t);return n<0?void 0:e[n][1]},jn.prototype.has=function(t){return Hn(this.__data__,t)>-1},jn.prototype.set=function(t,e){var n=this.__data__,r=Hn(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Dn.prototype.clear=function(){this.size=0,this.__data__={hash:new Rn,map:new(hn||jn),string:new Rn}},Dn.prototype.delete=function(t){var e=Ji(this,t).delete(t);return this.size-=e?1:0,e},Dn.prototype.get=function(t){return Ji(this,t).get(t)},Dn.prototype.has=function(t){return Ji(this,t).has(t)},Dn.prototype.set=function(t,e){var n=Ji(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Nn.prototype.add=Nn.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Nn.prototype.has=function(t){return this.__data__.has(t)},Ln.prototype.clear=function(){this.__data__=new jn,this.size=0},Ln.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Ln.prototype.get=function(t){return this.__data__.get(t)},Ln.prototype.has=function(t){return this.__data__.has(t)},Ln.prototype.set=function(t,e){var n=this.__data__;if(n instanceof jn){var r=n.__data__;if(!hn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Dn(r)}return n.set(t,e),this.size=n.size,this};var tr=_i(ur),er=_i(lr,!0);function nr(t,e){var n=!0;return tr(t,(function(t,r,i){return n=!!e(t,r,i)})),n}function rr(t,e,n){for(var r=-1,i=t.length;++r<i;){var o=t[r],a=e(o);if(null!=a&&(void 0===s?a==a&&!Ja(a):n(a,s)))var s=a,u=o}return u}function ir(t,e){var n=[];return tr(t,(function(t,r,i){e(t,r,i)&&n.push(t)})),n}function or(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=oo),i||(i=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?or(s,e-1,n,r,i):pe(i,s):r||(i[i.length]=s)}return i}var ar=ki(),sr=ki(!0);function ur(t,e){return t&&ar(t,e,ws)}function lr(t,e){return t&&sr(t,e,ws)}function cr(t,e){return ce(e,(function(e){return Fa(t[e])}))}function fr(t,e){for(var n=0,r=(e=si(e,t)).length;null!=t&&n<r;)t=t[Co(e[n++])];return n&&n==r?t:void 0}function dr(t,e,n){var r=e(t);return Ra(t)?r:pe(r,n(t))}function hr(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":be&&be in mt(t)?function(t){var e=xt.call(t,be),n=t[be];try{t[be]=void 0;var r=!0}catch(t){}var i=At.call(t);r&&(e?t[be]=n:delete t[be]);return i}(t):function(t){return At.call(t)}(t)}function pr(t,e){return t>e}function mr(t,e){return null!=t&&xt.call(t,e)}function vr(t,e){return null!=t&&e in mt(t)}function gr(t,e,n){for(var i=n?de:fe,o=t[0].length,a=t.length,s=a,u=r(a),l=1/0,c=[];s--;){var f=t[s];s&&e&&(f=he(f,Oe(e))),l=sn(f.length,l),u[s]=!n&&(e||o>=120&&f.length>=120)?new Nn(s&&f):void 0}f=t[0];var d=-1,h=u[0];t:for(;++d<o&&c.length<l;){var p=f[d],m=e?e(p):p;if(p=n||0!==p?p:0,!(h?Ie(h,m):i(c,m,n))){for(s=a;--s;){var v=u[s];if(!(v?Ie(v,m):i(t[s],m,n)))continue t}h&&h.push(m),c.push(p)}}return c}function br(t,e,n){var r=null==(t=vo(t,e=si(e,t)))?t:t[Co(zo(e))];return null==r?void 0:oe(r,t,n)}function yr(t){return Ha(t)&&hr(t)==u}function wr(t,e,n,r,i){return t===e||(null==t||null==e||!Ha(t)&&!Ha(e)?t!=t&&e!=e:function(t,e,n,r,i,o){var a=Ra(t),s=Ra(e),h=a?l:no(t),p=s?l:no(e),k=(h=h==u?g:h)==g,S=(p=p==u?g:p)==g,C=h==p;if(C&&La(t)){if(!La(e))return!1;a=!0,k=!1}if(C&&!k)return o||(o=new Ln),a||Xa(t)?$i(t,e,n,r,i,o):function(t,e,n,r,i,o,a){switch(n){case x:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case M:return!(t.byteLength!=e.byteLength||!o(new Nt(t),new Nt(e)));case c:case f:case v:return Ea(+t,+e);case d:return t.name==e.name&&t.message==e.message;case b:case w:return t==e+"";case m:var s=Fe;case y:var u=1&r;if(s||(s=$e),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var h=$i(s(t),s(e),r,i,o,a);return a.delete(t),h;case _:if(Cn)return Cn.call(t)==Cn.call(e)}return!1}(t,e,h,n,r,i,o);if(!(1&n)){var A=k&&xt.call(t,"__wrapped__"),T=S&&xt.call(e,"__wrapped__");if(A||T){var E=A?t.value():t,O=T?e.value():e;return o||(o=new Ln),i(E,O,n,r,o)}}if(!C)return!1;return o||(o=new Ln),function(t,e,n,r,i,o){var a=1&n,s=Ui(t),u=s.length,l=Ui(e).length;if(u!=l&&!a)return!1;var c=u;for(;c--;){var f=s[c];if(!(a?f in e:xt.call(e,f)))return!1}var d=o.get(t);if(d&&o.get(e))return d==e;var h=!0;o.set(t,e),o.set(e,t);var p=a;for(;++c<u;){f=s[c];var m=t[f],v=e[f];if(r)var g=a?r(v,m,f,e,t,o):r(m,v,f,t,e,o);if(!(void 0===g?m===v||i(m,v,n,r,o):g)){h=!1;break}p||(p="constructor"==f)}if(h&&!p){var b=t.constructor,y=e.constructor;b==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(h=!1)}return o.delete(t),o.delete(e),h}(t,e,n,r,i,o)}(t,e,n,r,wr,i))}function _r(t,e,n,r){var i=n.length,o=i,a=!r;if(null==t)return!o;for(t=mt(t);i--;){var s=n[i];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++i<o;){var u=(s=n[i])[0],l=t[u],c=s[1];if(a&&s[2]){if(void 0===l&&!(u in t))return!1}else{var f=new Ln;if(r)var d=r(l,c,u,t,e,f);if(!(void 0===d?wr(c,l,3,r,f):d))return!1}}return!0}function kr(t){return!(!$a(t)||(e=t,Ct&&Ct in e))&&(Fa(t)?Ot:at).test(Ao(t));var e}function Mr(t){return"function"==typeof t?t:null==t?Ws:"object"==typeof t?Ra(t)?Er(t[0],t[1]):Tr(t):eu(t)}function xr(t){if(!fo(t))return on(t);var e=[];for(var n in mt(t))xt.call(t,n)&&"constructor"!=n&&e.push(n);return e}function Sr(t){if(!$a(t))return function(t){var e=[];if(null!=t)for(var n in mt(t))e.push(n);return e}(t);var e=fo(t),n=[];for(var r in t)("constructor"!=r||!e&&xt.call(t,r))&&n.push(r);return n}function Cr(t,e){return t<e}function Ar(t,e){var n=-1,i=Da(t)?r(t.length):[];return tr(t,(function(t,r,o){i[++n]=e(t,r,o)})),i}function Tr(t){var e=Xi(t);return 1==e.length&&e[0][2]?po(e[0][0],e[0][1]):function(n){return n===t||_r(n,t,e)}}function Er(t,e){return uo(t)&&ho(e)?po(Co(t),e):function(n){var r=ms(n,t);return void 0===r&&r===e?vs(n,t):wr(e,r,3)}}function Or(t,e,n,r,i){t!==e&&ar(e,(function(o,a){if(i||(i=new Ln),$a(o))!function(t,e,n,r,i,o,a){var s=bo(t,n),u=bo(e,n),l=a.get(u);if(l)return void Vn(t,n,l);var c=o?o(s,u,n+"",t,e,a):void 0,f=void 0===c;if(f){var d=Ra(u),h=!d&&La(u),p=!d&&!h&&Xa(u);c=u,d||h||p?Ra(s)?c=s:Na(s)?c=gi(s):h?(f=!1,c=fi(u,!0)):p?(f=!1,c=hi(u,!0)):c=[]:Ka(u)||Ia(u)?(c=s,Ia(s)?c=as(s):$a(s)&&!Fa(s)||(c=io(u))):f=!1}f&&(a.set(u,c),i(c,u,r,o,a),a.delete(u));Vn(t,n,c)}(t,e,a,n,Or,r,i);else{var s=r?r(bo(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Vn(t,a,s)}}),_s)}function Pr(t,e){var n=t.length;if(n)return ao(e+=e<0?n:0,n)?t[e]:void 0}function Ir(t,e,n){var r=-1;return e=he(e.length?e:[Ws],Oe(Zi())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(Ar(t,(function(t,n,i){return{criteria:he(e,(function(e){return e(t)})),index:++r,value:t}})),(function(t,e){return function(t,e,n){var r=-1,i=t.criteria,o=e.criteria,a=i.length,s=n.length;for(;++r<a;){var u=pi(i[r],o[r]);if(u){if(r>=s)return u;var l=n[r];return u*("desc"==l?-1:1)}}return t.index-e.index}(t,e,n)}))}function Rr(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=fr(t,a);n(s,a)&&qr(o,si(a,t),s)}return o}function jr(t,e,n,r){var i=r?ke:_e,o=-1,a=e.length,s=t;for(t===e&&(e=gi(e)),n&&(s=he(t,Oe(n)));++o<a;)for(var u=0,l=e[o],c=n?n(l):l;(u=i(s,c,u,r))>-1;)s!==t&&Gt.call(s,u,1),Gt.call(t,u,1);return t}function Dr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(n==r||i!==o){var o=i;ao(i)?Gt.call(t,i,1):Qr(t,i)}}return t}function Nr(t,e){return t+Qe(cn()*(e-t+1))}function Lr(t,e){var n="";if(!t||e<1||e>9007199254740991)return n;do{e%2&&(n+=t),(e=Qe(e/2))&&(t+=t)}while(e);return n}function Br(t,e){return _o(mo(t,e,Ws),t+"")}function zr(t){return zn(Es(t))}function Fr(t,e){var n=Es(t);return xo(n,Gn(e,0,n.length))}function qr(t,e,n,r){if(!$a(t))return t;for(var i=-1,o=(e=si(e,t)).length,a=o-1,s=t;null!=s&&++i<o;){var u=Co(e[i]),l=n;if(i!=a){var c=s[u];void 0===(l=r?r(c,u,s):void 0)&&(l=$a(c)?c:ao(e[i+1])?[]:{})}$n(s,u,l),s=s[u]}return t}var Vr=bn?function(t,e){return bn.set(t,e),t}:Ws,$r=Ce?function(t,e){return Ce(t,"toString",{configurable:!0,enumerable:!1,value:$s(e),writable:!0})}:Ws;function Hr(t){return xo(Es(t))}function Ur(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var a=r(o);++i<o;)a[i]=t[i+e];return a}function Wr(t,e){var n;return tr(t,(function(t,r,i){return!(n=e(t,r,i))})),!!n}function Kr(t,e,n){var r=0,i=null==t?r:t.length;if("number"==typeof e&&e==e&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=t[o];null!==a&&!Ja(a)&&(n?a<=e:a<e)?r=o+1:i=o}return i}return Yr(t,e,Ws,n)}function Yr(t,e,n,r){e=n(e);for(var i=0,o=null==t?0:t.length,a=e!=e,s=null===e,u=Ja(e),l=void 0===e;i<o;){var c=Qe((i+o)/2),f=n(t[c]),d=void 0!==f,h=null===f,p=f==f,m=Ja(f);if(a)var v=r||p;else v=l?p&&(r||d):s?p&&d&&(r||!h):u?p&&d&&!h&&(r||!m):!h&&!m&&(r?f<=e:f<e);v?i=c+1:o=c}return sn(o,4294967294)}function Gr(t,e){for(var n=-1,r=t.length,i=0,o=[];++n<r;){var a=t[n],s=e?e(a):a;if(!n||!Ea(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Zr(t){return"number"==typeof t?t:Ja(t)?NaN:+t}function Jr(t){if("string"==typeof t)return t;if(Ra(t))return he(t,Jr)+"";if(Ja(t))return An?An.call(t):"";var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Xr(t,e,n){var r=-1,i=fe,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=de;else if(o>=200){var l=e?null:Li(t);if(l)return $e(l);a=!1,i=Ie,u=new Nn}else u=e?[]:s;t:for(;++r<o;){var c=t[r],f=e?e(c):c;if(c=n||0!==c?c:0,a&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue t;e&&u.push(f),s.push(c)}else i(u,f,n)||(u!==s&&u.push(f),s.push(c))}return s}function Qr(t,e){return null==(t=vo(t,e=si(e,t)))||delete t[Co(zo(e))]}function ti(t,e,n,r){return qr(t,e,n(fr(t,e)),r)}function ei(t,e,n,r){for(var i=t.length,o=r?i:-1;(r?o--:++o<i)&&e(t[o],o,t););return n?Ur(t,r?0:o,r?o+1:i):Ur(t,r?o+1:0,r?i:o)}function ni(t,e){var n=t;return n instanceof In&&(n=n.value()),me(e,(function(t,e){return e.func.apply(e.thisArg,pe([t],e.args))}),n)}function ri(t,e,n){var i=t.length;if(i<2)return i?Xr(t[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=t[o],u=-1;++u<i;)u!=o&&(a[o]=Qn(a[o]||s,t[u],e,n));return Xr(or(a,1),e,n)}function ii(t,e,n){for(var r=-1,i=t.length,o=e.length,a={};++r<i;){var s=r<o?e[r]:void 0;n(a,t[r],s)}return a}function oi(t){return Na(t)?t:[]}function ai(t){return"function"==typeof t?t:Ws}function si(t,e){return Ra(t)?t:uo(t,e)?[t]:So(ss(t))}var ui=Br;function li(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Ur(t,e,n)}var ci=Ge||function(t){return Kt.clearTimeout(t)};function fi(t,e){if(e)return t.slice();var n=t.length,r=Vt?Vt(n):new t.constructor(n);return t.copy(r),r}function di(t){var e=new t.constructor(t.byteLength);return new Nt(e).set(new Nt(t)),e}function hi(t,e){var n=e?di(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function pi(t,e){if(t!==e){var n=void 0!==t,r=null===t,i=t==t,o=Ja(t),a=void 0!==e,s=null===e,u=e==e,l=Ja(e);if(!s&&!l&&!o&&t>e||o&&a&&u&&!s&&!l||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!l&&t<e||l&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function mi(t,e,n,i){for(var o=-1,a=t.length,s=n.length,u=-1,l=e.length,c=an(a-s,0),f=r(l+c),d=!i;++u<l;)f[u]=e[u];for(;++o<s;)(d||o<a)&&(f[n[o]]=t[o]);for(;c--;)f[u++]=t[o++];return f}function vi(t,e,n,i){for(var o=-1,a=t.length,s=-1,u=n.length,l=-1,c=e.length,f=an(a-u,0),d=r(f+c),h=!i;++o<f;)d[o]=t[o];for(var p=o;++l<c;)d[p+l]=e[l];for(;++s<u;)(h||o<a)&&(d[p+n[s]]=t[o++]);return d}function gi(t,e){var n=-1,i=t.length;for(e||(e=r(i));++n<i;)e[n]=t[n];return e}function bi(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?Kn(n,s,u):$n(n,s,u)}return n}function yi(t,e){return function(n,r){var i=Ra(n)?ae:Un,o=e?e():{};return i(n,t,Zi(r,2),o)}}function wi(t){return Br((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&so(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=mt(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e}))}function _i(t,e){return function(n,r){if(null==n)return n;if(!Da(n))return t(n,r);for(var i=n.length,o=e?i:-1,a=mt(n);(e?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function ki(t){return function(e,n,r){for(var i=-1,o=mt(e),a=r(e),s=a.length;s--;){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}function Mi(t){return function(e){var n=ze(e=ss(e))?We(e):void 0,r=n?n[0]:e.charAt(0),i=n?li(n,1).join(""):e.slice(1);return r[t]()+i}}function xi(t){return function(e){return me(Fs(Is(e).replace(It,"")),t,"")}}function Si(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=En(t.prototype),r=t.apply(n,e);return $a(r)?r:n}}function Ci(t){return function(e,n,r){var i=mt(e);if(!Da(e)){var o=Zi(n,3);e=ws(e),n=function(t){return o(i[t],t,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}}function Ai(t){return Hi((function(e){var n=e.length,r=n,i=Pn.prototype.thru;for(t&&e.reverse();r--;){var a=e[r];if("function"!=typeof a)throw new bt(o);if(i&&!s&&"wrapper"==Yi(a))var s=new Pn([],!0)}for(r=s?r:n;++r<n;){var u=Yi(a=e[r]),l="wrapper"==u?Ki(a):void 0;s=l&&lo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?s[Yi(l[0])].apply(s,l[3]):1==a.length&&lo(a)?s[u]():s.thru(a)}return function(){var t=arguments,r=t[0];if(s&&1==t.length&&Ra(r))return s.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++i<n;)o=e[i].call(this,o);return o}}))}function Ti(t,e,n,i,o,a,s,u,l,c){var f=128&e,d=1&e,h=2&e,p=24&e,m=512&e,v=h?void 0:Si(t);return function g(){for(var b=arguments.length,y=r(b),w=b;w--;)y[w]=arguments[w];if(p)var _=Gi(g),k=De(y,_);if(i&&(y=mi(y,i,o,p)),a&&(y=vi(y,a,s,p)),b-=k,p&&b<c){var M=Ve(y,_);return Di(t,e,Ti,g.placeholder,n,y,M,u,l,c-b)}var x=d?n:this,S=h?x[t]:t;return b=y.length,u?y=go(y,u):m&&b>1&&y.reverse(),f&&l<b&&(y.length=l),this&&this!==Kt&&this instanceof g&&(S=v||Si(S)),S.apply(x,y)}}function Ei(t,e){return function(n,r){return function(t,e,n,r){return ur(t,(function(t,i,o){e(r,n(t),i,o)})),r}(n,t,e(r),{})}}function Oi(t,e){return function(n,r){var i;if(void 0===n&&void 0===r)return e;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Jr(n),r=Jr(r)):(n=Zr(n),r=Zr(r)),i=t(n,r)}return i}}function Pi(t){return Hi((function(e){return e=he(e,Oe(Zi())),Br((function(n){var r=this;return t(e,(function(t){return oe(t,r,n)}))}))}))}function Ii(t,e){var n=(e=void 0===e?" ":Jr(e)).length;if(n<2)return n?Lr(e,t):e;var r=Lr(e,Xe(t/Ue(e)));return ze(e)?li(We(r),0,t).join(""):r.slice(0,t)}function Ri(t){return function(e,n,i){return i&&"number"!=typeof i&&so(e,n,i)&&(n=i=void 0),e=ns(e),void 0===n?(n=e,e=0):n=ns(n),function(t,e,n,i){for(var o=-1,a=an(Xe((e-t)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=t,t+=n;return s}(e,n,i=void 0===i?e<n?1:-1:ns(i),t)}}function ji(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=os(e),n=os(n)),t(e,n)}}function Di(t,e,n,r,i,o,a,s,u,l){var c=8&e;e|=c?32:64,4&(e&=~(c?64:32))||(e&=-4);var f=[t,e,i,c?o:void 0,c?a:void 0,c?void 0:o,c?void 0:a,s,u,l],d=n.apply(void 0,f);return lo(t)&&yo(d,f),d.placeholder=r,ko(d,t,e)}function Ni(t){var e=pt[t];return function(t,n){if(t=os(t),(n=null==n?0:sn(rs(n),292))&&nn(t)){var r=(ss(t)+"e").split("e");return+((r=(ss(e(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return e(t)}}var Li=mn&&1/$e(new mn([,-0]))[1]==1/0?function(t){return new mn(t)}:Js;function Bi(t){return function(e){var n=no(e);return n==m?Fe(e):n==y?He(e):function(t,e){return he(e,(function(e){return[e,t[e]]}))}(e,t(e))}}function zi(t,e,n,i,s,u,l,c){var f=2&e;if(!f&&"function"!=typeof t)throw new bt(o);var d=i?i.length:0;if(d||(e&=-97,i=s=void 0),l=void 0===l?l:an(rs(l),0),c=void 0===c?c:rs(c),d-=s?s.length:0,64&e){var h=i,p=s;i=s=void 0}var m=f?void 0:Ki(t),v=[t,e,n,i,s,h,p,u,l,c];if(m&&function(t,e){var n=t[1],r=e[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&t[7].length<=e[8]||384==r&&e[7].length<=e[8]&&8==n;if(!o&&!s)return t;1&r&&(t[2]=e[2],i|=1&n?0:4);var u=e[3];if(u){var l=t[3];t[3]=l?mi(l,u,e[4]):u,t[4]=l?Ve(t[3],a):e[4]}(u=e[5])&&(l=t[5],t[5]=l?vi(l,u,e[6]):u,t[6]=l?Ve(t[5],a):e[6]);(u=e[7])&&(t[7]=u);128&r&&(t[8]=null==t[8]?e[8]:sn(t[8],e[8]));null==t[9]&&(t[9]=e[9]);t[0]=e[0],t[1]=i}(v,m),t=v[0],e=v[1],n=v[2],i=v[3],s=v[4],!(c=v[9]=void 0===v[9]?f?0:t.length:an(v[9]-d,0))&&24&e&&(e&=-25),e&&1!=e)g=8==e||16==e?function(t,e,n){var i=Si(t);return function o(){for(var a=arguments.length,s=r(a),u=a,l=Gi(o);u--;)s[u]=arguments[u];var c=a<3&&s[0]!==l&&s[a-1]!==l?[]:Ve(s,l);if((a-=c.length)<n)return Di(t,e,Ti,o.placeholder,void 0,s,c,void 0,void 0,n-a);var f=this&&this!==Kt&&this instanceof o?i:t;return oe(f,this,s)}}(t,e,c):32!=e&&33!=e||s.length?Ti.apply(void 0,v):function(t,e,n,i){var o=1&e,a=Si(t);return function e(){for(var s=-1,u=arguments.length,l=-1,c=i.length,f=r(c+u),d=this&&this!==Kt&&this instanceof e?a:t;++l<c;)f[l]=i[l];for(;u--;)f[l++]=arguments[++s];return oe(d,o?n:this,f)}}(t,e,n,i);else var g=function(t,e,n){var r=1&e,i=Si(t);return function e(){var o=this&&this!==Kt&&this instanceof e?i:t;return o.apply(r?n:this,arguments)}}(t,e,n);return ko((m?Vr:yo)(g,v),t,e)}function Fi(t,e,n,r){return void 0===t||Ea(t,_t[n])&&!xt.call(r,n)?e:t}function qi(t,e,n,r,i,o){return $a(t)&&$a(e)&&(o.set(e,t),Or(t,e,void 0,qi,o),o.delete(e)),t}function Vi(t){return Ka(t)?void 0:t}function $i(t,e,n,r,i,o){var a=1&n,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=o.get(t);if(l&&o.get(e))return l==e;var c=-1,f=!0,d=2&n?new Nn:void 0;for(o.set(t,e),o.set(e,t);++c<s;){var h=t[c],p=e[c];if(r)var m=a?r(p,h,c,e,t,o):r(h,p,c,t,e,o);if(void 0!==m){if(m)continue;f=!1;break}if(d){if(!ge(e,(function(t,e){if(!Ie(d,e)&&(h===t||i(h,t,n,r,o)))return d.push(e)}))){f=!1;break}}else if(h!==p&&!i(h,p,n,r,o)){f=!1;break}}return o.delete(t),o.delete(e),f}function Hi(t){return _o(mo(t,void 0,jo),t+"")}function Ui(t){return dr(t,ws,to)}function Wi(t){return dr(t,_s,eo)}var Ki=bn?function(t){return bn.get(t)}:Js;function Yi(t){for(var e=t.name+"",n=yn[e],r=xt.call(yn,e)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==t)return i.name}return e}function Gi(t){return(xt.call(Tn,"placeholder")?Tn:t).placeholder}function Zi(){var t=Tn.iteratee||Ks;return t=t===Ks?Mr:t,arguments.length?t(arguments[0],arguments[1]):t}function Ji(t,e){var n,r,i=t.__data__;return("string"==(r=typeof(n=e))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof e?"string":"hash"]:i.map}function Xi(t){for(var e=ws(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,ho(i)]}return e}function Qi(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return kr(n)?n:void 0}var to=tn?function(t){return null==t?[]:(t=mt(t),ce(tn(t),(function(e){return Yt.call(t,e)})))}:iu,eo=tn?function(t){for(var e=[];t;)pe(e,to(t)),t=Ut(t);return e}:iu,no=hr;function ro(t,e,n){for(var r=-1,i=(e=si(e,t)).length,o=!1;++r<i;){var a=Co(e[r]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++r!=i?o:!!(i=null==t?0:t.length)&&Va(i)&&ao(a,i)&&(Ra(t)||Ia(t))}function io(t){return"function"!=typeof t.constructor||fo(t)?{}:En(Ut(t))}function oo(t){return Ra(t)||Ia(t)||!!(Jt&&t&&t[Jt])}function ao(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&ut.test(t))&&t>-1&&t%1==0&&t<e}function so(t,e,n){if(!$a(n))return!1;var r=typeof e;return!!("number"==r?Da(n)&&ao(e,n.length):"string"==r&&e in n)&&Ea(n[e],t)}function uo(t,e){if(Ra(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Ja(t))||(H.test(t)||!$.test(t)||null!=e&&t in mt(e))}function lo(t){var e=Yi(t),n=Tn[e];if("function"!=typeof n||!(e in In.prototype))return!1;if(t===n)return!0;var r=Ki(n);return!!r&&t===r[0]}(dn&&no(new dn(new ArrayBuffer(1)))!=x||hn&&no(new hn)!=m||pn&&"[object Promise]"!=no(pn.resolve())||mn&&no(new mn)!=y||vn&&no(new vn)!=k)&&(no=function(t){var e=hr(t),n=e==g?t.constructor:void 0,r=n?Ao(n):"";if(r)switch(r){case wn:return x;case _n:return m;case kn:return"[object Promise]";case Mn:return y;case xn:return k}return e});var co=kt?Fa:ou;function fo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_t)}function ho(t){return t==t&&!$a(t)}function po(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in mt(n)))}}function mo(t,e,n){return e=an(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,a=an(i.length-e,0),s=r(a);++o<a;)s[o]=i[e+o];o=-1;for(var u=r(e+1);++o<e;)u[o]=i[o];return u[e]=n(s),oe(t,this,u)}}function vo(t,e){return e.length<2?t:fr(t,Ur(e,0,-1))}function go(t,e){for(var n=t.length,r=sn(e.length,n),i=gi(t);r--;){var o=e[r];t[r]=ao(o,n)?i[o]:void 0}return t}function bo(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var yo=Mo(Vr),wo=Je||function(t,e){return Kt.setTimeout(t,e)},_o=Mo($r);function ko(t,e,n){var r=e+"";return _o(t,function(t,e){var n=e.length;if(!n)return t;var r=n-1;return e[r]=(n>1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(J,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return se(s,(function(n){var r="_."+n[0];e&n[1]&&!fe(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(X);return e?e[1].split(Q):[]}(r),n)))}function Mo(t){var e=0,n=0;return function(){var r=un(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function xo(t,e){var n=-1,r=t.length,i=r-1;for(e=void 0===e?r:e;++n<e;){var o=Nr(n,i),a=t[o];t[o]=t[n],t[n]=a}return t.length=e,t}var So=function(t){var e=Ma(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(U,(function(t,n,r,i){e.push(r?i.replace(et,"$1"):n||t)})),e}));function Co(t){if("string"==typeof t||Ja(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}function Ao(t){if(null!=t){try{return Mt.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function To(t){if(t instanceof In)return t.clone();var e=new Pn(t.__wrapped__,t.__chain__);return e.__actions__=gi(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var Eo=Br((function(t,e){return Na(t)?Qn(t,or(e,1,Na,!0)):[]})),Oo=Br((function(t,e){var n=zo(e);return Na(n)&&(n=void 0),Na(t)?Qn(t,or(e,1,Na,!0),Zi(n,2)):[]})),Po=Br((function(t,e){var n=zo(e);return Na(n)&&(n=void 0),Na(t)?Qn(t,or(e,1,Na,!0),void 0,n):[]}));function Io(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),we(t,Zi(e,3),i)}function Ro(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rs(n),i=n<0?an(r+i,0):sn(i,r-1)),we(t,Zi(e,3),i,!0)}function jo(t){return(null==t?0:t.length)?or(t,1):[]}function Do(t){return t&&t.length?t[0]:void 0}var No=Br((function(t){var e=he(t,oi);return e.length&&e[0]===t[0]?gr(e):[]})),Lo=Br((function(t){var e=zo(t),n=he(t,oi);return e===zo(n)?e=void 0:n.pop(),n.length&&n[0]===t[0]?gr(n,Zi(e,2)):[]})),Bo=Br((function(t){var e=zo(t),n=he(t,oi);return(e="function"==typeof e?e:void 0)&&n.pop(),n.length&&n[0]===t[0]?gr(n,void 0,e):[]}));function zo(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var Fo=Br(qo);function qo(t,e){return t&&t.length&&e&&e.length?jr(t,e):t}var Vo=Hi((function(t,e){var n=null==t?0:t.length,r=Yn(t,e);return Dr(t,he(e,(function(t){return ao(t,n)?+t:t})).sort(pi)),r}));function $o(t){return null==t?t:fn.call(t)}var Ho=Br((function(t){return Xr(or(t,1,Na,!0))})),Uo=Br((function(t){var e=zo(t);return Na(e)&&(e=void 0),Xr(or(t,1,Na,!0),Zi(e,2))})),Wo=Br((function(t){var e=zo(t);return e="function"==typeof e?e:void 0,Xr(or(t,1,Na,!0),void 0,e)}));function Ko(t){if(!t||!t.length)return[];var e=0;return t=ce(t,(function(t){if(Na(t))return e=an(t.length,e),!0})),Ee(e,(function(e){return he(t,Se(e))}))}function Yo(t,e){if(!t||!t.length)return[];var n=Ko(t);return null==e?n:he(n,(function(t){return oe(e,void 0,t)}))}var Go=Br((function(t,e){return Na(t)?Qn(t,e):[]})),Zo=Br((function(t){return ri(ce(t,Na))})),Jo=Br((function(t){var e=zo(t);return Na(e)&&(e=void 0),ri(ce(t,Na),Zi(e,2))})),Xo=Br((function(t){var e=zo(t);return e="function"==typeof e?e:void 0,ri(ce(t,Na),void 0,e)})),Qo=Br(Ko);var ta=Br((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,Yo(t,n)}));function ea(t){var e=Tn(t);return e.__chain__=!0,e}function na(t,e){return e(t)}var ra=Hi((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return Yn(e,t)};return!(e>1||this.__actions__.length)&&r instanceof In&&ao(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:na,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(void 0),t}))):this.thru(i)}));var ia=yi((function(t,e,n){xt.call(t,n)?++t[n]:Kn(t,n,1)}));var oa=Ci(Io),aa=Ci(Ro);function sa(t,e){return(Ra(t)?se:tr)(t,Zi(e,3))}function ua(t,e){return(Ra(t)?ue:er)(t,Zi(e,3))}var la=yi((function(t,e,n){xt.call(t,n)?t[n].push(e):Kn(t,n,[e])}));var ca=Br((function(t,e,n){var i=-1,o="function"==typeof e,a=Da(t)?r(t.length):[];return tr(t,(function(t){a[++i]=o?oe(e,t,n):br(t,e,n)})),a})),fa=yi((function(t,e,n){Kn(t,n,e)}));function da(t,e){return(Ra(t)?he:Ar)(t,Zi(e,3))}var ha=yi((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]}));var pa=Br((function(t,e){if(null==t)return[];var n=e.length;return n>1&&so(t,e[0],e[1])?e=[]:n>2&&so(e[0],e[1],e[2])&&(e=[e[0]]),Ir(t,or(e,1),[])})),ma=Ze||function(){return Kt.Date.now()};function va(t,e,n){return e=n?void 0:e,zi(t,128,void 0,void 0,void 0,void 0,e=t&&null==e?t.length:e)}function ga(t,e){var n;if("function"!=typeof e)throw new bt(o);return t=rs(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=void 0),n}}var ba=Br((function(t,e,n){var r=1;if(n.length){var i=Ve(n,Gi(ba));r|=32}return zi(t,r,e,n,i)})),ya=Br((function(t,e,n){var r=3;if(n.length){var i=Ve(n,Gi(ya));r|=32}return zi(e,r,t,n,i)}));function wa(t,e,n){var r,i,a,s,u,l,c=0,f=!1,d=!1,h=!0;if("function"!=typeof t)throw new bt(o);function p(e){var n=r,o=i;return r=i=void 0,c=e,s=t.apply(o,n)}function m(t){return c=t,u=wo(g,e),f?p(t):s}function v(t){var n=t-l;return void 0===l||n>=e||n<0||d&&t-c>=a}function g(){var t=ma();if(v(t))return b(t);u=wo(g,function(t){var n=e-(t-l);return d?sn(n,a-(t-c)):n}(t))}function b(t){return u=void 0,h&&r?p(t):(r=i=void 0,s)}function y(){var t=ma(),n=v(t);if(r=arguments,i=this,l=t,n){if(void 0===u)return m(l);if(d)return ci(u),u=wo(g,e),p(l)}return void 0===u&&(u=wo(g,e)),s}return e=os(e)||0,$a(n)&&(f=!!n.leading,a=(d="maxWait"in n)?an(os(n.maxWait)||0,e):a,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==u&&ci(u),c=0,r=l=i=u=void 0},y.flush=function(){return void 0===u?s:b(ma())},y}var _a=Br((function(t,e){return Xn(t,1,e)})),ka=Br((function(t,e,n){return Xn(t,os(e)||0,n)}));function Ma(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new bt(o);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ma.Cache||Dn),n}function xa(t){if("function"!=typeof t)throw new bt(o);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ma.Cache=Dn;var Sa=ui((function(t,e){var n=(e=1==e.length&&Ra(e[0])?he(e[0],Oe(Zi())):he(or(e,1),Oe(Zi()))).length;return Br((function(r){for(var i=-1,o=sn(r.length,n);++i<o;)r[i]=e[i].call(this,r[i]);return oe(t,this,r)}))})),Ca=Br((function(t,e){return zi(t,32,void 0,e,Ve(e,Gi(Ca)))})),Aa=Br((function(t,e){return zi(t,64,void 0,e,Ve(e,Gi(Aa)))})),Ta=Hi((function(t,e){return zi(t,256,void 0,void 0,void 0,e)}));function Ea(t,e){return t===e||t!=t&&e!=e}var Oa=ji(pr),Pa=ji((function(t,e){return t>=e})),Ia=yr(function(){return arguments}())?yr:function(t){return Ha(t)&&xt.call(t,"callee")&&!Yt.call(t,"callee")},Ra=r.isArray,ja=Qt?Oe(Qt):function(t){return Ha(t)&&hr(t)==M};function Da(t){return null!=t&&Va(t.length)&&!Fa(t)}function Na(t){return Ha(t)&&Da(t)}var La=en||ou,Ba=te?Oe(te):function(t){return Ha(t)&&hr(t)==f};function za(t){if(!Ha(t))return!1;var e=hr(t);return e==d||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!Ka(t)}function Fa(t){if(!$a(t))return!1;var e=hr(t);return e==h||e==p||"[object AsyncFunction]"==e||"[object Proxy]"==e}function qa(t){return"number"==typeof t&&t==rs(t)}function Va(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function $a(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Ha(t){return null!=t&&"object"==typeof t}var Ua=ee?Oe(ee):function(t){return Ha(t)&&no(t)==m};function Wa(t){return"number"==typeof t||Ha(t)&&hr(t)==v}function Ka(t){if(!Ha(t)||hr(t)!=g)return!1;var e=Ut(t);if(null===e)return!0;var n=xt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Mt.call(n)==Tt}var Ya=ne?Oe(ne):function(t){return Ha(t)&&hr(t)==b};var Ga=re?Oe(re):function(t){return Ha(t)&&no(t)==y};function Za(t){return"string"==typeof t||!Ra(t)&&Ha(t)&&hr(t)==w}function Ja(t){return"symbol"==typeof t||Ha(t)&&hr(t)==_}var Xa=ie?Oe(ie):function(t){return Ha(t)&&Va(t.length)&&!!Ft[hr(t)]};var Qa=ji(Cr),ts=ji((function(t,e){return t<=e}));function es(t){if(!t)return[];if(Da(t))return Za(t)?We(t):gi(t);if(Xt&&t[Xt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Xt]());var e=no(t);return(e==m?Fe:e==y?$e:Es)(t)}function ns(t){return t?(t=os(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function rs(t){var e=ns(t),n=e%1;return e==e?n?e-n:e:0}function is(t){return t?Gn(rs(t),0,4294967295):0}function os(t){if("number"==typeof t)return t;if(Ja(t))return NaN;if($a(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=$a(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(Y,"");var n=ot.test(t);return n||st.test(t)?Ht(t.slice(2),n?2:8):it.test(t)?NaN:+t}function as(t){return bi(t,_s(t))}function ss(t){return null==t?"":Jr(t)}var us=wi((function(t,e){if(fo(e)||Da(e))bi(e,ws(e),t);else for(var n in e)xt.call(e,n)&&$n(t,n,e[n])})),ls=wi((function(t,e){bi(e,_s(e),t)})),cs=wi((function(t,e,n,r){bi(e,_s(e),t,r)})),fs=wi((function(t,e,n,r){bi(e,ws(e),t,r)})),ds=Hi(Yn);var hs=Br((function(t,e){t=mt(t);var n=-1,r=e.length,i=r>2?e[2]:void 0;for(i&&so(e[0],e[1],i)&&(r=1);++n<r;)for(var o=e[n],a=_s(o),s=-1,u=a.length;++s<u;){var l=a[s],c=t[l];(void 0===c||Ea(c,_t[l])&&!xt.call(t,l))&&(t[l]=o[l])}return t})),ps=Br((function(t){return t.push(void 0,qi),oe(Ms,void 0,t)}));function ms(t,e,n){var r=null==t?void 0:fr(t,e);return void 0===r?n:r}function vs(t,e){return null!=t&&ro(t,e,vr)}var gs=Ei((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=At.call(e)),t[e]=n}),$s(Ws)),bs=Ei((function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=At.call(e)),xt.call(t,e)?t[e].push(n):t[e]=[n]}),Zi),ys=Br(br);function ws(t){return Da(t)?Bn(t):xr(t)}function _s(t){return Da(t)?Bn(t,!0):Sr(t)}var ks=wi((function(t,e,n){Or(t,e,n)})),Ms=wi((function(t,e,n,r){Or(t,e,n,r)})),xs=Hi((function(t,e){var n={};if(null==t)return n;var r=!1;e=he(e,(function(e){return e=si(e,t),r||(r=e.length>1),e})),bi(t,Wi(t),n),r&&(n=Zn(n,7,Vi));for(var i=e.length;i--;)Qr(n,e[i]);return n}));var Ss=Hi((function(t,e){return null==t?{}:function(t,e){return Rr(t,e,(function(e,n){return vs(t,n)}))}(t,e)}));function Cs(t,e){if(null==t)return{};var n=he(Wi(t),(function(t){return[t]}));return e=Zi(e),Rr(t,n,(function(t,n){return e(t,n[0])}))}var As=Bi(ws),Ts=Bi(_s);function Es(t){return null==t?[]:Pe(t,ws(t))}var Os=xi((function(t,e,n){return e=e.toLowerCase(),t+(n?Ps(e):e)}));function Ps(t){return zs(ss(t).toLowerCase())}function Is(t){return(t=ss(t))&&t.replace(lt,Ne).replace(Rt,"")}var Rs=xi((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),js=xi((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Ds=Mi("toLowerCase");var Ns=xi((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()}));var Ls=xi((function(t,e,n){return t+(n?" ":"")+zs(e)}));var Bs=xi((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),zs=Mi("toUpperCase");function Fs(t,e,n){return t=ss(t),void 0===(e=n?void 0:e)?function(t){return Lt.test(t)}(t)?function(t){return t.match(Dt)||[]}(t):function(t){return t.match(tt)||[]}(t):t.match(e)||[]}var qs=Br((function(t,e){try{return oe(t,void 0,e)}catch(t){return za(t)?t:new dt(t)}})),Vs=Hi((function(t,e){return se(e,(function(e){e=Co(e),Kn(t,e,ba(t[e],t))})),t}));function $s(t){return function(){return t}}var Hs=Ai(),Us=Ai(!0);function Ws(t){return t}function Ks(t){return Mr("function"==typeof t?t:Zn(t,1))}var Ys=Br((function(t,e){return function(n){return br(n,t,e)}})),Gs=Br((function(t,e){return function(n){return br(t,n,e)}}));function Zs(t,e,n){var r=ws(e),i=cr(e,r);null!=n||$a(e)&&(i.length||!r.length)||(n=e,e=t,t=this,i=cr(e,ws(e)));var o=!($a(n)&&"chain"in n&&!n.chain),a=Fa(t);return se(i,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__),i=n.__actions__=gi(this.__actions__);return i.push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,pe([this.value()],arguments))})})),t}function Js(){}var Xs=Pi(he),Qs=Pi(le),tu=Pi(ge);function eu(t){return uo(t)?Se(Co(t)):function(t){return function(e){return fr(e,t)}}(t)}var nu=Ri(),ru=Ri(!0);function iu(){return[]}function ou(){return!1}var au=Oi((function(t,e){return t+e}),0),su=Ni("ceil"),uu=Oi((function(t,e){return t/e}),1),lu=Ni("floor");var cu,fu=Oi((function(t,e){return t*e}),1),du=Ni("round"),hu=Oi((function(t,e){return t-e}),0);return Tn.after=function(t,e){if("function"!=typeof e)throw new bt(o);return t=rs(t),function(){if(--t<1)return e.apply(this,arguments)}},Tn.ary=va,Tn.assign=us,Tn.assignIn=ls,Tn.assignInWith=cs,Tn.assignWith=fs,Tn.at=ds,Tn.before=ga,Tn.bind=ba,Tn.bindAll=Vs,Tn.bindKey=ya,Tn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return Ra(t)?t:[t]},Tn.chain=ea,Tn.chunk=function(t,e,n){e=(n?so(t,e,n):void 0===e)?1:an(rs(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var o=0,a=0,s=r(Xe(i/e));o<i;)s[a++]=Ur(t,o,o+=e);return s},Tn.compact=function(t){for(var e=-1,n=null==t?0:t.length,r=0,i=[];++e<n;){var o=t[e];o&&(i[r++]=o)}return i},Tn.concat=function(){var t=arguments.length;if(!t)return[];for(var e=r(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return pe(Ra(n)?gi(n):[n],or(e,1))},Tn.cond=function(t){var e=null==t?0:t.length,n=Zi();return t=e?he(t,(function(t){if("function"!=typeof t[1])throw new bt(o);return[n(t[0]),t[1]]})):[],Br((function(n){for(var r=-1;++r<e;){var i=t[r];if(oe(i[0],this,n))return oe(i[1],this,n)}}))},Tn.conforms=function(t){return function(t){var e=ws(t);return function(n){return Jn(n,t,e)}}(Zn(t,1))},Tn.constant=$s,Tn.countBy=ia,Tn.create=function(t,e){var n=En(t);return null==e?n:Wn(n,e)},Tn.curry=function t(e,n,r){var i=zi(e,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=t.placeholder,i},Tn.curryRight=function t(e,n,r){var i=zi(e,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=t.placeholder,i},Tn.debounce=wa,Tn.defaults=hs,Tn.defaultsDeep=ps,Tn.defer=_a,Tn.delay=ka,Tn.difference=Eo,Tn.differenceBy=Oo,Tn.differenceWith=Po,Tn.drop=function(t,e,n){var r=null==t?0:t.length;return r?Ur(t,(e=n||void 0===e?1:rs(e))<0?0:e,r):[]},Tn.dropRight=function(t,e,n){var r=null==t?0:t.length;return r?Ur(t,0,(e=r-(e=n||void 0===e?1:rs(e)))<0?0:e):[]},Tn.dropRightWhile=function(t,e){return t&&t.length?ei(t,Zi(e,3),!0,!0):[]},Tn.dropWhile=function(t,e){return t&&t.length?ei(t,Zi(e,3),!0):[]},Tn.fill=function(t,e,n,r){var i=null==t?0:t.length;return i?(n&&"number"!=typeof n&&so(t,e,n)&&(n=0,r=i),function(t,e,n,r){var i=t.length;for((n=rs(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:rs(r))<0&&(r+=i),r=n>r?0:is(r);n<r;)t[n++]=e;return t}(t,e,n,r)):[]},Tn.filter=function(t,e){return(Ra(t)?ce:ir)(t,Zi(e,3))},Tn.flatMap=function(t,e){return or(da(t,e),1)},Tn.flatMapDeep=function(t,e){return or(da(t,e),1/0)},Tn.flatMapDepth=function(t,e,n){return n=void 0===n?1:rs(n),or(da(t,e),n)},Tn.flatten=jo,Tn.flattenDeep=function(t){return(null==t?0:t.length)?or(t,1/0):[]},Tn.flattenDepth=function(t,e){return(null==t?0:t.length)?or(t,e=void 0===e?1:rs(e)):[]},Tn.flip=function(t){return zi(t,512)},Tn.flow=Hs,Tn.flowRight=Us,Tn.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r},Tn.functions=function(t){return null==t?[]:cr(t,ws(t))},Tn.functionsIn=function(t){return null==t?[]:cr(t,_s(t))},Tn.groupBy=la,Tn.initial=function(t){return(null==t?0:t.length)?Ur(t,0,-1):[]},Tn.intersection=No,Tn.intersectionBy=Lo,Tn.intersectionWith=Bo,Tn.invert=gs,Tn.invertBy=bs,Tn.invokeMap=ca,Tn.iteratee=Ks,Tn.keyBy=fa,Tn.keys=ws,Tn.keysIn=_s,Tn.map=da,Tn.mapKeys=function(t,e){var n={};return e=Zi(e,3),ur(t,(function(t,r,i){Kn(n,e(t,r,i),t)})),n},Tn.mapValues=function(t,e){var n={};return e=Zi(e,3),ur(t,(function(t,r,i){Kn(n,r,e(t,r,i))})),n},Tn.matches=function(t){return Tr(Zn(t,1))},Tn.matchesProperty=function(t,e){return Er(t,Zn(e,1))},Tn.memoize=Ma,Tn.merge=ks,Tn.mergeWith=Ms,Tn.method=Ys,Tn.methodOf=Gs,Tn.mixin=Zs,Tn.negate=xa,Tn.nthArg=function(t){return t=rs(t),Br((function(e){return Pr(e,t)}))},Tn.omit=xs,Tn.omitBy=function(t,e){return Cs(t,xa(Zi(e)))},Tn.once=function(t){return ga(2,t)},Tn.orderBy=function(t,e,n,r){return null==t?[]:(Ra(e)||(e=null==e?[]:[e]),Ra(n=r?void 0:n)||(n=null==n?[]:[n]),Ir(t,e,n))},Tn.over=Xs,Tn.overArgs=Sa,Tn.overEvery=Qs,Tn.overSome=tu,Tn.partial=Ca,Tn.partialRight=Aa,Tn.partition=ha,Tn.pick=Ss,Tn.pickBy=Cs,Tn.property=eu,Tn.propertyOf=function(t){return function(e){return null==t?void 0:fr(t,e)}},Tn.pull=Fo,Tn.pullAll=qo,Tn.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?jr(t,e,Zi(n,2)):t},Tn.pullAllWith=function(t,e,n){return t&&t.length&&e&&e.length?jr(t,e,void 0,n):t},Tn.pullAt=Vo,Tn.range=nu,Tn.rangeRight=ru,Tn.rearg=Ta,Tn.reject=function(t,e){return(Ra(t)?ce:ir)(t,xa(Zi(e,3)))},Tn.remove=function(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=Zi(e,3);++r<o;){var a=t[r];e(a,r,t)&&(n.push(a),i.push(r))}return Dr(t,i),n},Tn.rest=function(t,e){if("function"!=typeof t)throw new bt(o);return Br(t,e=void 0===e?e:rs(e))},Tn.reverse=$o,Tn.sampleSize=function(t,e,n){return e=(n?so(t,e,n):void 0===e)?1:rs(e),(Ra(t)?Fn:Fr)(t,e)},Tn.set=function(t,e,n){return null==t?t:qr(t,e,n)},Tn.setWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:qr(t,e,n,r)},Tn.shuffle=function(t){return(Ra(t)?qn:Hr)(t)},Tn.slice=function(t,e,n){var r=null==t?0:t.length;return r?(n&&"number"!=typeof n&&so(t,e,n)?(e=0,n=r):(e=null==e?0:rs(e),n=void 0===n?r:rs(n)),Ur(t,e,n)):[]},Tn.sortBy=pa,Tn.sortedUniq=function(t){return t&&t.length?Gr(t):[]},Tn.sortedUniqBy=function(t,e){return t&&t.length?Gr(t,Zi(e,2)):[]},Tn.split=function(t,e,n){return n&&"number"!=typeof n&&so(t,e,n)&&(e=n=void 0),(n=void 0===n?4294967295:n>>>0)?(t=ss(t))&&("string"==typeof e||null!=e&&!Ya(e))&&!(e=Jr(e))&&ze(t)?li(We(t),0,n):t.split(e,n):[]},Tn.spread=function(t,e){if("function"!=typeof t)throw new bt(o);return e=null==e?0:an(rs(e),0),Br((function(n){var r=n[e],i=li(n,0,e);return r&&pe(i,r),oe(t,this,i)}))},Tn.tail=function(t){var e=null==t?0:t.length;return e?Ur(t,1,e):[]},Tn.take=function(t,e,n){return t&&t.length?Ur(t,0,(e=n||void 0===e?1:rs(e))<0?0:e):[]},Tn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?Ur(t,(e=r-(e=n||void 0===e?1:rs(e)))<0?0:e,r):[]},Tn.takeRightWhile=function(t,e){return t&&t.length?ei(t,Zi(e,3),!1,!0):[]},Tn.takeWhile=function(t,e){return t&&t.length?ei(t,Zi(e,3)):[]},Tn.tap=function(t,e){return e(t),t},Tn.throttle=function(t,e,n){var r=!0,i=!0;if("function"!=typeof t)throw new bt(o);return $a(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),wa(t,e,{leading:r,maxWait:e,trailing:i})},Tn.thru=na,Tn.toArray=es,Tn.toPairs=As,Tn.toPairsIn=Ts,Tn.toPath=function(t){return Ra(t)?he(t,Co):Ja(t)?[t]:gi(So(ss(t)))},Tn.toPlainObject=as,Tn.transform=function(t,e,n){var r=Ra(t),i=r||La(t)||Xa(t);if(e=Zi(e,4),null==n){var o=t&&t.constructor;n=i?r?new o:[]:$a(t)&&Fa(o)?En(Ut(t)):{}}return(i?se:ur)(t,(function(t,r,i){return e(n,t,r,i)})),n},Tn.unary=function(t){return va(t,1)},Tn.union=Ho,Tn.unionBy=Uo,Tn.unionWith=Wo,Tn.uniq=function(t){return t&&t.length?Xr(t):[]},Tn.uniqBy=function(t,e){return t&&t.length?Xr(t,Zi(e,2)):[]},Tn.uniqWith=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?Xr(t,void 0,e):[]},Tn.unset=function(t,e){return null==t||Qr(t,e)},Tn.unzip=Ko,Tn.unzipWith=Yo,Tn.update=function(t,e,n){return null==t?t:ti(t,e,ai(n))},Tn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:void 0,null==t?t:ti(t,e,ai(n),r)},Tn.values=Es,Tn.valuesIn=function(t){return null==t?[]:Pe(t,_s(t))},Tn.without=Go,Tn.words=Fs,Tn.wrap=function(t,e){return Ca(ai(e),t)},Tn.xor=Zo,Tn.xorBy=Jo,Tn.xorWith=Xo,Tn.zip=Qo,Tn.zipObject=function(t,e){return ii(t||[],e||[],$n)},Tn.zipObjectDeep=function(t,e){return ii(t||[],e||[],qr)},Tn.zipWith=ta,Tn.entries=As,Tn.entriesIn=Ts,Tn.extend=ls,Tn.extendWith=cs,Zs(Tn,Tn),Tn.add=au,Tn.attempt=qs,Tn.camelCase=Os,Tn.capitalize=Ps,Tn.ceil=su,Tn.clamp=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=os(n))==n?n:0),void 0!==e&&(e=(e=os(e))==e?e:0),Gn(os(t),e,n)},Tn.clone=function(t){return Zn(t,4)},Tn.cloneDeep=function(t){return Zn(t,5)},Tn.cloneDeepWith=function(t,e){return Zn(t,5,e="function"==typeof e?e:void 0)},Tn.cloneWith=function(t,e){return Zn(t,4,e="function"==typeof e?e:void 0)},Tn.conformsTo=function(t,e){return null==e||Jn(t,e,ws(e))},Tn.deburr=Is,Tn.defaultTo=function(t,e){return null==t||t!=t?e:t},Tn.divide=uu,Tn.endsWith=function(t,e,n){t=ss(t),e=Jr(e);var r=t.length,i=n=void 0===n?r:Gn(rs(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},Tn.eq=Ea,Tn.escape=function(t){return(t=ss(t))&&z.test(t)?t.replace(L,Le):t},Tn.escapeRegExp=function(t){return(t=ss(t))&&K.test(t)?t.replace(W,"\\$&"):t},Tn.every=function(t,e,n){var r=Ra(t)?le:nr;return n&&so(t,e,n)&&(e=void 0),r(t,Zi(e,3))},Tn.find=oa,Tn.findIndex=Io,Tn.findKey=function(t,e){return ye(t,Zi(e,3),ur)},Tn.findLast=aa,Tn.findLastIndex=Ro,Tn.findLastKey=function(t,e){return ye(t,Zi(e,3),lr)},Tn.floor=lu,Tn.forEach=sa,Tn.forEachRight=ua,Tn.forIn=function(t,e){return null==t?t:ar(t,Zi(e,3),_s)},Tn.forInRight=function(t,e){return null==t?t:sr(t,Zi(e,3),_s)},Tn.forOwn=function(t,e){return t&&ur(t,Zi(e,3))},Tn.forOwnRight=function(t,e){return t&&lr(t,Zi(e,3))},Tn.get=ms,Tn.gt=Oa,Tn.gte=Pa,Tn.has=function(t,e){return null!=t&&ro(t,e,mr)},Tn.hasIn=vs,Tn.head=Do,Tn.identity=Ws,Tn.includes=function(t,e,n,r){t=Da(t)?t:Es(t),n=n&&!r?rs(n):0;var i=t.length;return n<0&&(n=an(i+n,0)),Za(t)?n<=i&&t.indexOf(e,n)>-1:!!i&&_e(t,e,n)>-1},Tn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=null==n?0:rs(n);return i<0&&(i=an(r+i,0)),_e(t,e,i)},Tn.inRange=function(t,e,n){return e=ns(e),void 0===n?(n=e,e=0):n=ns(n),function(t,e,n){return t>=sn(e,n)&&t<an(e,n)}(t=os(t),e,n)},Tn.invoke=ys,Tn.isArguments=Ia,Tn.isArray=Ra,Tn.isArrayBuffer=ja,Tn.isArrayLike=Da,Tn.isArrayLikeObject=Na,Tn.isBoolean=function(t){return!0===t||!1===t||Ha(t)&&hr(t)==c},Tn.isBuffer=La,Tn.isDate=Ba,Tn.isElement=function(t){return Ha(t)&&1===t.nodeType&&!Ka(t)},Tn.isEmpty=function(t){if(null==t)return!0;if(Da(t)&&(Ra(t)||"string"==typeof t||"function"==typeof t.splice||La(t)||Xa(t)||Ia(t)))return!t.length;var e=no(t);if(e==m||e==y)return!t.size;if(fo(t))return!xr(t).length;for(var n in t)if(xt.call(t,n))return!1;return!0},Tn.isEqual=function(t,e){return wr(t,e)},Tn.isEqualWith=function(t,e,n){var r=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===r?wr(t,e,void 0,n):!!r},Tn.isError=za,Tn.isFinite=function(t){return"number"==typeof t&&nn(t)},Tn.isFunction=Fa,Tn.isInteger=qa,Tn.isLength=Va,Tn.isMap=Ua,Tn.isMatch=function(t,e){return t===e||_r(t,e,Xi(e))},Tn.isMatchWith=function(t,e,n){return n="function"==typeof n?n:void 0,_r(t,e,Xi(e),n)},Tn.isNaN=function(t){return Wa(t)&&t!=+t},Tn.isNative=function(t){if(co(t))throw new dt("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return kr(t)},Tn.isNil=function(t){return null==t},Tn.isNull=function(t){return null===t},Tn.isNumber=Wa,Tn.isObject=$a,Tn.isObjectLike=Ha,Tn.isPlainObject=Ka,Tn.isRegExp=Ya,Tn.isSafeInteger=function(t){return qa(t)&&t>=-9007199254740991&&t<=9007199254740991},Tn.isSet=Ga,Tn.isString=Za,Tn.isSymbol=Ja,Tn.isTypedArray=Xa,Tn.isUndefined=function(t){return void 0===t},Tn.isWeakMap=function(t){return Ha(t)&&no(t)==k},Tn.isWeakSet=function(t){return Ha(t)&&"[object WeakSet]"==hr(t)},Tn.join=function(t,e){return null==t?"":rn.call(t,e)},Tn.kebabCase=Rs,Tn.last=zo,Tn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=rs(n))<0?an(r+i,0):sn(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):we(t,Me,i,!0)},Tn.lowerCase=js,Tn.lowerFirst=Ds,Tn.lt=Qa,Tn.lte=ts,Tn.max=function(t){return t&&t.length?rr(t,Ws,pr):void 0},Tn.maxBy=function(t,e){return t&&t.length?rr(t,Zi(e,2),pr):void 0},Tn.mean=function(t){return xe(t,Ws)},Tn.meanBy=function(t,e){return xe(t,Zi(e,2))},Tn.min=function(t){return t&&t.length?rr(t,Ws,Cr):void 0},Tn.minBy=function(t,e){return t&&t.length?rr(t,Zi(e,2),Cr):void 0},Tn.stubArray=iu,Tn.stubFalse=ou,Tn.stubObject=function(){return{}},Tn.stubString=function(){return""},Tn.stubTrue=function(){return!0},Tn.multiply=fu,Tn.nth=function(t,e){return t&&t.length?Pr(t,rs(e)):void 0},Tn.noConflict=function(){return Kt._===this&&(Kt._=Et),this},Tn.noop=Js,Tn.now=ma,Tn.pad=function(t,e,n){t=ss(t);var r=(e=rs(e))?Ue(t):0;if(!e||r>=e)return t;var i=(e-r)/2;return Ii(Qe(i),n)+t+Ii(Xe(i),n)},Tn.padEnd=function(t,e,n){t=ss(t);var r=(e=rs(e))?Ue(t):0;return e&&r<e?t+Ii(e-r,n):t},Tn.padStart=function(t,e,n){t=ss(t);var r=(e=rs(e))?Ue(t):0;return e&&r<e?Ii(e-r,n)+t:t},Tn.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),ln(ss(t).replace(G,""),e||0)},Tn.random=function(t,e,n){if(n&&"boolean"!=typeof n&&so(t,e,n)&&(e=n=void 0),void 0===n&&("boolean"==typeof e?(n=e,e=void 0):"boolean"==typeof t&&(n=t,t=void 0)),void 0===t&&void 0===e?(t=0,e=1):(t=ns(t),void 0===e?(e=t,t=0):e=ns(e)),t>e){var r=t;t=e,e=r}if(n||t%1||e%1){var i=cn();return sn(t+i*(e-t+$t("1e-"+((i+"").length-1))),e)}return Nr(t,e)},Tn.reduce=function(t,e,n){var r=Ra(t)?me:Ae,i=arguments.length<3;return r(t,Zi(e,4),n,i,tr)},Tn.reduceRight=function(t,e,n){var r=Ra(t)?ve:Ae,i=arguments.length<3;return r(t,Zi(e,4),n,i,er)},Tn.repeat=function(t,e,n){return e=(n?so(t,e,n):void 0===e)?1:rs(e),Lr(ss(t),e)},Tn.replace=function(){var t=arguments,e=ss(t[0]);return t.length<3?e:e.replace(t[1],t[2])},Tn.result=function(t,e,n){var r=-1,i=(e=si(e,t)).length;for(i||(i=1,t=void 0);++r<i;){var o=null==t?void 0:t[Co(e[r])];void 0===o&&(r=i,o=n),t=Fa(o)?o.call(t):o}return t},Tn.round=du,Tn.runInContext=t,Tn.sample=function(t){return(Ra(t)?zn:zr)(t)},Tn.size=function(t){if(null==t)return 0;if(Da(t))return Za(t)?Ue(t):t.length;var e=no(t);return e==m||e==y?t.size:xr(t).length},Tn.snakeCase=Ns,Tn.some=function(t,e,n){var r=Ra(t)?ge:Wr;return n&&so(t,e,n)&&(e=void 0),r(t,Zi(e,3))},Tn.sortedIndex=function(t,e){return Kr(t,e)},Tn.sortedIndexBy=function(t,e,n){return Yr(t,e,Zi(n,2))},Tn.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var r=Kr(t,e);if(r<n&&Ea(t[r],e))return r}return-1},Tn.sortedLastIndex=function(t,e){return Kr(t,e,!0)},Tn.sortedLastIndexBy=function(t,e,n){return Yr(t,e,Zi(n,2),!0)},Tn.sortedLastIndexOf=function(t,e){if(null==t?0:t.length){var n=Kr(t,e,!0)-1;if(Ea(t[n],e))return n}return-1},Tn.startCase=Ls,Tn.startsWith=function(t,e,n){return t=ss(t),n=null==n?0:Gn(rs(n),0,t.length),e=Jr(e),t.slice(n,n+e.length)==e},Tn.subtract=hu,Tn.sum=function(t){return t&&t.length?Te(t,Ws):0},Tn.sumBy=function(t,e){return t&&t.length?Te(t,Zi(e,2)):0},Tn.template=function(t,e,n){var r=Tn.templateSettings;n&&so(t,e,n)&&(e=void 0),t=ss(t),e=cs({},e,r,Fi);var i,o,a=cs({},e.imports,r.imports,Fi),s=ws(a),u=Pe(a,s),l=0,c=e.interpolate||ct,f="__p += '",d=vt((e.escape||ct).source+"|"+c.source+"|"+(c===V?nt:ct).source+"|"+(e.evaluate||ct).source+"|$","g"),h="//# sourceURL="+(xt.call(e,"sourceURL")?(e.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++zt+"]")+"\n";t.replace(d,(function(e,n,r,a,s,u){return r||(r=a),f+=t.slice(l,u).replace(ft,Be),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=u+e.length,e})),f+="';\n";var p=xt.call(e,"variable")&&e.variable;p||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(R,""):f).replace(j,"$1").replace(D,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var m=qs((function(){return ht(s,h+"return "+f).apply(void 0,u)}));if(m.source=f,za(m))throw m;return m},Tn.times=function(t,e){if((t=rs(t))<1||t>9007199254740991)return[];var n=4294967295,r=sn(t,4294967295);t-=4294967295;for(var i=Ee(r,e=Zi(e));++n<t;)e(n);return i},Tn.toFinite=ns,Tn.toInteger=rs,Tn.toLength=is,Tn.toLower=function(t){return ss(t).toLowerCase()},Tn.toNumber=os,Tn.toSafeInteger=function(t){return t?Gn(rs(t),-9007199254740991,9007199254740991):0===t?t:0},Tn.toString=ss,Tn.toUpper=function(t){return ss(t).toUpperCase()},Tn.trim=function(t,e,n){if((t=ss(t))&&(n||void 0===e))return t.replace(Y,"");if(!t||!(e=Jr(e)))return t;var r=We(t),i=We(e);return li(r,Re(r,i),je(r,i)+1).join("")},Tn.trimEnd=function(t,e,n){if((t=ss(t))&&(n||void 0===e))return t.replace(Z,"");if(!t||!(e=Jr(e)))return t;var r=We(t);return li(r,0,je(r,We(e))+1).join("")},Tn.trimStart=function(t,e,n){if((t=ss(t))&&(n||void 0===e))return t.replace(G,"");if(!t||!(e=Jr(e)))return t;var r=We(t);return li(r,Re(r,We(e))).join("")},Tn.truncate=function(t,e){var n=30,r="...";if($a(e)){var i="separator"in e?e.separator:i;n="length"in e?rs(e.length):n,r="omission"in e?Jr(e.omission):r}var o=(t=ss(t)).length;if(ze(t)){var a=We(t);o=a.length}if(n>=o)return t;var s=n-Ue(r);if(s<1)return r;var u=a?li(a,0,s).join(""):t.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),Ya(i)){if(t.slice(s).search(i)){var l,c=u;for(i.global||(i=vt(i.source,ss(rt.exec(i))+"g")),i.lastIndex=0;l=i.exec(c);)var f=l.index;u=u.slice(0,void 0===f?s:f)}}else if(t.indexOf(Jr(i),s)!=s){var d=u.lastIndexOf(i);d>-1&&(u=u.slice(0,d))}return u+r},Tn.unescape=function(t){return(t=ss(t))&&B.test(t)?t.replace(N,Ke):t},Tn.uniqueId=function(t){var e=++St;return ss(t)+e},Tn.upperCase=Bs,Tn.upperFirst=zs,Tn.each=sa,Tn.eachRight=ua,Tn.first=Do,Zs(Tn,(cu={},ur(Tn,(function(t,e){xt.call(Tn.prototype,e)||(cu[e]=t)})),cu),{chain:!1}),Tn.VERSION="4.17.15",se(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){Tn[t].placeholder=Tn})),se(["drop","take"],(function(t,e){In.prototype[t]=function(n){n=void 0===n?1:an(rs(n),0);var r=this.__filtered__&&!e?new In(this):this.clone();return r.__filtered__?r.__takeCount__=sn(n,r.__takeCount__):r.__views__.push({size:sn(n,4294967295),type:t+(r.__dir__<0?"Right":"")}),r},In.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),se(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;In.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Zi(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),se(["head","last"],(function(t,e){var n="take"+(e?"Right":"");In.prototype[t]=function(){return this[n](1).value()[0]}})),se(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");In.prototype[t]=function(){return this.__filtered__?new In(this):this[n](1)}})),In.prototype.compact=function(){return this.filter(Ws)},In.prototype.find=function(t){return this.filter(t).head()},In.prototype.findLast=function(t){return this.reverse().find(t)},In.prototype.invokeMap=Br((function(t,e){return"function"==typeof t?new In(this):this.map((function(n){return br(n,t,e)}))})),In.prototype.reject=function(t){return this.filter(xa(Zi(t)))},In.prototype.slice=function(t,e){t=rs(t);var n=this;return n.__filtered__&&(t>0||e<0)?new In(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),void 0!==e&&(n=(e=rs(e))<0?n.dropRight(-e):n.take(e-t)),n)},In.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},In.prototype.toArray=function(){return this.take(4294967295)},ur(In.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=Tn[r?"take"+("last"==e?"Right":""):e],o=r||/^find/.test(e);i&&(Tn.prototype[e]=function(){var e=this.__wrapped__,a=r?[1]:arguments,s=e instanceof In,u=a[0],l=s||Ra(e),c=function(t){var e=i.apply(Tn,pe([t],a));return r&&f?e[0]:e};l&&n&&"function"==typeof u&&1!=u.length&&(s=l=!1);var f=this.__chain__,d=!!this.__actions__.length,h=o&&!f,p=s&&!d;if(!o&&l){e=p?e:new In(this);var m=t.apply(e,a);return m.__actions__.push({func:na,args:[c],thisArg:void 0}),new Pn(m,f)}return h&&p?t.apply(this,a):(m=this.thru(c),h?r?m.value()[0]:m.value():m)})})),se(["pop","push","shift","sort","splice","unshift"],(function(t){var e=yt[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);Tn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var i=this.value();return e.apply(Ra(i)?i:[],t)}return this[n]((function(n){return e.apply(Ra(n)?n:[],t)}))}})),ur(In.prototype,(function(t,e){var n=Tn[e];if(n){var r=n.name+"";xt.call(yn,r)||(yn[r]=[]),yn[r].push({name:e,func:n})}})),yn[Ti(void 0,2).name]=[{name:"wrapper",func:void 0}],In.prototype.clone=function(){var t=new In(this.__wrapped__);return t.__actions__=gi(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=gi(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=gi(this.__views__),t},In.prototype.reverse=function(){if(this.__filtered__){var t=new In(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},In.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=Ra(t),r=e<0,i=n?t.length:0,o=function(t,e,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=sn(e,t+a);break;case"takeRight":t=an(t,e-a)}}return{start:t,end:e}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,f=c.length,d=0,h=sn(u,this.__takeCount__);if(!n||!r&&i==u&&h==u)return ni(t,this.__actions__);var p=[];t:for(;u--&&d<h;){for(var m=-1,v=t[l+=e];++m<f;){var g=c[m],b=g.iteratee,y=g.type,w=b(v);if(2==y)v=w;else if(!w){if(1==y)continue t;break t}}p[d++]=v}return p},Tn.prototype.at=ra,Tn.prototype.chain=function(){return ea(this)},Tn.prototype.commit=function(){return new Pn(this.value(),this.__chain__)},Tn.prototype.next=function(){void 0===this.__values__&&(this.__values__=es(this.value()));var t=this.__index__>=this.__values__.length;return{done:t,value:t?void 0:this.__values__[this.__index__++]}},Tn.prototype.plant=function(t){for(var e,n=this;n instanceof On;){var r=To(n);r.__index__=0,r.__values__=void 0,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},Tn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof In){var e=t;return this.__actions__.length&&(e=new In(this)),(e=e.reverse()).__actions__.push({func:na,args:[$o],thisArg:void 0}),new Pn(e,this.__chain__)}return this.thru($o)},Tn.prototype.toJSON=Tn.prototype.valueOf=Tn.prototype.value=function(){return ni(this.__wrapped__,this.__actions__)},Tn.prototype.first=Tn.prototype.head,Xt&&(Tn.prototype[Xt]=function(){return this}),Tn}();Kt._=Ye,void 0===(i=function(){return Ye}.call(e,n,e,r))||(r.exports=i)}).call(this)}).call(this,n("c8ba"),n("62e4")(t))},"32e9":function(t,e,n){var r=n("86cc"),i=n("4630");t.exports=n("9e1e")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"341a":function(t,e,n){},"35e8":function(t,e,n){var r=n("d9f6"),i=n("aebd");t.exports=n("8e60")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},"38fd":function(t,e,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"41a0":function(t,e,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"454f":function(t,e,n){n("46a7");var r=n("584a").Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},"456d":function(t,e,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",(function(){return function(t){return i(r(t))}}))},4588:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},4630:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"46a7":function(t,e,n){var r=n("63b6");r(r.S+r.F*!n("8e60"),"Object",{defineProperty:n("d9f6").f})},"4bf8":function(t,e,n){var r=n("be13");t.exports=function(t){return Object(r(t))}},"52a7":function(t,e){e.f={}.propertyIsEnumerable},5404:function(t,e,n){"use strict";var r=n("97f5");n.n(r).a},5537:function(t,e,n){var r=n("8378"),i=n("7726"),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"584a":function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"5ca1":function(t,e,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),u=function(t,e,n){var l,c,f,d,h=t&u.F,p=t&u.G,m=t&u.S,v=t&u.P,g=t&u.B,b=p?r:m?r[e]||(r[e]={}):(r[e]||{}).prototype,y=p?i:i[e]||(i[e]={}),w=y.prototype||(y.prototype={});for(l in p&&(n=e),n)f=((c=!h&&b&&void 0!==b[l])?b:n)[l],d=g&&c?s(f,r):v&&"function"==typeof f?s(Function.call,f):f,b&&a(b,l,f,t&u.U),y[l]!=f&&o(y,l,d),v&&w[l]!=f&&(w[l]=f)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},"5eda":function(t,e,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");t.exports=function(t,e){var n=(i.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*o((function(){n(1)})),"Object",a)}},"613b":function(t,e,n){var r=n("5537")("keys"),i=n("ca5a");t.exports=function(t){return r[t]||(r[t]=i(t))}},"626a":function(t,e,n){var r=n("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"629f":function(t,e,n){},"62e4":function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},"63b6":function(t,e,n){var r=n("e53d"),i=n("584a"),o=n("d864"),a=n("35e8"),s=n("07e3"),u=function(t,e,n){var l,c,f,d=t&u.F,h=t&u.G,p=t&u.S,m=t&u.P,v=t&u.B,g=t&u.W,b=h?i:i[e]||(i[e]={}),y=b.prototype,w=h?r:p?r[e]:(r[e]||{}).prototype;for(l in h&&(n=e),n)(c=!d&&w&&void 0!==w[l])&&s(b,l)||(f=c?w[l]:n[l],b[l]=h&&"function"!=typeof w[l]?n[l]:v&&c?o(f,r):g&&w[l]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):m&&"function"==typeof f?o(Function.call,f):f,m&&((b.virtual||(b.virtual={}))[l]=f,t&u.R&&y&&!y[l]&&a(y,l,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},6821:function(t,e,n){var r=n("626a"),i=n("be13");t.exports=function(t){return r(i(t))}},"69a8":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"6a99":function(t,e,n){var r=n("d3f4");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},7726:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(t,e,n){var r=n("4588"),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},"794b":function(t,e,n){t.exports=!n("8e60")&&!n("294c")((function(){return 7!=Object.defineProperty(n("1ec9")("div"),"a",{get:function(){return 7}}).a}))},"79aa":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"79e5":function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},"7f20":function(t,e,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},8378:function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"84f2":function(t,e){t.exports={}},"85f2":function(t,e,n){t.exports=n("454f")},"86cc":function(t,e,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;e.f=n("9e1e")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"8e60":function(t,e,n){t.exports=!n("294c")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"8e6e":function(t,e,n){var r=n("5ca1"),i=n("990b"),o=n("6821"),a=n("11e9"),s=n("f1ae");r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,r=o(t),u=a.f,l=i(r),c={},f=0;l.length>f;)void 0!==(n=u(r,e=l[f++]))&&s(c,e,n);return c}})},9093:function(t,e,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},"97f5":function(t,e,n){},"990b":function(t,e,n){var r=n("9093"),i=n("2621"),o=n("cb7c"),a=n("7726").Reflect;t.exports=a&&a.ownKeys||function(t){var e=r.f(o(t)),n=i.f;return n?e.concat(n(t)):e}},"9b43":function(t,e,n){var r=n("d8e8");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"9c6c":function(t,e,n){var r=n("2b4c")("unscopables"),i=Array.prototype;null==i[r]&&n("32e9")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9d16":function(t,e,n){"use strict";var r=n("341a");n.n(r).a},"9def":function(t,e,n){var r=n("4588"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},"9e1e":function(t,e,n){t.exports=!n("79e5")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},ac6a:function(t,e,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),u=n("84f2"),l=n("2b4c"),c=l("iterator"),f=l("toStringTag"),d=u.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(h),m=0;m<p.length;m++){var v,g=p[m],b=h[g],y=a[g],w=y&&y.prototype;if(w&&(w[c]||s(w,c,d),w[f]||s(w,f,g),u[g]=d,b))for(v in r)w[v]||o(w,v,r[v],!0)}},aebd:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},be13:function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},c366:function(t,e,n){var r=n("6821"),i=n("9def"),o=n("77f1");t.exports=function(t){return function(e,n,a){var s,u=r(e),l=i(u.length),c=o(a,l);if(t&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((t||c in u)&&u[c]===n)return t||c||0;return!t&&-1}}},c69a:function(t,e,n){t.exports=!n("9e1e")&&!n("79e5")((function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a}))},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},ca5a:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},cadf:function(t,e,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");t.exports=n("01f9")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(t,e,n){var r=n("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,e,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;e.length>u;)r(s,n=e[u++])&&(~o(l,n)||l.push(n));return l}},d3f4:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},d53b:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},d864:function(t,e,n){var r=n("79aa");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},d8e8:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d9f6:function(t,e,n){var r=n("e4ae"),i=n("794b"),o=n("1bc3"),a=Object.defineProperty;e.f=n("8e60")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},e11e:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4ae:function(t,e,n){var r=n("f772");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},e53d:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},f1ae:function(t,e,n){"use strict";var r=n("86cc"),i=n("4630");t.exports=function(t,e,n){e in t?r.f(t,e,i(0,n)):t[e]=n}},f6fd:function(t,e){!function(t){var e=t.getElementsByTagName("script");"currentScript"in t||Object.defineProperty(t,"currentScript",{get:function(){try{throw new Error}catch(r){var t,n=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in e)if(e[t].src==n||"interactive"==e[t].readyState)return e[t];return null}}})}(document)},f772:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},fa5b:function(t,e,n){t.exports=n("5537")("native-function-to-string",Function.toString)},fab2:function(t,e,n){var r=n("7726").document;t.exports=r&&r.documentElement},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!=typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("8e6e"),n("ac6a"),n("cadf"),n("456d");var i=n("85f2"),o=n.n(i);function a(t,e,n){return e in t?o()(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=n("2ef0"),u={name:"repeater-block",props:["isFirst","isLast","icon"],methods:{dragStart:function(t){t.target.style.opacity=.5,this.$emit("dragStart",t)},dragEnd:function(t){t.target.style.opacity=1,this.$emit("dragEnd",t)}}};n("5404");function l(t,e,n,r,i,o,a,s){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:l}}var c=l(u,(function(){var t,e=this,n=e.$createElement,r=e._self._c||n;return r("div",{staticClass:"repeater-block",attrs:{draggable:"true"},on:{dragstart:e.dragStart,dragend:e.dragEnd,click:function(t){return e.$emit("click")}}},[r("div",{staticClass:"toolbar"},[e.icon?r("div",{staticClass:"block-icon"},[r("button",[r("i",{class:(t={},t[e.icon]=!0,t)})])]):e._e(),r("button",{attrs:{title:"Add"},on:{click:function(t){return t.stopPropagation(),e.$emit("add")}}},[r("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M6.5 6.5V1C6.5 0.854167 6.54688 0.734375 6.64062 0.640625C6.73438 0.546875 6.85417 0.5 7 0.5C7.14583 0.5 7.26562 0.546875 7.35938 0.640625C7.45312 0.734375 7.5 0.854167 7.5 1V6.5H13C13.1458 6.5 13.2656 6.54688 13.3594 6.64062C13.4531 6.73438 13.5 6.85417 13.5 7C13.5 7.14583 13.4531 7.26562 13.3594 7.35938C13.2656 7.45312 13.1458 7.5 13 7.5H7.5V13C7.5 13.1458 7.45312 13.2656 7.35938 13.3594C7.26562 13.4531 7.14583 13.5 7 13.5C6.85417 13.5 6.73438 13.4531 6.64062 13.3594C6.54688 13.2656 6.5 13.1458 6.5 13V7.5H1C0.854167 7.5 0.734375 7.45312 0.640625 7.35938C0.546875 7.26562 0.5 7.14583 0.5 7C0.5 6.85417 0.546875 6.73438 0.640625 6.64062C0.734375 6.54688 0.854167 6.5 1 6.5H6.5Z",fill:"black"}})])]),r("button",{attrs:{content:"Duplicate"},on:{click:function(t){return t.stopPropagation(),e.$emit("duplicate")}}},[r("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M11 12C10.9896 12.5625 10.7917 13.0312 10.4062 13.4062C10.0312 13.7917 9.5625 13.9896 9 14H2C1.4375 13.9896 0.963542 13.7917 0.578125 13.4062C0.203125 13.0312 0.0104167 12.5625 0 12V5C0.0104167 4.4375 0.203125 3.96875 0.578125 3.59375C0.963542 3.20833 1.4375 3.01042 2 3V4C1.71875 4.01042 1.48438 4.10938 1.29688 4.29688C1.10938 4.48438 1.01042 4.71875 1 5V12C1.01042 12.2812 1.10938 12.5156 1.29688 12.7031C1.48438 12.8906 1.71875 12.9896 2 13H9C9.28125 12.9896 9.51562 12.8906 9.70312 12.7031C9.89062 12.5156 9.98958 12.2812 10 12H11ZM5 1C4.71875 1.01042 4.48438 1.10938 4.29688 1.29688C4.10938 1.48438 4.01042 1.71875 4 2V9C4.01042 9.28125 4.10938 9.51562 4.29688 9.70312C4.48438 9.89062 4.71875 9.98958 5 10H12C12.2812 9.98958 12.5156 9.89062 12.7031 9.70312C12.8906 9.51562 12.9896 9.28125 13 9V2C12.9896 1.71875 12.8906 1.48438 12.7031 1.29688C12.5156 1.10938 12.2812 1.01042 12 1H5ZM5 0H12C12.5625 0.0104167 13.0312 0.208333 13.4062 0.59375C13.7917 0.96875 13.9896 1.4375 14 2V9C13.9896 9.5625 13.7917 10.0365 13.4062 10.4219C13.0312 10.7969 12.5625 10.9896 12 11H5C4.4375 10.9896 3.96354 10.7969 3.57812 10.4219C3.20312 10.0365 3.01042 9.5625 3 9V2C3.01042 1.4375 3.20312 0.96875 3.57812 0.59375C3.96354 0.208333 4.4375 0.0104167 5 0Z",fill:"black"}})])]),r("button",{attrs:{title:"Remove block"},on:{click:function(t){return t.stopPropagation(),e.$emit("remove")}}},[r("svg",{attrs:{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[r("path",{attrs:{d:"M1.5 3H0.5C0.354167 3 0.234375 2.95312 0.140625 2.85938C0.046875 2.76562 0 2.64583 0 2.5C0 2.35417 0.046875 2.23438 0.140625 2.14062C0.234375 2.04688 0.354167 2 0.5 2H4.5V0.5C4.5 0.354167 4.54688 0.234375 4.64062 0.140625C4.73438 0.046875 4.85417 0 5 0H9C9.14583 0 9.26562 0.046875 9.35938 0.140625C9.45312 0.234375 9.5 0.354167 9.5 0.5V2H13.5C13.6458 2 13.7656 2.04688 13.8594 2.14062C13.9531 2.23438 14 2.35417 14 2.5C14 2.64583 13.9531 2.76562 13.8594 2.85938C13.7656 2.95312 13.6458 3 13.5 3H12.5V13.5C12.5 13.6458 12.4531 13.7656 12.3594 13.8594C12.2656 13.9531 12.1458 14 12 14H2C1.85417 14 1.73438 13.9531 1.64062 13.8594C1.54688 13.7656 1.5 13.6458 1.5 13.5V3ZM8.5 2V1H5.5V2H8.5ZM2.5 13H11.5V3H2.5V13ZM5.5 11C5.35417 11 5.23438 10.9531 5.14062 10.8594C5.04688 10.7656 5 10.6458 5 10.5V5.5C5 5.35417 5.04688 5.23438 5.14062 5.14062C5.23438 5.04688 5.35417 5 5.5 5C5.64583 5 5.76562 5.04688 5.85938 5.14062C5.95312 5.23438 6 5.35417 6 5.5V10.5C6 10.6458 5.95312 10.7656 5.85938 10.8594C5.76562 10.9531 5.64583 11 5.5 11ZM8.5 11C8.35417 11 8.23438 10.9531 8.14062 10.8594C8.04688 10.7656 8 10.6458 8 10.5V5.5C8 5.35417 8.04688 5.23438 8.14062 5.14062C8.23438 5.04688 8.35417 5 8.5 5C8.64583 5 8.76562 5.04688 8.85938 5.14062C8.95312 5.23438 9 5.35417 9 5.5V10.5C9 10.6458 8.95312 10.7656 8.85938 10.8594C8.76562 10.9531 8.64583 11 8.5 11Z",fill:"black"}})])])]),r("div",{staticClass:"navigation"},[e.isFirst?e._e():r("button",{staticClass:"nav-button up",attrs:{type:"button"},on:{click:function(t){return t.stopPropagation(),e.$emit("up")}}},[r("svg",{attrs:{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",role:"img","aria-hidden":"true",focusable:"false"}},[r("polygon",{attrs:{points:"9,4.5 3.3,10.1 4.8,11.5 9,7.3 13.2,11.5 14.7,10.1 "}})])]),r("button",{staticClass:"nav-anchor",attrs:{type:"button"}},[r("svg",{attrs:{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",role:"img","aria-hidden":"true",focusable:"false"}},[r("path",{attrs:{d:"M13,8c0.6,0,1-0.4,1-1s-0.4-1-1-1s-1,0.4-1,1S12.4,8,13,8z M5,6C4.4,6,4,6.4,4,7s0.4,1,1,1s1-0.4,1-1S5.6,6,5,6z M5,10 c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S5.6,10,5,10z M13,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S13.6,10,13,10z M9,6 C8.4,6,8,6.4,8,7s0.4,1,1,1s1-0.4,1-1S9.6,6,9,6z M9,10c-0.6,0-1,0.4-1,1s0.4,1,1,1s1-0.4,1-1S9.6,10,9,10z"}})])]),e.isLast?e._e():r("button",{staticClass:"nav-button down",attrs:{type:"button"},on:{click:function(t){return t.stopPropagation(),e.$emit("down")}}},[r("svg",{attrs:{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",role:"img","aria-hidden":"true",focusable:"false"}},[r("polygon",{attrs:{points:"9,13.5 14.7,7.9 13.2,6.5 9,10.7 4.8,6.5 3.3,7.9 "}})])])]),e._t("default")],2)}),[],!1,null,"25650116",null).exports,f={name:"repeater-drop-zone"};n("9d16");function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(n,!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p={name:"repeater",components:{"repeater-block":c,"repeater-drop-zone":l(f,(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"repeater-drop-zone",on:{dragover:function(t){t.preventDefault()},drop:function(e){return t.$emit("drop",e)},dragenter:function(e){return t.$emit("dragEnter",e)}}},[t._t("default")],2)}),[],!1,null,"423cbaa4",null).exports},model:{prop:"fields",event:"change"},props:["fields"],mounted:function(){document.body.addEventListener("click",this.clickOutside)},beforeDestroy:function(){document.body.removeEventListener("click",this.clickOutside)},data:function(){return{pFields:this.fields.map((function(t){return h({},t,{defaultValue:Object(s.cloneDeep)(t.value)})})),entered:-1}},methods:{clickOutside:function(t){this.deactivate()},setFields:function(t){this.pFields=t,this.$emit("change",this.pFields)},add:function(t,e){var n=Object(s.cloneDeep)(this.pFields),r=Object(s.cloneDeep)(e);r.value=r.defaultValue,r.active=!1,n.splice(t,0,r),this.setFields(n)},remove:function(t){var e=Object(s.cloneDeep)(this.pFields);e.splice(t,1),this.setFields(e)},duplicate:function(t,e){var n=Object(s.cloneDeep)(this.pFields),r=Object(s.cloneDeep)(e);r.active=!1,n.splice(t,0,r),this.setFields(n)},move:function(t,e){t=parseInt(t,10)||0;var n=Object(s.cloneDeep)(this.pFields),r=n.splice(t,1);n.splice(e,0,r[0]),this.setFields(n),this.entered=-1},deactivate:function(){var t=Object(s.cloneDeep)(this.pFields).map((function(t){return h({},t,{active:!1})}));this.setFields(t)},activate:function(t){this.deactivate();var e=Object(s.cloneDeep)(this.pFields);e[t].active=!0,this.setFields(e)},dragEnd:function(t){var e=t.y,n=this.$refs.repeater.getBoundingClientRect().bottom,r=t.dataTransfer.getData("index"),i=this.pFields.length-1;e>n&&this.move(r,i)}}},m=(n("1ecd"),l(p,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"repeater",staticClass:"repeater",on:{click:function(t){t.stopPropagation()}}},t._l(t.pFields,(function(e,r){return n("repeater-drop-zone",{key:e.name+r,class:{entered:t.entered===r},on:{drop:function(e){t.move(e.dataTransfer.getData("index"),r)},dragEnter:function(e){t.entered=r}}},[n("repeater-block",{class:{active:e.active},attrs:{isFirst:0===r,isLast:r===t.pFields.length-1},on:{dragStart:function(t){return t.dataTransfer.setData("index",r)},dragEnd:t.dragEnd,add:function(n){return t.add(r,e)},remove:function(e){return t.remove(r)},duplicate:function(n){return t.duplicate(r,e)},up:function(e){return t.move(r,r-1)},down:function(e){return t.move(r,r+1)},click:function(e){return t.activate(r)}}},[n(e.name,{tag:"component",model:{value:e.value,callback:function(n){t.$set(e,"value",n)},expression:"field.value"}})],1)],1)})),1)}),[],!1,null,null,null).exports);e.default=m}}).default},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="dist",n(n.s=0)}([function(t,e,n){var r;function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){function n(t,e){var r,i,o;n.installed||(n.installed=!0,e&&e.lodash?(t.lodash=e.lodash,t._=e.lodash,Object.defineProperties(t.prototype,{lodash:{get:function(){return e.lodash}},_:{get:function(){return e.lodash}}}),e.name&&(t[e.name]=e.lodash,Object.defineProperties(t.prototype,(r={},o={get:function(){return e.lodash}},(i=e.name)in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o,r)))):console.error("You have to install lodash"))}"object"==i(e)?t.exports=n:void 0===(r=function(){return n}.apply(e,[]))||(t.exports=r)}()}])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){t.exports=n(726)},function(t,e,n){"use strict";n.r(e);n(239),n(240),n(242);var r=n(60),i=n.n(r),o=n(197),a=n(504),s=n.n(a),u=(n(727),n(68)),l=n.n(u),c=n(567),f=n.n(c);n(503),window.Vue=n(67),window.Vue.use(i.a),window.Vue.use(o.MdProgress),window.Vue.use(s.a),window.Vue.component("vue-repeater",s.a);var d=Vue.options.components["vue-repeater"].extend({methods:{add:function(t,e){var n=Object(u.cloneDeep)(this.pFields),r=Object(u.cloneDeep)(e);r.value=r.defaultValue,r.active=!1,n.push(r),this.setFields(n)}}});window.Vue.component("vue-repeater-after",d),window.Vue.use(f.a,{lodash:l.a});var h=n(287);h.keys().map((function(t){return Vue.component(t.split("/").pop().split(".")[0],h(t).default)}));new Vue({el:"#app",data:{publishState:{file:{title:"",slug:""},email:{subject:"",content:""}}}})},function(t,e,n){var r=n(8),i=n(728);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});t.exports=a},function(t,e,n){(e=n(9)(!1)).push([t.i,".repeater-block[data-v-25650116]{padding:16px;background:var(--white,var(--def-white));position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;min-height:100px;border:1px solid transparent;border-left-width:3px}.repeater-block.active[data-v-25650116]{border-color:var(--border-base,var(--def-border-base))}.repeater-block.active .navigation[data-v-25650116]{display:block}.repeater-block.active .toolbar[data-v-25650116]{display:-webkit-box;display:-ms-flexbox;display:flex}.repeater-block .toolbar[data-v-25650116]{position:absolute;top:-36px;left:-3px;display:none;padding:0;background:var(--white,var(--def-white));overflow:hidden;border:1px solid var(--border-light,var(--def-border-light));border-left-width:3px}.repeater-block .toolbar .block-icon[data-v-25650116],.repeater-block .toolbar[data-v-25650116]{height:36px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.repeater-block .toolbar .block-icon[data-v-25650116]{background:var(--background-base,var(--def-background-base));width:48px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.repeater-block .toolbar .block-icon button[data-v-25650116]{cursor:default}.repeater-block .toolbar .block-icon button[data-v-25650116]:hover{-webkit-box-shadow:none;box-shadow:none;border:0}.repeater-block .toolbar button[data-v-25650116]{background:transparent;border:1px solid transparent;border-radius:4px;display:block;width:30px;height:30px;cursor:pointer;font-size:16px;margin:0 4px}.repeater-block .toolbar button[data-v-25650116]:hover{border:1px solid var(--border-base,var(--def-border-base));-webkit-box-shadow:0 1px 1px var(--border-base,var(--def-border-base));box-shadow:0 1px 1px var(--border-base,var(--def-border-base))}.repeater-block[data-v-25650116]:hover{border-color:var(--border-base,var(--def-border-base))}.repeater-block:hover .navigation[data-v-25650116]{display:block}.repeater-block:hover .toolbar[data-v-25650116]{display:-webkit-box;display:-ms-flexbox;display:flex}.repeater-block .navigation[data-v-25650116]{position:absolute;top:0;bottom:0;left:-29px;width:29px;display:none}.repeater-block .navigation button[data-v-25650116]{background:transparent;position:absolute;left:-2px;opacity:.5;margin-right:2px}.repeater-block .navigation button[data-v-25650116]:hover{opacity:1}.repeater-block .navigation .nav-anchor[data-v-25650116]{border:none;padding:2px 5px;outline:none;cursor:pointer;top:27px}.repeater-block .navigation .nav-button[data-v-25650116]{border:none;cursor:pointer;padding:2px 5px;border-radius:4px;margin-bottom:5px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.repeater-block .navigation .nav-button[data-v-25650116]:hover{-webkit-box-shadow:inset 0 0 0 1px var(--border-light,var(--def-border-light)),inset 0 0 0 2px var(--white,var(--def-white)),0 1px 1px var(--border-base,var(--def-border-base));box-shadow:inset 0 0 0 1px var(--border-light,var(--def-border-light)),inset 0 0 0 2px var(--white,var(--def-white)),0 1px 1px var(--border-base,var(--def-border-base))}.repeater-block .navigation .nav-button.up[data-v-25650116]{top:0}.repeater-block .navigation .nav-button.down[data-v-25650116]{top:51px}.entered[data-v-423cbaa4]{-webkit-box-shadow:inset 0 3px 0 0 var(--primary,var(--def-primary));box-shadow:inset 0 3px 0 0 var(--primary,var(--def-primary))}.repeater-drop-zone[data-v-423cbaa4]{padding-top:8px}:root{--def-primary:#409eff;--def-success:#67c23a;--def-warning:#e6a23c;--def-danger:#f56c6c;--def-info:#909399;--def-text-primary:#303133;--def-text-regular:#555d66;--def-text-secondary:#909399;--def-text-placeholder:#c0c4cc;--def-border-base:#dcdfe6;--def-border-light:#e4e7ed;--def-border-extra-light:#f2f6fc;--def-white:#fff;--def-black:#000;--def-background-base:#f5f7fa}.test{width:900px;margin:200px auto 0}.address[data-v-1b0fdeb4],.row[data-v-1b0fdeb4]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.row[data-v-1b0fdeb4]{margin-bottom:16px}label[data-v-1b0fdeb4]{text-align:left;margin-bottom:4px}input[data-v-1b0fdeb4]{height:32px;border-radius:4px;border:1px solid var(--def-border-base)}",""]),t.exports=e}]);
\ No newline at end of file
index b7b086c1c31b2df89028bcc0d259cb1fb36ad44e..86aeed4cdd8eb746be9b943861830544aca4603d 100644 (file)
@@ -5,4 +5,4 @@
  * Copyright 2011-2019 The Bootstrap Authors
  * Copyright 2011-2019 Twitter, Inc.
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
- */:root{--blue:#3490dc;--indigo:#6574cd;--purple:#9561e2;--pink:#f66d9b;--red:#e3342f;--orange:#f6993f;--yellow:#ffed4a;--green:#38c172;--teal:#4dc0b5;--cyan:#6cb2eb;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#3490dc;--secondary:#6c757d;--success:#38c172;--info:#6cb2eb;--warning:#ffed4a;--danger:#e3342f;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:"Avenir Next",sans-serif;--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:Avenir Next,sans-serif;font-size:.9rem;font-weight:400;line-height:1.6;color:#212529;text-align:left;background-color:#f8fafc}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#3490dc;text-decoration:none;background-color:transparent}a:hover{color:#1d68a7;text-decoration:underline}a:not([href]),a:not([href]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{border-style:none}img,svg{vertical-align:middle}svg{overflow:hidden}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:2.25rem}.h2,h2{font-size:1.8rem}.h3,h3{font-size:1.575rem}.h4,h4{font-size:1.35rem}.h5,h5{font-size:1.125rem}.h6,h6{font-size:.9rem}.lead{font-size:1.125rem;font-weight:300}.display-1{font-size:6rem}.display-1,.display-2{font-weight:300;line-height:1.2}.display-2{font-size:5.5rem}.display-3{font-size:4.5rem}.display-3,.display-4{font-weight:300;line-height:1.2}.display-4{font-size:3.5rem}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-inline,.list-unstyled{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.125rem}.blockquote-footer{display:block;font-size:80%;color:#6c757d}.blockquote-footer:before{content:"— "}.img-fluid,.img-thumbnail{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#f8fafc;border:1px solid #dee2e6;border-radius:.25rem}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#f66d9b;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid,.container-lg,.container-md,.container-sm,.container-xl{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}.row{display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col-auto,.col-lg,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-auto,.col-md,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-md-auto,.col-sm,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-1>*{flex:0 0 100%;max-width:100%}.row-cols-2>*{flex:0 0 50%;max-width:50%}.row-cols-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-4>*{flex:0 0 25%;max-width:25%}.row-cols-5>*{flex:0 0 20%;max-width:20%}.row-cols-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto;max-width:100%}.col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-3{flex:0 0 25%;max-width:25%}.col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-6{flex:0 0 50%;max-width:50%}.col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-9{flex:0 0 75%;max-width:75%}.col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-12{flex:0 0 100%;max-width:100%}.order-first{order:-1}.order-last{order:13}.order-0{order:0}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}.offset-1{margin-left:8.3333333333%}.offset-2{margin-left:16.6666666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.3333333333%}.offset-5{margin-left:41.6666666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.3333333333%}.offset-8{margin-left:66.6666666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.3333333333%}.offset-11{margin-left:91.6666666667%}@media (min-width:576px){.col-sm{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-sm-1>*{flex:0 0 100%;max-width:100%}.row-cols-sm-2>*{flex:0 0 50%;max-width:50%}.row-cols-sm-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 25%;max-width:25%}.row-cols-sm-5>*{flex:0 0 20%;max-width:20%}.row-cols-sm-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-sm-3{flex:0 0 25%;max-width:25%}.col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-sm-6{flex:0 0 50%;max-width:50%}.col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-sm-9{flex:0 0 75%;max-width:75%}.col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-sm-12{flex:0 0 100%;max-width:100%}.order-sm-first{order:-1}.order-sm-last{order:13}.order-sm-0{order:0}.order-sm-1{order:1}.order-sm-2{order:2}.order-sm-3{order:3}.order-sm-4{order:4}.order-sm-5{order:5}.order-sm-6{order:6}.order-sm-7{order:7}.order-sm-8{order:8}.order-sm-9{order:9}.order-sm-10{order:10}.order-sm-11{order:11}.order-sm-12{order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.3333333333%}.offset-sm-2{margin-left:16.6666666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.3333333333%}.offset-sm-5{margin-left:41.6666666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.3333333333%}.offset-sm-8{margin-left:66.6666666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.3333333333%}.offset-sm-11{margin-left:91.6666666667%}}@media (min-width:768px){.col-md{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-md-1>*{flex:0 0 100%;max-width:100%}.row-cols-md-2>*{flex:0 0 50%;max-width:50%}.row-cols-md-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-md-4>*{flex:0 0 25%;max-width:25%}.row-cols-md-5>*{flex:0 0 20%;max-width:20%}.row-cols-md-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-md-3{flex:0 0 25%;max-width:25%}.col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-md-6{flex:0 0 50%;max-width:50%}.col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-md-9{flex:0 0 75%;max-width:75%}.col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-md-12{flex:0 0 100%;max-width:100%}.order-md-first{order:-1}.order-md-last{order:13}.order-md-0{order:0}.order-md-1{order:1}.order-md-2{order:2}.order-md-3{order:3}.order-md-4{order:4}.order-md-5{order:5}.order-md-6{order:6}.order-md-7{order:7}.order-md-8{order:8}.order-md-9{order:9}.order-md-10{order:10}.order-md-11{order:11}.order-md-12{order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.3333333333%}.offset-md-2{margin-left:16.6666666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.3333333333%}.offset-md-5{margin-left:41.6666666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.3333333333%}.offset-md-8{margin-left:66.6666666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.3333333333%}.offset-md-11{margin-left:91.6666666667%}}@media (min-width:992px){.col-lg{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-lg-1>*{flex:0 0 100%;max-width:100%}.row-cols-lg-2>*{flex:0 0 50%;max-width:50%}.row-cols-lg-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 25%;max-width:25%}.row-cols-lg-5>*{flex:0 0 20%;max-width:20%}.row-cols-lg-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-lg-6{flex:0 0 50%;max-width:50%}.col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-lg-9{flex:0 0 75%;max-width:75%}.col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-lg-12{flex:0 0 100%;max-width:100%}.order-lg-first{order:-1}.order-lg-last{order:13}.order-lg-0{order:0}.order-lg-1{order:1}.order-lg-2{order:2}.order-lg-3{order:3}.order-lg-4{order:4}.order-lg-5{order:5}.order-lg-6{order:6}.order-lg-7{order:7}.order-lg-8{order:8}.order-lg-9{order:9}.order-lg-10{order:10}.order-lg-11{order:11}.order-lg-12{order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.3333333333%}.offset-lg-2{margin-left:16.6666666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.3333333333%}.offset-lg-5{margin-left:41.6666666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.3333333333%}.offset-lg-8{margin-left:66.6666666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.3333333333%}.offset-lg-11{margin-left:91.6666666667%}}@media (min-width:1200px){.col-xl{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-xl-1>*{flex:0 0 100%;max-width:100%}.row-cols-xl-2>*{flex:0 0 50%;max-width:50%}.row-cols-xl-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 25%;max-width:25%}.row-cols-xl-5>*{flex:0 0 20%;max-width:20%}.row-cols-xl-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xl-3{flex:0 0 25%;max-width:25%}.col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-xl-6{flex:0 0 50%;max-width:50%}.col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-xl-9{flex:0 0 75%;max-width:75%}.col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-xl-12{flex:0 0 100%;max-width:100%}.order-xl-first{order:-1}.order-xl-last{order:13}.order-xl-0{order:0}.order-xl-1{order:1}.order-xl-2{order:2}.order-xl-3{order:3}.order-xl-4{order:4}.order-xl-5{order:5}.order-xl-6{order:6}.order-xl-7{order:7}.order-xl-8{order:8}.order-xl-9{order:9}.order-xl-10{order:10}.order-xl-11{order:11}.order-xl-12{order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.3333333333%}.offset-xl-2{margin-left:16.6666666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.3333333333%}.offset-xl-5{margin-left:41.6666666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.3333333333%}.offset-xl-8{margin-left:66.6666666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.3333333333%}.offset-xl-11{margin-left:91.6666666667%}}.table{width:100%;margin-bottom:1rem;color:#212529}.table td,.table th{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table-sm td,.table-sm th{padding:.3rem}.table-bordered,.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.table-hover tbody tr:hover{color:#212529;background-color:rgba(0,0,0,.075)}.table-primary,.table-primary>td,.table-primary>th{background-color:#c6e0f5}.table-primary tbody+tbody,.table-primary td,.table-primary th,.table-primary thead th{border-color:#95c5ed}.table-hover .table-primary:hover,.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#b0d4f1}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-secondary tbody+tbody,.table-secondary td,.table-secondary th,.table-secondary thead th{border-color:#b3b7bb}.table-hover .table-secondary:hover,.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c7eed8}.table-success tbody+tbody,.table-success td,.table-success th,.table-success thead th{border-color:#98dfb6}.table-hover .table-success:hover,.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b3e8ca}.table-info,.table-info>td,.table-info>th{background-color:#d6e9f9}.table-info tbody+tbody,.table-info td,.table-info th,.table-info thead th{border-color:#b3d7f5}.table-hover .table-info:hover,.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#c0ddf6}.table-warning,.table-warning>td,.table-warning>th{background-color:#fffacc}.table-warning tbody+tbody,.table-warning td,.table-warning th,.table-warning thead th{border-color:#fff6a1}.table-hover .table-warning:hover,.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#fff8b3}.table-danger,.table-danger>td,.table-danger>th{background-color:#f7c6c5}.table-danger tbody+tbody,.table-danger td,.table-danger th,.table-danger thead th{border-color:#f09593}.table-hover .table-danger:hover,.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f4b0af}.table-light,.table-light>td,.table-light>th{background-color:#fdfdfe}.table-light tbody+tbody,.table-light td,.table-light th,.table-light thead th{border-color:#fbfcfc}.table-hover .table-light:hover,.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#95999c}.table-hover .table-dark:hover,.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th,.table-hover .table-active:hover,.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.table .thead-dark th{color:#fff;background-color:#343a40;border-color:#454d55}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#343a40}.table-dark td,.table-dark th,.table-dark thead th{border-color:#454d55}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:hsla(0,0%,100%,.05)}.table-dark.table-hover tbody tr:hover{color:#fff;background-color:hsla(0,0%,100%,.075)}@media (max-width:575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-sm>.table-bordered{border:0}}@media (max-width:767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-md>.table-bordered{border:0}}@media (max-width:991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-lg>.table-bordered{border:0}}@media (max-width:1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive>.table-bordered{border:0}.ais-SearchBox-input,.form-control{display:block;width:100%;height:calc(1.6em + .75rem + 2px);padding:.375rem .75rem;font-size:.9rem;font-weight:400;line-height:1.6;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.ais-SearchBox-input,.form-control{transition:none}}.ais-SearchBox-input::-ms-expand,.form-control::-ms-expand{background-color:transparent;border:0}.ais-SearchBox-input:-moz-focusring,.form-control:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.ais-SearchBox-input:focus,.form-control:focus{color:#495057;background-color:#fff;border-color:#a1cbef;outline:0;box-shadow:0 0 0 .2rem rgba(52,144,220,.25)}.ais-SearchBox-input::-moz-placeholder,.form-control::-moz-placeholder{color:#6c757d;opacity:1}.ais-SearchBox-input:-ms-input-placeholder,.form-control:-ms-input-placeholder{color:#6c757d;opacity:1}.ais-SearchBox-input::placeholder,.form-control::placeholder{color:#6c757d;opacity:1}.ais-SearchBox-input:disabled,.form-control:disabled,.form-control[readonly],[readonly].ais-SearchBox-input{background-color:#e9ecef;opacity:1}select.ais-SearchBox-input:focus::-ms-value,select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.6}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.125rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.7875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;font-size:.9rem;line-height:1.6;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.7875rem;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.125rem;line-height:1.5;border-radius:.3rem}select.form-control[multiple],select.form-control[size],select[multiple].ais-SearchBox-input,select[size].ais-SearchBox-input,textarea.ais-SearchBox-input,textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:flex;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:inline-flex;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#38c172}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.7875rem;line-height:1.6;color:#fff;background-color:rgba(56,193,114,.9);border-radius:.25rem}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.is-valid.ais-SearchBox-input,.was-validated .ais-SearchBox-input:valid,.was-validated .form-control:valid{border-color:#38c172;padding-right:calc(1.6em + .75rem);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%2338c172' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right calc(.4em + .1875rem) center;background-size:calc(.8em + .375rem) calc(.8em + .375rem)}.form-control.is-valid:focus,.is-valid.ais-SearchBox-input:focus,.was-validated .ais-SearchBox-input:valid:focus,.was-validated .form-control:valid:focus{border-color:#38c172;box-shadow:0 0 0 .2rem rgba(56,193,114,.25)}.was-validated textarea.ais-SearchBox-input:valid,.was-validated textarea.form-control:valid,textarea.form-control.is-valid,textarea.is-valid.ais-SearchBox-input{padding-right:calc(1.6em + .75rem);background-position:top calc(.4em + .1875rem) right calc(.4em + .1875rem)}.custom-select.is-valid,.was-validated .custom-select:valid{border-color:#38c172;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%2338c172' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E") #fff no-repeat center right 1.75rem/calc(.8em + .375rem) calc(.8em + .375rem)}.custom-select.is-valid:focus,.was-validated .custom-select:valid:focus{border-color:#38c172;box-shadow:0 0 0 .2rem rgba(56,193,114,.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#38c172}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#38c172}.custom-control-input.is-valid~.custom-control-label:before,.was-validated .custom-control-input:valid~.custom-control-label:before{border-color:#38c172}.custom-control-input.is-valid:checked~.custom-control-label:before,.was-validated .custom-control-input:valid:checked~.custom-control-label:before{border-color:#5cd08d;background-color:#5cd08d}.custom-control-input.is-valid:focus~.custom-control-label:before,.was-validated .custom-control-input:valid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem rgba(56,193,114,.25)}.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label:before,.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#38c172}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{border-color:#38c172;box-shadow:0 0 0 .2rem rgba(56,193,114,.25)}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#e3342f}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.7875rem;line-height:1.6;color:#fff;background-color:rgba(227,52,47,.9);border-radius:.25rem}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.is-invalid.ais-SearchBox-input,.was-validated .ais-SearchBox-input:invalid,.was-validated .form-control:invalid{border-color:#e3342f;padding-right:calc(1.6em + .75rem);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23e3342f'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23e3342f' stroke='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right calc(.4em + .1875rem) center;background-size:calc(.8em + .375rem) calc(.8em + .375rem)}.form-control.is-invalid:focus,.is-invalid.ais-SearchBox-input:focus,.was-validated .ais-SearchBox-input:invalid:focus,.was-validated .form-control:invalid:focus{border-color:#e3342f;box-shadow:0 0 0 .2rem rgba(227,52,47,.25)}.was-validated textarea.ais-SearchBox-input:invalid,.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid,textarea.is-invalid.ais-SearchBox-input{padding-right:calc(1.6em + .75rem);background-position:top calc(.4em + .1875rem) right calc(.4em + .1875rem)}.custom-select.is-invalid,.was-validated .custom-select:invalid{border-color:#e3342f;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23e3342f'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23e3342f' stroke='none'/%3E%3C/svg%3E") #fff no-repeat center right 1.75rem/calc(.8em + .375rem) calc(.8em + .375rem)}.custom-select.is-invalid:focus,.was-validated .custom-select:invalid:focus{border-color:#e3342f;box-shadow:0 0 0 .2rem rgba(227,52,47,.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#e3342f}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#e3342f}.custom-control-input.is-invalid~.custom-control-label:before,.was-validated .custom-control-input:invalid~.custom-control-label:before{border-color:#e3342f}.custom-control-input.is-invalid:checked~.custom-control-label:before,.was-validated .custom-control-input:invalid:checked~.custom-control-label:before{border-color:#e9605c;background-color:#e9605c}.custom-control-input.is-invalid:focus~.custom-control-label:before,.was-validated .custom-control-input:invalid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem rgba(227,52,47,.25)}.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label:before,.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#e3342f}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{border-color:#e3342f;box-shadow:0 0 0 .2rem rgba(227,52,47,.25)}.form-inline{display:flex;flex-flow:row wrap;align-items:center}.form-inline .form-check{width:100%}@media (min-width:576px){.form-inline label{justify-content:center}.form-inline .form-group,.form-inline label{display:flex;align-items:center;margin-bottom:0}.form-inline .form-group{flex:0 0 auto;flex-flow:row wrap}.form-inline .ais-SearchBox-input,.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{display:flex;align-items:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;flex-shrink:0;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{align-items:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;color:#212529;text-align:center;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:.9rem;line-height:1.6;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:#212529;text-decoration:none}.btn.focus,.btn:focus{outline:0;box-shadow:0 0 0 .2rem rgba(52,144,220,.25)}.btn.disabled,.btn:disabled{opacity:.65}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#3490dc;border-color:#3490dc}.btn-primary.focus,.btn-primary:focus,.btn-primary:hover{color:#fff;background-color:#227dc7;border-color:#2176bd}.btn-primary.focus,.btn-primary:focus{box-shadow:0 0 0 .2rem rgba(82,161,225,.5)}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#3490dc;border-color:#3490dc}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#2176bd;border-color:#1f6fb2}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(82,161,225,.5)}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary.focus,.btn-secondary:focus,.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary.focus,.btn-secondary:focus{box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-success{color:#fff;background-color:#38c172;border-color:#38c172}.btn-success.focus,.btn-success:focus,.btn-success:hover{color:#fff;background-color:#2fa360;border-color:#2d995b}.btn-success.focus,.btn-success:focus{box-shadow:0 0 0 .2rem rgba(86,202,135,.5)}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#38c172;border-color:#38c172}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#2d995b;border-color:#2a9055}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(86,202,135,.5)}.btn-info{color:#212529;background-color:#6cb2eb;border-color:#6cb2eb}.btn-info.focus,.btn-info:focus,.btn-info:hover{color:#fff;background-color:#4aa0e6;border-color:#3f9ae5}.btn-info.focus,.btn-info:focus{box-shadow:0 0 0 .2rem rgba(97,157,206,.5)}.btn-info.disabled,.btn-info:disabled{color:#212529;background-color:#6cb2eb;border-color:#6cb2eb}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#3f9ae5;border-color:#3495e3}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(97,157,206,.5)}.btn-warning{color:#212529;background-color:#ffed4a;border-color:#ffed4a}.btn-warning.focus,.btn-warning:focus,.btn-warning:hover{color:#212529;background-color:#ffe924;border-color:#ffe817}.btn-warning.focus,.btn-warning:focus{box-shadow:0 0 0 .2rem rgba(222,207,69,.5)}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffed4a;border-color:#ffed4a}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#ffe817;border-color:#ffe70a}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(222,207,69,.5)}.btn-danger{color:#fff;background-color:#e3342f;border-color:#e3342f}.btn-danger.focus,.btn-danger:focus,.btn-danger:hover{color:#fff;background-color:#d0211c;border-color:#c51f1a}.btn-danger.focus,.btn-danger:focus{box-shadow:0 0 0 .2rem rgba(231,82,78,.5)}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#e3342f;border-color:#e3342f}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#c51f1a;border-color:#b91d19}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(231,82,78,.5)}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light.focus,.btn-light:focus,.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light.focus,.btn-light:focus{box-shadow:0 0 0 .2rem rgba(216,217,219,.5)}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(216,217,219,.5)}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark.focus,.btn-dark:focus,.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark.focus,.btn-dark:focus{box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-outline-primary{color:#3490dc;border-color:#3490dc}.btn-outline-primary:hover{color:#fff;background-color:#3490dc;border-color:#3490dc}.btn-outline-primary.focus,.btn-outline-primary:focus{box-shadow:0 0 0 .2rem rgba(52,144,220,.5)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#3490dc;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#3490dc;border-color:#3490dc}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,144,220,.5)}.btn-outline-secondary{color:#6c757d;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary.focus,.btn-outline-secondary:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-success{color:#38c172;border-color:#38c172}.btn-outline-success:hover{color:#fff;background-color:#38c172;border-color:#38c172}.btn-outline-success.focus,.btn-outline-success:focus{box-shadow:0 0 0 .2rem rgba(56,193,114,.5)}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#38c172;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#38c172;border-color:#38c172}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(56,193,114,.5)}.btn-outline-info{color:#6cb2eb;border-color:#6cb2eb}.btn-outline-info:hover{color:#212529;background-color:#6cb2eb;border-color:#6cb2eb}.btn-outline-info.focus,.btn-outline-info:focus{box-shadow:0 0 0 .2rem rgba(108,178,235,.5)}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#6cb2eb;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{color:#212529;background-color:#6cb2eb;border-color:#6cb2eb}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,178,235,.5)}.btn-outline-warning{color:#ffed4a;border-color:#ffed4a}.btn-outline-warning:hover{color:#212529;background-color:#ffed4a;border-color:#ffed4a}.btn-outline-warning.focus,.btn-outline-warning:focus{box-shadow:0 0 0 .2rem rgba(255,237,74,.5)}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffed4a;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffed4a;border-color:#ffed4a}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(255,237,74,.5)}.btn-outline-danger{color:#e3342f;border-color:#e3342f}.btn-outline-danger:hover{color:#fff;background-color:#e3342f;border-color:#e3342f}.btn-outline-danger.focus,.btn-outline-danger:focus{box-shadow:0 0 0 .2rem rgba(227,52,47,.5)}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#e3342f;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#e3342f;border-color:#e3342f}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(227,52,47,.5)}.btn-outline-light{color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light.focus,.btn-outline-light:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-dark{color:#343a40;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark.focus,.btn-outline-dark:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-link{font-weight:400;color:#3490dc;text-decoration:none}.btn-link:hover{color:#1d68a7;text-decoration:underline}.btn-link.focus,.btn-link:focus{text-decoration:underline;box-shadow:none}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{padding:.5rem 1rem;font-size:1.125rem;line-height:1.5;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .5rem;font-size:.7875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:.9rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-left{right:auto;left:0}.dropdown-menu-right{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-left{right:auto;left:0}.dropdown-menu-sm-right{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-left{right:auto;left:0}.dropdown-menu-md-right{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-left{right:auto;left:0}.dropdown-menu-lg-right{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-left{right:auto;left:0}.dropdown-menu-xl-right{right:0;left:auto}}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-toggle:after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";display:none}.dropleft .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty:after{margin-left:0}.dropleft .dropdown-toggle:before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#3490dc}.dropdown-item.disabled,.dropdown-item:disabled{color:#6c757d;pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.7875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn-group:not(:first-child),.btn-group>.btn:not(:first-child){margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropright .dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after{margin-left:0}.dropleft .dropdown-toggle-split:before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio],.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.ais-SearchBox-input,.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control,.input-group>.form-control-plaintext{position:relative;flex:1 1 0%;min-width:0;margin-bottom:0}.input-group>.ais-SearchBox-input+.ais-SearchBox-input,.input-group>.ais-SearchBox-input+.custom-file,.input-group>.ais-SearchBox-input+.custom-select,.input-group>.ais-SearchBox-input+.form-control,.input-group>.custom-file+.ais-SearchBox-input,.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.ais-SearchBox-input,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.ais-SearchBox-input,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control,.input-group>.form-control-plaintext+.ais-SearchBox-input,.input-group>.form-control-plaintext+.custom-file,.input-group>.form-control-plaintext+.custom-select,.input-group>.form-control-plaintext+.form-control{margin-left:-1px}.input-group>.ais-SearchBox-input:focus,.input-group>.custom-file .custom-file-input:focus~.custom-file-label,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.ais-SearchBox-input:not(:last-child),.input-group>.custom-select:not(:last-child),.input-group>.form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.ais-SearchBox-input:not(:first-child),.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:flex;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label:after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-append,.input-group-prepend{display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn:focus,.input-group-prepend .btn:focus{z-index:3}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:.9rem;font-weight:400;line-height:1.6;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group-lg>.ais-SearchBox-input:not(textarea),.input-group-lg>.custom-select,.input-group-lg>.form-control:not(textarea){height:calc(1.5em + 1rem + 2px)}.input-group-lg>.ais-SearchBox-input,.input-group-lg>.custom-select,.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{padding:.5rem 1rem;font-size:1.125rem;line-height:1.5;border-radius:.3rem}.input-group-sm>.ais-SearchBox-input:not(textarea),.input-group-sm>.custom-select,.input-group-sm>.form-control:not(textarea){height:calc(1.5em + .5rem + 2px)}.input-group-sm>.ais-SearchBox-input,.input-group-sm>.custom-select,.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{padding:.25rem .5rem;font-size:.7875rem;line-height:1.5;border-radius:.2rem}.input-group-lg>.custom-select,.input-group-sm>.custom-select{padding-right:1.75rem}.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;display:block;min-height:1.44rem;padding-left:1.5rem}.custom-control-inline{display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;left:0;z-index:-1;width:1rem;height:1.22rem;opacity:0}.custom-control-input:checked~.custom-control-label:before{color:#fff;border-color:#3490dc;background-color:#3490dc}.custom-control-input:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem rgba(52,144,220,.25)}.custom-control-input:focus:not(:checked)~.custom-control-label:before{border-color:#a1cbef}.custom-control-input:not(:disabled):active~.custom-control-label:before{color:#fff;background-color:#cce3f6;border-color:#cce3f6}.custom-control-input:disabled~.custom-control-label,.custom-control-input[disabled]~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label:before,.custom-control-input[disabled]~.custom-control-label:before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}.custom-control-label:before{pointer-events:none;background-color:#fff;border:1px solid #adb5bd}.custom-control-label:after,.custom-control-label:before{position:absolute;top:.22rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:""}.custom-control-label:after{background:no-repeat 50%/50% 50%}.custom-checkbox .custom-control-label:before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:before{border-color:#3490dc;background-color:#3490dc}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label:before{background-color:rgba(52,144,220,.5)}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label:before{background-color:rgba(52,144,220,.5)}.custom-radio .custom-control-label:before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label:before{background-color:rgba(52,144,220,.5)}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label:before{left:-2.25rem;width:1.75rem;pointer-events:all;border-radius:.5rem}.custom-switch .custom-control-label:after{top:calc(.22rem + 2px);left:calc(-2.25rem + 2px);width:calc(1rem - 4px);height:calc(1rem - 4px);background-color:#adb5bd;border-radius:.5rem;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-switch .custom-control-label:after{transition:none}}.custom-switch .custom-control-input:checked~.custom-control-label:after{background-color:#fff;transform:translateX(.75rem)}.custom-switch .custom-control-input:disabled:checked~.custom-control-label:before{background-color:rgba(52,144,220,.5)}.custom-select{display:inline-block;width:100%;height:calc(1.6em + .75rem + 2px);padding:.375rem 1.75rem .375rem .75rem;font-size:.9rem;font-weight:400;line-height:1.6;color:#495057;vertical-align:middle;background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center/8px 10px;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-select:focus{border-color:#a1cbef;outline:0;box-shadow:0 0 0 .2rem rgba(52,144,220,.25)}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{display:none}.custom-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.custom-select-sm{height:calc(1.5em + .5rem + 2px);padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.7875rem}.custom-select-lg{height:calc(1.5em + 1rem + 2px);padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.125rem}.custom-file{display:inline-block;margin-bottom:0}.custom-file,.custom-file-input{position:relative;width:100%;height:calc(1.6em + .75rem + 2px)}.custom-file-input{z-index:2;margin:0;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#a1cbef;box-shadow:0 0 0 .2rem rgba(52,144,220,.25)}.custom-file-input:disabled~.custom-file-label,.custom-file-input[disabled]~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label:after{content:"Browse"}.custom-file-input~.custom-file-label[data-browse]:after{content:attr(data-browse)}.custom-file-label{left:0;z-index:1;height:calc(1.6em + .75rem + 2px);font-weight:400;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label,.custom-file-label:after{position:absolute;top:0;right:0;padding:.375rem .75rem;line-height:1.6;color:#495057}.custom-file-label:after{bottom:0;z-index:3;display:block;height:calc(1.6em + .75rem);content:"Browse";background-color:#e9ecef;border-left:inherit;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;height:1.4rem;padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-range:focus{outline:none}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #f8fafc,0 0 0 .2rem rgba(52,144,220,.25)}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #f8fafc,0 0 0 .2rem rgba(52,144,220,.25)}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #f8fafc,0 0 0 .2rem rgba(52,144,220,.25)}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#3490dc;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#cce3f6}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#3490dc;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-moz-range-thumb{-moz-transition:none;transition:none}}.custom-range::-moz-range-thumb:active{background-color:#cce3f6}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:.2rem;margin-left:.2rem;background-color:#3490dc;border:0;border-radius:1rem;-ms-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-ms-thumb{-ms-transition:none;transition:none}}.custom-range::-ms-thumb:active{background-color:#cce3f6}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem}.custom-range::-ms-fill-lower,.custom-range::-ms-fill-upper{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px}.custom-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.custom-range:disabled::-webkit-slider-runnable-track{cursor:default}.custom-range:disabled::-moz-range-thumb{background-color:#adb5bd}.custom-range:disabled::-moz-range-track{cursor:default}.custom-range:disabled::-ms-thumb{background-color:#adb5bd}.custom-control-label:before,.custom-file-label,.custom-select{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-control-label:before,.custom-file-label,.custom-select{transition:none}}.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d;pointer-events:none;cursor:default}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:#495057;background-color:#f8fafc;border-color:#dee2e6 #dee2e6 #f8fafc}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#3490dc}.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;padding:.5rem 1rem}.navbar,.navbar .container,.navbar .container-fluid,.navbar .container-lg,.navbar .container-md,.navbar .container-sm,.navbar .container-xl{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.32rem;padding-bottom:.32rem;margin-right:1rem;font-size:1.125rem;line-height:inherit;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.125rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat 50%;background-size:100% 100%}@media (max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{padding-right:0;padding-left:0}}@media (min-width:576px){.navbar-expand-sm{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{padding-right:0;padding-left:0}}@media (min-width:768px){.navbar-expand-md{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{padding-right:0;padding-left:0}}@media (min-width:992px){.navbar-expand-lg{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{padding-right:0;padding-left:0}}@media (min-width:1200px){.navbar-expand-xl{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand,.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:rgba(0,0,0,.9)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,.5)}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:rgba(0,0,0,.7)}.navbar-light .navbar-nav .nav-link.disabled{color:rgba(0,0,0,.3)}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:rgba(0,0,0,.9)}.navbar-light .navbar-toggler{color:rgba(0,0,0,.5);border-color:rgba(0,0,0,.1)}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-light .navbar-text{color:rgba(0,0,0,.5)}.navbar-light .navbar-text a,.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:rgba(0,0,0,.9)}.navbar-dark .navbar-brand,.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:hsla(0,0%,100%,.5)}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:hsla(0,0%,100%,.75)}.navbar-dark .navbar-nav .nav-link.disabled{color:hsla(0,0%,100%,.25)}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{color:hsla(0,0%,100%,.5);border-color:hsla(0,0%,100%,.1)}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-dark .navbar-text{color:hsla(0,0%,100%,.5)}.navbar-dark .navbar-text a,.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group:first-child .list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card>.list-group:last-child .list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-body{flex:1 1 auto;min-height:1px;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem}.card-subtitle,.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:.75rem 1.25rem;background-color:rgba(0,0,0,.03);border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-bottom:-.75rem;border-bottom:0}.card-header-pills,.card-header-tabs{margin-right:-.625rem;margin-left:-.625rem}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem}.card-img,.card-img-bottom,.card-img-top{flex-shrink:0;width:100%}.card-img,.card-img-top{border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img,.card-img-bottom{border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck .card{margin-bottom:15px}@media (min-width:576px){.card-deck{display:flex;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{flex:1 0 0%;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group>.card{margin-bottom:15px}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.card-columns .card{margin-bottom:.75rem}@media (min-width:576px){.card-columns{-moz-column-count:3;column-count:3;-moz-column-gap:1.25rem;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion>.card{overflow:hidden}.accordion>.card:not(:last-of-type){border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion>.card:not(:first-of-type){border-top-left-radius:0;border-top-right-radius:0}.accordion>.card>.card-header{border-radius:0;margin-bottom:-1px}.breadcrumb{display:flex;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item:before{display:inline-block;padding-right:.5rem;color:#6c757d;content:"/"}.breadcrumb-item+.breadcrumb-item:hover:before{text-decoration:underline;text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#3490dc;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#1d68a7;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:3;outline:0;box-shadow:0 0 0 .2rem rgba(52,144,220,.25)}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:3;color:#fff;background-color:#3490dc;border-color:#3490dc}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.125rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.7875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.badge{transition:none}}a.badge:focus,a.badge:hover{text-decoration:none}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#3490dc}a.badge-primary:focus,a.badge-primary:hover{color:#fff;background-color:#2176bd}a.badge-primary.focus,a.badge-primary:focus{outline:0;box-shadow:0 0 0 .2rem rgba(52,144,220,.5)}.badge-secondary{color:#fff;background-color:#6c757d}a.badge-secondary:focus,a.badge-secondary:hover{color:#fff;background-color:#545b62}a.badge-secondary.focus,a.badge-secondary:focus{outline:0;box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.badge-success{color:#fff;background-color:#38c172}a.badge-success:focus,a.badge-success:hover{color:#fff;background-color:#2d995b}a.badge-success.focus,a.badge-success:focus{outline:0;box-shadow:0 0 0 .2rem rgba(56,193,114,.5)}.badge-info{color:#212529;background-color:#6cb2eb}a.badge-info:focus,a.badge-info:hover{color:#212529;background-color:#3f9ae5}a.badge-info.focus,a.badge-info:focus{outline:0;box-shadow:0 0 0 .2rem rgba(108,178,235,.5)}.badge-warning{color:#212529;background-color:#ffed4a}a.badge-warning:focus,a.badge-warning:hover{color:#212529;background-color:#ffe817}a.badge-warning.focus,a.badge-warning:focus{outline:0;box-shadow:0 0 0 .2rem rgba(255,237,74,.5)}.badge-danger{color:#fff;background-color:#e3342f}a.badge-danger:focus,a.badge-danger:hover{color:#fff;background-color:#c51f1a}a.badge-danger.focus,a.badge-danger:focus{outline:0;box-shadow:0 0 0 .2rem rgba(227,52,47,.5)}.badge-light{color:#212529;background-color:#f8f9fa}a.badge-light:focus,a.badge-light:hover{color:#212529;background-color:#dae0e5}a.badge-light.focus,a.badge-light:focus{outline:0;box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.badge-dark{color:#fff;background-color:#343a40}a.badge-dark:focus,a.badge-dark:hover{color:#fff;background-color:#1d2124}a.badge-dark.focus,a.badge-dark:focus{outline:0;box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media (min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:3.85rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#1b4b72;background-color:#d6e9f8;border-color:#c6e0f5}.alert-primary hr{border-top-color:#b0d4f1}.alert-primary .alert-link{color:#113049}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#1d643b;background-color:#d7f3e3;border-color:#c7eed8}.alert-success hr{border-top-color:#b3e8ca}.alert-success .alert-link{color:#123c24}.alert-info{color:#385d7a;background-color:#e2f0fb;border-color:#d6e9f9}.alert-info hr{border-top-color:#c0ddf6}.alert-info .alert-link{color:#284257}.alert-warning{color:#857b26;background-color:#fffbdb;border-color:#fffacc}.alert-warning hr{border-top-color:#fff8b3}.alert-warning .alert-link{color:#5d561b}.alert-danger{color:#761b18;background-color:#f9d6d5;border-color:#f7c6c5}.alert-danger hr{border-top-color:#f4b0af}.alert-danger .alert-link{color:#4c110f}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@-webkit-keyframes progress-bar-stripes{0%{background-position:1rem 0}to{background-position:0 0}}@keyframes progress-bar-stripes{0%{background-position:1rem 0}to{background-position:0 0}}.progress{height:1rem;font-size:.675rem;background-color:#e9ecef;border-radius:.25rem}.progress,.progress-bar{display:flex;overflow:hidden}.progress-bar{flex-direction:column;justify-content:center;color:#fff;text-align:center;white-space:nowrap;background-color:#3490dc;transition:width .6s ease}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-size:1rem 1rem}.progress-bar-animated{-webkit-animation:progress-bar-stripes 1s linear infinite;animation:progress-bar-stripes 1s linear infinite}@media (prefers-reduced-motion:reduce){.progress-bar-animated{-webkit-animation:none;animation:none}}.media{display:flex;align-items:flex-start}.media-body{flex:1}.list-group{display:flex;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;pointer-events:none;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#3490dc;border-color:#3490dc}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:-1px;border-top-width:1px}.list-group-horizontal{flex-direction:row}.list-group-horizontal .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal .list-group-item.active{margin-top:0}.list-group-horizontal .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-sm .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-sm .list-group-item.active{margin-top:0}.list-group-horizontal-sm .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-sm .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-md .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-md .list-group-item.active{margin-top:0}.list-group-horizontal-md .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-md .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-lg .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-lg .list-group-item.active{margin-top:0}.list-group-horizontal-lg .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-lg .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-xl .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-xl .list-group-item.active{margin-top:0}.list-group-horizontal-xl .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-xl .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}.list-group-flush .list-group-item{border-right-width:0;border-left-width:0;border-radius:0}.list-group-flush .list-group-item:first-child{border-top-width:0}.list-group-flush:last-child .list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#1b4b72;background-color:#c6e0f5}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#1b4b72;background-color:#b0d4f1}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#1b4b72;border-color:#1b4b72}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#1d643b;background-color:#c7eed8}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#1d643b;background-color:#b3e8ca}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#1d643b;border-color:#1d643b}.list-group-item-info{color:#385d7a;background-color:#d6e9f9}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#385d7a;background-color:#c0ddf6}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#385d7a;border-color:#385d7a}.list-group-item-warning{color:#857b26;background-color:#fffacc}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#857b26;background-color:#fff8b3}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#857b26;border-color:#857b26}.list-group-item-danger{color:#761b18;background-color:#f7c6c5}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#761b18;background-color:#f4b0af}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#761b18;border-color:#761b18}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.35rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:hover{color:#000;text-decoration:none}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{opacity:.75}button.close{padding:0;background-color:transparent;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}a.close.disabled{pointer-events:none}.toast{max-width:350px;overflow:hidden;font-size:.875rem;background-color:hsla(0,0%,100%,.85);background-clip:padding-box;border:1px solid rgba(0,0,0,.1);box-shadow:0 .25rem .75rem rgba(0,0,0,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;border-radius:.25rem}.toast:not(:last-child){margin-bottom:.75rem}.toast.showing{opacity:1}.toast.show{display:block;opacity:1}.toast.hide{display:none}.toast-header{display:flex;align-items:center;padding:.25rem .75rem;color:#6c757d;background-color:hsla(0,0%,100%,.85);background-clip:padding-box;border-bottom:1px solid rgba(0,0,0,.05)}.toast-body{padding:.75rem}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;height:100%;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{display:flex;max-height:calc(100% - 1rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}.modal-dialog-scrollable .modal-footer,.modal-dialog-scrollable .modal-header{flex-shrink:0}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - 1rem)}.modal-dialog-centered:before{display:block;height:calc(100vh - 1rem);content:""}.modal-dialog-centered.modal-dialog-scrollable{flex-direction:column;justify-content:center;height:100%}.modal-dialog-centered.modal-dialog-scrollable .modal-content{max-height:none}.modal-dialog-centered.modal-dialog-scrollable:before{content:none}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem;border-bottom:1px solid #dee2e6;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.modal-header .close{padding:1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.6}.modal-body{position:relative;flex:1 1 auto;padding:1rem}.modal-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:.75rem;border-top:1px solid #dee2e6;border-bottom-right-radius:calc(.3rem - 1px);border-bottom-left-radius:calc(.3rem - 1px)}.modal-footer>*{margin:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-scrollable{max-height:calc(100% - 3.5rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem)}.modal-dialog-centered{min-height:calc(100% - 3.5rem)}.modal-dialog-centered:before{height:calc(100vh - 3.5rem)}.modal-sm{max-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{max-width:800px}}@media (min-width:1200px){.modal-xl{max-width:1140px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:Avenir Next,sans-serif;font-style:normal;font-weight:400;line-height:1.6;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.7875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow:before,.bs-tooltip-top .arrow:before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=right] .arrow:before,.bs-tooltip-right .arrow:before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.bs-tooltip-bottom .arrow:before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=left] .arrow:before,.bs-tooltip-left .arrow:before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{top:0;left:0;z-index:1060;max-width:276px;font-family:Avenir Next,sans-serif;font-style:normal;font-weight:400;line-height:1.6;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.7875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover,.popover .arrow{position:absolute;display:block}.popover .arrow{width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow:after,.popover .arrow:before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top]>.arrow,.bs-popover-top>.arrow{bottom:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=top]>.arrow:before,.bs-popover-top>.arrow:before{bottom:0;border-width:.5rem .5rem 0;border-top-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=top]>.arrow:after,.bs-popover-top>.arrow:after{bottom:1px;border-width:.5rem .5rem 0;border-top-color:#fff}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right]>.arrow,.bs-popover-right>.arrow{left:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=right]>.arrow:before,.bs-popover-right>.arrow:before{left:0;border-width:.5rem .5rem .5rem 0;border-right-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=right]>.arrow:after,.bs-popover-right>.arrow:after{left:1px;border-width:.5rem .5rem .5rem 0;border-right-color:#fff}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom]>.arrow,.bs-popover-bottom>.arrow{top:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=bottom]>.arrow:before,.bs-popover-bottom>.arrow:before{top:0;border-width:0 .5rem .5rem;border-bottom-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=bottom]>.arrow:after,.bs-popover-bottom>.arrow:after{top:1px;border-width:0 .5rem .5rem;border-bottom-color:#fff}.bs-popover-auto[x-placement^=bottom] .popover-header:before,.bs-popover-bottom .popover-header:before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left]>.arrow,.bs-popover-left>.arrow{right:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=left]>.arrow:before,.bs-popover-left>.arrow:before{right:0;border-width:.5rem 0 .5rem .5rem;border-left-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=left]>.arrow:after,.bs-popover-left>.arrow:after{right:1px;border-width:.5rem 0 .5rem .5rem;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:.9rem;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-right,.carousel-item-next:not(.carousel-item-left){transform:translateX(100%)}.active.carousel-item-left,.carousel-item-prev:not(.carousel-item-right){transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:no-repeat 50%/100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3E%3C/svg%3E")}.carousel-control-next-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8'%3E%3Cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3E%3C/svg%3E")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:15;display:flex;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators li{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}@-webkit-keyframes spinner-border{to{transform:rotate(1turn)}}@keyframes spinner-border{to{transform:rotate(1turn)}}.spinner-border{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border:.25em solid;border-right:.25em solid transparent;border-radius:50%;-webkit-animation:spinner-border .75s linear infinite;animation:spinner-border .75s linear infinite}.spinner-border-sm{width:1rem;height:1rem;border-width:.2em}@-webkit-keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1}}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1}}.spinner-grow{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;background-color:currentColor;border-radius:50%;opacity:0;-webkit-animation:spinner-grow .75s linear infinite;animation:spinner-grow .75s linear infinite}.spinner-grow-sm{width:1rem;height:1rem}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#3490dc!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#2176bd!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#38c172!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#2d995b!important}.bg-info{background-color:#6cb2eb!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#3f9ae5!important}.bg-warning{background-color:#ffed4a!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#ffe817!important}.bg-danger{background-color:#e3342f!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#c51f1a!important}.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#3490dc!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#38c172!important}.border-info{border-color:#6cb2eb!important}.border-warning{border-color:#ffed4a!important}.border-danger{border-color:#e3342f!important}.border-light{border-color:#f8f9fa!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded-sm{border-radius:.2rem!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important}.rounded-right,.rounded-top{border-top-right-radius:.25rem!important}.rounded-bottom,.rounded-right{border-bottom-right-radius:.25rem!important}.rounded-bottom,.rounded-left{border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important}.rounded-lg{border-radius:.3rem!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:50rem!important}.rounded-0{border-radius:0!important}.clearfix:after{display:block;clear:both;content:""}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block,nav>ul p{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive:before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9:before{padding-top:42.8571428571%}.embed-responsive-16by9:before{padding-top:56.25%}.embed-responsive-4by3:before{padding-top:75%}.embed-responsive-1by1:before{padding-top:100%}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-fill{flex:1 1 auto!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}@media (min-width:576px){.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}}@media (min-width:768px){.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.fixed-top{top:0}.fixed-bottom,.fixed-top{position:fixed;right:0;left:0;z-index:1030}.fixed-bottom{bottom:0}@supports ((position:-webkit-sticky) or (position:sticky)){.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.min-vw-100{min-width:100vw!important}.min-vh-100{min-height:100vh!important}.vw-100{width:100vw!important}.vh-100{height:100vh!important}.stretched-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:auto;content:"";background-color:transparent}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-n1{margin:-.25rem!important}.mt-n1,.my-n1{margin-top:-.25rem!important}.mr-n1,.mx-n1{margin-right:-.25rem!important}.mb-n1,.my-n1{margin-bottom:-.25rem!important}.ml-n1,.mx-n1{margin-left:-.25rem!important}.m-n2{margin:-.5rem!important}.mt-n2,.my-n2{margin-top:-.5rem!important}.mr-n2,.mx-n2{margin-right:-.5rem!important}.mb-n2,.my-n2{margin-bottom:-.5rem!important}.ml-n2,.mx-n2{margin-left:-.5rem!important}.m-n3{margin:-1rem!important}.mt-n3,.my-n3{margin-top:-1rem!important}.mr-n3,.mx-n3{margin-right:-1rem!important}.mb-n3,.my-n3{margin-bottom:-1rem!important}.ml-n3,.mx-n3{margin-left:-1rem!important}.m-n4{margin:-1.5rem!important}.mt-n4,.my-n4{margin-top:-1.5rem!important}.mr-n4,.mx-n4{margin-right:-1.5rem!important}.mb-n4,.my-n4{margin-bottom:-1.5rem!important}.ml-n4,.mx-n4{margin-left:-1.5rem!important}.m-n5{margin:-3rem!important}.mt-n5,.my-n5{margin-top:-3rem!important}.mr-n5,.mx-n5{margin-right:-3rem!important}.mb-n5,.my-n5{margin-bottom:-3rem!important}.ml-n5,.mx-n5{margin-left:-3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-n1{margin:-.25rem!important}.mt-sm-n1,.my-sm-n1{margin-top:-.25rem!important}.mr-sm-n1,.mx-sm-n1{margin-right:-.25rem!important}.mb-sm-n1,.my-sm-n1{margin-bottom:-.25rem!important}.ml-sm-n1,.mx-sm-n1{margin-left:-.25rem!important}.m-sm-n2{margin:-.5rem!important}.mt-sm-n2,.my-sm-n2{margin-top:-.5rem!important}.mr-sm-n2,.mx-sm-n2{margin-right:-.5rem!important}.mb-sm-n2,.my-sm-n2{margin-bottom:-.5rem!important}.ml-sm-n2,.mx-sm-n2{margin-left:-.5rem!important}.m-sm-n3{margin:-1rem!important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem!important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem!important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem!important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem!important}.m-sm-n4{margin:-1.5rem!important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem!important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem!important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem!important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem!important}.m-sm-n5{margin:-3rem!important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem!important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem!important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem!important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-n1{margin:-.25rem!important}.mt-md-n1,.my-md-n1{margin-top:-.25rem!important}.mr-md-n1,.mx-md-n1{margin-right:-.25rem!important}.mb-md-n1,.my-md-n1{margin-bottom:-.25rem!important}.ml-md-n1,.mx-md-n1{margin-left:-.25rem!important}.m-md-n2{margin:-.5rem!important}.mt-md-n2,.my-md-n2{margin-top:-.5rem!important}.mr-md-n2,.mx-md-n2{margin-right:-.5rem!important}.mb-md-n2,.my-md-n2{margin-bottom:-.5rem!important}.ml-md-n2,.mx-md-n2{margin-left:-.5rem!important}.m-md-n3{margin:-1rem!important}.mt-md-n3,.my-md-n3{margin-top:-1rem!important}.mr-md-n3,.mx-md-n3{margin-right:-1rem!important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem!important}.ml-md-n3,.mx-md-n3{margin-left:-1rem!important}.m-md-n4{margin:-1.5rem!important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem!important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem!important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem!important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem!important}.m-md-n5{margin:-3rem!important}.mt-md-n5,.my-md-n5{margin-top:-3rem!important}.mr-md-n5,.mx-md-n5{margin-right:-3rem!important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem!important}.ml-md-n5,.mx-md-n5{margin-left:-3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-n1{margin:-.25rem!important}.mt-lg-n1,.my-lg-n1{margin-top:-.25rem!important}.mr-lg-n1,.mx-lg-n1{margin-right:-.25rem!important}.mb-lg-n1,.my-lg-n1{margin-bottom:-.25rem!important}.ml-lg-n1,.mx-lg-n1{margin-left:-.25rem!important}.m-lg-n2{margin:-.5rem!important}.mt-lg-n2,.my-lg-n2{margin-top:-.5rem!important}.mr-lg-n2,.mx-lg-n2{margin-right:-.5rem!important}.mb-lg-n2,.my-lg-n2{margin-bottom:-.5rem!important}.ml-lg-n2,.mx-lg-n2{margin-left:-.5rem!important}.m-lg-n3{margin:-1rem!important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem!important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem!important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem!important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem!important}.m-lg-n4{margin:-1.5rem!important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem!important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem!important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem!important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem!important}.m-lg-n5{margin:-3rem!important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem!important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem!important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem!important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-n1{margin:-.25rem!important}.mt-xl-n1,.my-xl-n1{margin-top:-.25rem!important}.mr-xl-n1,.mx-xl-n1{margin-right:-.25rem!important}.mb-xl-n1,.my-xl-n1{margin-bottom:-.25rem!important}.ml-xl-n1,.mx-xl-n1{margin-left:-.25rem!important}.m-xl-n2{margin:-.5rem!important}.mt-xl-n2,.my-xl-n2{margin-top:-.5rem!important}.mr-xl-n2,.mx-xl-n2{margin-right:-.5rem!important}.mb-xl-n2,.my-xl-n2{margin-bottom:-.5rem!important}.ml-xl-n2,.mx-xl-n2{margin-left:-.5rem!important}.m-xl-n3{margin:-1rem!important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem!important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem!important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem!important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem!important}.m-xl-n4{margin:-1.5rem!important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem!important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem!important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem!important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem!important}.m-xl-n5{margin:-3rem!important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem!important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem!important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem!important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace!important}.text-justify{text-align:justify!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-lighter{font-weight:lighter!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-weight-bolder{font-weight:bolder!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#3490dc!important}a.text-primary:focus,a.text-primary:hover{color:#1d68a7!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#494f54!important}.text-success{color:#38c172!important}a.text-success:focus,a.text-success:hover{color:#27864f!important}.text-info{color:#6cb2eb!important}a.text-info:focus,a.text-info:hover{color:#298fe2!important}.text-warning{color:#ffed4a!important}a.text-warning:focus,a.text-warning:hover{color:#fde300!important}.text-danger{color:#e3342f!important}a.text-danger:focus,a.text-danger:hover{color:#ae1c17!important}.text-light{color:#f8f9fa!important}a.text-light:focus,a.text-light:hover{color:#cbd3da!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#121416!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:rgba(0,0,0,.5)!important}.text-white-50{color:hsla(0,0%,100%,.5)!important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.text-decoration-none{text-decoration:none!important}.text-break{word-break:break-word!important;overflow-wrap:break-word!important}.text-reset{color:inherit!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,:after,:before{text-shadow:none!important;box-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]:after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}.container,body{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}}.ais-SearchBox-input{width:calc(100% - 80px);display:inline-block}.ais-SearchBox-reset{display:none}mark.ais-Highlight-highlighted,mark.ais-Snippet-highlighted,mark.mark{padding:0;background-color:#fff252}@font-face{font-family:Avenir Next Demi;src:url(/fonts/AvenirNext-DemiBoldItalic.eot?86d986a0663254f5eeb80b28384f0bab);src:url(/fonts/AvenirNext-DemiBoldItalic.eot?86d986a0663254f5eeb80b28384f0bab) format("embedded-opentype"),url(/fonts/AvenirNext-DemiBoldItalic.woff2?26aed36d3e059023251feabfbf902dbb) format("woff2"),url(/fonts/AvenirNext-DemiBoldItalic.woff?d9fca697a521d4a5a02f15311c365702) format("woff"),url(/fonts/AvenirNext-DemiBoldItalic.ttf?7a4a4ffb387b02062785a12d824223d6) format("truetype");font-weight:600;font-style:italic;font-display:swap}@font-face{font-family:Avenir Next Ultra;src:url(/fonts/AvenirNext-UltraLightItalic.eot?44297f7f59381c49846ed3a3b4a84a59);src:url(/fonts/AvenirNext-UltraLightItalic.eot?44297f7f59381c49846ed3a3b4a84a59) format("embedded-opentype"),url(/fonts/AvenirNext-UltraLightItalic.woff2?4943334d379bdf55e7b75af66551aa85) format("woff2"),url(/fonts/AvenirNext-UltraLightItalic.woff?6bf4847bcc8712b5584354da7a1bba07) format("woff"),url(/fonts/AvenirNext-UltraLightItalic.ttf?444f46cb5bb8044bbe602460e8e5ec9e) format("truetype");font-weight:200;font-style:italic;font-display:swap}@font-face{font-family:Avenir Next Demi;src:url(/fonts/AvenirNext-DemiBold.eot?6f5a3c2bea495ff6aa013c0ecb6ee892);src:url(/fonts/AvenirNext-DemiBold.eot?6f5a3c2bea495ff6aa013c0ecb6ee892) format("embedded-opentype"),url(/fonts/AvenirNext-DemiBold.woff2?878a0123606792dea2c627d22b94725b) format("woff2"),url(/fonts/AvenirNext-DemiBold.woff?dd36a7ec06a6315b0fe31624e6bde00b) format("woff"),url(/fonts/AvenirNext-DemiBold.ttf?e5452ab730d535ca5026fd37ad5c33d8) format("truetype");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-Medium.eot?344e9a7e6b1add05e773628a01cdee77);src:url(/fonts/AvenirNext-Medium.eot?344e9a7e6b1add05e773628a01cdee77) format("embedded-opentype"),url(/fonts/AvenirNext-Medium.woff2?983b256b4198de8d34126fe38cbfb96e) format("woff2"),url(/fonts/AvenirNext-Medium.woff?6ce49706ecc41daa64b518d976d5d56c) format("woff"),url(/fonts/AvenirNext-Medium.ttf?827c94e0bd7677a5e385b5bcd0b67e53) format("truetype");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-Regular.eot?42633ce69b6368b09d93a53a90dcf9c7);src:url(/fonts/AvenirNext-Regular.eot?42633ce69b6368b09d93a53a90dcf9c7) format("embedded-opentype"),url(/fonts/AvenirNext-Regular.woff2?e90c898618371e86b00d056fa334cc44) format("woff2"),url(/fonts/AvenirNext-Regular.woff?800e759fc4d5d1086e379a04b14f5194) format("woff"),url(/fonts/AvenirNext-Regular.ttf?3796491f74e8e126f119b6afbcce86cb) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-Heavy.eot?4a3eee8df111333592e8679f413b25cb);src:url(/fonts/AvenirNext-Heavy.eot?4a3eee8df111333592e8679f413b25cb) format("embedded-opentype"),url(/fonts/AvenirNext-Heavy.woff2?5b403aba9715caa013a2b40cd48928ad) format("woff2"),url(/fonts/AvenirNext-Heavy.woff?9da2a75c0e6c4f2f02cf7d232e8f1a82) format("woff"),url(/fonts/AvenirNext-Heavy.ttf?e66e94b4c16f9109f1cc853f9af9eef9) format("truetype");font-weight:900;font-style:normal;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-Italic.eot?122db04957f47d49ff4482598fc61f62);src:url(/fonts/AvenirNext-Italic.eot?122db04957f47d49ff4482598fc61f62) format("embedded-opentype"),url(/fonts/AvenirNext-Italic.woff2?17fd0278adf7d5bf8a0f4b3efced6224) format("woff2"),url(/fonts/AvenirNext-Italic.woff?8804f06ef434bc0e56d0f0c233dc6328) format("woff"),url(/fonts/AvenirNext-Italic.ttf?512698539510db2326ce380cf8ceb1f9) format("truetype");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:Avenir Next Ultra;src:url(/fonts/AvenirNext-UltraLight.eot?2ea983ea3cac3ebe2b4b8e2905156d32);src:url(/fonts/AvenirNext-UltraLight.eot?2ea983ea3cac3ebe2b4b8e2905156d32) format("embedded-opentype"),url(/fonts/AvenirNext-UltraLight.woff2?10e08cb22d95a14b788f380ae8002e84) format("woff2"),url(/fonts/AvenirNext-UltraLight.woff?44e5cd76c4c163607733d9565f5c7bcb) format("woff"),url(/fonts/AvenirNext-UltraLight.ttf?e6e6aafb1df01b535ba5ac6cff61be54) format("truetype");font-weight:200;font-style:normal;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-HeavyItalic.eot?862ad2686dd785cd889771273d35fad7);src:url(/fonts/AvenirNext-HeavyItalic.eot?862ad2686dd785cd889771273d35fad7) format("embedded-opentype"),url(/fonts/AvenirNext-HeavyItalic.woff2?f12a99f1b554bfe7cbc046156f40863d) format("woff2"),url(/fonts/AvenirNext-HeavyItalic.woff?ac48a1c60a62105ece547124755ceaf4) format("woff"),url(/fonts/AvenirNext-HeavyItalic.ttf?8b8e3579fd4e8b3ed241b9eeab63992d) format("truetype");font-weight:900;font-style:italic;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-BoldItalic.eot?d540c1a816b7d6e8e5b4a9baba2c10ba);src:url(/fonts/AvenirNext-BoldItalic.eot?d540c1a816b7d6e8e5b4a9baba2c10ba) format("embedded-opentype"),url(/fonts/AvenirNext-BoldItalic.woff2?2771ec995de8c2339686bdd3d4e1114a) format("woff2"),url(/fonts/AvenirNext-BoldItalic.woff?d6641e502fc0c14b1115bbb17ae9dbda) format("woff"),url(/fonts/AvenirNext-BoldItalic.ttf?51e9ff4a8dc48fa0d53db848be9795fe) format("truetype");font-weight:700;font-style:italic;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-Bold.eot?2194fdab8be2cc665e269cb7a20487d5);src:url(/fonts/AvenirNext-Bold.eot?2194fdab8be2cc665e269cb7a20487d5) format("embedded-opentype"),url(/fonts/AvenirNext-Bold.woff2?b299caa5944701e8611ebff9ac715e50) format("woff2"),url(/fonts/AvenirNext-Bold.woff?22761bb11be9721064b4a26a7593dea5) format("woff"),url(/fonts/AvenirNext-Bold.ttf?a651c483c9cfc803461bc79b978072c8) format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-MediumItalic.eot?a940b67a054f0b9a5d958ebfa02f3b7d);src:url(/fonts/AvenirNext-MediumItalic.eot?a940b67a054f0b9a5d958ebfa02f3b7d) format("embedded-opentype"),url(/fonts/AvenirNext-MediumItalic.woff2?46b3a7961eb0acddf9ca2f1264a05e99) format("woff2"),url(/fonts/AvenirNext-MediumItalic.woff?97c0f33e61d56b39e3c68090f7d52327) format("woff"),url(/fonts/AvenirNext-MediumItalic.ttf?7c56170415054dc1cd4fc84d6e19f141) format("truetype");font-weight:500;font-style:italic;font-display:swap}.font-medium{font-weight:500}.logo-blue{color:#044e9c}.highlight-logo-blue{color:#fff;background-color:#044e9c}.border-logo-blue{border:1px solid #044e9c}.blue{color:#278cd7}.btn-back,.btn-big,.highlight-blue{color:#fff;background-color:#278cd7}.border-blue{border:1px solid #278cd7}.purple{color:#9a36c8}.highlight-purple{color:#fff;background-color:#9a36c8}.border-purple{border:1px solid #9a36c8}.red{color:#cb3239}.highlight-red,h1{color:#fff;background-color:#cb3239}.border-red{border:1px solid #cb3239}.cyan{color:#14c7eb}.highlight-cyan{color:#fff;background-color:#14c7eb}.border-cyan{border:1px solid #14c7eb}.magenta{color:#cc33a0}.highlight-magenta{color:#fff;background-color:#cc33a0}.border-magenta{border:1px solid #cc33a0}.orange{color:#e79b17}.highlight-orange{color:#fff;background-color:#e79b17}.border-orange{border:1px solid #e79b17}.grey{color:#546883}.highlight-grey{color:#fff;background-color:#546883}.border-grey{border:1px solid #546883}.denim{color:#0c2c50}.highlight-denim{color:#fff;background-color:#0c2c50}.border-denim{border:1px solid #0c2c50}.green{color:#739b6c}.highlight-green{color:#fff;background-color:#739b6c}.border-green{border:1px solid #739b6c}.gold{color:#bbb541}.highlight-gold{color:#fff;background-color:#bbb541}.border-gold{border:1px solid #bbb541}.mag-blue{color:#2a6ba3}.highlight-mag-blue{color:#fff;background-color:#2a6ba3}.border-mag-blue{border:1px solid #2a6ba3}.psq-actu h1{color:#fff;background-color:#cb3239}.psq-actu .pill-box>div{border:1px solid #cb3239}.psq-actu .box,.psq-actu div.pill-box div,div.pill-box .psq-actu div{border-radius:5px}.psq-labos h1{color:#fff;background-color:#9a36c8}.psq-labos .pill-box>div{border:1px solid #9a36c8}.psq-labos .box,.psq-labos div.pill-box div,div.pill-box .psq-labos div{border-radius:5px}.psq-com-campaign h1{color:#fff;background-color:#278cd7}.psq-com-campaign .pill-box>div{border:1px solid #278cd7}.psq-com-campaign .box,.psq-com-campaign div.pill-box div,div.pill-box .psq-com-campaign div{border-radius:5px}.psq-plus h1{color:#fff;background-color:#e79b17}.psq-plus .pill-box>div{border:1px solid #e79b17}.psq-plus .box,.psq-plus div.pill-box div,div.pill-box .psq-plus div{border-radius:5px}.psq-podcasts h1{color:#fff;background-color:#bbb541}.psq-podcasts .pill-box>div{border:1px solid #bbb541}.psq-podcasts .box,.psq-podcasts div.pill-box div,div.pill-box .psq-podcasts div{border-radius:5px}.psq-archives h1{color:#fff;background-color:#14c7eb}.psq-archives .pill-box>div{border:1px solid #14c7eb}.psq-archives .box,.psq-archives div.pill-box div,div.pill-box .psq-archives div{border-radius:5px}.psq-mag h1{color:#fff;background-color:#cc33a0}.psq-mag .pill-box>div{border:1px solid #cc33a0}.psq-mag .box,.psq-mag div.pill-box div,div.pill-box .psq-mag div{border-radius:5px}.psq-not-registered h1{color:#fff;background-color:#739b6c}.psq-not-registered .pill-box>div{border:1px solid #739b6c}.psq-not-registered .box,.psq-not-registered div.pill-box div,div.pill-box .psq-not-registered div{border-radius:5px}.psq-login-logout h1{color:#fff;background-color:#0c2c50}.psq-login-logout .pill-box>div{border:1px solid #0c2c50}.psq-login-logout .box,.psq-login-logout div.pill-box div,div.pill-box .psq-login-logout div{border-radius:5px}nav>ul{margin-bottom:.5rem;display:flex;justify-content:space-around;align-items:flex-end;padding-left:0;flex-wrap:wrap}nav>ul>li{list-style-type:none;flex:1 1 0;text-align:center}@media (max-width:576px){nav>ul>li{flex:25% 1 0;padding:0 10px}}nav>ul img{max-width:100px;margin-bottom:1rem;width:100%}nav>ul p{display:none;font-size:small;font-weight:500;text-transform:uppercase;text-align:center;word-break:break-word}@supports not (-ms-high-contrast:none){nav>ul .pill-bigger{flex-grow:1.25}}nav>ul .pill-bigger img{max-width:125px}nav>ul .pill-smaller{flex-grow:1}nav>ul .pill-smaller img{max-width:50px}footer{padding-top:25px;height:80px;background-color:#ecf5ff}footer p.img-link{text-align:right;font-weight:700;text-transform:uppercase}footer p.img-link img{width:50px;display:inline-block;margin-right:1rem}h1{margin:auto auto 1rem;text-align:center;display:table;font-size:x-large;padding:6px 8px 4px}h1,h2{text-transform:uppercase}h2{font-weight:500;color:#044e9c}h2,h2.bold{font-size:large}h2.bold{font-weight:700}h3{font-size:medium;color:#044e9c}h4{font-size:small}div.cover{position:relative}div.cover img.cover-bg{width:100%}div.cover.cover-pile-2 img.cover-over{width:71%;left:15%;top:3%}div.cover.cover-pile-3 img.cover-over{width:60%;left:20%;top:5%}div.cover img.cover-over{position:absolute}div.cover .cover-title{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:auto;position:relative;height:30px}div.cover .cover-title img{position:absolute;width:50px;z-index:5;top:-12px;left:-30px}div.cover .cover-title p{text-transform:uppercase;color:#044e9c;background-color:#cddceb;text-align:center;font-weight:900;display:table;margin:auto;padding:0 6px;font-size:small;z-index:10;position:relative}div.pill-box{position:relative}div.pill-box img{width:60px;left:-15px;top:-20px;position:absolute;z-index:2}div.pill-box div{background-color:initial!important;border-radius:5px;padding:0 5px 5px}div.pill-box div h2{padding:2px 10px 1px 50px;margin:0 -6px 10px;background-color:#044e9c;color:#fff;text-align:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;top:-1px;font-size:medium}div.pill-box div>p{padding:5px 10px 0;margin-bottom:.5rem}ul.leaders{padding:0;overflow-x:hidden;list-style:none;color:#044e9c}ul.leaders li:after{float:left;width:0;white-space:nowrap;content:"• • • • • • • • • • • • • • • • • • • • " "• • • • • • • • • • • • • • • • • • • • " "• • • • • • • • • • • • • • • • • • • • " "• • • • • • • • • • • • • • • • • • • • "}ul.leaders span{text-transform:uppercase}ul.leaders span:first-child{padding-right:.5em;background:#f8fafc}ul.leaders span+span{float:right;padding-left:.33em;background:#f8fafc;position:relative;z-index:1;font-family:Avenir Next Demi,sans-serif}div.youtube-block iframe{display:block;margin:1rem auto;max-width:100%}.poll.container{max-width:700px}.poll .form-group{margin-bottom:2rem}.poll .form-group>label{font-size:larger;font-weight:500;color:#044e9c}.ck-article .ck-editor .ck-heading_heading1.ck.ck-button.ck-button_with-text span,.ck-article .ck-editor h2,article .ck-content .ck-heading_heading1.ck.ck-button.ck-button_with-text span,article .ck-content h2,article article .ck-heading_heading1.ck.ck-button.ck-button_with-text span,article article h2{font-weight:500;font-size:22px;text-transform:uppercase;color:#074e9c;margin-bottom:.5rem;line-height:1.2;text-align:center}.ck-article .ck-editor .ck-heading_heading2.ck.ck-button.ck-button_with-text span,.ck-article .ck-editor h3,article .ck-content .ck-heading_heading2.ck.ck-button.ck-button_with-text span,article .ck-content h3,article article .ck-heading_heading2.ck.ck-button.ck-button_with-text span,article article h3{font-weight:500;font-size:18px;text-transform:uppercase;color:#074e9c;margin-bottom:.5rem;line-height:1.2}.ck-article .ck-editor p,article .ck-content p,article article p{margin-bottom:1rem;font-family:Avenir Next,sans-serif;font-size:17px;line-height:1.6}.ck-article .ck-editor .chapo,article .ck-content .chapo,article article .chapo{text-transform:uppercase;font-size:large}.ck-email .ck-editor blockquote,.ck-email .ck-editor ol,.ck-email .ck-editor p,.ck-email .ck-editor ul{line-height:1.4;text-align:left}.ck-email .ck-editor a{color:#074e9c}.ck-email .ck-editor a img{border:none}.ck-email .ck-editor .ck-heading_heading1.ck.ck-button.ck-button_with-text span,.ck-email .ck-editor h2{color:#d04d4a;font-size:16px;font-weight:700;margin-top:0;text-align:left}.ck-email .ck-editor .ck-heading_heading2.ck.ck-button.ck-button_with-text span,.ck-email .ck-editor h3{font-size:14px;font-weight:700;margin-top:10px;text-align:left;text-transform:uppercase;color:#074e9c;margin-bottom:0}.ck-email .ck-editor p{font-size:16px;line-height:1.5em;margin-top:0;text-align:left}body{margin-bottom:0!important}main{min-height:calc(100vh - 360px)}@media print{nav{display:none}}.box,div.pill-box div{box-shadow:0 2px 0 rgba(90,97,105,.11),0 4px 8px rgba(90,97,105,.12),0 10px 10px rgba(90,97,105,.06),0 7px 70px rgba(90,97,105,.1);background-color:#fff;overflow:hidden;position:relative}.header-logo{width:90%;max-width:850px;display:block;margin:1em auto}a{color:#044e9c!important}.click-here,div.pill-box div>a{text-align:right;font-weight:700;margin-bottom:0;display:block;text-transform:uppercase}.click-here.bottom-left,div.pill-box div>a.bottom-left{left:10px;position:absolute;bottom:0}.click-here.bottom-right,div.pill-box div>a.bottom-right{right:10px;position:absolute;bottom:0}.small-text{font-size:xx-small;text-align:left}.spotlight-news{padding:.5rem;margin-bottom:1rem}.simple-preview .chapo,.spotlight-news>div{font-size:small}.btn-back,.btn-big{text-transform:uppercase;font-weight:700;margin-bottom:1rem;color:#fff!important}.ck-content p,article p{margin-bottom:0}article .truncated{mask-image:linear-gradient(180deg,#000 75%,transparent 99%);-webkit-mask-image:linear-gradient(180deg,#000 75%,transparent 99%)}article h2{font-size:22px;text-align:center}article .content{max-width:800px;font-size:larger;margin:auto}article img.top-img{display:block;margin:auto;max-width:100%;max-height:350px}article img{max-width:100%}article h3{font-weight:500;font-size:18px;color:#074e9c;text-transform:uppercase}.error-403 p{font-size:x-large}.error-403 a{color:inherit!important}.block-img{max-width:100%;max-height:350px;display:block;margin:auto}.mh-campaign{max-height:120px}.badge-light{font-weight:300}
\ No newline at end of file
+ */:root{--blue:#3490dc;--indigo:#6574cd;--purple:#9561e2;--pink:#f66d9b;--red:#e3342f;--orange:#f6993f;--yellow:#ffed4a;--green:#38c172;--teal:#4dc0b5;--cyan:#6cb2eb;--white:#fff;--gray:#6c757d;--gray-dark:#343a40;--primary:#3490dc;--secondary:#6c757d;--success:#38c172;--info:#6cb2eb;--warning:#ffed4a;--danger:#e3342f;--light:#f8f9fa;--dark:#343a40;--breakpoint-xs:0;--breakpoint-sm:576px;--breakpoint-md:768px;--breakpoint-lg:992px;--breakpoint-xl:1200px;--font-family-sans-serif:"Avenir Next",sans-serif;--font-family-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:Avenir Next,sans-serif;font-size:.9rem;font-weight:400;line-height:1.6;color:#212529;text-align:left;background-color:#f8fafc}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#3490dc;text-decoration:none;background-color:transparent}a:hover{color:#1d68a7;text-decoration:underline}a:not([href]),a:not([href]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{border-style:none}img,svg{vertical-align:middle}svg{overflow:hidden}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:2.25rem}.h2,h2{font-size:1.8rem}.h3,h3{font-size:1.575rem}.h4,h4{font-size:1.35rem}.h5,h5{font-size:1.125rem}.h6,h6{font-size:.9rem}.lead{font-size:1.125rem;font-weight:300}.display-1{font-size:6rem}.display-1,.display-2{font-weight:300;line-height:1.2}.display-2{font-size:5.5rem}.display-3{font-size:4.5rem}.display-3,.display-4{font-weight:300;line-height:1.2}.display-4{font-size:3.5rem}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,.1)}.small,small{font-size:80%;font-weight:400}.mark,mark{padding:.2em;background-color:#fcf8e3}.list-inline,.list-unstyled{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.125rem}.blockquote-footer{display:block;font-size:80%;color:#6c757d}.blockquote-footer:before{content:"— "}.img-fluid,.img-thumbnail{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#f8fafc;border:1px solid #dee2e6;border-radius:.25rem}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:90%;color:#6c757d}code{font-size:87.5%;color:#f66d9b;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:87.5%;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container{max-width:540px}}@media (min-width:768px){.container{max-width:720px}}@media (min-width:992px){.container{max-width:960px}}@media (min-width:1200px){.container{max-width:1140px}}.container-fluid,.container-lg,.container-md,.container-sm,.container-xl{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}.row{display:flex;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*=col-]{padding-right:0;padding-left:0}.col,.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col-auto,.col-lg,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-auto,.col-md,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-md-auto,.col-sm,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-auto,.col-xl,.col-xl-1,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-1>*{flex:0 0 100%;max-width:100%}.row-cols-2>*{flex:0 0 50%;max-width:50%}.row-cols-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-4>*{flex:0 0 25%;max-width:25%}.row-cols-5>*{flex:0 0 20%;max-width:20%}.row-cols-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto;max-width:100%}.col-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-3{flex:0 0 25%;max-width:25%}.col-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-6{flex:0 0 50%;max-width:50%}.col-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-9{flex:0 0 75%;max-width:75%}.col-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-12{flex:0 0 100%;max-width:100%}.order-first{order:-1}.order-last{order:13}.order-0{order:0}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}.offset-1{margin-left:8.3333333333%}.offset-2{margin-left:16.6666666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.3333333333%}.offset-5{margin-left:41.6666666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.3333333333%}.offset-8{margin-left:66.6666666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.3333333333%}.offset-11{margin-left:91.6666666667%}@media (min-width:576px){.col-sm{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-sm-1>*{flex:0 0 100%;max-width:100%}.row-cols-sm-2>*{flex:0 0 50%;max-width:50%}.row-cols-sm-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 25%;max-width:25%}.row-cols-sm-5>*{flex:0 0 20%;max-width:20%}.row-cols-sm-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-sm-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-sm-3{flex:0 0 25%;max-width:25%}.col-sm-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-sm-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-sm-6{flex:0 0 50%;max-width:50%}.col-sm-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-sm-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-sm-9{flex:0 0 75%;max-width:75%}.col-sm-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-sm-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-sm-12{flex:0 0 100%;max-width:100%}.order-sm-first{order:-1}.order-sm-last{order:13}.order-sm-0{order:0}.order-sm-1{order:1}.order-sm-2{order:2}.order-sm-3{order:3}.order-sm-4{order:4}.order-sm-5{order:5}.order-sm-6{order:6}.order-sm-7{order:7}.order-sm-8{order:8}.order-sm-9{order:9}.order-sm-10{order:10}.order-sm-11{order:11}.order-sm-12{order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.3333333333%}.offset-sm-2{margin-left:16.6666666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.3333333333%}.offset-sm-5{margin-left:41.6666666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.3333333333%}.offset-sm-8{margin-left:66.6666666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.3333333333%}.offset-sm-11{margin-left:91.6666666667%}}@media (min-width:768px){.col-md{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-md-1>*{flex:0 0 100%;max-width:100%}.row-cols-md-2>*{flex:0 0 50%;max-width:50%}.row-cols-md-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-md-4>*{flex:0 0 25%;max-width:25%}.row-cols-md-5>*{flex:0 0 20%;max-width:20%}.row-cols-md-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto;max-width:100%}.col-md-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-md-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-md-3{flex:0 0 25%;max-width:25%}.col-md-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-md-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-md-6{flex:0 0 50%;max-width:50%}.col-md-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-md-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-md-9{flex:0 0 75%;max-width:75%}.col-md-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-md-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-md-12{flex:0 0 100%;max-width:100%}.order-md-first{order:-1}.order-md-last{order:13}.order-md-0{order:0}.order-md-1{order:1}.order-md-2{order:2}.order-md-3{order:3}.order-md-4{order:4}.order-md-5{order:5}.order-md-6{order:6}.order-md-7{order:7}.order-md-8{order:8}.order-md-9{order:9}.order-md-10{order:10}.order-md-11{order:11}.order-md-12{order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.3333333333%}.offset-md-2{margin-left:16.6666666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.3333333333%}.offset-md-5{margin-left:41.6666666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.3333333333%}.offset-md-8{margin-left:66.6666666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.3333333333%}.offset-md-11{margin-left:91.6666666667%}}@media (min-width:992px){.col-lg{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-lg-1>*{flex:0 0 100%;max-width:100%}.row-cols-lg-2>*{flex:0 0 50%;max-width:50%}.row-cols-lg-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 25%;max-width:25%}.row-cols-lg-5>*{flex:0 0 20%;max-width:20%}.row-cols-lg-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-lg-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-lg-3{flex:0 0 25%;max-width:25%}.col-lg-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-lg-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-lg-6{flex:0 0 50%;max-width:50%}.col-lg-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-lg-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-lg-9{flex:0 0 75%;max-width:75%}.col-lg-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-lg-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-lg-12{flex:0 0 100%;max-width:100%}.order-lg-first{order:-1}.order-lg-last{order:13}.order-lg-0{order:0}.order-lg-1{order:1}.order-lg-2{order:2}.order-lg-3{order:3}.order-lg-4{order:4}.order-lg-5{order:5}.order-lg-6{order:6}.order-lg-7{order:7}.order-lg-8{order:8}.order-lg-9{order:9}.order-lg-10{order:10}.order-lg-11{order:11}.order-lg-12{order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.3333333333%}.offset-lg-2{margin-left:16.6666666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.3333333333%}.offset-lg-5{margin-left:41.6666666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.3333333333%}.offset-lg-8{margin-left:66.6666666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.3333333333%}.offset-lg-11{margin-left:91.6666666667%}}@media (min-width:1200px){.col-xl{flex-basis:0;flex-grow:1;max-width:100%}.row-cols-xl-1>*{flex:0 0 100%;max-width:100%}.row-cols-xl-2>*{flex:0 0 50%;max-width:50%}.row-cols-xl-3>*{flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 25%;max-width:25%}.row-cols-xl-5>*{flex:0 0 20%;max-width:20%}.row-cols-xl-6>*{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-xl-2{flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xl-3{flex:0 0 25%;max-width:25%}.col-xl-4{flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-xl-5{flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-xl-6{flex:0 0 50%;max-width:50%}.col-xl-7{flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-xl-8{flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-xl-9{flex:0 0 75%;max-width:75%}.col-xl-10{flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-xl-11{flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-xl-12{flex:0 0 100%;max-width:100%}.order-xl-first{order:-1}.order-xl-last{order:13}.order-xl-0{order:0}.order-xl-1{order:1}.order-xl-2{order:2}.order-xl-3{order:3}.order-xl-4{order:4}.order-xl-5{order:5}.order-xl-6{order:6}.order-xl-7{order:7}.order-xl-8{order:8}.order-xl-9{order:9}.order-xl-10{order:10}.order-xl-11{order:11}.order-xl-12{order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.3333333333%}.offset-xl-2{margin-left:16.6666666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.3333333333%}.offset-xl-5{margin-left:41.6666666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.3333333333%}.offset-xl-8{margin-left:66.6666666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.3333333333%}.offset-xl-11{margin-left:91.6666666667%}}.table{width:100%;margin-bottom:1rem;color:#212529}.table td,.table th{padding:.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table-sm td,.table-sm th{padding:.3rem}.table-bordered,.table-bordered td,.table-bordered th{border:1px solid #dee2e6}.table-bordered thead td,.table-bordered thead th{border-bottom-width:2px}.table-borderless tbody+tbody,.table-borderless td,.table-borderless th,.table-borderless thead th{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.table-hover tbody tr:hover{color:#212529;background-color:rgba(0,0,0,.075)}.table-primary,.table-primary>td,.table-primary>th{background-color:#c6e0f5}.table-primary tbody+tbody,.table-primary td,.table-primary th,.table-primary thead th{border-color:#95c5ed}.table-hover .table-primary:hover,.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#b0d4f1}.table-secondary,.table-secondary>td,.table-secondary>th{background-color:#d6d8db}.table-secondary tbody+tbody,.table-secondary td,.table-secondary th,.table-secondary thead th{border-color:#b3b7bb}.table-hover .table-secondary:hover,.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#c8cbcf}.table-success,.table-success>td,.table-success>th{background-color:#c7eed8}.table-success tbody+tbody,.table-success td,.table-success th,.table-success thead th{border-color:#98dfb6}.table-hover .table-success:hover,.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b3e8ca}.table-info,.table-info>td,.table-info>th{background-color:#d6e9f9}.table-info tbody+tbody,.table-info td,.table-info th,.table-info thead th{border-color:#b3d7f5}.table-hover .table-info:hover,.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#c0ddf6}.table-warning,.table-warning>td,.table-warning>th{background-color:#fffacc}.table-warning tbody+tbody,.table-warning td,.table-warning th,.table-warning thead th{border-color:#fff6a1}.table-hover .table-warning:hover,.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#fff8b3}.table-danger,.table-danger>td,.table-danger>th{background-color:#f7c6c5}.table-danger tbody+tbody,.table-danger td,.table-danger th,.table-danger thead th{border-color:#f09593}.table-hover .table-danger:hover,.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#f4b0af}.table-light,.table-light>td,.table-light>th{background-color:#fdfdfe}.table-light tbody+tbody,.table-light td,.table-light th,.table-light thead th{border-color:#fbfcfc}.table-hover .table-light:hover,.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>td,.table-dark>th{background-color:#c6c8ca}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#95999c}.table-hover .table-dark:hover,.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#b9bbbe}.table-active,.table-active>td,.table-active>th,.table-hover .table-active:hover,.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:rgba(0,0,0,.075)}.table .thead-dark th{color:#fff;background-color:#343a40;border-color:#454d55}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#343a40}.table-dark td,.table-dark th,.table-dark thead th{border-color:#454d55}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:hsla(0,0%,100%,.05)}.table-dark.table-hover tbody tr:hover{color:#fff;background-color:hsla(0,0%,100%,.075)}@media (max-width:575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-sm>.table-bordered{border:0}}@media (max-width:767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-md>.table-bordered{border:0}}@media (max-width:991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-lg>.table-bordered{border:0}}@media (max-width:1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive>.table-bordered{border:0}.ais-SearchBox-input,.form-control{display:block;width:100%;height:calc(1.6em + .75rem + 2px);padding:.375rem .75rem;font-size:.9rem;font-weight:400;line-height:1.6;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.ais-SearchBox-input,.form-control{transition:none}}.ais-SearchBox-input::-ms-expand,.form-control::-ms-expand{background-color:transparent;border:0}.ais-SearchBox-input:-moz-focusring,.form-control:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.ais-SearchBox-input:focus,.form-control:focus{color:#495057;background-color:#fff;border-color:#a1cbef;outline:0;box-shadow:0 0 0 .2rem rgba(52,144,220,.25)}.ais-SearchBox-input::-moz-placeholder,.form-control::-moz-placeholder{color:#6c757d;opacity:1}.ais-SearchBox-input:-ms-input-placeholder,.form-control:-ms-input-placeholder{color:#6c757d;opacity:1}.ais-SearchBox-input::placeholder,.form-control::placeholder{color:#6c757d;opacity:1}.ais-SearchBox-input:disabled,.form-control:disabled,.form-control[readonly],[readonly].ais-SearchBox-input{background-color:#e9ecef;opacity:1}select.ais-SearchBox-input:focus::-ms-value,select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.6}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.125rem;line-height:1.5}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.7875rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;font-size:.9rem;line-height:1.6;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.7875rem;line-height:1.5;border-radius:.2rem}.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.125rem;line-height:1.5;border-radius:.3rem}select.form-control[multiple],select.form-control[size],select[multiple].ais-SearchBox-input,select[size].ais-SearchBox-input,textarea.ais-SearchBox-input,textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:.25rem}.form-row{display:flex;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*=col-]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:.3rem;margin-left:-1.25rem}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{color:#6c757d}.form-check-label{margin-bottom:0}.form-check-inline{display:inline-flex;align-items:center;padding-left:0;margin-right:.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#38c172}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.7875rem;line-height:1.6;color:#fff;background-color:rgba(56,193,114,.9);border-radius:.25rem}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.is-valid.ais-SearchBox-input,.was-validated .ais-SearchBox-input:valid,.was-validated .form-control:valid{border-color:#38c172;padding-right:calc(1.6em + .75rem);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%2338c172' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right calc(.4em + .1875rem) center;background-size:calc(.8em + .375rem) calc(.8em + .375rem)}.form-control.is-valid:focus,.is-valid.ais-SearchBox-input:focus,.was-validated .ais-SearchBox-input:valid:focus,.was-validated .form-control:valid:focus{border-color:#38c172;box-shadow:0 0 0 .2rem rgba(56,193,114,.25)}.was-validated textarea.ais-SearchBox-input:valid,.was-validated textarea.form-control:valid,textarea.form-control.is-valid,textarea.is-valid.ais-SearchBox-input{padding-right:calc(1.6em + .75rem);background-position:top calc(.4em + .1875rem) right calc(.4em + .1875rem)}.custom-select.is-valid,.was-validated .custom-select:valid{border-color:#38c172;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%2338c172' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3E%3C/svg%3E") #fff no-repeat center right 1.75rem/calc(.8em + .375rem) calc(.8em + .375rem)}.custom-select.is-valid:focus,.was-validated .custom-select:valid:focus{border-color:#38c172;box-shadow:0 0 0 .2rem rgba(56,193,114,.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#38c172}.form-check-input.is-valid~.valid-feedback,.form-check-input.is-valid~.valid-tooltip,.was-validated .form-check-input:valid~.valid-feedback,.was-validated .form-check-input:valid~.valid-tooltip{display:block}.custom-control-input.is-valid~.custom-control-label,.was-validated .custom-control-input:valid~.custom-control-label{color:#38c172}.custom-control-input.is-valid~.custom-control-label:before,.was-validated .custom-control-input:valid~.custom-control-label:before{border-color:#38c172}.custom-control-input.is-valid:checked~.custom-control-label:before,.was-validated .custom-control-input:valid:checked~.custom-control-label:before{border-color:#5cd08d;background-color:#5cd08d}.custom-control-input.is-valid:focus~.custom-control-label:before,.was-validated .custom-control-input:valid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem rgba(56,193,114,.25)}.custom-control-input.is-valid:focus:not(:checked)~.custom-control-label:before,.custom-file-input.is-valid~.custom-file-label,.was-validated .custom-control-input:valid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-file-input:valid~.custom-file-label{border-color:#38c172}.custom-file-input.is-valid:focus~.custom-file-label,.was-validated .custom-file-input:valid:focus~.custom-file-label{border-color:#38c172;box-shadow:0 0 0 .2rem rgba(56,193,114,.25)}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:80%;color:#e3342f}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.7875rem;line-height:1.6;color:#fff;background-color:rgba(227,52,47,.9);border-radius:.25rem}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.is-invalid.ais-SearchBox-input,.was-validated .ais-SearchBox-input:invalid,.was-validated .form-control:invalid{border-color:#e3342f;padding-right:calc(1.6em + .75rem);background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23e3342f'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23e3342f' stroke='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right calc(.4em + .1875rem) center;background-size:calc(.8em + .375rem) calc(.8em + .375rem)}.form-control.is-invalid:focus,.is-invalid.ais-SearchBox-input:focus,.was-validated .ais-SearchBox-input:invalid:focus,.was-validated .form-control:invalid:focus{border-color:#e3342f;box-shadow:0 0 0 .2rem rgba(227,52,47,.25)}.was-validated textarea.ais-SearchBox-input:invalid,.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid,textarea.is-invalid.ais-SearchBox-input{padding-right:calc(1.6em + .75rem);background-position:top calc(.4em + .1875rem) right calc(.4em + .1875rem)}.custom-select.is-invalid,.was-validated .custom-select:invalid{border-color:#e3342f;padding-right:calc(.75em + 2.3125rem);background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center/8px 10px,url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23e3342f'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3E%3Ccircle cx='6' cy='8.2' r='.6' fill='%23e3342f' stroke='none'/%3E%3C/svg%3E") #fff no-repeat center right 1.75rem/calc(.8em + .375rem) calc(.8em + .375rem)}.custom-select.is-invalid:focus,.was-validated .custom-select:invalid:focus{border-color:#e3342f;box-shadow:0 0 0 .2rem rgba(227,52,47,.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#e3342f}.form-check-input.is-invalid~.invalid-feedback,.form-check-input.is-invalid~.invalid-tooltip,.was-validated .form-check-input:invalid~.invalid-feedback,.was-validated .form-check-input:invalid~.invalid-tooltip{display:block}.custom-control-input.is-invalid~.custom-control-label,.was-validated .custom-control-input:invalid~.custom-control-label{color:#e3342f}.custom-control-input.is-invalid~.custom-control-label:before,.was-validated .custom-control-input:invalid~.custom-control-label:before{border-color:#e3342f}.custom-control-input.is-invalid:checked~.custom-control-label:before,.was-validated .custom-control-input:invalid:checked~.custom-control-label:before{border-color:#e9605c;background-color:#e9605c}.custom-control-input.is-invalid:focus~.custom-control-label:before,.was-validated .custom-control-input:invalid:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem rgba(227,52,47,.25)}.custom-control-input.is-invalid:focus:not(:checked)~.custom-control-label:before,.custom-file-input.is-invalid~.custom-file-label,.was-validated .custom-control-input:invalid:focus:not(:checked)~.custom-control-label:before,.was-validated .custom-file-input:invalid~.custom-file-label{border-color:#e3342f}.custom-file-input.is-invalid:focus~.custom-file-label,.was-validated .custom-file-input:invalid:focus~.custom-file-label{border-color:#e3342f;box-shadow:0 0 0 .2rem rgba(227,52,47,.25)}.form-inline{display:flex;flex-flow:row wrap;align-items:center}.form-inline .form-check{width:100%}@media (min-width:576px){.form-inline label{justify-content:center}.form-inline .form-group,.form-inline label{display:flex;align-items:center;margin-bottom:0}.form-inline .form-group{flex:0 0 auto;flex-flow:row wrap}.form-inline .ais-SearchBox-input,.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .custom-select,.form-inline .input-group{width:auto}.form-inline .form-check{display:flex;align-items:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;flex-shrink:0;margin-top:0;margin-right:.25rem;margin-left:0}.form-inline .custom-control{align-items:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;color:#212529;text-align:center;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:.375rem .75rem;font-size:.9rem;line-height:1.6;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:#212529;text-decoration:none}.btn.focus,.btn:focus{outline:0;box-shadow:0 0 0 .2rem rgba(52,144,220,.25)}.btn.disabled,.btn:disabled{opacity:.65}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#3490dc;border-color:#3490dc}.btn-primary.focus,.btn-primary:focus,.btn-primary:hover{color:#fff;background-color:#227dc7;border-color:#2176bd}.btn-primary.focus,.btn-primary:focus{box-shadow:0 0 0 .2rem rgba(82,161,225,.5)}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#3490dc;border-color:#3490dc}.btn-primary:not(:disabled):not(.disabled).active,.btn-primary:not(:disabled):not(.disabled):active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#2176bd;border-color:#1f6fb2}.btn-primary:not(:disabled):not(.disabled).active:focus,.btn-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(82,161,225,.5)}.btn-secondary{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary.focus,.btn-secondary:focus,.btn-secondary:hover{color:#fff;background-color:#5a6268;border-color:#545b62}.btn-secondary.focus,.btn-secondary:focus{box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-secondary:not(:disabled):not(.disabled).active,.btn-secondary:not(:disabled):not(.disabled):active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#545b62;border-color:#4e555b}.btn-secondary:not(:disabled):not(.disabled).active:focus,.btn-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(130,138,145,.5)}.btn-success{color:#fff;background-color:#38c172;border-color:#38c172}.btn-success.focus,.btn-success:focus,.btn-success:hover{color:#fff;background-color:#2fa360;border-color:#2d995b}.btn-success.focus,.btn-success:focus{box-shadow:0 0 0 .2rem rgba(86,202,135,.5)}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#38c172;border-color:#38c172}.btn-success:not(:disabled):not(.disabled).active,.btn-success:not(:disabled):not(.disabled):active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#2d995b;border-color:#2a9055}.btn-success:not(:disabled):not(.disabled).active:focus,.btn-success:not(:disabled):not(.disabled):active:focus,.show>.btn-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(86,202,135,.5)}.btn-info{color:#212529;background-color:#6cb2eb;border-color:#6cb2eb}.btn-info.focus,.btn-info:focus,.btn-info:hover{color:#fff;background-color:#4aa0e6;border-color:#3f9ae5}.btn-info.focus,.btn-info:focus{box-shadow:0 0 0 .2rem rgba(97,157,206,.5)}.btn-info.disabled,.btn-info:disabled{color:#212529;background-color:#6cb2eb;border-color:#6cb2eb}.btn-info:not(:disabled):not(.disabled).active,.btn-info:not(:disabled):not(.disabled):active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#3f9ae5;border-color:#3495e3}.btn-info:not(:disabled):not(.disabled).active:focus,.btn-info:not(:disabled):not(.disabled):active:focus,.show>.btn-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(97,157,206,.5)}.btn-warning{color:#212529;background-color:#ffed4a;border-color:#ffed4a}.btn-warning.focus,.btn-warning:focus,.btn-warning:hover{color:#212529;background-color:#ffe924;border-color:#ffe817}.btn-warning.focus,.btn-warning:focus{box-shadow:0 0 0 .2rem rgba(222,207,69,.5)}.btn-warning.disabled,.btn-warning:disabled{color:#212529;background-color:#ffed4a;border-color:#ffed4a}.btn-warning:not(:disabled):not(.disabled).active,.btn-warning:not(:disabled):not(.disabled):active,.show>.btn-warning.dropdown-toggle{color:#212529;background-color:#ffe817;border-color:#ffe70a}.btn-warning:not(:disabled):not(.disabled).active:focus,.btn-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(222,207,69,.5)}.btn-danger{color:#fff;background-color:#e3342f;border-color:#e3342f}.btn-danger.focus,.btn-danger:focus,.btn-danger:hover{color:#fff;background-color:#d0211c;border-color:#c51f1a}.btn-danger.focus,.btn-danger:focus{box-shadow:0 0 0 .2rem rgba(231,82,78,.5)}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#e3342f;border-color:#e3342f}.btn-danger:not(:disabled):not(.disabled).active,.btn-danger:not(:disabled):not(.disabled):active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#c51f1a;border-color:#b91d19}.btn-danger:not(:disabled):not(.disabled).active:focus,.btn-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(231,82,78,.5)}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light.focus,.btn-light:focus,.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light.focus,.btn-light:focus{box-shadow:0 0 0 .2rem rgba(216,217,219,.5)}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled).active,.btn-light:not(:disabled):not(.disabled):active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled).active:focus,.btn-light:not(:disabled):not(.disabled):active:focus,.show>.btn-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(216,217,219,.5)}.btn-dark{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark.focus,.btn-dark:focus,.btn-dark:hover{color:#fff;background-color:#23272b;border-color:#1d2124}.btn-dark.focus,.btn-dark:focus{box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#343a40;border-color:#343a40}.btn-dark:not(:disabled):not(.disabled).active,.btn-dark:not(:disabled):not(.disabled):active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1d2124;border-color:#171a1d}.btn-dark:not(:disabled):not(.disabled).active:focus,.btn-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(82,88,93,.5)}.btn-outline-primary{color:#3490dc;border-color:#3490dc}.btn-outline-primary:hover{color:#fff;background-color:#3490dc;border-color:#3490dc}.btn-outline-primary.focus,.btn-outline-primary:focus{box-shadow:0 0 0 .2rem rgba(52,144,220,.5)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#3490dc;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled).active,.btn-outline-primary:not(:disabled):not(.disabled):active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#3490dc;border-color:#3490dc}.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,144,220,.5)}.btn-outline-secondary{color:#6c757d;border-color:#6c757d}.btn-outline-secondary:hover{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary.focus,.btn-outline-secondary:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#6c757d;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled).active,.btn-outline-secondary:not(:disabled):not(.disabled):active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#6c757d;border-color:#6c757d}.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.btn-outline-success{color:#38c172;border-color:#38c172}.btn-outline-success:hover{color:#fff;background-color:#38c172;border-color:#38c172}.btn-outline-success.focus,.btn-outline-success:focus{box-shadow:0 0 0 .2rem rgba(56,193,114,.5)}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#38c172;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled).active,.btn-outline-success:not(:disabled):not(.disabled):active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#38c172;border-color:#38c172}.btn-outline-success:not(:disabled):not(.disabled).active:focus,.btn-outline-success:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-success.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(56,193,114,.5)}.btn-outline-info{color:#6cb2eb;border-color:#6cb2eb}.btn-outline-info:hover{color:#212529;background-color:#6cb2eb;border-color:#6cb2eb}.btn-outline-info.focus,.btn-outline-info:focus{box-shadow:0 0 0 .2rem rgba(108,178,235,.5)}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#6cb2eb;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled).active,.btn-outline-info:not(:disabled):not(.disabled):active,.show>.btn-outline-info.dropdown-toggle{color:#212529;background-color:#6cb2eb;border-color:#6cb2eb}.btn-outline-info:not(:disabled):not(.disabled).active:focus,.btn-outline-info:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-info.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(108,178,235,.5)}.btn-outline-warning{color:#ffed4a;border-color:#ffed4a}.btn-outline-warning:hover{color:#212529;background-color:#ffed4a;border-color:#ffed4a}.btn-outline-warning.focus,.btn-outline-warning:focus{box-shadow:0 0 0 .2rem rgba(255,237,74,.5)}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#ffed4a;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled).active,.btn-outline-warning:not(:disabled):not(.disabled):active,.show>.btn-outline-warning.dropdown-toggle{color:#212529;background-color:#ffed4a;border-color:#ffed4a}.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(255,237,74,.5)}.btn-outline-danger{color:#e3342f;border-color:#e3342f}.btn-outline-danger:hover{color:#fff;background-color:#e3342f;border-color:#e3342f}.btn-outline-danger.focus,.btn-outline-danger:focus{box-shadow:0 0 0 .2rem rgba(227,52,47,.5)}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#e3342f;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled).active,.btn-outline-danger:not(:disabled):not(.disabled):active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#e3342f;border-color:#e3342f}.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(227,52,47,.5)}.btn-outline-light{color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light.focus,.btn-outline-light:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled).active,.btn-outline-light:not(:disabled):not(.disabled):active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled).active:focus,.btn-outline-light:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-light.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.btn-outline-dark{color:#343a40;border-color:#343a40}.btn-outline-dark:hover{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark.focus,.btn-outline-dark:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#343a40;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled).active,.btn-outline-dark:not(:disabled):not(.disabled):active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#343a40;border-color:#343a40}.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.btn-link{font-weight:400;color:#3490dc;text-decoration:none}.btn-link:hover{color:#1d68a7;text-decoration:underline}.btn-link.focus,.btn-link:focus{text-decoration:underline;box-shadow:none}.btn-link.disabled,.btn-link:disabled{color:#6c757d;pointer-events:none}.btn-group-lg>.btn,.btn-lg{padding:.5rem 1rem;font-size:1.125rem;line-height:1.5;border-radius:.3rem}.btn-group-sm>.btn,.btn-sm{padding:.25rem .5rem;font-size:.7875rem;line-height:1.5;border-radius:.2rem}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:.5rem}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.dropdown,.dropleft,.dropright,.dropup{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;font-size:.9rem;color:#212529;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.15);border-radius:.25rem}.dropdown-menu-left{right:auto;left:0}.dropdown-menu-right{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-left{right:auto;left:0}.dropdown-menu-sm-right{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-left{right:auto;left:0}.dropdown-menu-md-right{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-left{right:auto;left:0}.dropdown-menu-lg-right{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-left{right:auto;left:0}.dropdown-menu-xl-right{right:0;left:auto}}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:.125rem}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:.125rem}.dropright .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropright .dropdown-toggle:empty:after{margin-left:0}.dropright .dropdown-toggle:after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:.125rem}.dropleft .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";display:none}.dropleft .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropleft .dropdown-toggle:empty:after{margin-left:0}.dropleft .dropdown-toggle:before{vertical-align:0}.dropdown-menu[x-placement^=bottom],.dropdown-menu[x-placement^=left],.dropdown-menu[x-placement^=right],.dropdown-menu[x-placement^=top]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#3490dc}.dropdown-item.disabled,.dropdown-item:disabled{color:#6c757d;pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:.5rem 1.5rem;margin-bottom:0;font-size:.7875rem;color:#6c757d;white-space:nowrap}.dropdown-item-text{display:block;padding:.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn-group:not(:first-child),.btn-group>.btn:not(:first-child){margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropright .dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after{margin-left:0}.dropleft .dropdown-toggle-split:before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn-group>.btn input[type=checkbox],.btn-group-toggle>.btn-group>.btn input[type=radio],.btn-group-toggle>.btn input[type=checkbox],.btn-group-toggle>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.ais-SearchBox-input,.input-group>.custom-file,.input-group>.custom-select,.input-group>.form-control,.input-group>.form-control-plaintext{position:relative;flex:1 1 0%;min-width:0;margin-bottom:0}.input-group>.ais-SearchBox-input+.ais-SearchBox-input,.input-group>.ais-SearchBox-input+.custom-file,.input-group>.ais-SearchBox-input+.custom-select,.input-group>.ais-SearchBox-input+.form-control,.input-group>.custom-file+.ais-SearchBox-input,.input-group>.custom-file+.custom-file,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.form-control,.input-group>.custom-select+.ais-SearchBox-input,.input-group>.custom-select+.custom-file,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.form-control,.input-group>.form-control+.ais-SearchBox-input,.input-group>.form-control+.custom-file,.input-group>.form-control+.custom-select,.input-group>.form-control+.form-control,.input-group>.form-control-plaintext+.ais-SearchBox-input,.input-group>.form-control-plaintext+.custom-file,.input-group>.form-control-plaintext+.custom-select,.input-group>.form-control-plaintext+.form-control{margin-left:-1px}.input-group>.ais-SearchBox-input:focus,.input-group>.custom-file .custom-file-input:focus~.custom-file-label,.input-group>.custom-select:focus,.input-group>.form-control:focus{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.ais-SearchBox-input:not(:last-child),.input-group>.custom-select:not(:last-child),.input-group>.form-control:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.ais-SearchBox-input:not(:first-child),.input-group>.custom-select:not(:first-child),.input-group>.form-control:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.custom-file{display:flex;align-items:center}.input-group>.custom-file:not(:last-child) .custom-file-label,.input-group>.custom-file:not(:last-child) .custom-file-label:after{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.custom-file:not(:first-child) .custom-file-label{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-append,.input-group-prepend{display:flex}.input-group-append .btn,.input-group-prepend .btn{position:relative;z-index:2}.input-group-append .btn:focus,.input-group-prepend .btn:focus{z-index:3}.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.btn,.input-group-append .input-group-text+.input-group-text,.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-prepend .input-group-text+.input-group-text{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;margin-bottom:0;font-size:.9rem;font-weight:400;line-height:1.6;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.25rem}.input-group-text input[type=checkbox],.input-group-text input[type=radio]{margin-top:0}.input-group-lg>.ais-SearchBox-input:not(textarea),.input-group-lg>.custom-select,.input-group-lg>.form-control:not(textarea){height:calc(1.5em + 1rem + 2px)}.input-group-lg>.ais-SearchBox-input,.input-group-lg>.custom-select,.input-group-lg>.form-control,.input-group-lg>.input-group-append>.btn,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-prepend>.input-group-text{padding:.5rem 1rem;font-size:1.125rem;line-height:1.5;border-radius:.3rem}.input-group-sm>.ais-SearchBox-input:not(textarea),.input-group-sm>.custom-select,.input-group-sm>.form-control:not(textarea){height:calc(1.5em + .5rem + 2px)}.input-group-sm>.ais-SearchBox-input,.input-group-sm>.custom-select,.input-group-sm>.form-control,.input-group-sm>.input-group-append>.btn,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-prepend>.input-group-text{padding:.25rem .5rem;font-size:.7875rem;line-height:1.5;border-radius:.2rem}.input-group-lg>.custom-select,.input-group-sm>.custom-select{padding-right:1.75rem}.input-group>.input-group-append:last-child>.btn:not(:last-child):not(.dropdown-toggle),.input-group>.input-group-append:last-child>.input-group-text:not(:last-child),.input-group>.input-group-append:not(:last-child)>.btn,.input-group>.input-group-append:not(:last-child)>.input-group-text,.input-group>.input-group-prepend>.btn,.input-group>.input-group-prepend>.input-group-text{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0;border-bottom-left-radius:0}.custom-control{position:relative;display:block;min-height:1.44rem;padding-left:1.5rem}.custom-control-inline{display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;left:0;z-index:-1;width:1rem;height:1.22rem;opacity:0}.custom-control-input:checked~.custom-control-label:before{color:#fff;border-color:#3490dc;background-color:#3490dc}.custom-control-input:focus~.custom-control-label:before{box-shadow:0 0 0 .2rem rgba(52,144,220,.25)}.custom-control-input:focus:not(:checked)~.custom-control-label:before{border-color:#a1cbef}.custom-control-input:not(:disabled):active~.custom-control-label:before{color:#fff;background-color:#cce3f6;border-color:#cce3f6}.custom-control-input:disabled~.custom-control-label,.custom-control-input[disabled]~.custom-control-label{color:#6c757d}.custom-control-input:disabled~.custom-control-label:before,.custom-control-input[disabled]~.custom-control-label:before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}.custom-control-label:before{pointer-events:none;background-color:#fff;border:1px solid #adb5bd}.custom-control-label:after,.custom-control-label:before{position:absolute;top:.22rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:""}.custom-control-label:after{background:no-repeat 50%/50% 50%}.custom-checkbox .custom-control-label:before{border-radius:.25rem}.custom-checkbox .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:before{border-color:#3490dc;background-color:#3490dc}.custom-checkbox .custom-control-input:indeterminate~.custom-control-label:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Cpath stroke='%23fff' d='M0 2h4'/%3E%3C/svg%3E")}.custom-checkbox .custom-control-input:disabled:checked~.custom-control-label:before{background-color:rgba(52,144,220,.5)}.custom-checkbox .custom-control-input:disabled:indeterminate~.custom-control-label:before{background-color:rgba(52,144,220,.5)}.custom-radio .custom-control-label:before{border-radius:50%}.custom-radio .custom-control-input:checked~.custom-control-label:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23fff'/%3E%3C/svg%3E")}.custom-radio .custom-control-input:disabled:checked~.custom-control-label:before{background-color:rgba(52,144,220,.5)}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label:before{left:-2.25rem;width:1.75rem;pointer-events:all;border-radius:.5rem}.custom-switch .custom-control-label:after{top:calc(.22rem + 2px);left:calc(-2.25rem + 2px);width:calc(1rem - 4px);height:calc(1rem - 4px);background-color:#adb5bd;border-radius:.5rem;transition:transform .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-switch .custom-control-label:after{transition:none}}.custom-switch .custom-control-input:checked~.custom-control-label:after{background-color:#fff;transform:translateX(.75rem)}.custom-switch .custom-control-input:disabled:checked~.custom-control-label:before{background-color:rgba(52,144,220,.5)}.custom-select{display:inline-block;width:100%;height:calc(1.6em + .75rem + 2px);padding:.375rem 1.75rem .375rem .75rem;font-size:.9rem;font-weight:400;line-height:1.6;color:#495057;vertical-align:middle;background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") no-repeat right .75rem center/8px 10px;border:1px solid #ced4da;border-radius:.25rem;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-select:focus{border-color:#a1cbef;outline:0;box-shadow:0 0 0 .2rem rgba(52,144,220,.25)}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:.75rem;background-image:none}.custom-select:disabled{color:#6c757d;background-color:#e9ecef}.custom-select::-ms-expand{display:none}.custom-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.custom-select-sm{height:calc(1.5em + .5rem + 2px);padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.7875rem}.custom-select-lg{height:calc(1.5em + 1rem + 2px);padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.125rem}.custom-file{display:inline-block;margin-bottom:0}.custom-file,.custom-file-input{position:relative;width:100%;height:calc(1.6em + .75rem + 2px)}.custom-file-input{z-index:2;margin:0;opacity:0}.custom-file-input:focus~.custom-file-label{border-color:#a1cbef;box-shadow:0 0 0 .2rem rgba(52,144,220,.25)}.custom-file-input:disabled~.custom-file-label,.custom-file-input[disabled]~.custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en)~.custom-file-label:after{content:"Browse"}.custom-file-input~.custom-file-label[data-browse]:after{content:attr(data-browse)}.custom-file-label{left:0;z-index:1;height:calc(1.6em + .75rem + 2px);font-weight:400;background-color:#fff;border:1px solid #ced4da;border-radius:.25rem}.custom-file-label,.custom-file-label:after{position:absolute;top:0;right:0;padding:.375rem .75rem;line-height:1.6;color:#495057}.custom-file-label:after{bottom:0;z-index:3;display:block;height:calc(1.6em + .75rem);content:"Browse";background-color:#e9ecef;border-left:inherit;border-radius:0 .25rem .25rem 0}.custom-range{width:100%;height:1.4rem;padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-range:focus{outline:none}.custom-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #f8fafc,0 0 0 .2rem rgba(52,144,220,.25)}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #f8fafc,0 0 0 .2rem rgba(52,144,220,.25)}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #f8fafc,0 0 0 .2rem rgba(52,144,220,.25)}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#3490dc;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#cce3f6}.custom-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#3490dc;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-moz-range-thumb{-moz-transition:none;transition:none}}.custom-range::-moz-range-thumb:active{background-color:#cce3f6}.custom-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:.2rem;margin-left:.2rem;background-color:#3490dc;border:0;border-radius:1rem;-ms-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;appearance:none}@media (prefers-reduced-motion:reduce){.custom-range::-ms-thumb{-ms-transition:none;transition:none}}.custom-range::-ms-thumb:active{background-color:#cce3f6}.custom-range::-ms-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:.5rem}.custom-range::-ms-fill-lower,.custom-range::-ms-fill-upper{background-color:#dee2e6;border-radius:1rem}.custom-range::-ms-fill-upper{margin-right:15px}.custom-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.custom-range:disabled::-webkit-slider-runnable-track{cursor:default}.custom-range:disabled::-moz-range-thumb{background-color:#adb5bd}.custom-range:disabled::-moz-range-track{cursor:default}.custom-range:disabled::-ms-thumb{background-color:#adb5bd}.custom-control-label:before,.custom-file-label,.custom-select{transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.custom-control-label:before,.custom-file-label,.custom-select{transition:none}}.nav{display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:.5rem 1rem}.nav-link:focus,.nav-link:hover{text-decoration:none}.nav-link.disabled{color:#6c757d;pointer-events:none;cursor:default}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent;border-top-left-radius:.25rem;border-top-right-radius:.25rem}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#6c757d;background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:#495057;background-color:#f8fafc;border-color:#dee2e6 #dee2e6 #f8fafc}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.nav-pills .nav-link{border-radius:.25rem}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#3490dc}.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;padding:.5rem 1rem}.navbar,.navbar .container,.navbar .container-fluid,.navbar .container-lg,.navbar .container-md,.navbar .container-sm,.navbar .container-xl{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:.32rem;padding-bottom:.32rem;margin-right:1rem;font-size:1.125rem;line-height:inherit;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-nav{display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:.5rem;padding-bottom:.5rem}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:.25rem .75rem;font-size:1.125rem;line-height:1;background-color:transparent;border:1px solid transparent;border-radius:.25rem}.navbar-toggler:focus,.navbar-toggler:hover{text-decoration:none}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat 50%;background-size:100% 100%}@media (max-width:575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{padding-right:0;padding-left:0}}@media (min-width:576px){.navbar-expand-sm{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-xl{flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width:767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{padding-right:0;padding-left:0}}@media (min-width:768px){.navbar-expand-md{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-md,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-xl{flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width:991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{padding-right:0;padding-left:0}}@media (min-width:992px){.navbar-expand-lg{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-xl{flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width:1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{padding-right:0;padding-left:0}}@media (min-width:1200px){.navbar-expand-xl{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-xl{flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{flex-flow:row nowrap;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:.5rem;padding-left:.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-lg,.navbar-expand>.container-md,.navbar-expand>.container-sm,.navbar-expand>.container-xl{flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand,.navbar-light .navbar-brand:focus,.navbar-light .navbar-brand:hover{color:rgba(0,0,0,.9)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,.5)}.navbar-light .navbar-nav .nav-link:focus,.navbar-light .navbar-nav .nav-link:hover{color:rgba(0,0,0,.7)}.navbar-light .navbar-nav .nav-link.disabled{color:rgba(0,0,0,.3)}.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.active,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .show>.nav-link{color:rgba(0,0,0,.9)}.navbar-light .navbar-toggler{color:rgba(0,0,0,.5);border-color:rgba(0,0,0,.1)}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-light .navbar-text{color:rgba(0,0,0,.5)}.navbar-light .navbar-text a,.navbar-light .navbar-text a:focus,.navbar-light .navbar-text a:hover{color:rgba(0,0,0,.9)}.navbar-dark .navbar-brand,.navbar-dark .navbar-brand:focus,.navbar-dark .navbar-brand:hover{color:#fff}.navbar-dark .navbar-nav .nav-link{color:hsla(0,0%,100%,.5)}.navbar-dark .navbar-nav .nav-link:focus,.navbar-dark .navbar-nav .nav-link:hover{color:hsla(0,0%,100%,.75)}.navbar-dark .navbar-nav .nav-link.disabled{color:hsla(0,0%,100%,.25)}.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.active,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .show>.nav-link{color:#fff}.navbar-dark .navbar-toggler{color:hsla(0,0%,100%,.5);border-color:hsla(0,0%,100%,.1)}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath stroke='rgba(255, 255, 255, 0.5)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E")}.navbar-dark .navbar-text{color:hsla(0,0%,100%,.5)}.navbar-dark .navbar-text a,.navbar-dark .navbar-text a:focus,.navbar-dark .navbar-text a:hover{color:#fff}.card{position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,.125);border-radius:.25rem}.card>hr{margin-right:0;margin-left:0}.card>.list-group:first-child .list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.card>.list-group:last-child .list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.card-body{flex:1 1 auto;min-height:1px;padding:1.25rem}.card-title{margin-bottom:.75rem}.card-subtitle{margin-top:-.375rem}.card-subtitle,.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:.75rem 1.25rem;margin-bottom:0;background-color:rgba(0,0,0,.03);border-bottom:1px solid rgba(0,0,0,.125)}.card-header:first-child{border-radius:calc(.25rem - 1px) calc(.25rem - 1px) 0 0}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:.75rem 1.25rem;background-color:rgba(0,0,0,.03);border-top:1px solid rgba(0,0,0,.125)}.card-footer:last-child{border-radius:0 0 calc(.25rem - 1px) calc(.25rem - 1px)}.card-header-tabs{margin-bottom:-.75rem;border-bottom:0}.card-header-pills,.card-header-tabs{margin-right:-.625rem;margin-left:-.625rem}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem}.card-img,.card-img-bottom,.card-img-top{flex-shrink:0;width:100%}.card-img,.card-img-top{border-top-left-radius:calc(.25rem - 1px);border-top-right-radius:calc(.25rem - 1px)}.card-img,.card-img-bottom{border-bottom-right-radius:calc(.25rem - 1px);border-bottom-left-radius:calc(.25rem - 1px)}.card-deck .card{margin-bottom:15px}@media (min-width:576px){.card-deck{display:flex;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{flex:1 0 0%;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group>.card{margin-bottom:15px}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.card-columns .card{margin-bottom:.75rem}@media (min-width:576px){.card-columns{-moz-column-count:3;column-count:3;-moz-column-gap:1.25rem;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion>.card{overflow:hidden}.accordion>.card:not(:last-of-type){border-bottom:0;border-bottom-right-radius:0;border-bottom-left-radius:0}.accordion>.card:not(:first-of-type){border-top-left-radius:0;border-top-right-radius:0}.accordion>.card>.card-header{border-radius:0;margin-bottom:-1px}.breadcrumb{display:flex;flex-wrap:wrap;padding:.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef;border-radius:.25rem}.breadcrumb-item+.breadcrumb-item{padding-left:.5rem}.breadcrumb-item+.breadcrumb-item:before{display:inline-block;padding-right:.5rem;color:#6c757d;content:"/"}.breadcrumb-item+.breadcrumb-item:hover:before{text-decoration:underline;text-decoration:none}.breadcrumb-item.active{color:#6c757d}.pagination{display:flex;padding-left:0;list-style:none;border-radius:.25rem}.page-link{position:relative;display:block;padding:.5rem .75rem;margin-left:-1px;line-height:1.25;color:#3490dc;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#1d68a7;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:3;outline:0;box-shadow:0 0 0 .2rem rgba(52,144,220,.25)}.page-item:first-child .page-link{margin-left:0;border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.page-item:last-child .page-link{border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.page-item.active .page-link{z-index:3;color:#fff;background-color:#3490dc;border-color:#3490dc}.page-item.disabled .page-link{color:#6c757d;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:.75rem 1.5rem;font-size:1.125rem;line-height:1.5}.pagination-lg .page-item:first-child .page-link{border-top-left-radius:.3rem;border-bottom-left-radius:.3rem}.pagination-lg .page-item:last-child .page-link{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.pagination-sm .page-link{padding:.25rem .5rem;font-size:.7875rem;line-height:1.5}.pagination-sm .page-item:first-child .page-link{border-top-left-radius:.2rem;border-bottom-left-radius:.2rem}.pagination-sm .page-item:last-child .page-link{border-top-right-radius:.2rem;border-bottom-right-radius:.2rem}.badge{display:inline-block;padding:.25em .4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.badge{transition:none}}a.badge:focus,a.badge:hover{text-decoration:none}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:.6em;padding-left:.6em;border-radius:10rem}.badge-primary{color:#fff;background-color:#3490dc}a.badge-primary:focus,a.badge-primary:hover{color:#fff;background-color:#2176bd}a.badge-primary.focus,a.badge-primary:focus{outline:0;box-shadow:0 0 0 .2rem rgba(52,144,220,.5)}.badge-secondary{color:#fff;background-color:#6c757d}a.badge-secondary:focus,a.badge-secondary:hover{color:#fff;background-color:#545b62}a.badge-secondary.focus,a.badge-secondary:focus{outline:0;box-shadow:0 0 0 .2rem rgba(108,117,125,.5)}.badge-success{color:#fff;background-color:#38c172}a.badge-success:focus,a.badge-success:hover{color:#fff;background-color:#2d995b}a.badge-success.focus,a.badge-success:focus{outline:0;box-shadow:0 0 0 .2rem rgba(56,193,114,.5)}.badge-info{color:#212529;background-color:#6cb2eb}a.badge-info:focus,a.badge-info:hover{color:#212529;background-color:#3f9ae5}a.badge-info.focus,a.badge-info:focus{outline:0;box-shadow:0 0 0 .2rem rgba(108,178,235,.5)}.badge-warning{color:#212529;background-color:#ffed4a}a.badge-warning:focus,a.badge-warning:hover{color:#212529;background-color:#ffe817}a.badge-warning.focus,a.badge-warning:focus{outline:0;box-shadow:0 0 0 .2rem rgba(255,237,74,.5)}.badge-danger{color:#fff;background-color:#e3342f}a.badge-danger:focus,a.badge-danger:hover{color:#fff;background-color:#c51f1a}a.badge-danger.focus,a.badge-danger:focus{outline:0;box-shadow:0 0 0 .2rem rgba(227,52,47,.5)}.badge-light{color:#212529;background-color:#f8f9fa}a.badge-light:focus,a.badge-light:hover{color:#212529;background-color:#dae0e5}a.badge-light.focus,a.badge-light:focus{outline:0;box-shadow:0 0 0 .2rem rgba(248,249,250,.5)}.badge-dark{color:#fff;background-color:#343a40}a.badge-dark:focus,a.badge-dark:hover{color:#fff;background-color:#1d2124}a.badge-dark.focus,a.badge-dark:focus{outline:0;box-shadow:0 0 0 .2rem rgba(52,58,64,.5)}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef;border-radius:.3rem}@media (min-width:576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0;border-radius:0}.alert{position:relative;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:3.85rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:.75rem 1.25rem;color:inherit}.alert-primary{color:#1b4b72;background-color:#d6e9f8;border-color:#c6e0f5}.alert-primary hr{border-top-color:#b0d4f1}.alert-primary .alert-link{color:#113049}.alert-secondary{color:#383d41;background-color:#e2e3e5;border-color:#d6d8db}.alert-secondary hr{border-top-color:#c8cbcf}.alert-secondary .alert-link{color:#202326}.alert-success{color:#1d643b;background-color:#d7f3e3;border-color:#c7eed8}.alert-success hr{border-top-color:#b3e8ca}.alert-success .alert-link{color:#123c24}.alert-info{color:#385d7a;background-color:#e2f0fb;border-color:#d6e9f9}.alert-info hr{border-top-color:#c0ddf6}.alert-info .alert-link{color:#284257}.alert-warning{color:#857b26;background-color:#fffbdb;border-color:#fffacc}.alert-warning hr{border-top-color:#fff8b3}.alert-warning .alert-link{color:#5d561b}.alert-danger{color:#761b18;background-color:#f9d6d5;border-color:#f7c6c5}.alert-danger hr{border-top-color:#f4b0af}.alert-danger .alert-link{color:#4c110f}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1b1e21;background-color:#d6d8d9;border-color:#c6c8ca}.alert-dark hr{border-top-color:#b9bbbe}.alert-dark .alert-link{color:#040505}@-webkit-keyframes progress-bar-stripes{0%{background-position:1rem 0}to{background-position:0 0}}@keyframes progress-bar-stripes{0%{background-position:1rem 0}to{background-position:0 0}}.progress{height:1rem;font-size:.675rem;background-color:#e9ecef;border-radius:.25rem}.progress,.progress-bar{display:flex;overflow:hidden}.progress-bar{flex-direction:column;justify-content:center;color:#fff;text-align:center;white-space:nowrap;background-color:#3490dc;transition:width .6s ease}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,hsla(0,0%,100%,.15) 25%,transparent 0,transparent 50%,hsla(0,0%,100%,.15) 0,hsla(0,0%,100%,.15) 75%,transparent 0,transparent);background-size:1rem 1rem}.progress-bar-animated{-webkit-animation:progress-bar-stripes 1s linear infinite;animation:progress-bar-stripes 1s linear infinite}@media (prefers-reduced-motion:reduce){.progress-bar-animated{-webkit-animation:none;animation:none}}.media{display:flex;align-items:flex-start}.media-body{flex:1}.list-group{display:flex;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#212529;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:.75rem 1.25rem;background-color:#fff;border:1px solid rgba(0,0,0,.125)}.list-group-item:first-child{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.list-group-item:last-child{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.list-group-item.disabled,.list-group-item:disabled{color:#6c757d;pointer-events:none;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#3490dc;border-color:#3490dc}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:-1px;border-top-width:1px}.list-group-horizontal{flex-direction:row}.list-group-horizontal .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal .list-group-item.active{margin-top:0}.list-group-horizontal .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-sm .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-sm .list-group-item.active{margin-top:0}.list-group-horizontal-sm .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-sm .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-md .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-md .list-group-item.active{margin-top:0}.list-group-horizontal-md .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-md .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-lg .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-lg .list-group-item.active{margin-top:0}.list-group-horizontal-lg .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-lg .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl .list-group-item:first-child{border-bottom-left-radius:.25rem;border-top-right-radius:0}.list-group-horizontal-xl .list-group-item:last-child{border-top-right-radius:.25rem;border-bottom-left-radius:0}.list-group-horizontal-xl .list-group-item.active{margin-top:0}.list-group-horizontal-xl .list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-xl .list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}.list-group-flush .list-group-item{border-right-width:0;border-left-width:0;border-radius:0}.list-group-flush .list-group-item:first-child{border-top-width:0}.list-group-flush:last-child .list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#1b4b72;background-color:#c6e0f5}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#1b4b72;background-color:#b0d4f1}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#1b4b72;border-color:#1b4b72}.list-group-item-secondary{color:#383d41;background-color:#d6d8db}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#383d41;background-color:#c8cbcf}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#383d41;border-color:#383d41}.list-group-item-success{color:#1d643b;background-color:#c7eed8}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#1d643b;background-color:#b3e8ca}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#1d643b;border-color:#1d643b}.list-group-item-info{color:#385d7a;background-color:#d6e9f9}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#385d7a;background-color:#c0ddf6}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#385d7a;border-color:#385d7a}.list-group-item-warning{color:#857b26;background-color:#fffacc}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#857b26;background-color:#fff8b3}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#857b26;border-color:#857b26}.list-group-item-danger{color:#761b18;background-color:#f7c6c5}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#761b18;background-color:#f4b0af}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#761b18;border-color:#761b18}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1b1e21;background-color:#c6c8ca}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#1b1e21;background-color:#b9bbbe}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1b1e21;border-color:#1b1e21}.close{float:right;font-size:1.35rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:hover{color:#000;text-decoration:none}.close:not(:disabled):not(.disabled):focus,.close:not(:disabled):not(.disabled):hover{opacity:.75}button.close{padding:0;background-color:transparent;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}a.close.disabled{pointer-events:none}.toast{max-width:350px;overflow:hidden;font-size:.875rem;background-color:hsla(0,0%,100%,.85);background-clip:padding-box;border:1px solid rgba(0,0,0,.1);box-shadow:0 .25rem .75rem rgba(0,0,0,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;border-radius:.25rem}.toast:not(:last-child){margin-bottom:.75rem}.toast.showing{opacity:1}.toast.show{display:block;opacity:1}.toast.hide{display:none}.toast-header{display:flex;align-items:center;padding:.25rem .75rem;color:#6c757d;background-color:hsla(0,0%,100%,.85);background-clip:padding-box;border-bottom:1px solid rgba(0,0,0,.05)}.toast-body{padding:.75rem}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;height:100%;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:.5rem;pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{display:flex;max-height:calc(100% - 1rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}.modal-dialog-scrollable .modal-footer,.modal-dialog-scrollable .modal-header{flex-shrink:0}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - 1rem)}.modal-dialog-centered:before{display:block;height:calc(100vh - 1rem);content:""}.modal-dialog-centered.modal-dialog-scrollable{flex-direction:column;justify-content:center;height:100%}.modal-dialog-centered.modal-dialog-scrollable .modal-content{max-height:none}.modal-dialog-centered.modal-dialog-scrollable:before{content:none}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem;outline:0}.modal-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:.5}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;padding:1rem;border-bottom:1px solid #dee2e6;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.modal-header .close{padding:1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.6}.modal-body{position:relative;flex:1 1 auto;padding:1rem}.modal-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:.75rem;border-top:1px solid #dee2e6;border-bottom-right-radius:calc(.3rem - 1px);border-bottom-left-radius:calc(.3rem - 1px)}.modal-footer>*{margin:.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-scrollable{max-height:calc(100% - 3.5rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem)}.modal-dialog-centered{min-height:calc(100% - 3.5rem)}.modal-dialog-centered:before{height:calc(100vh - 3.5rem)}.modal-sm{max-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{max-width:800px}}@media (min-width:1200px){.modal-xl{max-width:1140px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:Avenir Next,sans-serif;font-style:normal;font-weight:400;line-height:1.6;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.7875rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:.9}.tooltip .arrow{position:absolute;display:block;width:.8rem;height:.4rem}.tooltip .arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[x-placement^=top],.bs-tooltip-top{padding:.4rem 0}.bs-tooltip-auto[x-placement^=top] .arrow,.bs-tooltip-top .arrow{bottom:0}.bs-tooltip-auto[x-placement^=top] .arrow:before,.bs-tooltip-top .arrow:before{top:0;border-width:.4rem .4rem 0;border-top-color:#000}.bs-tooltip-auto[x-placement^=right],.bs-tooltip-right{padding:0 .4rem}.bs-tooltip-auto[x-placement^=right] .arrow,.bs-tooltip-right .arrow{left:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=right] .arrow:before,.bs-tooltip-right .arrow:before{right:0;border-width:.4rem .4rem .4rem 0;border-right-color:#000}.bs-tooltip-auto[x-placement^=bottom],.bs-tooltip-bottom{padding:.4rem 0}.bs-tooltip-auto[x-placement^=bottom] .arrow,.bs-tooltip-bottom .arrow{top:0}.bs-tooltip-auto[x-placement^=bottom] .arrow:before,.bs-tooltip-bottom .arrow:before{bottom:0;border-width:0 .4rem .4rem;border-bottom-color:#000}.bs-tooltip-auto[x-placement^=left],.bs-tooltip-left{padding:0 .4rem}.bs-tooltip-auto[x-placement^=left] .arrow,.bs-tooltip-left .arrow{right:0;width:.4rem;height:.8rem}.bs-tooltip-auto[x-placement^=left] .arrow:before,.bs-tooltip-left .arrow:before{left:0;border-width:.4rem 0 .4rem .4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:.25rem .5rem;color:#fff;text-align:center;background-color:#000;border-radius:.25rem}.popover{top:0;left:0;z-index:1060;max-width:276px;font-family:Avenir Next,sans-serif;font-style:normal;font-weight:400;line-height:1.6;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:.7875rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,.2);border-radius:.3rem}.popover,.popover .arrow{position:absolute;display:block}.popover .arrow{width:1rem;height:.5rem;margin:0 .3rem}.popover .arrow:after,.popover .arrow:before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-auto[x-placement^=top],.bs-popover-top{margin-bottom:.5rem}.bs-popover-auto[x-placement^=top]>.arrow,.bs-popover-top>.arrow{bottom:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=top]>.arrow:before,.bs-popover-top>.arrow:before{bottom:0;border-width:.5rem .5rem 0;border-top-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=top]>.arrow:after,.bs-popover-top>.arrow:after{bottom:1px;border-width:.5rem .5rem 0;border-top-color:#fff}.bs-popover-auto[x-placement^=right],.bs-popover-right{margin-left:.5rem}.bs-popover-auto[x-placement^=right]>.arrow,.bs-popover-right>.arrow{left:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=right]>.arrow:before,.bs-popover-right>.arrow:before{left:0;border-width:.5rem .5rem .5rem 0;border-right-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=right]>.arrow:after,.bs-popover-right>.arrow:after{left:1px;border-width:.5rem .5rem .5rem 0;border-right-color:#fff}.bs-popover-auto[x-placement^=bottom],.bs-popover-bottom{margin-top:.5rem}.bs-popover-auto[x-placement^=bottom]>.arrow,.bs-popover-bottom>.arrow{top:calc(-.5rem - 1px)}.bs-popover-auto[x-placement^=bottom]>.arrow:before,.bs-popover-bottom>.arrow:before{top:0;border-width:0 .5rem .5rem;border-bottom-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=bottom]>.arrow:after,.bs-popover-bottom>.arrow:after{top:1px;border-width:0 .5rem .5rem;border-bottom-color:#fff}.bs-popover-auto[x-placement^=bottom] .popover-header:before,.bs-popover-bottom .popover-header:before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-auto[x-placement^=left],.bs-popover-left{margin-right:.5rem}.bs-popover-auto[x-placement^=left]>.arrow,.bs-popover-left>.arrow{right:calc(-.5rem - 1px);width:.5rem;height:1rem;margin:.3rem 0}.bs-popover-auto[x-placement^=left]>.arrow:before,.bs-popover-left>.arrow:before{right:0;border-width:.5rem 0 .5rem .5rem;border-left-color:rgba(0,0,0,.25)}.bs-popover-auto[x-placement^=left]>.arrow:after,.bs-popover-left>.arrow:after{right:1px;border-width:.5rem 0 .5rem .5rem;border-left-color:#fff}.popover-header{padding:.5rem .75rem;margin-bottom:0;font-size:.9rem;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(.3rem - 1px);border-top-right-radius:calc(.3rem - 1px)}.popover-header:empty{display:none}.popover-body{padding:.5rem .75rem;color:#212529}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-right,.carousel-item-next:not(.carousel-item-left){transform:translateX(100%)}.active.carousel-item-left,.carousel-item-prev:not(.carousel-item-right){transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:20px;height:20px;background:no-repeat 50%/100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3E%3C/svg%3E")}.carousel-control-next-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8'%3E%3Cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3E%3C/svg%3E")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:15;display:flex;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators li{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}@-webkit-keyframes spinner-border{to{transform:rotate(1turn)}}@keyframes spinner-border{to{transform:rotate(1turn)}}.spinner-border{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border:.25em solid;border-right:.25em solid transparent;border-radius:50%;-webkit-animation:spinner-border .75s linear infinite;animation:spinner-border .75s linear infinite}.spinner-border-sm{width:1rem;height:1rem;border-width:.2em}@-webkit-keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1}}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1}}.spinner-grow{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;background-color:currentColor;border-radius:50%;opacity:0;-webkit-animation:spinner-grow .75s linear infinite;animation:spinner-grow .75s linear infinite}.spinner-grow-sm{width:1rem;height:1rem}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.bg-primary{background-color:#3490dc!important}a.bg-primary:focus,a.bg-primary:hover,button.bg-primary:focus,button.bg-primary:hover{background-color:#2176bd!important}.bg-secondary{background-color:#6c757d!important}a.bg-secondary:focus,a.bg-secondary:hover,button.bg-secondary:focus,button.bg-secondary:hover{background-color:#545b62!important}.bg-success{background-color:#38c172!important}a.bg-success:focus,a.bg-success:hover,button.bg-success:focus,button.bg-success:hover{background-color:#2d995b!important}.bg-info{background-color:#6cb2eb!important}a.bg-info:focus,a.bg-info:hover,button.bg-info:focus,button.bg-info:hover{background-color:#3f9ae5!important}.bg-warning{background-color:#ffed4a!important}a.bg-warning:focus,a.bg-warning:hover,button.bg-warning:focus,button.bg-warning:hover{background-color:#ffe817!important}.bg-danger{background-color:#e3342f!important}a.bg-danger:focus,a.bg-danger:hover,button.bg-danger:focus,button.bg-danger:hover{background-color:#c51f1a!important}.bg-light{background-color:#f8f9fa!important}a.bg-light:focus,a.bg-light:hover,button.bg-light:focus,button.bg-light:hover{background-color:#dae0e5!important}.bg-dark{background-color:#343a40!important}a.bg-dark:focus,a.bg-dark:hover,button.bg-dark:focus,button.bg-dark:hover{background-color:#1d2124!important}.bg-white{background-color:#fff!important}.bg-transparent{background-color:transparent!important}.border{border:1px solid #dee2e6!important}.border-top{border-top:1px solid #dee2e6!important}.border-right{border-right:1px solid #dee2e6!important}.border-bottom{border-bottom:1px solid #dee2e6!important}.border-left{border-left:1px solid #dee2e6!important}.border-0{border:0!important}.border-top-0{border-top:0!important}.border-right-0{border-right:0!important}.border-bottom-0{border-bottom:0!important}.border-left-0{border-left:0!important}.border-primary{border-color:#3490dc!important}.border-secondary{border-color:#6c757d!important}.border-success{border-color:#38c172!important}.border-info{border-color:#6cb2eb!important}.border-warning{border-color:#ffed4a!important}.border-danger{border-color:#e3342f!important}.border-light{border-color:#f8f9fa!important}.border-dark{border-color:#343a40!important}.border-white{border-color:#fff!important}.rounded-sm{border-radius:.2rem!important}.rounded{border-radius:.25rem!important}.rounded-top{border-top-left-radius:.25rem!important}.rounded-right,.rounded-top{border-top-right-radius:.25rem!important}.rounded-bottom,.rounded-right{border-bottom-right-radius:.25rem!important}.rounded-bottom,.rounded-left{border-bottom-left-radius:.25rem!important}.rounded-left{border-top-left-radius:.25rem!important}.rounded-lg{border-radius:.3rem!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:50rem!important}.rounded-0{border-radius:0!important}.clearfix:after{display:block;clear:both;content:""}.d-none{display:none!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}@media (min-width:576px){.d-sm-none{display:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}}@media (min-width:768px){.d-md-none{display:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}}@media (min-width:992px){.d-lg-none{display:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block,nav>ul p{display:block!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}}@media (min-width:1200px){.d-xl-none{display:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}}@media print{.d-print-none{display:none!important}.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive:before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9:before{padding-top:42.8571428571%}.embed-responsive-16by9:before{padding-top:56.25%}.embed-responsive-4by3:before{padding-top:75%}.embed-responsive-1by1:before{padding-top:100%}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-fill{flex:1 1 auto!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}@media (min-width:576px){.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}}@media (min-width:768px){.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}}@media (min-width:992px){.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}}@media (min-width:1200px){.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}}.float-left{float:left!important}.float-right{float:right!important}.float-none{float:none!important}@media (min-width:576px){.float-sm-left{float:left!important}.float-sm-right{float:right!important}.float-sm-none{float:none!important}}@media (min-width:768px){.float-md-left{float:left!important}.float-md-right{float:right!important}.float-md-none{float:none!important}}@media (min-width:992px){.float-lg-left{float:left!important}.float-lg-right{float:right!important}.float-lg-none{float:none!important}}@media (min-width:1200px){.float-xl-left{float:left!important}.float-xl-right{float:right!important}.float-xl-none{float:none!important}}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.fixed-top{top:0}.fixed-bottom,.fixed-top{position:fixed;right:0;left:0;z-index:1030}.fixed-bottom{bottom:0}@supports ((position:-webkit-sticky) or (position:sticky)){.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mw-100{max-width:100%!important}.mh-100{max-height:100%!important}.min-vw-100{min-width:100vw!important}.min-vh-100{min-height:100vh!important}.vw-100{width:100vw!important}.vh-100{height:100vh!important}.stretched-link:after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:auto;content:"";background-color:transparent}.m-0{margin:0!important}.mt-0,.my-0{margin-top:0!important}.mr-0,.mx-0{margin-right:0!important}.mb-0,.my-0{margin-bottom:0!important}.ml-0,.mx-0{margin-left:0!important}.m-1{margin:.25rem!important}.mt-1,.my-1{margin-top:.25rem!important}.mr-1,.mx-1{margin-right:.25rem!important}.mb-1,.my-1{margin-bottom:.25rem!important}.ml-1,.mx-1{margin-left:.25rem!important}.m-2{margin:.5rem!important}.mt-2,.my-2{margin-top:.5rem!important}.mr-2,.mx-2{margin-right:.5rem!important}.mb-2,.my-2{margin-bottom:.5rem!important}.ml-2,.mx-2{margin-left:.5rem!important}.m-3{margin:1rem!important}.mt-3,.my-3{margin-top:1rem!important}.mr-3,.mx-3{margin-right:1rem!important}.mb-3,.my-3{margin-bottom:1rem!important}.ml-3,.mx-3{margin-left:1rem!important}.m-4{margin:1.5rem!important}.mt-4,.my-4{margin-top:1.5rem!important}.mr-4,.mx-4{margin-right:1.5rem!important}.mb-4,.my-4{margin-bottom:1.5rem!important}.ml-4,.mx-4{margin-left:1.5rem!important}.m-5{margin:3rem!important}.mt-5,.my-5{margin-top:3rem!important}.mr-5,.mx-5{margin-right:3rem!important}.mb-5,.my-5{margin-bottom:3rem!important}.ml-5,.mx-5{margin-left:3rem!important}.p-0{padding:0!important}.pt-0,.py-0{padding-top:0!important}.pr-0,.px-0{padding-right:0!important}.pb-0,.py-0{padding-bottom:0!important}.pl-0,.px-0{padding-left:0!important}.p-1{padding:.25rem!important}.pt-1,.py-1{padding-top:.25rem!important}.pr-1,.px-1{padding-right:.25rem!important}.pb-1,.py-1{padding-bottom:.25rem!important}.pl-1,.px-1{padding-left:.25rem!important}.p-2{padding:.5rem!important}.pt-2,.py-2{padding-top:.5rem!important}.pr-2,.px-2{padding-right:.5rem!important}.pb-2,.py-2{padding-bottom:.5rem!important}.pl-2,.px-2{padding-left:.5rem!important}.p-3{padding:1rem!important}.pt-3,.py-3{padding-top:1rem!important}.pr-3,.px-3{padding-right:1rem!important}.pb-3,.py-3{padding-bottom:1rem!important}.pl-3,.px-3{padding-left:1rem!important}.p-4{padding:1.5rem!important}.pt-4,.py-4{padding-top:1.5rem!important}.pr-4,.px-4{padding-right:1.5rem!important}.pb-4,.py-4{padding-bottom:1.5rem!important}.pl-4,.px-4{padding-left:1.5rem!important}.p-5{padding:3rem!important}.pt-5,.py-5{padding-top:3rem!important}.pr-5,.px-5{padding-right:3rem!important}.pb-5,.py-5{padding-bottom:3rem!important}.pl-5,.px-5{padding-left:3rem!important}.m-n1{margin:-.25rem!important}.mt-n1,.my-n1{margin-top:-.25rem!important}.mr-n1,.mx-n1{margin-right:-.25rem!important}.mb-n1,.my-n1{margin-bottom:-.25rem!important}.ml-n1,.mx-n1{margin-left:-.25rem!important}.m-n2{margin:-.5rem!important}.mt-n2,.my-n2{margin-top:-.5rem!important}.mr-n2,.mx-n2{margin-right:-.5rem!important}.mb-n2,.my-n2{margin-bottom:-.5rem!important}.ml-n2,.mx-n2{margin-left:-.5rem!important}.m-n3{margin:-1rem!important}.mt-n3,.my-n3{margin-top:-1rem!important}.mr-n3,.mx-n3{margin-right:-1rem!important}.mb-n3,.my-n3{margin-bottom:-1rem!important}.ml-n3,.mx-n3{margin-left:-1rem!important}.m-n4{margin:-1.5rem!important}.mt-n4,.my-n4{margin-top:-1.5rem!important}.mr-n4,.mx-n4{margin-right:-1.5rem!important}.mb-n4,.my-n4{margin-bottom:-1.5rem!important}.ml-n4,.mx-n4{margin-left:-1.5rem!important}.m-n5{margin:-3rem!important}.mt-n5,.my-n5{margin-top:-3rem!important}.mr-n5,.mx-n5{margin-right:-3rem!important}.mb-n5,.my-n5{margin-bottom:-3rem!important}.ml-n5,.mx-n5{margin-left:-3rem!important}.m-auto{margin:auto!important}.mt-auto,.my-auto{margin-top:auto!important}.mr-auto,.mx-auto{margin-right:auto!important}.mb-auto,.my-auto{margin-bottom:auto!important}.ml-auto,.mx-auto{margin-left:auto!important}@media (min-width:576px){.m-sm-0{margin:0!important}.mt-sm-0,.my-sm-0{margin-top:0!important}.mr-sm-0,.mx-sm-0{margin-right:0!important}.mb-sm-0,.my-sm-0{margin-bottom:0!important}.ml-sm-0,.mx-sm-0{margin-left:0!important}.m-sm-1{margin:.25rem!important}.mt-sm-1,.my-sm-1{margin-top:.25rem!important}.mr-sm-1,.mx-sm-1{margin-right:.25rem!important}.mb-sm-1,.my-sm-1{margin-bottom:.25rem!important}.ml-sm-1,.mx-sm-1{margin-left:.25rem!important}.m-sm-2{margin:.5rem!important}.mt-sm-2,.my-sm-2{margin-top:.5rem!important}.mr-sm-2,.mx-sm-2{margin-right:.5rem!important}.mb-sm-2,.my-sm-2{margin-bottom:.5rem!important}.ml-sm-2,.mx-sm-2{margin-left:.5rem!important}.m-sm-3{margin:1rem!important}.mt-sm-3,.my-sm-3{margin-top:1rem!important}.mr-sm-3,.mx-sm-3{margin-right:1rem!important}.mb-sm-3,.my-sm-3{margin-bottom:1rem!important}.ml-sm-3,.mx-sm-3{margin-left:1rem!important}.m-sm-4{margin:1.5rem!important}.mt-sm-4,.my-sm-4{margin-top:1.5rem!important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem!important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem!important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem!important}.m-sm-5{margin:3rem!important}.mt-sm-5,.my-sm-5{margin-top:3rem!important}.mr-sm-5,.mx-sm-5{margin-right:3rem!important}.mb-sm-5,.my-sm-5{margin-bottom:3rem!important}.ml-sm-5,.mx-sm-5{margin-left:3rem!important}.p-sm-0{padding:0!important}.pt-sm-0,.py-sm-0{padding-top:0!important}.pr-sm-0,.px-sm-0{padding-right:0!important}.pb-sm-0,.py-sm-0{padding-bottom:0!important}.pl-sm-0,.px-sm-0{padding-left:0!important}.p-sm-1{padding:.25rem!important}.pt-sm-1,.py-sm-1{padding-top:.25rem!important}.pr-sm-1,.px-sm-1{padding-right:.25rem!important}.pb-sm-1,.py-sm-1{padding-bottom:.25rem!important}.pl-sm-1,.px-sm-1{padding-left:.25rem!important}.p-sm-2{padding:.5rem!important}.pt-sm-2,.py-sm-2{padding-top:.5rem!important}.pr-sm-2,.px-sm-2{padding-right:.5rem!important}.pb-sm-2,.py-sm-2{padding-bottom:.5rem!important}.pl-sm-2,.px-sm-2{padding-left:.5rem!important}.p-sm-3{padding:1rem!important}.pt-sm-3,.py-sm-3{padding-top:1rem!important}.pr-sm-3,.px-sm-3{padding-right:1rem!important}.pb-sm-3,.py-sm-3{padding-bottom:1rem!important}.pl-sm-3,.px-sm-3{padding-left:1rem!important}.p-sm-4{padding:1.5rem!important}.pt-sm-4,.py-sm-4{padding-top:1.5rem!important}.pr-sm-4,.px-sm-4{padding-right:1.5rem!important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem!important}.pl-sm-4,.px-sm-4{padding-left:1.5rem!important}.p-sm-5{padding:3rem!important}.pt-sm-5,.py-sm-5{padding-top:3rem!important}.pr-sm-5,.px-sm-5{padding-right:3rem!important}.pb-sm-5,.py-sm-5{padding-bottom:3rem!important}.pl-sm-5,.px-sm-5{padding-left:3rem!important}.m-sm-n1{margin:-.25rem!important}.mt-sm-n1,.my-sm-n1{margin-top:-.25rem!important}.mr-sm-n1,.mx-sm-n1{margin-right:-.25rem!important}.mb-sm-n1,.my-sm-n1{margin-bottom:-.25rem!important}.ml-sm-n1,.mx-sm-n1{margin-left:-.25rem!important}.m-sm-n2{margin:-.5rem!important}.mt-sm-n2,.my-sm-n2{margin-top:-.5rem!important}.mr-sm-n2,.mx-sm-n2{margin-right:-.5rem!important}.mb-sm-n2,.my-sm-n2{margin-bottom:-.5rem!important}.ml-sm-n2,.mx-sm-n2{margin-left:-.5rem!important}.m-sm-n3{margin:-1rem!important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem!important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem!important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem!important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem!important}.m-sm-n4{margin:-1.5rem!important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem!important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem!important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem!important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem!important}.m-sm-n5{margin:-3rem!important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem!important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem!important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem!important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem!important}.m-sm-auto{margin:auto!important}.mt-sm-auto,.my-sm-auto{margin-top:auto!important}.mr-sm-auto,.mx-sm-auto{margin-right:auto!important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto!important}.ml-sm-auto,.mx-sm-auto{margin-left:auto!important}}@media (min-width:768px){.m-md-0{margin:0!important}.mt-md-0,.my-md-0{margin-top:0!important}.mr-md-0,.mx-md-0{margin-right:0!important}.mb-md-0,.my-md-0{margin-bottom:0!important}.ml-md-0,.mx-md-0{margin-left:0!important}.m-md-1{margin:.25rem!important}.mt-md-1,.my-md-1{margin-top:.25rem!important}.mr-md-1,.mx-md-1{margin-right:.25rem!important}.mb-md-1,.my-md-1{margin-bottom:.25rem!important}.ml-md-1,.mx-md-1{margin-left:.25rem!important}.m-md-2{margin:.5rem!important}.mt-md-2,.my-md-2{margin-top:.5rem!important}.mr-md-2,.mx-md-2{margin-right:.5rem!important}.mb-md-2,.my-md-2{margin-bottom:.5rem!important}.ml-md-2,.mx-md-2{margin-left:.5rem!important}.m-md-3{margin:1rem!important}.mt-md-3,.my-md-3{margin-top:1rem!important}.mr-md-3,.mx-md-3{margin-right:1rem!important}.mb-md-3,.my-md-3{margin-bottom:1rem!important}.ml-md-3,.mx-md-3{margin-left:1rem!important}.m-md-4{margin:1.5rem!important}.mt-md-4,.my-md-4{margin-top:1.5rem!important}.mr-md-4,.mx-md-4{margin-right:1.5rem!important}.mb-md-4,.my-md-4{margin-bottom:1.5rem!important}.ml-md-4,.mx-md-4{margin-left:1.5rem!important}.m-md-5{margin:3rem!important}.mt-md-5,.my-md-5{margin-top:3rem!important}.mr-md-5,.mx-md-5{margin-right:3rem!important}.mb-md-5,.my-md-5{margin-bottom:3rem!important}.ml-md-5,.mx-md-5{margin-left:3rem!important}.p-md-0{padding:0!important}.pt-md-0,.py-md-0{padding-top:0!important}.pr-md-0,.px-md-0{padding-right:0!important}.pb-md-0,.py-md-0{padding-bottom:0!important}.pl-md-0,.px-md-0{padding-left:0!important}.p-md-1{padding:.25rem!important}.pt-md-1,.py-md-1{padding-top:.25rem!important}.pr-md-1,.px-md-1{padding-right:.25rem!important}.pb-md-1,.py-md-1{padding-bottom:.25rem!important}.pl-md-1,.px-md-1{padding-left:.25rem!important}.p-md-2{padding:.5rem!important}.pt-md-2,.py-md-2{padding-top:.5rem!important}.pr-md-2,.px-md-2{padding-right:.5rem!important}.pb-md-2,.py-md-2{padding-bottom:.5rem!important}.pl-md-2,.px-md-2{padding-left:.5rem!important}.p-md-3{padding:1rem!important}.pt-md-3,.py-md-3{padding-top:1rem!important}.pr-md-3,.px-md-3{padding-right:1rem!important}.pb-md-3,.py-md-3{padding-bottom:1rem!important}.pl-md-3,.px-md-3{padding-left:1rem!important}.p-md-4{padding:1.5rem!important}.pt-md-4,.py-md-4{padding-top:1.5rem!important}.pr-md-4,.px-md-4{padding-right:1.5rem!important}.pb-md-4,.py-md-4{padding-bottom:1.5rem!important}.pl-md-4,.px-md-4{padding-left:1.5rem!important}.p-md-5{padding:3rem!important}.pt-md-5,.py-md-5{padding-top:3rem!important}.pr-md-5,.px-md-5{padding-right:3rem!important}.pb-md-5,.py-md-5{padding-bottom:3rem!important}.pl-md-5,.px-md-5{padding-left:3rem!important}.m-md-n1{margin:-.25rem!important}.mt-md-n1,.my-md-n1{margin-top:-.25rem!important}.mr-md-n1,.mx-md-n1{margin-right:-.25rem!important}.mb-md-n1,.my-md-n1{margin-bottom:-.25rem!important}.ml-md-n1,.mx-md-n1{margin-left:-.25rem!important}.m-md-n2{margin:-.5rem!important}.mt-md-n2,.my-md-n2{margin-top:-.5rem!important}.mr-md-n2,.mx-md-n2{margin-right:-.5rem!important}.mb-md-n2,.my-md-n2{margin-bottom:-.5rem!important}.ml-md-n2,.mx-md-n2{margin-left:-.5rem!important}.m-md-n3{margin:-1rem!important}.mt-md-n3,.my-md-n3{margin-top:-1rem!important}.mr-md-n3,.mx-md-n3{margin-right:-1rem!important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem!important}.ml-md-n3,.mx-md-n3{margin-left:-1rem!important}.m-md-n4{margin:-1.5rem!important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem!important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem!important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem!important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem!important}.m-md-n5{margin:-3rem!important}.mt-md-n5,.my-md-n5{margin-top:-3rem!important}.mr-md-n5,.mx-md-n5{margin-right:-3rem!important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem!important}.ml-md-n5,.mx-md-n5{margin-left:-3rem!important}.m-md-auto{margin:auto!important}.mt-md-auto,.my-md-auto{margin-top:auto!important}.mr-md-auto,.mx-md-auto{margin-right:auto!important}.mb-md-auto,.my-md-auto{margin-bottom:auto!important}.ml-md-auto,.mx-md-auto{margin-left:auto!important}}@media (min-width:992px){.m-lg-0{margin:0!important}.mt-lg-0,.my-lg-0{margin-top:0!important}.mr-lg-0,.mx-lg-0{margin-right:0!important}.mb-lg-0,.my-lg-0{margin-bottom:0!important}.ml-lg-0,.mx-lg-0{margin-left:0!important}.m-lg-1{margin:.25rem!important}.mt-lg-1,.my-lg-1{margin-top:.25rem!important}.mr-lg-1,.mx-lg-1{margin-right:.25rem!important}.mb-lg-1,.my-lg-1{margin-bottom:.25rem!important}.ml-lg-1,.mx-lg-1{margin-left:.25rem!important}.m-lg-2{margin:.5rem!important}.mt-lg-2,.my-lg-2{margin-top:.5rem!important}.mr-lg-2,.mx-lg-2{margin-right:.5rem!important}.mb-lg-2,.my-lg-2{margin-bottom:.5rem!important}.ml-lg-2,.mx-lg-2{margin-left:.5rem!important}.m-lg-3{margin:1rem!important}.mt-lg-3,.my-lg-3{margin-top:1rem!important}.mr-lg-3,.mx-lg-3{margin-right:1rem!important}.mb-lg-3,.my-lg-3{margin-bottom:1rem!important}.ml-lg-3,.mx-lg-3{margin-left:1rem!important}.m-lg-4{margin:1.5rem!important}.mt-lg-4,.my-lg-4{margin-top:1.5rem!important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem!important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem!important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem!important}.m-lg-5{margin:3rem!important}.mt-lg-5,.my-lg-5{margin-top:3rem!important}.mr-lg-5,.mx-lg-5{margin-right:3rem!important}.mb-lg-5,.my-lg-5{margin-bottom:3rem!important}.ml-lg-5,.mx-lg-5{margin-left:3rem!important}.p-lg-0{padding:0!important}.pt-lg-0,.py-lg-0{padding-top:0!important}.pr-lg-0,.px-lg-0{padding-right:0!important}.pb-lg-0,.py-lg-0{padding-bottom:0!important}.pl-lg-0,.px-lg-0{padding-left:0!important}.p-lg-1{padding:.25rem!important}.pt-lg-1,.py-lg-1{padding-top:.25rem!important}.pr-lg-1,.px-lg-1{padding-right:.25rem!important}.pb-lg-1,.py-lg-1{padding-bottom:.25rem!important}.pl-lg-1,.px-lg-1{padding-left:.25rem!important}.p-lg-2{padding:.5rem!important}.pt-lg-2,.py-lg-2{padding-top:.5rem!important}.pr-lg-2,.px-lg-2{padding-right:.5rem!important}.pb-lg-2,.py-lg-2{padding-bottom:.5rem!important}.pl-lg-2,.px-lg-2{padding-left:.5rem!important}.p-lg-3{padding:1rem!important}.pt-lg-3,.py-lg-3{padding-top:1rem!important}.pr-lg-3,.px-lg-3{padding-right:1rem!important}.pb-lg-3,.py-lg-3{padding-bottom:1rem!important}.pl-lg-3,.px-lg-3{padding-left:1rem!important}.p-lg-4{padding:1.5rem!important}.pt-lg-4,.py-lg-4{padding-top:1.5rem!important}.pr-lg-4,.px-lg-4{padding-right:1.5rem!important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem!important}.pl-lg-4,.px-lg-4{padding-left:1.5rem!important}.p-lg-5{padding:3rem!important}.pt-lg-5,.py-lg-5{padding-top:3rem!important}.pr-lg-5,.px-lg-5{padding-right:3rem!important}.pb-lg-5,.py-lg-5{padding-bottom:3rem!important}.pl-lg-5,.px-lg-5{padding-left:3rem!important}.m-lg-n1{margin:-.25rem!important}.mt-lg-n1,.my-lg-n1{margin-top:-.25rem!important}.mr-lg-n1,.mx-lg-n1{margin-right:-.25rem!important}.mb-lg-n1,.my-lg-n1{margin-bottom:-.25rem!important}.ml-lg-n1,.mx-lg-n1{margin-left:-.25rem!important}.m-lg-n2{margin:-.5rem!important}.mt-lg-n2,.my-lg-n2{margin-top:-.5rem!important}.mr-lg-n2,.mx-lg-n2{margin-right:-.5rem!important}.mb-lg-n2,.my-lg-n2{margin-bottom:-.5rem!important}.ml-lg-n2,.mx-lg-n2{margin-left:-.5rem!important}.m-lg-n3{margin:-1rem!important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem!important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem!important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem!important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem!important}.m-lg-n4{margin:-1.5rem!important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem!important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem!important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem!important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem!important}.m-lg-n5{margin:-3rem!important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem!important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem!important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem!important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem!important}.m-lg-auto{margin:auto!important}.mt-lg-auto,.my-lg-auto{margin-top:auto!important}.mr-lg-auto,.mx-lg-auto{margin-right:auto!important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto!important}.ml-lg-auto,.mx-lg-auto{margin-left:auto!important}}@media (min-width:1200px){.m-xl-0{margin:0!important}.mt-xl-0,.my-xl-0{margin-top:0!important}.mr-xl-0,.mx-xl-0{margin-right:0!important}.mb-xl-0,.my-xl-0{margin-bottom:0!important}.ml-xl-0,.mx-xl-0{margin-left:0!important}.m-xl-1{margin:.25rem!important}.mt-xl-1,.my-xl-1{margin-top:.25rem!important}.mr-xl-1,.mx-xl-1{margin-right:.25rem!important}.mb-xl-1,.my-xl-1{margin-bottom:.25rem!important}.ml-xl-1,.mx-xl-1{margin-left:.25rem!important}.m-xl-2{margin:.5rem!important}.mt-xl-2,.my-xl-2{margin-top:.5rem!important}.mr-xl-2,.mx-xl-2{margin-right:.5rem!important}.mb-xl-2,.my-xl-2{margin-bottom:.5rem!important}.ml-xl-2,.mx-xl-2{margin-left:.5rem!important}.m-xl-3{margin:1rem!important}.mt-xl-3,.my-xl-3{margin-top:1rem!important}.mr-xl-3,.mx-xl-3{margin-right:1rem!important}.mb-xl-3,.my-xl-3{margin-bottom:1rem!important}.ml-xl-3,.mx-xl-3{margin-left:1rem!important}.m-xl-4{margin:1.5rem!important}.mt-xl-4,.my-xl-4{margin-top:1.5rem!important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem!important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem!important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem!important}.m-xl-5{margin:3rem!important}.mt-xl-5,.my-xl-5{margin-top:3rem!important}.mr-xl-5,.mx-xl-5{margin-right:3rem!important}.mb-xl-5,.my-xl-5{margin-bottom:3rem!important}.ml-xl-5,.mx-xl-5{margin-left:3rem!important}.p-xl-0{padding:0!important}.pt-xl-0,.py-xl-0{padding-top:0!important}.pr-xl-0,.px-xl-0{padding-right:0!important}.pb-xl-0,.py-xl-0{padding-bottom:0!important}.pl-xl-0,.px-xl-0{padding-left:0!important}.p-xl-1{padding:.25rem!important}.pt-xl-1,.py-xl-1{padding-top:.25rem!important}.pr-xl-1,.px-xl-1{padding-right:.25rem!important}.pb-xl-1,.py-xl-1{padding-bottom:.25rem!important}.pl-xl-1,.px-xl-1{padding-left:.25rem!important}.p-xl-2{padding:.5rem!important}.pt-xl-2,.py-xl-2{padding-top:.5rem!important}.pr-xl-2,.px-xl-2{padding-right:.5rem!important}.pb-xl-2,.py-xl-2{padding-bottom:.5rem!important}.pl-xl-2,.px-xl-2{padding-left:.5rem!important}.p-xl-3{padding:1rem!important}.pt-xl-3,.py-xl-3{padding-top:1rem!important}.pr-xl-3,.px-xl-3{padding-right:1rem!important}.pb-xl-3,.py-xl-3{padding-bottom:1rem!important}.pl-xl-3,.px-xl-3{padding-left:1rem!important}.p-xl-4{padding:1.5rem!important}.pt-xl-4,.py-xl-4{padding-top:1.5rem!important}.pr-xl-4,.px-xl-4{padding-right:1.5rem!important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem!important}.pl-xl-4,.px-xl-4{padding-left:1.5rem!important}.p-xl-5{padding:3rem!important}.pt-xl-5,.py-xl-5{padding-top:3rem!important}.pr-xl-5,.px-xl-5{padding-right:3rem!important}.pb-xl-5,.py-xl-5{padding-bottom:3rem!important}.pl-xl-5,.px-xl-5{padding-left:3rem!important}.m-xl-n1{margin:-.25rem!important}.mt-xl-n1,.my-xl-n1{margin-top:-.25rem!important}.mr-xl-n1,.mx-xl-n1{margin-right:-.25rem!important}.mb-xl-n1,.my-xl-n1{margin-bottom:-.25rem!important}.ml-xl-n1,.mx-xl-n1{margin-left:-.25rem!important}.m-xl-n2{margin:-.5rem!important}.mt-xl-n2,.my-xl-n2{margin-top:-.5rem!important}.mr-xl-n2,.mx-xl-n2{margin-right:-.5rem!important}.mb-xl-n2,.my-xl-n2{margin-bottom:-.5rem!important}.ml-xl-n2,.mx-xl-n2{margin-left:-.5rem!important}.m-xl-n3{margin:-1rem!important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem!important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem!important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem!important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem!important}.m-xl-n4{margin:-1.5rem!important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem!important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem!important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem!important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem!important}.m-xl-n5{margin:-3rem!important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem!important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem!important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem!important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem!important}.m-xl-auto{margin:auto!important}.mt-xl-auto,.my-xl-auto{margin-top:auto!important}.mr-xl-auto,.mx-xl-auto{margin-right:auto!important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto!important}.ml-xl-auto,.mx-xl-auto{margin-left:auto!important}}.text-monospace{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace!important}.text-justify{text-align:justify!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left!important}.text-right{text-align:right!important}.text-center{text-align:center!important}@media (min-width:576px){.text-sm-left{text-align:left!important}.text-sm-right{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.text-md-left{text-align:left!important}.text-md-right{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.text-lg-left{text-align:left!important}.text-lg-right{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.text-xl-left{text-align:left!important}.text-xl-right{text-align:right!important}.text-xl-center{text-align:center!important}}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.font-weight-light{font-weight:300!important}.font-weight-lighter{font-weight:lighter!important}.font-weight-normal{font-weight:400!important}.font-weight-bold{font-weight:700!important}.font-weight-bolder{font-weight:bolder!important}.font-italic{font-style:italic!important}.text-white{color:#fff!important}.text-primary{color:#3490dc!important}a.text-primary:focus,a.text-primary:hover{color:#1d68a7!important}.text-secondary{color:#6c757d!important}a.text-secondary:focus,a.text-secondary:hover{color:#494f54!important}.text-success{color:#38c172!important}a.text-success:focus,a.text-success:hover{color:#27864f!important}.text-info{color:#6cb2eb!important}a.text-info:focus,a.text-info:hover{color:#298fe2!important}.text-warning{color:#ffed4a!important}a.text-warning:focus,a.text-warning:hover{color:#fde300!important}.text-danger{color:#e3342f!important}a.text-danger:focus,a.text-danger:hover{color:#ae1c17!important}.text-light{color:#f8f9fa!important}a.text-light:focus,a.text-light:hover{color:#cbd3da!important}.text-dark{color:#343a40!important}a.text-dark:focus,a.text-dark:hover{color:#121416!important}.text-body{color:#212529!important}.text-muted{color:#6c757d!important}.text-black-50{color:rgba(0,0,0,.5)!important}.text-white-50{color:hsla(0,0%,100%,.5)!important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.text-decoration-none{text-decoration:none!important}.text-break{word-break:break-word!important;overflow-wrap:break-word!important}.text-reset{color:inherit!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media print{*,:after,:before{text-shadow:none!important;box-shadow:none!important}a:not(.btn){text-decoration:underline}abbr[title]:after{content:" (" attr(title) ")"}pre{white-space:pre-wrap!important}blockquote,pre{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}.container,body{min-width:992px!important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #dee2e6!important}.table-dark{color:inherit}.table-dark tbody+tbody,.table-dark td,.table-dark th,.table-dark thead th{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}}.ais-SearchBox-input{width:calc(100% - 80px);display:inline-block}.ais-SearchBox-reset{display:none}mark.ais-Highlight-highlighted,mark.ais-Snippet-highlighted,mark.mark{padding:0;background-color:#fff252}@font-face{font-family:Avenir Next Demi;src:url(/fonts/AvenirNext-DemiBoldItalic.eot?86d986a0663254f5eeb80b28384f0bab);src:url(/fonts/AvenirNext-DemiBoldItalic.eot?86d986a0663254f5eeb80b28384f0bab) format("embedded-opentype"),url(/fonts/AvenirNext-DemiBoldItalic.woff2?26aed36d3e059023251feabfbf902dbb) format("woff2"),url(/fonts/AvenirNext-DemiBoldItalic.woff?d9fca697a521d4a5a02f15311c365702) format("woff"),url(/fonts/AvenirNext-DemiBoldItalic.ttf?7a4a4ffb387b02062785a12d824223d6) format("truetype");font-weight:600;font-style:italic;font-display:swap}@font-face{font-family:Avenir Next Ultra;src:url(/fonts/AvenirNext-UltraLightItalic.eot?44297f7f59381c49846ed3a3b4a84a59);src:url(/fonts/AvenirNext-UltraLightItalic.eot?44297f7f59381c49846ed3a3b4a84a59) format("embedded-opentype"),url(/fonts/AvenirNext-UltraLightItalic.woff2?4943334d379bdf55e7b75af66551aa85) format("woff2"),url(/fonts/AvenirNext-UltraLightItalic.woff?6bf4847bcc8712b5584354da7a1bba07) format("woff"),url(/fonts/AvenirNext-UltraLightItalic.ttf?444f46cb5bb8044bbe602460e8e5ec9e) format("truetype");font-weight:200;font-style:italic;font-display:swap}@font-face{font-family:Avenir Next Demi;src:url(/fonts/AvenirNext-DemiBold.eot?6f5a3c2bea495ff6aa013c0ecb6ee892);src:url(/fonts/AvenirNext-DemiBold.eot?6f5a3c2bea495ff6aa013c0ecb6ee892) format("embedded-opentype"),url(/fonts/AvenirNext-DemiBold.woff2?878a0123606792dea2c627d22b94725b) format("woff2"),url(/fonts/AvenirNext-DemiBold.woff?dd36a7ec06a6315b0fe31624e6bde00b) format("woff"),url(/fonts/AvenirNext-DemiBold.ttf?e5452ab730d535ca5026fd37ad5c33d8) format("truetype");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-Medium.eot?344e9a7e6b1add05e773628a01cdee77);src:url(/fonts/AvenirNext-Medium.eot?344e9a7e6b1add05e773628a01cdee77) format("embedded-opentype"),url(/fonts/AvenirNext-Medium.woff2?983b256b4198de8d34126fe38cbfb96e) format("woff2"),url(/fonts/AvenirNext-Medium.woff?6ce49706ecc41daa64b518d976d5d56c) format("woff"),url(/fonts/AvenirNext-Medium.ttf?827c94e0bd7677a5e385b5bcd0b67e53) format("truetype");font-weight:500;font-style:normal;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-Regular.eot?42633ce69b6368b09d93a53a90dcf9c7);src:url(/fonts/AvenirNext-Regular.eot?42633ce69b6368b09d93a53a90dcf9c7) format("embedded-opentype"),url(/fonts/AvenirNext-Regular.woff2?e90c898618371e86b00d056fa334cc44) format("woff2"),url(/fonts/AvenirNext-Regular.woff?800e759fc4d5d1086e379a04b14f5194) format("woff"),url(/fonts/AvenirNext-Regular.ttf?3796491f74e8e126f119b6afbcce86cb) format("truetype");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-Heavy.eot?4a3eee8df111333592e8679f413b25cb);src:url(/fonts/AvenirNext-Heavy.eot?4a3eee8df111333592e8679f413b25cb) format("embedded-opentype"),url(/fonts/AvenirNext-Heavy.woff2?5b403aba9715caa013a2b40cd48928ad) format("woff2"),url(/fonts/AvenirNext-Heavy.woff?9da2a75c0e6c4f2f02cf7d232e8f1a82) format("woff"),url(/fonts/AvenirNext-Heavy.ttf?e66e94b4c16f9109f1cc853f9af9eef9) format("truetype");font-weight:900;font-style:normal;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-Italic.eot?122db04957f47d49ff4482598fc61f62);src:url(/fonts/AvenirNext-Italic.eot?122db04957f47d49ff4482598fc61f62) format("embedded-opentype"),url(/fonts/AvenirNext-Italic.woff2?17fd0278adf7d5bf8a0f4b3efced6224) format("woff2"),url(/fonts/AvenirNext-Italic.woff?8804f06ef434bc0e56d0f0c233dc6328) format("woff"),url(/fonts/AvenirNext-Italic.ttf?512698539510db2326ce380cf8ceb1f9) format("truetype");font-weight:400;font-style:italic;font-display:swap}@font-face{font-family:Avenir Next Ultra;src:url(/fonts/AvenirNext-UltraLight.eot?2ea983ea3cac3ebe2b4b8e2905156d32);src:url(/fonts/AvenirNext-UltraLight.eot?2ea983ea3cac3ebe2b4b8e2905156d32) format("embedded-opentype"),url(/fonts/AvenirNext-UltraLight.woff2?10e08cb22d95a14b788f380ae8002e84) format("woff2"),url(/fonts/AvenirNext-UltraLight.woff?44e5cd76c4c163607733d9565f5c7bcb) format("woff"),url(/fonts/AvenirNext-UltraLight.ttf?e6e6aafb1df01b535ba5ac6cff61be54) format("truetype");font-weight:200;font-style:normal;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-HeavyItalic.eot?862ad2686dd785cd889771273d35fad7);src:url(/fonts/AvenirNext-HeavyItalic.eot?862ad2686dd785cd889771273d35fad7) format("embedded-opentype"),url(/fonts/AvenirNext-HeavyItalic.woff2?f12a99f1b554bfe7cbc046156f40863d) format("woff2"),url(/fonts/AvenirNext-HeavyItalic.woff?ac48a1c60a62105ece547124755ceaf4) format("woff"),url(/fonts/AvenirNext-HeavyItalic.ttf?8b8e3579fd4e8b3ed241b9eeab63992d) format("truetype");font-weight:900;font-style:italic;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-BoldItalic.eot?d540c1a816b7d6e8e5b4a9baba2c10ba);src:url(/fonts/AvenirNext-BoldItalic.eot?d540c1a816b7d6e8e5b4a9baba2c10ba) format("embedded-opentype"),url(/fonts/AvenirNext-BoldItalic.woff2?2771ec995de8c2339686bdd3d4e1114a) format("woff2"),url(/fonts/AvenirNext-BoldItalic.woff?d6641e502fc0c14b1115bbb17ae9dbda) format("woff"),url(/fonts/AvenirNext-BoldItalic.ttf?51e9ff4a8dc48fa0d53db848be9795fe) format("truetype");font-weight:700;font-style:italic;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-Bold.eot?2194fdab8be2cc665e269cb7a20487d5);src:url(/fonts/AvenirNext-Bold.eot?2194fdab8be2cc665e269cb7a20487d5) format("embedded-opentype"),url(/fonts/AvenirNext-Bold.woff2?b299caa5944701e8611ebff9ac715e50) format("woff2"),url(/fonts/AvenirNext-Bold.woff?22761bb11be9721064b4a26a7593dea5) format("woff"),url(/fonts/AvenirNext-Bold.ttf?a651c483c9cfc803461bc79b978072c8) format("truetype");font-weight:700;font-style:normal;font-display:swap}@font-face{font-family:Avenir Next;src:url(/fonts/AvenirNext-MediumItalic.eot?a940b67a054f0b9a5d958ebfa02f3b7d);src:url(/fonts/AvenirNext-MediumItalic.eot?a940b67a054f0b9a5d958ebfa02f3b7d) format("embedded-opentype"),url(/fonts/AvenirNext-MediumItalic.woff2?46b3a7961eb0acddf9ca2f1264a05e99) format("woff2"),url(/fonts/AvenirNext-MediumItalic.woff?97c0f33e61d56b39e3c68090f7d52327) format("woff"),url(/fonts/AvenirNext-MediumItalic.ttf?7c56170415054dc1cd4fc84d6e19f141) format("truetype");font-weight:500;font-style:italic;font-display:swap}.font-medium{font-weight:500}.logo-blue{color:#044e9c}.highlight-logo-blue{color:#fff;background-color:#044e9c}.border-logo-blue{border:1px solid #044e9c}.blue{color:#278cd7}.btn-back,.btn-big,.highlight-blue{color:#fff;background-color:#278cd7}.border-blue{border:1px solid #278cd7}.purple{color:#9a36c8}.highlight-purple{color:#fff;background-color:#9a36c8}.border-purple{border:1px solid #9a36c8}.red{color:#cb3239}.highlight-red,h1{color:#fff;background-color:#cb3239}.border-red{border:1px solid #cb3239}.cyan{color:#14c7eb}.highlight-cyan{color:#fff;background-color:#14c7eb}.border-cyan{border:1px solid #14c7eb}.magenta{color:#cc33a0}.highlight-magenta{color:#fff;background-color:#cc33a0}.border-magenta{border:1px solid #cc33a0}.orange{color:#e79b17}.highlight-orange{color:#fff;background-color:#e79b17}.border-orange{border:1px solid #e79b17}.grey{color:#546883}.highlight-grey{color:#fff;background-color:#546883}.border-grey{border:1px solid #546883}.denim{color:#0c2c50}.highlight-denim{color:#fff;background-color:#0c2c50}.border-denim{border:1px solid #0c2c50}.green{color:#739b6c}.highlight-green{color:#fff;background-color:#739b6c}.border-green{border:1px solid #739b6c}.gold{color:#bbb541}.highlight-gold{color:#fff;background-color:#bbb541}.border-gold{border:1px solid #bbb541}.mag-blue{color:#2a6ba3}.highlight-mag-blue{color:#fff;background-color:#2a6ba3}.border-mag-blue{border:1px solid #2a6ba3}.psq-actu h1{color:#fff;background-color:#cb3239}.psq-actu .pill-box>div{border:1px solid #cb3239}.psq-actu .box,.psq-actu div.pill-box div,div.pill-box .psq-actu div{border-radius:5px}.psq-labos h1{color:#fff;background-color:#9a36c8}.psq-labos .pill-box>div{border:1px solid #9a36c8}.psq-labos .box,.psq-labos div.pill-box div,div.pill-box .psq-labos div{border-radius:5px}.psq-com-campaign h1{color:#fff;background-color:#278cd7}.psq-com-campaign .pill-box>div{border:1px solid #278cd7}.psq-com-campaign .box,.psq-com-campaign div.pill-box div,div.pill-box .psq-com-campaign div{border-radius:5px}.psq-plus h1{color:#fff;background-color:#e79b17}.psq-plus .pill-box>div{border:1px solid #e79b17}.psq-plus .box,.psq-plus div.pill-box div,div.pill-box .psq-plus div{border-radius:5px}.psq-podcasts h1{color:#fff;background-color:#bbb541}.psq-podcasts .pill-box>div{border:1px solid #bbb541}.psq-podcasts .box,.psq-podcasts div.pill-box div,div.pill-box .psq-podcasts div{border-radius:5px}.psq-archives h1{color:#fff;background-color:#14c7eb}.psq-archives .pill-box>div{border:1px solid #14c7eb}.psq-archives .box,.psq-archives div.pill-box div,div.pill-box .psq-archives div{border-radius:5px}.psq-mag h1{color:#fff;background-color:#cc33a0}.psq-mag .pill-box>div{border:1px solid #cc33a0}.psq-mag .box,.psq-mag div.pill-box div,div.pill-box .psq-mag div{border-radius:5px}.psq-not-registered h1{color:#fff;background-color:#739b6c}.psq-not-registered .pill-box>div{border:1px solid #739b6c}.psq-not-registered .box,.psq-not-registered div.pill-box div,div.pill-box .psq-not-registered div{border-radius:5px}.psq-login-logout h1{color:#fff;background-color:#0c2c50}.psq-login-logout .pill-box>div{border:1px solid #0c2c50}.psq-login-logout .box,.psq-login-logout div.pill-box div,div.pill-box .psq-login-logout div{border-radius:5px}nav>ul{margin-bottom:.5rem;display:flex;justify-content:space-around;align-items:flex-end;padding-left:0;flex-wrap:wrap}nav>ul>li{list-style-type:none;flex:1 1 0;text-align:center}@media (max-width:576px){nav>ul>li{flex:25% 1 0;padding:0 10px}}nav>ul img{max-width:100px;margin-bottom:1rem;width:100%}nav>ul p{display:none;font-size:small;font-weight:500;text-transform:uppercase;text-align:center;word-break:break-word}@supports not (-ms-high-contrast:none){nav>ul .pill-bigger{flex-grow:1.25}}nav>ul .pill-bigger img{max-width:125px}nav>ul .pill-smaller{flex-grow:1}nav>ul .pill-smaller img{max-width:50px}footer{padding-top:25px;height:80px;background-color:#ecf5ff}footer p.img-link{text-align:right;font-weight:700;text-transform:uppercase}footer p.img-link img{width:50px;display:inline-block;margin-right:1rem}h1{margin:auto auto 1rem;text-align:center;display:table;font-size:x-large;padding:6px 8px 4px}h1,h2{text-transform:uppercase}h2{font-weight:500;color:#044e9c}h2,h2.bold{font-size:large}h2.bold{font-weight:700}h3{font-size:medium;color:#044e9c}h4{font-size:small}div.cover{position:relative}div.cover img.cover-bg{width:100%}div.cover.cover-pile-2 img.cover-over{width:71%;left:15%;top:3%}div.cover.cover-pile-3 img.cover-over{width:60%;left:20%;top:5%}div.cover img.cover-over{position:absolute}div.cover .cover-title{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:auto;position:relative;height:30px}div.cover .cover-title img{position:absolute;width:50px;z-index:5;top:-12px;left:-30px}div.cover .cover-title p{text-transform:uppercase;color:#044e9c;background-color:#cddceb;text-align:center;font-weight:900;display:table;margin:auto;padding:0 6px;font-size:small;z-index:10;position:relative}div.pill-box{position:relative}div.pill-box img{width:60px;left:-15px;top:-20px;position:absolute;z-index:2}div.pill-box div{background-color:initial!important;border-radius:5px;padding:0 5px 5px}div.pill-box div h2{padding:2px 10px 1px 50px;margin:0 -6px 10px;background-color:#044e9c;color:#fff;text-align:center;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;top:-1px;font-size:medium}div.pill-box div>p{padding:5px 10px 0;margin-bottom:.5rem}ul.leaders{padding:0;overflow-x:hidden;list-style:none;color:#044e9c}ul.leaders li:after{float:left;width:0;white-space:nowrap;content:"• • • • • • • • • • • • • • • • • • • • " "• • • • • • • • • • • • • • • • • • • • " "• • • • • • • • • • • • • • • • • • • • " "• • • • • • • • • • • • • • • • • • • • "}ul.leaders span{text-transform:uppercase}ul.leaders span:first-child{padding-right:.5em;background:#f8fafc}ul.leaders span+span{float:right;padding-left:.33em;background:#f8fafc;position:relative;z-index:1;font-family:Avenir Next Demi,sans-serif}div.youtube-block iframe{display:block;margin:1rem auto;max-width:100%}.poll.container{max-width:700px}.poll .form-group{margin-bottom:2rem}.poll .form-group>label{font-size:larger;font-weight:500;color:#044e9c}.ck-article .ck-editor .ck-heading_heading1.ck.ck-button.ck-button_with-text span,.ck-article .ck-editor h2,article .ck-content .ck-heading_heading1.ck.ck-button.ck-button_with-text span,article .ck-content h2,article article .ck-heading_heading1.ck.ck-button.ck-button_with-text span,article article h2{font-weight:500;font-size:22px;text-transform:uppercase;color:#074e9c;margin-bottom:.5rem;line-height:1.2;text-align:center}.ck-article .ck-editor .ck-heading_heading2.ck.ck-button.ck-button_with-text span,.ck-article .ck-editor h3,article .ck-content .ck-heading_heading2.ck.ck-button.ck-button_with-text span,article .ck-content h3,article article .ck-heading_heading2.ck.ck-button.ck-button_with-text span,article article h3{font-weight:500;font-size:18px;text-transform:uppercase;color:#074e9c;margin-bottom:.5rem;line-height:1.2}.ck-article .ck-editor p,article .ck-content p,article article p{margin-bottom:1rem;font-family:Avenir Next,sans-serif;font-size:17px;line-height:1.6}.ck-article .ck-editor .chapo,article .ck-content .chapo,article article .chapo{text-transform:uppercase;font-size:large}.ck-email .ck-editor blockquote,.ck-email .ck-editor ol,.ck-email .ck-editor p,.ck-email .ck-editor ul{line-height:1.4;text-align:left}.ck-email .ck-editor a{color:#074e9c}.ck-email .ck-editor a img{border:none}.ck-email .ck-editor .ck-heading_heading1.ck.ck-button.ck-button_with-text span,.ck-email .ck-editor h2{color:#d04d4a;font-size:16px;font-weight:700;margin-top:0;text-align:left}.ck-email .ck-editor .ck-heading_heading2.ck.ck-button.ck-button_with-text span,.ck-email .ck-editor h3{font-size:14px;font-weight:700;margin-top:10px;text-align:left;text-transform:uppercase;color:#074e9c;margin-bottom:0}.ck-email .ck-editor p{font-size:16px;line-height:1.5em;margin-top:0;text-align:left}body{margin-bottom:0!important}main{min-height:calc(100vh - 360px)}@media print{nav{display:none}}.box,div.pill-box div{box-shadow:0 2px 0 rgba(90,97,105,.11),0 4px 8px rgba(90,97,105,.12),0 10px 10px rgba(90,97,105,.06),0 7px 70px rgba(90,97,105,.1);background-color:#fff;overflow:hidden;position:relative}.header-logo{width:90%;max-width:850px;display:block;margin:1em auto}a{color:#044e9c!important}.click-here,div.pill-box div>a{text-align:right;font-weight:700;margin-bottom:0;display:block;text-transform:uppercase}.click-here.bottom-left,div.pill-box div>a.bottom-left{left:10px;position:absolute;bottom:0}.click-here.bottom-right,div.pill-box div>a.bottom-right{right:10px;position:absolute;bottom:0}.small-text{font-size:xx-small;text-align:left}.spotlight-news{padding:.5rem;margin-bottom:1rem}.simple-preview .chapo,.spotlight-news>div{font-size:small}.btn-back,.btn-big{text-transform:uppercase;font-weight:700;margin-bottom:1rem;color:#fff!important}.ck-content p,article p{margin-bottom:0}article .truncated{mask-image:linear-gradient(180deg,#000 75%,transparent 99%);-webkit-mask-image:linear-gradient(180deg,#000 75%,transparent 99%)}article h2{font-size:22px;text-align:center}article .content{max-width:800px;font-size:larger;margin:auto}article img.top-img{display:block;margin:auto;max-width:100%;max-height:350px}article img{max-width:100%}article h3{font-weight:500;font-size:18px;color:#074e9c;text-transform:uppercase}.error-403 p{font-size:x-large}.error-403 a{color:inherit!important}.block-img{max-width:90%;max-height:700px;display:block;margin:auto}.mh-campaign{max-height:120px}.badge-light{font-weight:300}
\ No newline at end of file
diff --git a/resources/js/components/Stripe/StripeModal.vue b/resources/js/components/Stripe/StripeModal.vue
new file mode 100644 (file)
index 0000000..894cdab
--- /dev/null
@@ -0,0 +1,924 @@
+<template>
+
+    <div class="ElementsModal--modal-content">
+        <div class="ElementsModal--top-banner">
+            <div class="ElementsModal--sales-info">
+                <div class="ElementsModal--top">
+                    <div class="ElementsModal--company">PSQ</div>
+                    <button class="ElementsModal--close" onClick="elementsModal.toggleElementsModalVisibility()">
+                        <svg
+                            width="20px"
+                            height="20px"
+                            viewBox="0 0 20 20"
+                            version="1.1"
+                            xmlns="http://www.w3.org/2000/svg"
+                            xmlns:xlink="http://www.w3.org/1999/xlink"
+                        >
+                            <defs>
+                                <path
+                                    d="M10,8.8766862 L13.6440403,5.2326459 C13.9542348,4.92245137 14.4571596,4.92245137 14.7673541,5.2326459 C15.0775486,5.54284044 15.0775486,6.04576516 14.7673541,6.3559597 L11.1238333,9.99948051 L14.7673541,13.6430016 C15.0775486,13.9531961 15.0775486,14.4561209 14.7673541,14.7663154 C14.4571596,15.0765099 13.9542348,15.0765099 13.6440403,14.7663154 L10,11.1222751 L6.3559597,14.7663154 C6.04576516,15.0765099 5.54284044,15.0765099 5.2326459,14.7663154 C4.92245137,14.4561209 4.92245137,13.9531961 5.2326459,13.6430016 L8.87616671,9.99948051 L5.2326459,6.3559597 C4.92245137,6.04576516 4.92245137,5.54284044 5.2326459,5.2326459 C5.54284044,4.92245137 6.04576516,4.92245137 6.3559597,5.2326459 L10,8.8766862 Z"
+                                    id="path-1"
+                                ></path>
+                            </defs>
+                            <g
+                                id="Payment-recipes"
+                                stroke="none"
+                                stroke-width="1"
+                                fill="none"
+                                fill-rule="evenodd"
+                            >
+                                <g
+                                    id="Elements-Popup"
+                                    transform="translate(-816.000000, -97.000000)"
+                                >
+                                    <g id="close-btn" transform="translate(816.000000, 97.000000)">
+                                        <circle
+                                            id="Oval"
+                                            fill-opacity="0.3"
+                                            fill="#AEAEAE"
+                                            cx="10"
+                                            cy="10"
+                                            r="10"
+                                        ></circle>
+                                        <mask id="mask-2" fill="white">
+                                            <use xlink:href="#path-1"></use>
+                                        </mask>
+                                        <use
+                                            id="Mask"
+                                            fill-opacity="0.5"
+                                            fill="#FFFFFF"
+                                            opacity="0.5"
+                                            xlink:href="#path-1"
+                                        ></use>
+                                    </g>
+                                </g>
+                            </g>
+                        </svg>
+                    </button>
+                </div>
+                <div class="ElementsModal--product ElementsModal--details">{{product}}</div>
+                <div class="ElementsModal--price ElementsModal--details">{{amount}}</div>
+                <div class="ElementsModal--email ElementsModal--details">{{email}}</div>
+            </div>
+        </div>
+        <div class="ElementsModal--payment-details">
+            <form
+                class="ElementsModal--payment-form"
+                id="payment-form"
+            >
+                <div class="form-row">
+                    <div class="ElementsModal--forms">
+                        <div id="payment-request-section" class="StripeElement--payment-request">
+                            <div id="payment-request-button" class="StripeElement--payment-request-button">
+                                <!-- A Stripe Element will be inserted here. -->
+                            </div>
+                            <!-- Used to display form errors. -->
+                            <div
+                                id="paymentRequest-errors"
+                                class="ElementsModal--error-message"
+                                role="alert"
+                            ></div>
+                            <div class="ElementsModal--form-divider">
+                                <span class="ElementsModal--form-divider-text">Or pay with card</span>
+                            </div>
+                        </div>
+                        <div class="ElementsModal--form">
+                            <label for="ElementsModal--card-element">
+                  <span class="ElementsModal--form-label spacer"
+                  >Card details</span
+                  >
+                                <div class="StripeElement--card" id="card-element">
+                                    <!-- A Stripe Element will be inserted here. -->
+                                </div>
+                            </label>
+                            <!-- Used to display form errors. -->
+                            <div
+                                id="card-errors"
+                                class="ElementsModal--error-message"
+                                role="alert"
+                            ></div>
+                        </div>
+
+                        <div class="ElementsModal--form">
+                            <label class="select">
+                  <span class="ElementsModal--form-label spacer"
+                  >Country or region</span
+                  >
+                                <div id="country" class="ElementsModal--form-select">
+                                    <select name="country" autocomplete="billing country" aria-label="Country or region">
+                                        <option value="AF">Afghanistan</option
+                                        ><option value="AX">Åland Islands</option
+                                    ><option value="AL">Albania</option
+                                    ><option value="DZ">Algeria</option
+                                    ><option value="AD">Andorra</option
+                                    ><option value="AO">Angola</option
+                                    ><option value="AI">Anguilla</option
+                                    ><option value="AQ">Antarctica</option
+                                    ><option value="AG">Antigua &amp; Barbuda</option
+                                    ><option value="AR">Argentina</option
+                                    ><option value="AM">Armenia</option
+                                    ><option value="AW">Aruba</option
+                                    ><option value="AC">Ascension Island</option
+                                    ><option value="AU">Australia</option
+                                    ><option value="AT">Austria</option
+                                    ><option value="AZ">Azerbaijan</option
+                                    ><option value="BS">Bahamas</option
+                                    ><option value="BH">Bahrain</option
+                                    ><option value="BD">Bangladesh</option
+                                    ><option value="BB">Barbados</option
+                                    ><option value="BY">Belarus</option
+                                    ><option value="BE">Belgium</option
+                                    ><option value="BZ">Belize</option
+                                    ><option value="BJ">Benin</option
+                                    ><option value="BM">Bermuda</option
+                                    ><option value="BT">Bhutan</option
+                                    ><option value="BO">Bolivia</option
+                                    ><option value="BA">Bosnia &amp; Herzegovina</option
+                                    ><option value="BW">Botswana</option
+                                    ><option value="BV">Bouvet Island</option
+                                    ><option value="BR">Brazil</option
+                                    ><option value="IO">British Indian Ocean Territory</option
+                                    ><option value="VG">British Virgin Islands</option
+                                    ><option value="BN">Brunei</option
+                                    ><option value="BG">Bulgaria</option
+                                    ><option value="BF">Burkina Faso</option
+                                    ><option value="BI">Burundi</option
+                                    ><option value="KH">Cambodia</option
+                                    ><option value="CM">Cameroon</option
+                                    ><option value="CA">Canada</option
+                                    ><option value="CV">Cape Verde</option
+                                    ><option value="BQ">Caribbean Netherlands</option
+                                    ><option value="KY">Cayman Islands</option
+                                    ><option value="CF">Central African Republic</option
+                                    ><option value="TD">Chad</option
+                                    ><option value="CL">Chile</option
+                                    ><option value="CN">China</option
+                                    ><option value="CO">Colombia</option
+                                    ><option value="KM">Comoros</option
+                                    ><option value="CG">Congo - Brazzaville</option
+                                    ><option value="CD">Congo - Kinshasa</option
+                                    ><option value="CK">Cook Islands</option
+                                    ><option value="CR">Costa Rica</option
+                                    ><option value="CI">Côte d’Ivoire</option
+                                    ><option value="HR">Croatia</option
+                                    ><option value="CW">Curaçao</option
+                                    ><option value="CY">Cyprus</option
+                                    ><option value="CZ">Czechia</option
+                                    ><option value="DK">Denmark</option
+                                    ><option value="DJ">Djibouti</option
+                                    ><option value="DM">Dominica</option
+                                    ><option value="DO">Dominican Republic</option
+                                    ><option value="EC">Ecuador</option
+                                    ><option value="EG">Egypt</option
+                                    ><option value="SV">El Salvador</option
+                                    ><option value="GQ">Equatorial Guinea</option
+                                    ><option value="ER">Eritrea</option
+                                    ><option value="EE">Estonia</option
+                                    ><option value="ET">Ethiopia</option
+                                    ><option value="FK">Falkland Islands</option
+                                    ><option value="FO">Faroe Islands</option
+                                    ><option value="FJ">Fiji</option
+                                    ><option value="FI">Finland</option
+                                    ><option value="FR">France</option
+                                    ><option value="GF">French Guiana</option
+                                    ><option value="PF">French Polynesia</option
+                                    ><option value="TF">French Southern Territories</option
+                                    ><option value="GA">Gabon</option
+                                    ><option value="GM">Gambia</option
+                                    ><option value="GE">Georgia</option
+                                    ><option value="DE">Germany</option
+                                    ><option value="GH">Ghana</option
+                                    ><option value="GI">Gibraltar</option
+                                    ><option value="GR">Greece</option
+                                    ><option value="GL">Greenland</option
+                                    ><option value="GD">Grenada</option
+                                    ><option value="GP">Guadeloupe</option
+                                    ><option value="GU">Guam</option
+                                    ><option value="GT">Guatemala</option
+                                    ><option value="GG">Guernsey</option
+                                    ><option value="GN">Guinea</option
+                                    ><option value="GW">Guinea-Bissau</option
+                                    ><option value="GY">Guyana</option
+                                    ><option value="HT">Haiti</option
+                                    ><option value="HN">Honduras</option
+                                    ><option value="HK">Hong Kong SAR China</option
+                                    ><option value="HU">Hungary</option
+                                    ><option value="IS">Iceland</option
+                                    ><option value="IN">India</option
+                                    ><option value="ID">Indonesia</option
+                                    ><option value="IR">Iran</option
+                                    ><option value="IQ">Iraq</option
+                                    ><option value="IE">Ireland</option
+                                    ><option value="IM">Isle of Man</option
+                                    ><option value="IL">Israel</option
+                                    ><option value="IT">Italy</option
+                                    ><option value="JM">Jamaica</option
+                                    ><option value="JP">Japan</option
+                                    ><option value="JE">Jersey</option
+                                    ><option value="JO">Jordan</option
+                                    ><option value="KZ">Kazakhstan</option
+                                    ><option value="KE">Kenya</option
+                                    ><option value="KI">Kiribati</option
+                                    ><option value="XK">Kosovo</option
+                                    ><option value="KW">Kuwait</option
+                                    ><option value="KG">Kyrgyzstan</option
+                                    ><option value="LA">Laos</option
+                                    ><option value="LV">Latvia</option
+                                    ><option value="LB">Lebanon</option
+                                    ><option value="LS">Lesotho</option
+                                    ><option value="LR">Liberia</option
+                                    ><option value="LY">Libya</option
+                                    ><option value="LI">Liechtenstein</option
+                                    ><option value="LT">Lithuania</option
+                                    ><option value="LU">Luxembourg</option
+                                    ><option value="MO">Macau SAR China</option
+                                    ><option value="MK">Macedonia</option
+                                    ><option value="MG">Madagascar</option
+                                    ><option value="MW">Malawi</option
+                                    ><option value="MY">Malaysia</option
+                                    ><option value="MV">Maldives</option
+                                    ><option value="ML">Mali</option
+                                    ><option value="MT">Malta</option
+                                    ><option value="MQ">Martinique</option
+                                    ><option value="MR">Mauritania</option
+                                    ><option value="MU">Mauritius</option
+                                    ><option value="YT">Mayotte</option
+                                    ><option value="MX">Mexico</option
+                                    ><option value="MD">Moldova</option
+                                    ><option value="MC">Monaco</option
+                                    ><option value="MN">Mongolia</option
+                                    ><option value="ME">Montenegro</option
+                                    ><option value="MS">Montserrat</option
+                                    ><option value="MA">Morocco</option
+                                    ><option value="MZ">Mozambique</option
+                                    ><option value="MM">Myanmar (Burma)</option
+                                    ><option value="NA">Namibia</option
+                                    ><option value="NR">Nauru</option
+                                    ><option value="NP">Nepal</option
+                                    ><option value="NL">Netherlands</option
+                                    ><option value="NC">New Caledonia</option
+                                    ><option value="NZ">New Zealand</option
+                                    ><option value="NI">Nicaragua</option
+                                    ><option value="NE">Niger</option
+                                    ><option value="NG">Nigeria</option
+                                    ><option value="NU">Niue</option
+                                    ><option value="NO">Norway</option
+                                    ><option value="OM">Oman</option
+                                    ><option value="PK">Pakistan</option
+                                    ><option value="PS">Palestinian Territories</option
+                                    ><option value="PA">Panama</option
+                                    ><option value="PG">Papua New Guinea</option
+                                    ><option value="PY">Paraguay</option
+                                    ><option value="PE">Peru</option
+                                    ><option value="PH">Philippines</option
+                                    ><option value="PN">Pitcairn Islands</option
+                                    ><option value="PL">Poland</option
+                                    ><option value="PT">Portugal</option
+                                    ><option value="PR">Puerto Rico</option
+                                    ><option value="QA">Qatar</option
+                                    ><option value="RE">Réunion</option
+                                    ><option value="RO">Romania</option
+                                    ><option value="RU">Russia</option
+                                    ><option value="RW">Rwanda</option
+                                    ><option value="WS">Samoa</option
+                                    ><option value="SM">San Marino</option
+                                    ><option value="ST">São Tomé &amp; Príncipe</option
+                                    ><option value="SA">Saudi Arabia</option
+                                    ><option value="SN">Senegal</option
+                                    ><option value="RS">Serbia</option
+                                    ><option value="SC">Seychelles</option
+                                    ><option value="SL">Sierra Leone</option
+                                    ><option value="SG">Singapore</option
+                                    ><option value="SX">Sint Maarten</option
+                                    ><option value="SK">Slovakia</option
+                                    ><option value="SI">Slovenia</option
+                                    ><option value="SB">Solomon Islands</option
+                                    ><option value="SO">Somalia</option
+                                    ><option value="ZA">South Africa</option
+                                    ><option value="GS">South Georgia &amp; South Sandwich Islands</option
+                                    ><option value="KR">South Korea</option
+                                    ><option value="SS">South Sudan</option
+                                    ><option value="ES">Spain</option
+                                    ><option value="LK">Sri Lanka</option
+                                    ><option value="BL">St. Barthélemy</option
+                                    ><option value="SH">St. Helena</option
+                                    ><option value="KN">St. Kitts &amp; Nevis</option
+                                    ><option value="LC">St. Lucia</option
+                                    ><option value="MF">St. Martin</option
+                                    ><option value="PM">St. Pierre &amp; Miquelon</option
+                                    ><option value="VC">St. Vincent &amp; Grenadines</option
+                                    ><option value="SR">Suriname</option
+                                    ><option value="SJ">Svalbard &amp; Jan Mayen</option
+                                    ><option value="SZ">Swaziland</option
+                                    ><option value="SE">Sweden</option
+                                    ><option value="CH">Switzerland</option
+                                    ><option value="TW">Taiwan</option
+                                    ><option value="TJ">Tajikistan</option
+                                    ><option value="TZ">Tanzania</option
+                                    ><option value="TH">Thailand</option
+                                    ><option value="TL">Timor-Leste</option
+                                    ><option value="TG">Togo</option
+                                    ><option value="TK">Tokelau</option
+                                    ><option value="TO">Tonga</option
+                                    ><option value="TT">Trinidad &amp; Tobago</option
+                                    ><option value="TA">Tristan da Cunha</option
+                                    ><option value="TN">Tunisia</option
+                                    ><option value="TR">Turkey</option
+                                    ><option value="TM">Turkmenistan</option
+                                    ><option value="TC">Turks &amp; Caicos Islands</option
+                                    ><option value="TV">Tuvalu</option
+                                    ><option value="UG">Uganda</option
+                                    ><option value="UA">Ukraine</option
+                                    ><option value="AE">United Arab Emirates</option
+                                    ><option value="GB">United Kingdom</option
+                                    ><option value="US" selected="selected">United States</option
+                                    ><option value="UY">Uruguay</option
+                                    ><option value="UZ">Uzbekistan</option
+                                    ><option value="VU">Vanuatu</option
+                                    ><option value="VA">Vatican City</option
+                                    ><option value="VE">Venezuela</option
+                                    ><option value="VN">Vietnam</option
+                                    ><option value="WF">Wallis &amp; Futuna</option
+                                    ><option value="EH">Western Sahara</option
+                                    ><option value="YE">Yemen</option
+                                    ><option value="ZM">Zambia</option
+                                    ><option value="ZW">Zimbabwe</option>
+                                    </select>
+                                </div>
+                            </label>
+                        </div>
+
+                        <div class="ElementsModal--form">
+                            <input
+                                type="hidden"
+                                name="amount"
+                                value="${content.amount}"
+                            />
+                            <input
+                                type="hidden"
+                                name="currency"
+                                value="${content.currency}"
+                            />
+                            <input
+                                type="hidden"
+                                name="description"
+                                value="${content.productName}"
+                            />
+                            <button class="ElementsModal--pay-button">Pay {{amount}}</button>
+                        </div>
+
+                        <!-- Edit your terms and conditions here   -->
+                        <div class="footer ElementsModal--footer-text">
+                            By purchasing this chair, you agree to KAVHOLM’s
+                            <a class="ElementsModal--footer-text" href="stripe.com"
+                            >Terms and Conditions.</a
+                            >
+                        </div>
+                    </div>
+                </div>
+            </form>
+        </div>
+    </div>
+</template>
+
+<script>
+import Stripe from 'stripe';
+export default {
+
+
+    name: "StripeModal",
+    props: ['product', 'amount', 'email', 'paymentIntent'],
+    data() {
+        return {
+            _elementsModal_stripe: '',
+            _elementsModal_HOST_URL : '#',
+            elementsModal: null,
+        }
+    },
+    mounted: function() {
+
+      this.getPublicKey().then(key => {
+      this._elementsModal_stripe = Stripe(key);
+      this.createElements(content, this.paymentIntent);
+      this.createPaymentRequest(content, this.paymentIntent);
+    });
+
+
+    },
+    methods:  {
+        getPublicKey: function() {
+            return "pk_test_51HcBp3KZBXuYePomhVUc9RxbsZbSfuoiu0NKiotBW4ZKwCbM6sLlPMLSyPDQeB0MUXoQD3qbk23eJ41NVpM1z1oT00lg84Ywcq";
+            return fetch(this._elementsModal_HOST_URL + "/public-key", {
+                method: "get",
+                headers: {
+                    "Content-Type": "application/json"
+                }
+            })
+                .then(function(response) {
+                    return response.json();
+                })
+                .then(function(data) {
+                    return data.publicKey;
+                });
+        },
+
+        toggleElementsModalVisibility: function() {
+            var modal = document.querySelector(".ElementsModal--modal");
+            if (modal && modal.classList) {
+                modal.classList.toggle("ElementsModal--show-modal");
+            }
+        },
+
+        createPaymentIntent: function(content) {
+            return fetch(_elementsModal_HOST_URL + "/payment_intents", {
+                method: "post",
+                headers: {
+                    "Content-Type": "application/json"
+                },
+                body: JSON.stringify(content)
+            })
+                .then(function(response) {
+                    return response.json();
+                })
+                .then(function(paymentIntent) {
+                    return paymentIntent;
+                });
+        },
+
+        createPaymentRequest: function(content, paymentIntent) {
+            var paymentRequest = _elementsModal_stripe.paymentRequest({
+                country: "US",
+                currency: content.currency,
+                total: {
+                    label: content.productName + ", " + content.businessName,
+                    amount: paymentIntent.amount
+                },
+                requestPayerName: true,
+                requestPayerEmail: true
+            });
+
+            var elements = _elementsModal_stripe.elements();
+            var prButton = elements.create("paymentRequestButton", {
+                paymentRequest: paymentRequest
+            });
+
+            // Check the availability of the Payment Request API first.
+            paymentRequest.canMakePayment().then(function(result) {
+                if (result) {
+                    document.getElementById("payment-request-section").style.display =
+                        "block";
+                    prButton.mount("#payment-request-button");
+                } else {
+                    document.getElementById("payment-request-button").style.display =
+                        "none";
+                    document.getElementById("payment-request-section").style.display =
+                        "none";
+                }
+            });
+
+            paymentRequest.on("paymentmethod", function(ev) {
+                _elementsModal_stripe
+                    .confirmCardPayment(
+                        paymentIntent.client_secret,
+                        { payment_method: ev.paymentMethod.id },
+                        { handleActions: false }
+                    )
+                    .then(function(confirmResult) {
+                        if (confirmResult.error) {
+                            // Report to the browser that the payment failed, prompting it to
+                            // re-show the payment interface, or show an error message and close
+                            // the payment interface.
+                            ev.complete("fail");
+                        } else {
+                            // Report to the browser that the confirmation was successful, prompting
+                            // it to close the browser payment method collection interface.
+                            ev.complete("success");
+                            // Check if payment has fully succeeded and no futher action is needed
+                            if (confirmResult.paymentIntent.status === "succeeded") return stripePaymentHandler();
+                            // Otherwise, let Stripe.js handle the rest of the payment flow (eg. 3DS authentication is required).
+                            _elementsModal_stripe
+                                .confirmCardPayment(paymentIntent.client_secret)
+                                .then(function(result) {
+                                    if (result.error) {
+                                        // The payment failed -- ask your customer for a new payment method.
+                                        var displayError = document.getElementById(
+                                            "paymentRequest-errors"
+                                        );
+                                        displayError.textContent = result.error.message;
+                                    } else {
+                                        // The payment has succeeded.
+                                        stripePaymentHandler();
+                                    }
+                                });
+                        }
+                    });
+            });
+        },
+
+        create : function(content) {
+            createPaymentIntent(content).then(function(paymentIntent) {
+                init(content, paymentIntent);
+            });
+        },
+
+        createElements: function(content, paymentIntent) {
+            // Create an instance of Elements.
+            var elements = _elementsModal_stripe.elements();
+
+            // Custom styling can be passed to options when creating an Element.
+            // (Note that this  uses a wider set of styles than the guide below.)
+            var style = {
+                base: {
+                    color: "#32325d",
+                    fontFamily: "-apple-system, BlinkMacSystemFont, sans-serif",
+                    fontSmoothing: "antialiased",
+                    fontSize: "16px",
+                    "::placeholder": {
+                        color: "#aab7c4"
+                    }
+                },
+                invalid: {
+                    color: "#fa755a",
+                    iconColor: "#fa755a"
+                }
+            };
+
+            // Create an instance of the card Element.
+            var card = elements.create("card", {
+                style: style
+            });
+            // Add an instance of the card Element into the `card-element` <div>.
+            card.mount("#card-element");
+
+            // Handle form submission.
+            var form = document.getElementById("payment-form");
+            form.addEventListener("submit", function(event) {
+                event.preventDefault();
+
+                _elementsModal_stripe
+                    .confirmCardPayment(paymentIntent.client_secret, {
+                        payment_method: {
+                            card: card,
+                            billing_details: { name: content.customerName }
+                        }
+                    })
+                    .then(function(result) {
+                        if (result.error) {
+                            var displayError = document.getElementById("card-errors");
+                            displayError.textContent = result.error.message;
+                        } else {
+                            stripePaymentHandler();
+                        }
+                    });
+            });
+        },
+
+        // Implement logic to handle the users authorization for payment.
+        // Here you will want to redirect to a successful payments page, or update the page.
+        stripePaymentHandler: function() {
+            toggleElementsModalVisibility();
+            document.querySelectorAll(".payment-view").forEach(function(view) {
+                view.classList.add("hidden");
+            });
+            document.querySelectorAll(".completed-view").forEach(function(view) {
+                view.classList.remove("hidden");
+            });
+        },
+
+
+
+
+        browserLocale: function() {
+            var lang;
+
+            if (navigator.languages && navigator.languages.length) {
+                // latest versions of Chrome and Firefox set this correctly
+                lang = navigator.languages[0];
+            } else if (navigator.userLanguage) {
+                // IE only
+                lang = navigator.userLanguage;
+            } else {
+                // latest versions of Chrome, Firefox, and Safari set this correctly
+                lang = navigator.language;
+            }
+
+            return lang;
+        },
+
+        zeroDecimalCurrencies: function (currency) {
+            var zeroDecimalCurrencies = [
+                "BIF",
+                "CLP",
+                "DJF",
+                "GNF",
+                "JPY",
+                "KMF",
+                "KRW",
+                "XPF",
+                "XOF",
+                "XAF",
+                "VUV",
+                "VND",
+                "UGX",
+                "RWF",
+                "PYG",
+                "MGA"
+            ];
+            return zeroDecimalCurrencies.indexOf(currency);
+        },
+
+        calculateDisplayAmountFromCurrency: function (paymentIntent) {
+            var amountToDisplay = paymentIntent.amount;
+
+            if (zeroDecimalCurrencies(paymentIntent.currency) === -1) {
+                amountToDisplay = amountToDisplay / 100;
+            }
+            return amountToDisplay.toLocaleString(browserLocale(), {
+                style: "currency",
+                currency: paymentIntent.currency
+            });
+        }
+    }
+}
+</script>
+
+<style scoped>
+.ElementsModal--modal {
+    all: initial;
+    box-sizing: border-box;
+    position: fixed;
+    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
+    left: 0;
+    top: 0;
+    width: 100%;
+    height: 100%;
+    background-color: rgba(0, 0, 0, 0.5);
+    opacity: 0;
+    visibility: hidden;
+    transform: scale(1.1);
+    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
+    z-index: 100001 !important;
+}
+.ElementsModal--modal-content {
+    position: absolute;
+    top: 42%;
+    left: 50%;
+    /* make media query for this :) */
+    transform: translate(-50%, -50%);
+    border-radius: 10px;
+    background: rgb(255, 255, 255);
+    overflow: hidden;
+    width: 385px;
+    border-radius: 0.5rem;
+}
+
+@media screen and (max-width: 600px) {
+    .ElementsModal--modal-content {
+        height: 100vh;
+        width: 100%;
+        border-radius: 0;
+    }
+    .ElementsModal--top {
+        padding-top: 4em;
+    }
+    .ElementsModal--close {
+        padding-top: 4em;
+    }
+}
+
+.ElementsModal--top {
+    display: flex;
+    justify-content: flex-end;
+    position: relative;
+}
+
+.ElementsModal--close {
+    background: none;
+    color: inherit;
+    border: none;
+    padding: 0;
+    font: inherit;
+    outline: inherit;
+    color: rgb(255, 255, 255);
+    cursor: pointer;
+    position: absolute;
+    top: 0;
+    right: 0;
+    border: none;
+}
+
+.ElementsModal--show-modal {
+    opacity: 1;
+    visibility: visible;
+    transform: scale(1);
+    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
+}
+
+.ElementsModal--details {
+    margin-bottom: 2px;
+}
+
+.ElementsModal--price {
+    color: rgb(255, 255, 255);
+    font-size: 36px;
+    font-weight: 600;
+}
+.ElementsModal--top-banner {
+    background-color: black;
+    text-align: center;
+    background: rgb(0, 0, 0);
+    padding: 1em;
+    padding-top: 20px;
+    padding-bottom: 2em;
+}
+.ElementsModal--email {
+    color: rgba(255, 255, 255, 0.5);
+    font-size: 16px;
+    font-weight: 500;
+}
+.ElementsModal--product {
+    color: rgba(255, 255, 255, 0.5);
+    font-size: 16px;
+    font-weight: 500;
+}
+.ElementsModal--company {
+    color: rgb(255, 255, 255);
+    font-size: 18px;
+    font-weight: bold;
+    margin: auto;
+    margin-bottom: 32px;
+}
+
+.ElementsModal--footer-text {
+    color: rgba(0, 0, 0, 0.4);
+    font-size: 12px;
+    font-weight: normal;
+    text-align: center;
+    line-height: 16px;
+}
+
+.ElementsModal--error-message {
+    margin-top: 5px;
+    color: rgb(220, 39, 39);
+    font-size: 13px;
+    line-height: 17px;
+}
+
+.ElementsModal--pay-button-wrapper {
+    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
+    margin: 25px;
+    width: 350px;
+    height: 40px;
+}
+
+.ElementsModal--pay-button {
+    cursor: pointer;
+    border: 0;
+    width: 100%;
+    text-align: center;
+    height: 40px;
+    box-shadow: inset 0 0 0 1px rgba(50, 50, 93, 0.1),
+    0 2px 5px 0 rgba(50, 50, 93, 0.1), 0 1px 1px 0 rgba(0, 0, 0, 0.07);
+    border-radius: 6px 6px 6px 6px;
+    font-size: 16px;
+    font-weight: 600;
+
+    background-color: rgb(0, 116, 212);
+    color: rgb(255, 255, 255);
+}
+
+.ElementsModal--pay-button:focus {
+    outline: none;
+    box-shadow: 0 0 0 1px rgba(50, 151, 211, 0.3), 0 1px 1px 0 rgba(0, 0, 0, 0.07),
+    0 0 0 4px rgba(50, 151, 211, 0.3);
+}
+
+.ElementsModal--dropdowns {
+    margin: 10px;
+    -webkit-appearance: none;
+    background: rgb(255, 255, 255);
+    box-shadow: 0px 0px 0px 1px rgb(224, 224, 224),
+    0px 2px 4px 0px rgba(0, 0, 0, 0.07), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.05);
+    border-radius: 4px 4px 4px 4px;
+}
+
+/* Form */
+
+.ElementsModal--payment-form {
+    margin-bottom: 0;
+}
+
+.ElementsModal--label {
+    color: rgba(0, 0, 0, 0.6);
+    font-size: 14px;
+    font-weight: 500;
+}
+
+.ElementsModal--forms {
+    padding: 5%;
+}
+
+.ElementsModal--form {
+    margin-bottom: 14px;
+}
+
+.ElementsModal--form-label {
+    font-size: 13px;
+    margin-bottom: 4px;
+    display: block;
+    color: rgba(0, 0, 0, 0.6);
+}
+
+.ElementsModal--form-select select {
+    padding: 10px 12px;
+    width: 100%;
+    border: 1px solid transparent;
+    outline: none;
+    box-shadow: 0px 0px 0px 1px rgb(224, 224, 224),
+    0px 2px 4px 0px rgba(0, 0, 0, 0.07), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.05);
+    -webkit-transition: box-shadow 150ms ease;
+    transition: box-shadow 150ms ease;
+    border-radius: 5px 5px 5px 5px;
+
+    background-color: white;
+    -webkit-appearance: none;
+    -moz-appearance: none;
+    appearance: none;
+    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.193 3.97a.75.75 0 0 1 1.062 1.062L6.53 9.756a.75.75 0 0 1-1.06 0L.745 5.032A.75.75 0 0 1 1.807 3.97L6 8.163l4.193-4.193z' fill='%23000' fill-rule='evenodd' fill-opacity='.4'/%3E%3C/svg%3E");
+    background-size: 12px;
+    background-position: calc(100% - 16px) center;
+    background-repeat: no-repeat;
+    color: rgb(40, 40, 40);
+    font-size: 16px;
+    font-weight: normal;
+}
+
+.ElementsModal--form-select select:-moz-focusring {
+    color: transparent;
+    text-shadow: 0 0 0 rgb(0, 0, 0);
+}
+
+.ElementsModal--form-select select:focus {
+    box-shadow: 0 0 0 1px rgba(50, 151, 211, 0.3), 0 1px 1px 0 rgba(0, 0, 0, 0.07),
+    0 0 0 4px rgba(50, 151, 211, 0.3);
+}
+
+.ElementsModal--form-select select::-ms-expand {
+    display: none; /* hide the default arrow in ie10 and ie11 */
+}
+
+.ElementsModal--form-divider {
+    margin-top: 14px;
+    margin-bottom: 25px;
+    text-align: center;
+    border-bottom: 1px solid rgb(231, 231, 231);
+    height: 20px;
+    width: 100%;
+}
+
+.ElementsModal--form-divider-text {
+    position: relative;
+    bottom: -10px; /* half of line-height */
+    padding: 0 10px;
+    background: rgb(255, 255, 255);
+    color: rgb(144, 144, 144);
+    font-size: 14px;
+    font-weight: 400;
+}
+
+.StripeElement--payment-request {
+    display: none;
+    margin-bottom: 14px;
+}
+
+.StripeElement--payment-request-button {
+    margin-bottom: 12px;
+}
+
+.StripeElement--card {
+    box-sizing: border-box;
+    height: 40px;
+    padding: 10px 12px;
+    border: 1px solid transparent;
+    border-radius: 5px 5px 5px 5px;
+    background-color: white;
+
+    box-shadow: 0px 0px 0px 1px rgb(224, 224, 224),
+    0px 2px 4px 0px rgba(0, 0, 0, 0.07), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.05);
+    -webkit-transition: box-shadow 150ms ease;
+    transition: box-shadow 150ms ease;
+}
+
+.StripeElement--card--focus {
+    box-shadow: 0 1px 3px 0 rgb(207, 215, 223);
+}
+
+.StripeElement--card--invalid {
+    border-color: rgb(239, 152, 150);
+}
+
+.StripeElement--card--webkit-autofill {
+    background-color: rgb(254, 253, 229) !important;
+}
+
+</style>
index e8817b6cb7362098a1898cd498e0a11b7cc35531..67a88c4119ca999de91be5a95c9a3b4e27e384a2 100644 (file)
@@ -168,8 +168,8 @@ article {
 }
 
 .block-img {
-    max-width: 100%;
-    max-height: 350px;
+    max-width: 90%;
+    max-height: 700px;
     display: block;
     margin: auto;
 }
index fa4f212bfd7fb43a90fd346b6ff384260b9d4dff..aef467a986d2665bf72b616f7d1d1866c31377ad 100644 (file)
@@ -7,7 +7,7 @@
         'maxlength' => 100
     ])
 
-    @formField('block_editor', ['blocks' => ['poll_text', 'poll_check']])
+    @formField('block_editor', ['blocks' => ['poll_text', 'poll_check', 'image']])