diff --git a/app/Http/Controllers/HighlightController.php b/app/Http/Controllers/HighlightController.php new file mode 100644 index 0000000..d776cd8 --- /dev/null +++ b/app/Http/Controllers/HighlightController.php @@ -0,0 +1,67 @@ +validated(); + + $highlight = new Highlight(); + $highlight->user_id = $request->user()->id; + $highlight->expression = $data['expression']; + $highlight->color = $data['color']; + $highlight->save(); + + return $request->user()->highlights()->get(); + } + + /** + * Update the specified resource in storage. + * + * @param \App\Http\Requests\StoreHighlightRequest $request + * @param \App\Models\Models\Highlight $highlight + * @return \Illuminate\Http\Response + */ + public function update(StoreHighlightRequest $request, Highlight $highlight) + { + if($highlight->user_id !== $request->user()->id) { + abort(404); + } + + $data = $request->validated(); + + $highlight->expression = $data['expression']; + $highlight->color = $data['color']; + $highlight->save(); + + return $request->user()->highlights()->get(); + } + + /** + * Remove the specified resource from storage. + * + * @param \App\Models\Models\Hightlight $hightlight + * @return \Illuminate\Http\Response + */ + public function destroy(Request $request, Highlight $highlight) + { + if($highlight->user_id !== $request->user()->id) { + abort(404); + } + + $highlight->delete(); + return $request->user()->highlights()->get(); + } +} diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 9f410dc..b68d3fd 100644 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -66,6 +66,14 @@ public function theme() { return view('account.themes')->with(['availableThemes' => $availableThemes]); } + /** + * Manage user's highlights + */ + public function highlights() + { + return view('account.highlights'); + } + public function getThemes() { return ThemeManager::listAvailableThemes(); } diff --git a/app/Http/Requests/StoreHighlightRequest.php b/app/Http/Requests/StoreHighlightRequest.php new file mode 100644 index 0000000..955fafc --- /dev/null +++ b/app/Http/Requests/StoreHighlightRequest.php @@ -0,0 +1,37 @@ + [ + 'required', + ], + 'color' => [ + 'required', + 'regex:/^#[0-9a-f]{3,6}$/i', + ], + ]; + } +} diff --git a/app/Models/Highlight.php b/app/Models/Highlight.php new file mode 100644 index 0000000..13b2a61 --- /dev/null +++ b/app/Models/Highlight.php @@ -0,0 +1,15 @@ +belongsTo(User::class); + } +} diff --git a/app/Models/User.php b/app/Models/User.php index 357b587..2f50ab2 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -66,6 +66,16 @@ public function documents() return $this->hasManyThrough(Bookmark::class, Folder::class); } + /** + * Highlights registered by this user + * + * @return \Illuminate\Database\Eloquent\Relations\HasMany + */ + public function highlights() + { + return $this->hasMany(Highlight::class); + } + # -------------------------------------------------------------------------- # ----| Methods |----------------------------------------------------------- # -------------------------------------------------------------------------- diff --git a/app/Providers/BladeServiceProvider.php b/app/Providers/BladeServiceProvider.php index 7394090..63c6c5c 100644 --- a/app/Providers/BladeServiceProvider.php +++ b/app/Providers/BladeServiceProvider.php @@ -24,6 +24,14 @@ public function register() */ public function boot() { + $this->registerThemeVariables(); + $this->registerHighlights(); + } + + /** + * Register theme-specific variables into view + */ + protected function registerThemeVariables() { view()->composer('*', function ($view) { $theme = config('app.theme'); @@ -74,4 +82,16 @@ protected function getIconsFile($theme = null) { return null; } + + protected function registerHighlights() { + view()->composer('*', function ($view) { + if (!auth()->check()) { + return; + } + + $highlights = auth()->user()->highlights()->get(); + + view()->share('highlights', $highlights); + }); + } } diff --git a/config/version.yml b/config/version.yml index 054e2a7..eeb311f 100644 --- a/config/version.yml +++ b/config/version.yml @@ -5,9 +5,9 @@ current: major: 0 minor: 4 patch: 4 - prerelease: 1-g5e5fd76 + prerelease: 2-gca54dd2 buildmetadata: '' - commit: 5e5fd7 + commit: ca54dd timestamp: year: 2020 month: 10 diff --git a/config/ziggy.php b/config/ziggy.php index 4431e3a..a408083 100644 --- a/config/ziggy.php +++ b/config/ziggy.php @@ -27,6 +27,9 @@ 'folder.show', 'folder.store', 'folder.update', + 'highlight.destroy', + 'highlight.store', + 'highlight.update', 'home' ], ]; diff --git a/database/migrations/2020_10_09_221017_create_highlights_table.php b/database/migrations/2020_10_09_221017_create_highlights_table.php new file mode 100644 index 0000000..b17de70 --- /dev/null +++ b/database/migrations/2020_10_09_221017_create_highlights_table.php @@ -0,0 +1,34 @@ +id(); + $table->foreignId('user_id')->constrained('users')->onDelete('cascade'); + $table->text('expression'); + $table->string('color', 7); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('highlights'); + } +} diff --git a/package-lock.json b/package-lock.json index ab068e6..3f80166 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9095,6 +9095,12 @@ } } }, + "textcolor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/textcolor/-/textcolor-1.0.2.tgz", + "integrity": "sha512-+frmW0G8e23xh30MCL47JWhXF+ckrPEzkCv4VJfXZpu08VsLJgvnWuVOivi2Ih8l0eBa9oCio0/SdiHra2357A==", + "dev": true + }, "through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", diff --git a/package.json b/package.json index 29b4730..c587152 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "sass": "^1.26.12", "sass-loader": "^8.0.0", "tailwindcss": "^1.8.11", + "textcolor": "^1.0.2", "vue": "^2.6.12", "vue-template-compiler": "^2.6.12", "vuex": "^3.5.1" diff --git a/public/js/app.js b/public/js/app.js index f16aaf2..d7016dc 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -1,2 +1,2 @@ /*! For license information please see app.js.LICENSE.txt */ -!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));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=0)}({"+CwO":function(t,e,n){"use strict";n.r(e);var r=n("L2JU");function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=r.charAt(s):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},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,i){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var a=e;return o(e)&&!o(n)&&(a=s(e,i)),o(e)&&o(n)?(n.forEach((function(n,o){if(r.call(e,o)){var s=e[o];s&&"object"==typeof s&&n&&"object"==typeof n?e[o]=t(s,n,i):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var s=n[o];return r.call(e,o)?e[o]=t(e[o],s,i):e[o]=s,e}),a)}}},"0k4l":function(t,e,n){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))return new this.constructor(this.items.map(t));var n={};return Object.keys(this.items).forEach((function(r){n[r]=t(e.items[r],r)})),new this.constructor(n)}},"0on8":function(t,e,n){"use strict";var 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};t.exports=function(){return"object"!==r(this.items)||Array.isArray(this.items)?JSON.stringify(this.toArray()):JSON.stringify(this.all())}},"0qqO":function(t,e,n){"use strict";t.exports=function(t){return this.each((function(e,n){t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0?n("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),n("button",{staticClass:"info ml-2",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.onOpenClicked(e))}}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")])])]),t._v(" "),n("div",{staticClass:"body"},[t._l(t.documents,(function(t){return n("img",{key:t.id,staticClass:"favicon inline mr-1 mb-1",attrs:{title:t.title,src:t.favicon}})})),t._v(" "),n("div",{staticClass:"mt-6"},[n("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},"2YvH":function(t,e,n){"use strict";var r=n("SIfw"),o=r.isArray,i=r.isObject;t.exports=function(t){var e=t||1/0,n=!1,r=[],s=function(t){r=[],o(t)?t.forEach((function(t){o(t)?r=r.concat(t):i(t)?Object.keys(t).forEach((function(e){r=r.concat(t[e])})):r.push(t)})):Object.keys(t).forEach((function(e){o(t[e])?r=r.concat(t[e]):i(t[e])?Object.keys(t[e]).forEach((function(n){r=r.concat(t[e][n])})):r.push(t[e])})),n=0===(n=r.filter((function(t){return i(t)}))).length,e-=1};for(s(this.items);!n&&e>0;)s(r);return new this.constructor(r)}},"3wPk":function(t,e,n){"use strict";t.exports=function(t){return this.map((function(e,n){return t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0?t:0,t+"rem"},isDraggable:function(){return!this.folder.deleted_at&&"folder"===this.folder.type},canDrop:function(){return!this.folder.deleted_at&&("folder"===this.folder.type||"root"===this.folder.type)},branchIsExpanded:function(){var t=this.folder.parent_id;if(!t||!this.folders)return!0;for(;null!=t;){var e=this.folders.find((function(e){return e.id===t}));if(e&&!e.is_expanded)return!1;t=e.parent_id}return!0},expanderIcon:function(){return this.folder.is_expanded?"expanded":"collapsed"}}),methods:i(i({},Object(r.b)({startDraggingFolder:"folders/startDraggingFolder",stopDraggingFolder:"folders/stopDraggingFolder",dropIntoFolder:"folders/dropIntoFolder",toggleExpanded:"folders/toggleExpanded"})),{},{onDragStart:function(t){this.startDraggingFolder(this.folder)},onDragEnd:function(){this.stopDraggingFolder(),this.is_dragged_over=!1},onDrop:function(){this.is_dragged_over=!1,this.$emit("item-dropped",this.folder)},onDragLeave:function(){this.is_dragged_over=!1},onDragOver:function(t){this.is_dragged_over=!0,this.canDrop?(t.preventDefault(),this.cannot_drop=!1):this.cannot_drop=!0},onClick:function(){switch(this.folder.type){case"account":window.location.href=route("account");break;case"logout":document.getElementById("logout-form").submit();break;default:this.$emit("selected-folder-changed",this.folder)}}})},c=n("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.branchIsExpanded?n("button",{staticClass:"list-item",class:{selected:t.folder.is_selected,"dragged-over":t.is_dragged_over,"cannot-drop":t.cannot_drop,deleted:t.folder.deleted_at},attrs:{draggable:t.isDraggable},on:{click:function(e){return e.preventDefault(),t.onClick(e)},dragstart:t.onDragStart,dragend:t.onDragEnd,drop:t.onDrop,dragleave:t.onDragLeave,dragover:t.onDragOver}},[n("div",{staticClass:"list-item-label",style:{"padding-left":t.indent}},["folder"===t.folder.type?n("span",{staticClass:"caret"},["folder"===t.folder.type&&t.folder.children_count>0?n("svg",{attrs:{fill:"currentColor",width:"16",height:"16"},on:{"!click":function(e){return e.stopPropagation(),t.toggleExpanded(t.folder)}}},[n("use",{attrs:{"xlink:href":t.icon(t.expanderIcon)}})]):t._e()]):t._e(),t._v(" "),n("svg",{staticClass:"favicon",class:t.folder.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon(t.folder.icon)}})]),t._v(" "),n("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.folder.title))])]),t._v(" "),t.folder.feed_item_states_count>0?n("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]):t._e()}),[],!1,null,null,null);e.default=u.exports},"4s1B":function(t,e,n){"use strict";t.exports=function(){var t=[].concat(this.items).reverse();return new this.constructor(t)}},"5Cq2":function(t,e,n){"use strict";var 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};t.exports=function(t){var e=function t(e,n){var o={};return Object.keys(Object.assign({},e,n)).forEach((function(i){void 0===e[i]&&void 0!==n[i]?o[i]=n[i]:void 0!==e[i]&&void 0===n[i]?o[i]=e[i]:void 0!==e[i]&&void 0!==n[i]&&(e[i]===n[i]?o[i]=e[i]:Array.isArray(e[i])||"object"!==r(e[i])||Array.isArray(n[i])||"object"!==r(n[i])?o[i]=[].concat(e[i],n[i]):o[i]=t(e[i],n[i]))})),o};return t?"Collection"===t.constructor.name?new this.constructor(e(this.items,t.all())):new this.constructor(e(this.items,t)):this}},"6y7s":function(t,e,n){"use strict";t.exports=function(){var t;return(t=this.items).push.apply(t,arguments),this}},"7zD/":function(t,e,n){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))this.items=this.items.map(t);else{var n={};Object.keys(this.items).forEach((function(r){n[r]=t(e.items[r],r)})),this.items=n}return this}},"8oxB":function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!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:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var t=a(d);l=!0;for(var e=u.length;e;){for(c=u,u=[];++f1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==this.items[t]?this.items[t]:r(e)?e():null!==e?e:null}},Aoxg:function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=t.items.length}}}}},DAEf:function(t,e){},DMgR:function(t,e,n){"use strict";var r=n("SIfw").isFunction;t.exports=function(t,e){var n=this.items[t]||null;return n||void 0===e||(n=r(e)?e():e),delete this.items[t],n}},Dv6Q:function(t,e,n){"use strict";t.exports=function(t,e){for(var n=1;n<=t;n+=1)this.items.push(e(n));return this}},"EBS+":function(t,e,n){"use strict";t.exports=function(t){if(!t)return this;if(Array.isArray(t)){var e=this.items.map((function(e,n){return t[n]||e}));return new this.constructor(e)}if("Collection"===t.constructor.name){var n=Object.assign({},this.items,t.all());return new this.constructor(n)}var r=Object.assign({},this.items,t);return new this.constructor(r)}},ET5h:function(t,e,n){"use strict";t.exports=function(t,e){return void 0!==e?this.put(e,t):(this.items.unshift(t),this)}},ErmX:function(t,e,n){"use strict";var r=n("Aoxg"),o=n("SIfw").isFunction;t.exports=function(t){var e=r(this.items),n=0;if(void 0===t)for(var i=0,s=e.length;i0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"!==",null)}},HZ3i:function(t,e,n){"use strict";t.exports=function(){function t(e,n,r){var o=r[0];o instanceof n&&(o=o.all());for(var i=r.slice(1),s=!i.length,a=[],c=0;c=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function w(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var k=/-(\w)/g,O=w((function(t){return t.replace(k,(function(t,e){return e?e.toUpperCase():""}))})),x=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,C=w((function(t){return t.replace(S,"-$1").toLowerCase()})),j=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 A(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function P(t,e){for(var n in e)t[n]=e[n];return t}function T(t){for(var e={},n=0;n0,Q=W&&W.indexOf("edge/")>0,Y=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===G),tt=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/)),et={}.watch,nt=!1;if(K)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,rt)}catch(r){}var ot=function(){return void 0===q&&(q=!K&&!J&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),q},it=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,ct="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);at="undefined"!=typeof Set&&st(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 ut=E,lt=0,ft=function(){this.id=lt++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){g(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-1)if(i&&!_(o,"default"))s=!1;else if(""===s||s===C(t)){var c=Ut(String,o.type);(c<0||a0&&(le((c=t(c,(n||"")+"_"+r))[0])&&le(l)&&(f[u]=gt(l.text+c[0].text),c.shift()),f.push.apply(f,c)):a(c)?le(l)?f[u]=gt(l.text+c):""!==c&&f.push(gt(c)):le(c)&&le(l)?f[u]=gt(l.text+c.text):(s(e._isVList)&&i(c.tag)&&o(c.key)&&i(n)&&(c.key="__vlist"+n+"_"+r+"__"),f.push(c)));return f}(t):void 0}function le(t){return i(t)&&i(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var n=Object.create(null),r=ct?Reflect.ownKeys(t):Object.keys(t),o=0;o0,s=t?!!t.$stable:!i,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&n&&n!==r&&a===n.$key&&!i&&!n.$hasNormal)return n;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=me(e,c,t[c]))}else o={};for(var u in e)u in o||(o[u]=ve(e,u));return t&&Object.isExtensible(t)&&(t._normalized=o),B(o,"$stable",s),B(o,"$key",a),B(o,"$hasNormal",i),o}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]:ue(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 ye(t,e){var n,r,o,s,a;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,o=t.length;rdocument.createEvent("Event").timeStamp&&(cn=function(){return un.now()})}function ln(){var t,e;for(an=cn(),on=!0,tn.sort((function(t,e){return t.id-e.id})),sn=0;snsn&&tn[n].id>t.id;)n--;tn.splice(n+1,0,t)}else tn.push(t);rn||(rn=!0,ee(ln))}}(this)},dn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Bt(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||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:E,set:E};function hn(t,e,n){pn.get=function(){return this[e][n]},pn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,pn)}var mn={lazy:!0};function vn(t,e,n){var r=!ot();"function"==typeof n?(pn.get=r?yn(e):gn(n),pn.set=E):(pn.get=n.get?r&&!1!==n.cache?yn(e):gn(n.get):E,pn.set=n.set||E),Object.defineProperty(t,e,pn)}function yn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function gn(t){return function(){return t.call(this,this)}}function bn(t,e,n,r){return l(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var _n=0;function wn(t){var e=t.options;if(t.super){var n=wn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var o in n)n[o]!==r[o]&&(e||(e={}),e[o]=n[o]);return e}(t);r&&P(t.extendOptions,r),(e=t.options=Lt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function kn(t){this._init(t)}function On(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]"===u.call(n)&&t.test(e));var n}function Sn(t,e){var n=t.cache,r=t.keys,o=t._vnode;for(var i in n){var s=n[i];if(s){var a=On(s.componentOptions);a&&!e(a)&&Cn(n,i,r,o)}}}function Cn(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,g(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=_n++,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 o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Lt(wn(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&&Ge(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,o=n&&n.context;t.$slots=de(e._renderChildren,o),t.$scopedSlots=r,t._c=function(e,n,r,o){return Me(t,e,n,r,o,!1)},t.$createElement=function(e,n,r,o){return Me(t,e,n,r,o,!0)};var i=n&&n.data;jt(t,"$attrs",i&&i.attrs||r,null,!0),jt(t,"$listeners",e._parentListeners||r,null,!0)}(e),Ye(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(xt(!1),Object.keys(e).forEach((function(n){jt(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={},o=t.$options._propKeys=[];t.$parent&&xt(!1);var i=function(i){o.push(i);var s=Rt(i,e,n,t);jt(r,i,s),i in t||hn(t,"_props",i)};for(var s in e)i(s);xt(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?E:j(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;l(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return Bt(t,e,"data()"),{}}finally{ht()}}(e,t):e||{})||(e={});for(var n,r=Object.keys(e),o=t.$options.props,i=(t.$options.methods,r.length);i--;){var s=r[i];o&&_(o,s)||(void 0,36!==(n=(s+"").charCodeAt(0))&&95!==n&&hn(t,"_data",s))}Ct(e,!0)}(t):Ct(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=ot();for(var o in e){var i=e[o],s="function"==typeof i?i:i.get;r||(n[o]=new dn(t,s||E,E,mn)),o in t||vn(t,o,i)}}(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 o=0;o1?A(e):e;for(var n=A(arguments,1),r='event handler for "'+t+'"',o=0,i=e.length;oparseInt(this.max)&&Cn(s,a[0],a,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:P,mergeOptions:Lt,defineReactive:jt},t.set=At,t.delete=Pt,t.nextTick=ee,t.observable=function(t){return Ct(t),t},t.options=Object.create(null),R.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,An),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(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=Lt(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,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=t.name||n.options.name,s=function(t){this._init(t)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=e++,s.options=Lt(n.options,t),s.super=n,s.options.props&&function(t){var e=t.options.props;for(var n in e)hn(t.prototype,"_props",n)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var n in e)vn(t.prototype,n,e[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,R.forEach((function(t){s[t]=n[t]})),i&&(s.options.components[i]=s),s.superOptions=n.options,s.extendOptions=t,s.sealedOptions=P({},s.options),o[r]=s,s}}(t),function(t){R.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&l(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:ot}),Object.defineProperty(kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kn,"FunctionalRenderContext",{value:De}),kn.version="2.6.12";var Pn=m("style,class"),Tn=m("input,textarea,option,select,progress"),En=function(t,e,n){return"value"===n&&Tn(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Dn=m("contenteditable,draggable,spellcheck"),In=m("events,caret,typing,plaintext-only"),$n=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"),Fn="http://www.w3.org/1999/xlink",Ln=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Nn=function(t){return Ln(t)?t.slice(6,t.length):""},Rn=function(t){return null==t||!1===t};function Mn(t,e){return{staticClass:Hn(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Hn(t,e){return t?e?t+" "+e:t:e||""}function Un(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,o=t.length;r-1?dr(t,e,n):$n(e)?Rn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Dn(e)?t.setAttribute(e,function(t,e){return Rn(e)||"false"===e?"false":"contenteditable"===t&&In(e)?e:"true"}(e,n)):Ln(e)?Rn(n)?t.removeAttributeNS(Fn,Nn(e)):t.setAttributeNS(Fn,e,n):dr(t,e,n)}function dr(t,e,n){if(Rn(n))t.removeAttribute(e);else{if(X&&!Z&&"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 pr={create:lr,update:lr};function hr(t,e){var n=e.elm,r=e.data,s=t.data;if(!(o(r.staticClass)&&o(r.class)&&(o(s)||o(s.staticClass)&&o(s.class)))){var a=function(t){for(var e=t.data,n=t,r=t;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Mn(r.data,e));for(;i(n=n.parent);)n&&n.data&&(e=Mn(e,n.data));return function(t,e){return i(t)||i(e)?Hn(t,Un(e)):""}(e.staticClass,e.class)}(e),c=n._transitionClasses;i(c)&&(a=Hn(a,Un(c))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var mr,vr,yr,gr,br,_r,wr={create:hr,update:hr},kr=/[\w).+\-_$\]]/;function Or(t){var e,n,r,o,i,s=!1,a=!1,c=!1,u=!1,l=0,f=0,d=0,p=0;for(r=0;r=0&&" "===(m=t.charAt(h));h--);m&&kr.test(m)||(u=!0)}}else void 0===o?(p=r+1,o=t.slice(0,r).trim()):v();function v(){(i||(i=[])).push(t.slice(p,r).trim()),p=r+1}if(void 0===o?o=t.slice(0,r).trim():0!==p&&v(),i)for(r=0;r-1?{exp:t.slice(0,gr),key:'"'+t.slice(gr+1)+'"'}:{exp:t,key:null};for(vr=t,gr=br=_r=0;!Hr();)Ur(yr=Mr())?qr(yr):91===yr&&Br(yr);return{exp:t.slice(0,br),key:t.slice(br+1,_r)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Mr(){return vr.charCodeAt(++gr)}function Hr(){return gr>=mr}function Ur(t){return 34===t||39===t}function Br(t){var e=1;for(br=gr;!Hr();)if(Ur(t=Mr()))qr(t);else if(91===t&&e++,93===t&&e--,0===e){_r=gr;break}}function qr(t){for(var e=t;!Hr()&&(t=Mr())!==e;);}var zr,Vr="__r";function Kr(t,e,n){var r=zr;return function o(){null!==e.apply(null,arguments)&&Wr(t,o,n,r)}}var Jr=Jt&&!(tt&&Number(tt[1])<=53);function Gr(t,e,n,r){if(Jr){var o=an,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}zr.addEventListener(t,e,nt?{capture:n,passive:r}:n)}function Wr(t,e,n,r){(r||zr).removeEventListener(t,e._wrapper||e,n)}function Xr(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},r=t.data.on||{};zr=e.elm,function(t){if(i(t.__r)){var e=X?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}i(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),se(n,r,Gr,Wr,Kr,e.context),zr=void 0}}var Zr,Qr={create:Xr,update:Xr};function Yr(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,r,s=e.elm,a=t.data.domProps||{},c=e.data.domProps||{};for(n in i(c.__ob__)&&(c=e.data.domProps=P({},c)),a)n in c||(s[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=r;var u=o(r)?"":String(r);to(s,u)&&(s.value=u)}else if("innerHTML"===n&&zn(s.tagName)&&o(s.innerHTML)){(Zr=Zr||document.createElement("div")).innerHTML=""+r+"";for(var l=Zr.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;l.firstChild;)s.appendChild(l.firstChild)}else if(r!==a[n])try{s[n]=r}catch(t){}}}}function to(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(i(r)){if(r.number)return h(n)!==h(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var eo={create:Yr,update:Yr},no=w((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 ro(t){var e=oo(t.style);return t.staticStyle?P(t.staticStyle,e):e}function oo(t){return Array.isArray(t)?T(t):"string"==typeof t?no(t):t}var io,so=/^--/,ao=/\s*!important$/,co=function(t,e,n){if(so.test(e))t.style.setProperty(e,n);else if(ao.test(n))t.style.setProperty(C(e),n.replace(ao,""),"important");else{var r=lo(e);if(Array.isArray(n))for(var o=0,i=n.length;o-1?e.split(ho).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 vo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(ho).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 yo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&P(e,go(t.name||"v")),P(e,t),e}return"string"==typeof t?go(t):void 0}}var go=w((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"}})),bo=K&&!Z,_o="transition",wo="animation",ko="transition",Oo="transitionend",xo="animation",So="animationend";bo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ko="WebkitTransition",Oo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(xo="WebkitAnimation",So="webkitAnimationEnd"));var Co=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function jo(t){Co((function(){Co(t)}))}function Ao(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),mo(t,e))}function Po(t,e){t._transitionClasses&&g(t._transitionClasses,e),vo(t,e)}function To(t,e,n){var r=Do(t,e),o=r.type,i=r.timeout,s=r.propCount;if(!o)return n();var a=o===_o?Oo:So,c=0,u=function(){t.removeEventListener(a,l),n()},l=function(e){e.target===t&&++c>=s&&u()};setTimeout((function(){c0&&(n=_o,l=s,f=i.length):e===wo?u>0&&(n=wo,l=u,f=c.length):f=(n=(l=Math.max(s,u))>0?s>u?_o:wo:null)?n===_o?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===_o&&Eo.test(r[ko+"Property"])}}function Io(t,e){for(;t.length1}function Mo(t,e){!0!==e.data.show&&Fo(e)}var Ho=function(t){var e,n,r={},c=t.modules,u=t.nodeOps;for(e=0;eh?b(t,o(n[y+1])?null:n[y+1].elm,n,p,y,r):p>y&&w(e,d,h)}(d,m,y,n,l):i(y)?(i(t.text)&&u.setTextContent(d,""),b(d,null,y,0,y.length-1,n)):i(m)?w(m,0,m.length-1):i(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),i(h)&&i(p=h.hook)&&i(p=p.postpatch)&&p(t,e)}}}function S(t,e,n){if(s(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,s.selected!==i&&(s.selected=i);else if($(Vo(s),r))return void(t.selectedIndex!==a&&(t.selectedIndex=a));o||(t.selectedIndex=-1)}}function zo(t,e){return e.every((function(e){return!$(e,t)}))}function Vo(t){return"_value"in t?t._value:t.value}function Ko(t){t.target.composing=!0}function Jo(t){t.target.composing&&(t.target.composing=!1,Go(t.target,"input"))}function Go(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Wo(t){return!t.componentInstance||t.data&&t.data.transition?t:Wo(t.componentInstance._vnode)}var Xo={model:Uo,show:{bind:function(t,e,n){var r=e.value,o=(n=Wo(n)).data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,Fo(n,(function(){t.style.display=i}))):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Wo(n)).data&&n.data.transition?(n.data.show=!0,r?Fo(n,(function(){t.style.display=t.__vOriginalDisplay})):Lo(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}}},Zo={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 Qo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Qo(ze(e.children)):t}function Yo(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var i in o)e[O(i)]=o[i];return e}function ti(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var ei=function(t){return t.tag||qe(t)},ni=function(t){return"show"===t.name},ri={name:"transition",props:Zo,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(ei)).length){var r=this.mode,o=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=Qo(o);if(!i)return o;if(this._leaving)return ti(t,o);var s="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?s+"comment":s+i.tag:a(i.key)?0===String(i.key).indexOf(s)?i.key:s+i.key:i.key;var c=(i.data||(i.data={})).transition=Yo(this),u=this._vnode,l=Qo(u);if(i.data.directives&&i.data.directives.some(ni)&&(i.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(i,l)&&!qe(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=P({},c);if("out-in"===r)return this._leaving=!0,ae(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ti(t,o);if("in-out"===r){if(qe(i))return u;var d,p=function(){d()};ae(c,"afterEnter",p),ae(c,"enterCancelled",p),ae(f,"delayLeave",(function(t){d=t}))}}return o}}},oi=P({tag:String,moveClass:String},Zo);function ii(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function si(t){t.data.newPos=t.elm.getBoundingClientRect()}function ai(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}delete oi.mode;var ci={Transition:ri,TransitionGroup:{props:oi,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=Xe(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),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,o=this.$slots.default||[],i=this.children=[],s=Yo(this),a=0;a-1?Jn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Jn[t]=/HTMLUnknownElement/.test(e.toString())},P(kn.options.directives,Xo),P(kn.options.components,ci),kn.prototype.__patch__=K?Ho:E,kn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=yt),Ye(t,"beforeMount"),r=function(){t._update(t._render(),n)},new dn(t,r,E,{before:function(){t._isMounted&&!t._isDestroyed&&Ye(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Ye(t,"mounted")),t}(this,t=t&&K?Wn(t):void 0,e)},K&&setTimeout((function(){H.devtools&&it&&it.emit("init",kn)}),0);var ui,li=/\{\{((?:.|\r?\n)+?)\}\}/g,fi=/[-.*+?^${}()|[\]\/\\]/g,di=w((function(t){var e=t[0].replace(fi,"\\$&"),n=t[1].replace(fi,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")})),pi={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=$r(t,"class");n&&(t.staticClass=JSON.stringify(n));var r=Ir(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}},hi={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=$r(t,"style");n&&(t.staticStyle=JSON.stringify(no(n)));var r=Ir(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}},mi=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),vi=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),yi=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"),gi=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,bi=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,_i="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",wi="((?:"+_i+"\\:)?"+_i+")",ki=new RegExp("^<"+wi),Oi=/^\s*(\/?)>/,xi=new RegExp("^<\\/"+wi+"[^>]*>"),Si=/^]+>/i,Ci=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Ei=/&(?:lt|gt|quot|amp|#39);/g,Di=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ii=m("pre,textarea",!0),$i=function(t,e){return t&&Ii(t)&&"\n"===e[0]};function Fi(t,e){var n=e?Di:Ei;return t.replace(n,(function(t){return Ti[t]}))}var Li,Ni,Ri,Mi,Hi,Ui,Bi,qi,zi=/^@|^v-on:/,Vi=/^v-|^@|^:|^#/,Ki=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ji=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Gi=/^\(|\)$/g,Wi=/^\[.*\]$/,Xi=/:(.*)$/,Zi=/^:|^\.|^v-bind:/,Qi=/\.[^.\]]+(?=[^\]]*$)/g,Yi=/^v-slot(:|$)|^#/,ts=/[\r\n]/,es=/\s+/g,ns=w((function(t){return(ui=ui||document.createElement("div")).innerHTML=t,ui.textContent})),rs="_empty_";function os(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:ls(e),rawAttrsMap:{},parent:n,children:[]}}function is(t,e){var n,r;(r=Ir(n=t,"key"))&&(n.key=r),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Ir(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=$r(t,"scope"),t.slotScope=e||$r(t,"slot-scope")):(e=$r(t,"slot-scope"))&&(t.slotScope=e);var n=Ir(t,"slot");if(n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Ar(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=Fr(t,Yi);if(r){var o=cs(r),i=o.name,s=o.dynamic;t.slotTarget=i,t.slotTargetDynamic=s,t.slotScope=r.value||rs}}else{var a=Fr(t,Yi);if(a){var c=t.scopedSlots||(t.scopedSlots={}),u=cs(a),l=u.name,f=u.dynamic,d=c[l]=os("template",[],t);d.slotTarget=l,d.slotTargetDynamic=f,d.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=d,!0})),d.slotScope=a.value||rs,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Ir(t,"name"))}(t),function(t){var e;(e=Ir(t,"is"))&&(t.component=e),null!=$r(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var o=0;o-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),Dr(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+s+");if(Array.isArray($$a)){var $$v="+(r?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Rr(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Rr(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Rr(e,"$$c")+"}",null,!0)}(t,r,o);else if("input"===i&&"radio"===s)!function(t,e,n){var r=n&&n.number,o=Ir(t,"value")||"null";jr(t,"checked","_q("+e+","+(o=r?"_n("+o+")":o)+")"),Dr(t,"change",Rr(e,o),null,!0)}(t,r,o);else if("input"===i||"textarea"===i)!function(t,e,n){var r=t.attrsMap.type,o=n||{},i=o.lazy,s=o.number,a=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?Vr:"input",l="$event.target.value";a&&(l="$event.target.value.trim()"),s&&(l="_n("+l+")");var f=Rr(e,l);c&&(f="if($event.target.composing)return;"+f),jr(t,"value","("+e+")"),Dr(t,u,f,null,!0),(a||s)&&Dr(t,"blur","$forceUpdate()")}(t,r,o);else if(!H.isReservedTag(i))return Nr(t,r,o),!1;return!0},text:function(t,e){e.value&&jr(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&jr(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:mi,mustUseProp:En,canBeLeftOpenTag:vi,isReservedTag:Vn,getTagNamespace:Kn,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(vs)},gs=w((function(t){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var bs=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,_s=/\([^)]*?\);*$/,ws=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ks={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Os={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"]},xs=function(t){return"if("+t+")return null;"},Ss={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:xs("$event.target !== $event.currentTarget"),ctrl:xs("!$event.ctrlKey"),shift:xs("!$event.shiftKey"),alt:xs("!$event.altKey"),meta:xs("!$event.metaKey"),left:xs("'button' in $event && $event.button !== 0"),middle:xs("'button' in $event && $event.button !== 1"),right:xs("'button' in $event && $event.button !== 2")};function Cs(t,e){var n=e?"nativeOn:":"on:",r="",o="";for(var i in t){var s=js(t[i]);t[i]&&t[i].dynamic?o+=i+","+s+",":r+='"'+i+'":'+s+","}return r="{"+r.slice(0,-1)+"}",o?n+"_d("+r+",["+o.slice(0,-1)+"])":n+r}function js(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return js(t)})).join(",")+"]";var e=ws.test(t.value),n=bs.test(t.value),r=ws.test(t.value.replace(_s,""));if(t.modifiers){var o="",i="",s=[];for(var a in t.modifiers)if(Ss[a])i+=Ss[a],ks[a]&&s.push(a);else if("exact"===a){var c=t.modifiers;i+=xs(["ctrl","shift","alt","meta"].filter((function(t){return!c[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else s.push(a);return s.length&&(o+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(As).join("&&")+")return null;"}(s)),i&&(o+=i),"function($event){"+o+(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 As(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=ks[t],r=Os[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ps={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:E},Ts=function(t){this.options=t,this.warn=t.warn||Sr,this.transforms=Cr(t.modules,"transformCode"),this.dataGenFns=Cr(t.modules,"genData"),this.directives=P(P({},Ps),t.directives);var e=t.isReservedTag||D;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Es(t,e){var n=new Ts(e);return{render:"with(this){return "+(t?Ds(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ds(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Is(t,e);if(t.once&&!t.onceProcessed)return $s(t,e);if(t.for&&!t.forProcessed)return Ls(t,e);if(t.if&&!t.ifProcessed)return Fs(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=Hs(t,e),o="_t("+n+(r?","+r:""),i=t.attrs||t.dynamicAttrs?qs((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:O(t.name),value:t.value,dynamic:t.dynamic}}))):null,s=t.attrsMap["v-bind"];return!i&&!s||r||(o+=",null"),i&&(o+=","+i),s&&(o+=(i?"":",null")+","+s),o+")"}(t,e);var n;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:Hs(e,n,!0);return"_c("+t+","+Ns(e,n)+(r?","+r:"")+")"}(t.component,t,e);else{var r;(!t.plain||t.pre&&e.maybeComponent(t))&&(r=Ns(t,e));var o=t.inlineTemplate?null:Hs(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(o?","+o:"")+")"}for(var i=0;i>>0}(s):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var i=function(t,e){var n=t.children[0];if(n&&1===n.type){var r=Es(n,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);i&&(n+=i+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+qs(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Rs(t){return 1===t.type&&("slot"===t.tag||t.children.some(Rs))}function Ms(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Fs(t,e,Ms,"null");if(t.for&&!t.forProcessed)return Ls(t,e,Ms);var r=t.slotScope===rs?"":String(t.slotScope),o="function("+r+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(Hs(t,e)||"undefined")+":undefined":Hs(t,e)||"undefined":Ds(t,e))+"}",i=r?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+o+i+"}"}function Hs(t,e,n,r,o){var i=t.children;if(i.length){var s=i[0];if(1===i.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var a=n?e.maybeComponent(s)?",1":",0":"";return""+(r||Ds)(s,e)+a}var c=n?function(t,e){for(var n=0,r=0;r]*>)","i")),d=t.replace(f,(function(t,n,r){return u=r.length,Ai(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),$i(l,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));c+=t.length-d.length,t=d,C(l,c-u,c)}else{var p=t.indexOf("<");if(0===p){if(Ci.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h),c,c+h+3),O(h+3);continue}}if(ji.test(t)){var m=t.indexOf("]>");if(m>=0){O(m+2);continue}}var v=t.match(Si);if(v){O(v[0].length);continue}var y=t.match(xi);if(y){var g=c;O(y[0].length),C(y[1],g,c);continue}var b=x();if(b){S(b),$i(b.tagName,t)&&O(1);continue}}var _=void 0,w=void 0,k=void 0;if(p>=0){for(w=t.slice(p);!(xi.test(w)||ki.test(w)||Ci.test(w)||ji.test(w)||(k=w.indexOf("<",1))<0);)p+=k,w=t.slice(p);_=t.substring(0,p)}p<0&&(_=t),_&&O(_.length),e.chars&&_&&e.chars(_,c-_.length,c)}if(t===n){e.chars&&e.chars(t);break}}function O(e){c+=e,t=t.substring(e)}function x(){var e=t.match(ki);if(e){var n,r,o={tagName:e[1],attrs:[],start:c};for(O(e[0].length);!(n=t.match(Oi))&&(r=t.match(bi)||t.match(gi));)r.start=c,O(r[0].length),r.end=c,o.attrs.push(r);if(n)return o.unarySlash=n[1],O(n[0].length),o.end=c,o}}function S(t){var n=t.tagName,c=t.unarySlash;i&&("p"===r&&yi(n)&&C(r),a(n)&&r===n&&C(n));for(var u=s(n)||!!c,l=t.attrs.length,f=new Array(l),d=0;d=0&&o[s].lowerCasedTag!==a;s--);else s=0;if(s>=0){for(var u=o.length-1;u>=s;u--)e.end&&e.end(o[u].tag,n,i);o.length=s,r=s&&o[s-1].tag}else"br"===a?e.start&&e.start(t,[],!0,n,i):"p"===a&&(e.start&&e.start(t,[],!1,n,i),e.end&&e.end(t,n,i))}C()}(t,{warn:Li,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,i,s,l,f){var d=r&&r.ns||qi(t);X&&"svg"===d&&(i=function(t){for(var e=[],n=0;nc&&(a.push(i=t.slice(c,o)),s.push(JSON.stringify(i)));var u=Or(r[1].trim());s.push("_s("+u+")"),a.push({"@binding":u}),c=o+r[0].length}return c':'
',Gs.innerHTML.indexOf(" ")>0}var Qs=!!K&&Zs(!1),Ys=!!K&&Zs(!0),ta=w((function(t){var e=Wn(t);return e&&e.innerHTML})),ea=kn.prototype.$mount;kn.prototype.$mount=function(t,e){if((t=t&&Wn(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=ta(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 o=Xs(r,{outputSourceRange:!1,shouldDecodeNewlines:Qs,shouldDecodeNewlinesForHref:Ys,delimiters:n.delimiters,comments:n.comments},this),i=o.render,s=o.staticRenderFns;n.render=i,n.staticRenderFns=s}}return ea.call(this,t,e)},kn.compile=Xs,t.exports=kn}).call(this,n("yLpj"),n("URgk").setImmediate)},IfUw:function(t,e,n){"use strict";n.r(e);var r=n("L2JU");function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(t=this.selectedDocuments),this.startDraggingDocuments(t)},onDragEnd:function(){this.stopDraggingDocuments()}})},l=n("KHd+"),f=Object(l.a)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"list-item",class:{selected:t.is_selected},attrs:{draggable:!0,href:t.url,rel:"noopener noreferrer"},on:{click:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?null:e.metaKey?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey?null:(e.stopPropagation(),e.preventDefault(),t.onAddToSelection(e)):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),e.preventDefault(),t.onClicked(e))}],mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})},dblclick:function(e){return t.openDocument({document:t.document,folder:t.selectedFolder})},dragstart:t.onDragStart,dragend:t.onDragEnd}},[n("div",{staticClass:"list-item-label"},[n("img",{staticClass:"favicon",attrs:{src:t.document.favicon}}),t._v(" "),n("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.document.title))])]),t._v(" "),t.document.feed_item_states_count>0?n("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()])}),[],!1,null,null,null);e.default=f.exports},K93l:function(t,e,n){"use strict";t.exports=function(t){var e=!1;if(Array.isArray(this.items))for(var n=this.items.length,r=0;r-1&&e.splice(n,1)}}function h(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;v(t,n,[],t._modules.root,!0),m(t,n,e)}function m(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,s={};i(o,(function(e,n){s[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:s}),l.config.silent=a,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),l.nextTick((function(){return r.$destroy()})))}function v(t,e,n,r,o){var i=!n.length,s=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=r),!i&&!o){var a=y(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){l.set(a,c,r.state)}))}var u=r.context=function(t,e,n){var r=""===e,o={dispatch:r?t.dispatch:function(n,r,o){var i=g(n,r,o),s=i.payload,a=i.options,c=i.type;return a&&a.root||(c=e+c),t.dispatch(c,s)},commit:r?t.commit:function(n,r,o){var i=g(n,r,o),s=i.payload,a=i.options,c=i.type;a&&a.root||(c=e+c),t.commit(c,s,a)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return y(t.state,n)}}}),o}(t,s,n);r.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,s+n,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:s+n,o=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e){var o,i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,r,o,u)})),r.forEachGetter((function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,s+n,e,u)})),r.forEachChild((function(r,i){v(t,e,n.concat(i),r,o)}))}function y(t,e){return e.reduce((function(t,e){return t[e]}),t)}function g(t,e,n){return s(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function b(t){l&&t===l||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l=t)}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,n){var r=this,o=g(t,e,n),i=o.type,s=o.payload,a=(o.options,{type:i,payload:s}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(a,r.state)})))},f.prototype.dispatch=function(t,e){var n=this,r=g(t,e),o=r.type,i=r.payload,s={type:o,payload:i},a=this._actions[o];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,n.state)}))}catch(t){0}var c=a.length>1?Promise.all(a.map((function(t){return t(i)}))):a[0](i);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,n.state,t)}))}catch(t){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){return p("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),m(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=y(e.state,t.slice(0,-1));l.delete(n,t[t.length-1])})),h(this)},f.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype.hotUpdate=function(t){this._modules.update(t),h(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var _=S((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=C(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0})),n})),w=S((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=C(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),k=S((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||C(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0})),n})),O=S((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=C(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n}));function x(t){return function(t){return Array.isArray(t)||s(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function S(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function C(t,e,n){return t._modulesNamespaceMap[n]}function j(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(n){t.log(e)}}function A(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function P(){var t=new Date;return" @ "+T(t.getHours(),2)+":"+T(t.getMinutes(),2)+":"+T(t.getSeconds(),2)+"."+T(t.getMilliseconds(),3)}function T(t,e){return n="0",r=e-t.toString().length,new Array(r+1).join(n)+t;var n,r}var E={Store:f,install:b,version:"3.5.1",mapState:_,mapMutations:w,mapGetters:k,mapActions:O,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:k.bind(null,t),mapMutations:w.bind(null,t),mapActions:O.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var s=t.actionFilter;void 0===s&&(s=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=o(t.state);void 0!==l&&(c&&t.subscribe((function(t,s){var a=o(s);if(n(t,f,a)){var c=P(),u=i(t),d="mutation "+t.type+c;j(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),A(l)}f=a})),u&&t.subscribeAction((function(t,n){if(s(t,n)){var r=P(),o=a(t),i="action "+t.type+r;j(l,i,e),l.log("%c action","color: #03A9F4; font-weight: bold",o),A(l)}})))}}};e.a=E}).call(this,n("yLpj"))},Lcjm:function(t,e,n){"use strict";var r=n("Aoxg");t.exports=function(){var t=r(this.items),e=void 0,n=void 0,o=void 0;for(o=t.length;o;o-=1)e=Math.floor(Math.random()*o),n=t[o-1],t[o-1]=t[e],t[e]=n;return this.items=t,this}},LlWW:function(t,e,n){"use strict";t.exports=function(t){return this.sortBy(t).reverse()}},LpLF:function(t,e,n){"use strict";t.exports=function(t){var e=this,n=t;n instanceof this.constructor&&(n=n.all());var r=this.items.map((function(t,r){return new e.constructor([t,n[r]])}));return new this.constructor(r)}},Lzbe:function(t,e,n){"use strict";t.exports=function(t,e){var n=this.items.slice(t);return void 0!==e&&(n=n.slice(0,e)),new this.constructor(n)}},M1FP:function(t,e,n){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().forEach((function(n){e[n]=t.items[n]})),new this.constructor(e)}},MIHw:function(t,e,n){"use strict";t.exports=function(t,e){return this.where(t,">=",e[0]).where(t,"<=",e[e.length-1])}},MSmq:function(t,e,n){"use strict";t.exports=function(t){var e=this,n=t;t instanceof this.constructor&&(n=t.all());var r={};return Object.keys(this.items).forEach((function(t){void 0!==n[t]&&n[t]===e.items[t]||(r[t]=e.items[t])})),new this.constructor(r)}},NAvP:function(t,e,n){"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var n=Object.keys(e),r=Object.keys(this.items).filter((function(t){return-1===n.indexOf(t)}));return new this.constructor(this.items).only(r)}},OKMW:function(t,e,n){"use strict";t.exports=function(t,e,n){return this.where(t,e,n).first()||null}},Ob7M:function(t,e,n){"use strict";t.exports=function(t){return new this.constructor(this.items).filter((function(e){return!t(e)}))}},OxKB:function(t,e,n){"use strict";t.exports=function(t){return Array.isArray(t[0])?t[0]:t}},PcwB:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n0?g+y:""}},Qyje:function(t,e,n){"use strict";var r=n("QSc6"),o=n("nmq7"),i=n("sxOR");t.exports={formats:i,parse:o,stringify:r}},RB6r:function(t,e,n){"use strict";n.r(e);var r=n("L2JU");function o(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){for(var e=1;eo?1:0})),new this.constructor(e)}},RR3J:function(t,e,n){"use strict";t.exports=function(t){var e=t;t instanceof this.constructor&&(e=t.all());var n=this.items.filter((function(t){return-1!==e.indexOf(t)}));return new this.constructor(n)}},RVo9:function(t,e,n){"use strict";t.exports=function(t,e){if(Array.isArray(this.items)&&this.items.length)return t(this);if(Object.keys(this.items).length)return t(this);if(void 0!==e){if(Array.isArray(this.items)&&!this.items.length)return e(this);if(!Object.keys(this.items).length)return e(this)}return this}},RtnH:function(t,e,n){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().reverse().forEach((function(n){e[n]=t.items[n]})),new this.constructor(e)}},Rx9r:function(t,e,n){"use strict";var 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},o=n("ytFn");t.exports=function(t){var e=t;t instanceof this.constructor?e=t.all():"object"===(void 0===t?"undefined":r(t))&&(e=[],Object.keys(t).forEach((function(n){e.push(t[n])})));var n=o(this.items);return e.forEach((function(t){"object"===(void 0===t?"undefined":r(t))?Object.keys(t).forEach((function(e){return n.push(t[e])})):n.push(t)})),new this.constructor(n)}},SIfw:function(t,e,n){"use strict";var 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};t.exports={isArray:function(t){return Array.isArray(t)},isObject:function(t){return"object"===(void 0===t?"undefined":r(t))&&!1===Array.isArray(t)&&null!==t},isFunction:function(t){return"function"==typeof t}}},TWr4:function(t,e,n){"use strict";var r=n("SIfw"),o=r.isArray,i=r.isObject,s=r.isFunction;t.exports=function(t){var e=this,n=null,r=void 0,a=function(e){return e===t};return s(t)&&(a=t),o(this.items)&&(r=this.items.filter((function(t){return!0!==n&&(n=!a(t)),n}))),i(this.items)&&(r=Object.keys(this.items).reduce((function(t,r){return!0!==n&&(n=!a(e.items[r])),!1!==n&&(t[r]=e.items[r]),t}),{})),new this.constructor(r)}},TZAN:function(t,e,n){"use strict";var r=n("Aoxg"),o=n("0tQ4");t.exports=function(t,e){var n=r(e),i=this.items.filter((function(e){return-1!==n.indexOf(o(e,t))}));return new this.constructor(i)}},"UH+N":function(t,e,n){"use strict";t.exports=function(t){var e=this,n=JSON.parse(JSON.stringify(this.items));return Object.keys(t).forEach((function(r){void 0===e.items[r]&&(n[r]=t[r])})),new this.constructor(n)}},URgk:function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.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("YBdB"),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("yLpj"))},UY0H:function(t,e,n){"use strict";var r=n("Aoxg");t.exports=function(){return new this.constructor(r(this.items))}},UgDP:function(t,e,n){"use strict";var r=n("Aoxg"),o=n("0tQ4");t.exports=function(t,e){var n=r(e),i=this.items.filter((function(e){return-1===n.indexOf(o(e,t))}));return new this.constructor(i)}},UnNl:function(t,e,n){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"===",null)}},Ww0C:function(t,e,n){"use strict";t.exports=function(){return this.sort().reverse()}},XuX8:function(t,e,n){t.exports=n("INkZ")},YBdB:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,s,a,c=1,u={},l=!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(){h(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?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&h(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(e){t.postMessage(s+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n",0).whereNotIn("id",e).first();i?r("selectDocuments",[i]):"unread_items"===o["folders/selectedFolder"].type&&r("selectDocuments",[])},startDraggingDocuments:function(t,e){(0,t.commit)("setDraggedDocuments",e)},stopDraggingDocuments:function(t){(0,t.commit)("setDraggedDocuments",[])},dropIntoFolder:function(t,e){return m(a.a.mark((function n(){var r,o,i,s,c,u;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.getters,o=t.commit,i=t.dispatch,s=e.sourceFolder,c=e.targetFolder,(u=r.draggedDocuments)&&0!==u.length){n.next=5;break}return n.abrupt("return");case 5:return n.next=7,api.post(route("document.move",{sourceFolder:s,targetFolder:c}),{documents:collect(u).pluck("id").all()});case 7:n.sent,o("setDraggedDocuments",[]),o("setSelectedDocuments",[]),i("feedItems/index",r.feeds,{root:!0});case 11:case"end":return n.stop()}}),n)})))()},incrementVisits:function(t,e){return m(a.a.mark((function n(){var r,o,i,s;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,o=e.document,i=e.folder,n.next=4,api.post(route("document.visit",{document:o,folder:i}));case 4:s=n.sent,r("update",{document:o,newProperties:s});case 6:case"end":return n.stop()}}),n)})))()},openDocument:function(t,e){var n=t.dispatch,r=e.document,o=e.folder;window.open(r.bookmark.initial_url),n("incrementVisits",{document:r,folder:o})},destroy:function(t,e){return m(a.a.mark((function n(){var r,o,i,s,c,u;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,o=t.getters,i=t.dispatch,s=e.folder,c=e.documents,r("setSelectedDocuments",[]),n.next=5,api.post(route("document.destroy_bookmarks",s),{documents:collect(c).pluck("id").all()});case 5:u=n.sent,i("folders/index",null,{root:!0}),i("index",u),i("feedItems/index",o.feeds,{root:!0});case 9:case"end":return n.stop()}}),n)})))()},update:function(t,e){var n=t.commit,r=t.getters,o=e.documentId,i=e.newProperties,s=r.documents.find((function(t){return t.id===o}));s&&n("update",{document:s,newProperties:i})},followFeed:function(t,e){var n=t.commit;api.post(route("feed.follow",e.id)),n("ignoreFeed",{feed:e,ignored:!1})},ignoreFeed:function(t,e){var n=t.commit;api.post(route("feed.ignore",e.id)),n("ignoreFeed",{feed:e,ignored:!0})}},mutations:{setDocuments:function(t,e){t.documents=e},setSelectedDocuments:function(t,e){t.selectedDocuments=e},setDraggedDocuments:function(t,e){t.draggedDocuments=e},update:function(t,e){var n=e.document,r=e.newProperties;for(var o in r)n[o]=r[o]},ignoreFeed:function(t,e){var n=e.feed,r=e.ignored;n.is_ignored=r}}},y={feedItems:function(t){return t.feedItems},feedItem:function(t){return collect(t.feedItems).first()},selectedFeedItems:function(t){return t.selectedFeedItems?t.selectedFeedItems:[]},selectedFeedItem:function(t){return collect(t.selectedFeedItems).first()},nextPage:function(t){return t.nextPage},feeds:function(t){return t.feeds},canLoadMore:function(t){return t.nextPage>1}},g=n("j5l6");function b(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(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 _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0)){n.next=10;break}return n.next=7,api.get(route("feed_item.index",{feeds:o}));case 7:c=n.sent,s=c.data,i=null!==c.next_page_url?c.current_page+1:0;case 10:r("setNextPage",i),r("setFeeds",o),r("setFeedItems",s);case 13:case"end":return n.stop()}}),n)})))()},loadMoreFeedItems:function(t){return k(a.a.mark((function e(){var n,r,o,i,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.getters,r=t.commit,n.nextPage&&n.feeds){e.next=3;break}return e.abrupt("return");case 3:return o=n.feedItems,e.next=6,api.get(route("feed_item.index",{page:n.nextPage,feeds:n.feeds}));case 6:i=e.sent,s=[].concat(b(o),b(i.data)),r("setNextPage",null!==i.next_page_url?i.current_page+1:0),r("setFeeds",n.feeds),r("setFeedItems",s);case 11:case"end":return e.stop()}}),e)})))()},selectFeedItems:function(t,e){return k(a.a.mark((function n(){var r,o;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,1!==e.length){n.next=6;break}return n.next=4,api.get(route("feed_item.show",e[0]));case 4:o=n.sent,r("update",{feedItem:e[0],newProperties:o});case 6:r("setSelectedFeedItems",e);case 7:case"end":return n.stop()}}),n)})))()},selectFirstUnreadFeedItem:function(t,e){var n=t.getters,r=t.dispatch;e||(e=[]);var o=Object(g.collect)(n.feedItems).where("feed_item_states_count",">",0).whereNotIn("id",e).first();o?r("selectFeedItems",[o]):(r("selectFeedItems",[]),r("documents/selectFirstDocumentWithUnreadItems",null,{root:!0}))},markAsRead:function(t,e){return k(a.a.mark((function n(){var r,o,i;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.dispatch,o=t.commit,"feed_items"in e?r("selectFirstUnreadFeedItem",e.feed_items):"documents"in e&&r("documents/selectFirstDocumentWithUnreadItems",e.documents,{root:!0}),n.next=4,api.post(route("feed_item.mark_as_read"),e);case 4:return i=n.sent,o("folders/setFolders",i,{root:!0}),n.next=8,r("documents/index",null,{root:!0});case 8:case"end":return n.stop()}}),n)})))()}},mutations:{setFeedItems:function(t,e){t.feedItems=e},setNextPage:function(t,e){t.nextPage=e},setFeeds:function(t,e){t.feeds=e},setSelectedFeedItems:function(t,e){e||(e=[]),t.selectedFeedItems=e},update:function(t,e){var n=e.feedItem,r=e.newProperties;for(var o in r)n[o]=r[o]}}};o.a.use(i.a);var x=new i.a.Store({modules:{folders:p,documents:v,feedItems:O},strict:!1});function S(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 C(t){for(var e=1;e0?1===t.length?this.detailsViewComponent="details-document":this.detailsViewComponent="details-documents":this.detailsViewComponent="details-folder"},selectedFeedItems:function(t){t&&t.length>0?1===t.length?this.detailsViewComponent="details-feed-item":this.detailsViewComponent=null:this.selectedDocuments&&this.selectedDocuments.length>0?this.detailsViewComponent="details-document":this.detailsViewComponent="details-folder"}},methods:C(C({},Object(i.b)({showFolder:"folders/show",indexFolders:"folders/index",selectDocuments:"documents/selectDocuments",indexDocuments:"documents/index",dropIntoFolder:"folders/dropIntoFolder",selectFeedItems:"feedItems/selectFeedItems",markFeedItemsAsRead:"feedItems/markAsRead",updateDocument:"documents/update",deleteDocuments:"documents/destroy"})),{},{listenToBroadcast:function(){var t=this,e=document.querySelector('meta[name="user-id"]').getAttribute("content");window.Echo.private("App.Models.User."+e).notification((function(e){switch(e.type){case"App\\Notifications\\UnreadItemsChanged":t.indexFolders().then((function(){t.indexDocuments()}));break;case"App\\Notifications\\DocumentUpdated":t.updateDocument({documentId:e.document.id,newProperties:e.document})}}))},onFoldersLoaded:function(){},onSelectedFolderChanged:function(t){this.showFolder(t),this.detailsViewComponent="details-folder"},onItemDropped:function(t){this.dropIntoFolder(t)},onSelectedDocumentsChanged:function(t){this.selectDocuments(t)},onDocumentAdded:function(){},onDocumentsDeleted:function(t){var e=t.folder,n=t.documents;this.deleteDocuments({documents:n,folder:e})},onSelectedFeedItemsChanged:function(t){this.selectFeedItems(t)},onFeedItemsRead:function(t){this.markFeedItemsAsRead(t)}})})},"c58/":function(t,e,n){"use strict";n.r(e);var r=n("o0o1"),o=n.n(r);function i(t,e,n,r,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var s=t.apply(e,n);function a(t){i(s,r,o,a,c,"next",t)}function c(t){i(s,r,o,a,c,"throw",t)}a(void 0)}))}}var a={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').getAttribute("content")},c={send:function(t,e){var n=arguments;return s(o.a.mark((function r(){var i,s,c,u,l,f;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=n.length>2&&void 0!==n[2]?n[2]:"POST",s=n.length>3&&void 0!==n[3]&&n[3],c=a,s&&(c["Content-Type"]="multipart/form-data"),u={method:i,headers:c},e&&(u.body=s?e:JSON.stringify(e)),r.next=8,fetch(t,u);case 8:return l=r.sent,r.prev=9,r.next=12,l.json();case 12:return f=r.sent,r.abrupt("return",f);case 16:return r.prev=16,r.t0=r.catch(9),r.abrupt("return",l);case 19:case"end":return r.stop()}}),r,null,[[9,16]])})))()},get:function(t){var e=this;return s(o.a.mark((function n(){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",e.send(t,null,"GET"));case 1:case"end":return n.stop()}}),n)})))()},post:function(t,e){var n=arguments,r=this;return s(o.a.mark((function i(){var s;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=n.length>2&&void 0!==n[2]&&n[2],o.abrupt("return",r.send(t,e,"POST",s));case 2:case"end":return o.stop()}}),i)})))()},put:function(t,e){var n=this;return s(o.a.mark((function r(){return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",n.send(t,e,"PUT"));case 1:case"end":return r.stop()}}),r)})))()},delete:function(t,e){var n=this;return s(o.a.mark((function r(){return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",n.send(t,e,"DELETE"));case 1:case"end":return r.stop()}}),r)})))()}};window.Vue=n("XuX8"),window.collect=n("j5l6"),window.api=c,n("zhh1")},c993:function(t,e,n){"use strict";n.r(e);var r=n("L2JU");function o(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){for(var e=1;e0?n("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),n("a",{staticClass:"button info ml-2",attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),n("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),n("div",{staticClass:"body"},[n("div",{domProps:{innerHTML:t._s(t.feedItem.content?t.feedItem.content:t.feedItem.description)}}),t._v(" "),n("dl",[n("dt",[t._v(t._s(t.__("URL")))]),t._v(" "),n("dd",[n("a",{attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[t._v(t._s(t.feedItem.url))])]),t._v(" "),n("dt",[t._v(t._s(t.__("Date of item's creation")))]),t._v(" "),n("dd",[n("date-time",{attrs:{datetime:t.feedItem.created_at,calendar:!0}})],1),t._v(" "),n("dt",[t._v(t._s(t.__("Date of item's publication")))]),t._v(" "),n("dd",[n("date-time",{attrs:{datetime:t.feedItem.published_at,calendar:!0}})],1),t._v(" "),n("dt",[t._v(t._s(t.__("Published in")))]),t._v(" "),n("dd",t._l(t.feedItem.feeds,(function(e){return n("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500"},[n("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),n("div",{staticClass:"py-0.5"},[t._v(t._s(e.title))])])})),0)])])])}),[],!1,null,null,null);e.default=u.exports},cZbx:function(t,e,n){"use strict";var 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};t.exports=function(t){return t instanceof this.constructor?t:"object"===(void 0===t?"undefined":r(t))?new this.constructor(t):new this.constructor([t])}},clGK:function(t,e,n){"use strict";t.exports=function(t,e,n){t?n(this):e(this)}},dydJ:function(t,e,n){"use strict";var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o="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.exports=function(t){var e=this,n=t;n instanceof this.constructor&&(n=t.all());var i={};if(Array.isArray(this.items)&&Array.isArray(n))this.items.forEach((function(t,e){i[t]=n[e]}));else if("object"===o(this.items)&&"object"===(void 0===n?"undefined":o(n)))Object.keys(this.items).forEach((function(t,r){i[e.items[t]]=n[Object.keys(n)[r]]}));else if(Array.isArray(this.items))i[this.items[0]]=n;else if("string"==typeof this.items&&Array.isArray(n)){var s=r(n,1);i[this.items]=s[0]}else"string"==typeof this.items&&(i[this.items]=n);return new this.constructor(i)}},eC5B:function(t,e,n){var r;window,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));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";var r,o=this&&this.__extends||(r=function(t,e){return(r=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}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){void 0===t&&(t="="),this._paddingCharacter=t}return t.prototype.encodedLength=function(t){return this._paddingCharacter?(t+2)/3*4|0:(8*t+5)/6|0},t.prototype.encode=function(t){for(var e="",n=0;n>>18&63),e+=this._encodeByte(r>>>12&63),e+=this._encodeByte(r>>>6&63),e+=this._encodeByte(r>>>0&63)}var o=t.length-n;return o>0&&(r=t[n]<<16|(2===o?t[n+1]<<8:0),e+=this._encodeByte(r>>>18&63),e+=this._encodeByte(r>>>12&63),e+=2===o?this._encodeByte(r>>>6&63):this._paddingCharacter||"",e+=this._paddingCharacter||""),e},t.prototype.maxDecodedLength=function(t){return this._paddingCharacter?t/4*3|0:(6*t+7)/8|0},t.prototype.decodedLength=function(t){return this.maxDecodedLength(t.length-this._getPaddingLength(t))},t.prototype.decode=function(t){if(0===t.length)return new Uint8Array(0);for(var e=this._getPaddingLength(t),n=t.length-e,r=new Uint8Array(this.maxDecodedLength(n)),o=0,i=0,s=0,a=0,c=0,u=0,l=0;i>>4,r[o++]=c<<4|u>>>2,r[o++]=u<<6|l,s|=256&a,s|=256&c,s|=256&u,s|=256&l;if(i>>4,s|=256&a,s|=256&c),i>>2,s|=256&u),i>>8&6,e+=51-t>>>8&-75,e+=61-t>>>8&-15,e+=62-t>>>8&3,String.fromCharCode(e)},t.prototype._decodeChar=function(t){var e=256;return e+=(42-t&t-44)>>>8&-256+t-43+62,e+=(46-t&t-48)>>>8&-256+t-47+63,e+=(47-t&t-58)>>>8&-256+t-48+52,e+=(64-t&t-91)>>>8&-256+t-65+0,e+=(96-t&t-123)>>>8&-256+t-97+26},t.prototype._getPaddingLength=function(t){var e=0;if(this._paddingCharacter){for(var n=t.length-1;n>=0&&t[n]===this._paddingCharacter;n--)e++;if(t.length<4||e>2)throw new Error("Base64Coder: incorrect padding")}return e},t}();e.Coder=i;var s=new i;e.encode=function(t){return s.encode(t)},e.decode=function(t){return s.decode(t)};var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._encodeByte=function(t){var e=t;return e+=65,e+=25-t>>>8&6,e+=51-t>>>8&-75,e+=61-t>>>8&-13,e+=62-t>>>8&49,String.fromCharCode(e)},e.prototype._decodeChar=function(t){var e=256;return e+=(44-t&t-46)>>>8&-256+t-45+62,e+=(94-t&t-96)>>>8&-256+t-95+63,e+=(47-t&t-58)>>>8&-256+t-48+52,e+=(64-t&t-91)>>>8&-256+t-65+0,e+=(96-t&t-123)>>>8&-256+t-97+26},e}(i);e.URLSafeCoder=a;var c=new a;e.encodeURLSafe=function(t){return c.encode(t)},e.decodeURLSafe=function(t){return c.decode(t)},e.encodedLength=function(t){return s.encodedLength(t)},e.maxDecodedLength=function(t){return s.maxDecodedLength(t)},e.decodedLength=function(t){return s.decodedLength(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="utf8: invalid source encoding";function o(t){for(var e=0,n=0;n=t.length-1)throw new Error("utf8: invalid string");n++,e+=4}}return e}e.encode=function(t){for(var e=new Uint8Array(o(t)),n=0,r=0;r>6,e[n++]=128|63&i):i<55296?(e[n++]=224|i>>12,e[n++]=128|i>>6&63,e[n++]=128|63&i):(r++,i=(1023&i)<<10,i|=1023&t.charCodeAt(r),i+=65536,e[n++]=240|i>>18,e[n++]=128|i>>12&63,e[n++]=128|i>>6&63,e[n++]=128|63&i)}return e},e.encodedLength=o,e.decode=function(t){for(var e=[],n=0;n=t.length)throw new Error(r);if(128!=(192&(s=t[++n])))throw new Error(r);o=(31&o)<<6|63&s,i=128}else if(o<240){if(n>=t.length-1)throw new Error(r);var s=t[++n],a=t[++n];if(128!=(192&s)||128!=(192&a))throw new Error(r);o=(15&o)<<12|(63&s)<<6|63&a,i=2048}else{if(!(o<248))throw new Error(r);if(n>=t.length-2)throw new Error(r);s=t[++n],a=t[++n];var c=t[++n];if(128!=(192&s)||128!=(192&a)||128!=(192&c))throw new Error(r);o=(15&o)<<18|(63&s)<<12|(63&a)<<6|63&c,i=65536}if(o=55296&&o<=57343)throw new Error(r);if(o>=65536){if(o>1114111)throw new Error(r);o-=65536,e.push(String.fromCharCode(55296|o>>10)),o=56320|1023&o}}e.push(String.fromCharCode(o))}return e.join("")}},function(t,e,n){t.exports=n(3).default},function(t,e,n){"use strict";n.r(e);for(var r,o=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+"]",o=!1,i=function(){o||(t.apply(null,arguments),o=!0)};return this[e]=i,{number:e,id:n,name:r,callback:i}},t.prototype.remove=function(t){delete this[t.number]},t}(),i=new o("_pusher_script_","Pusher.ScriptReceivers"),s={VERSION:"7.0.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,cluster:"mt1",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 o=we.createScriptRequest(r.getPath(t,e)),i=r.receivers.create((function(e){if(r.receivers.remove(i),r.loading[t]){var n=r.loading[t];delete r.loading[t];for(var s=function(t){t||o.cleanup()},a=0;a>>6)+k(128|63&e):k(224|e>>>12&15)+k(128|e>>>6&63)+k(128|63&e)},A=function(t){return t.replace(/[^\x00-\x7F]/g,j)},P=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[O.charAt(n>>>18),O.charAt(n>>>12&63),e>=2?"=":O.charAt(n>>>6&63),e>=1?"=":O.charAt(63&n)].join("")},T=window.btoa||function(t){return t.replace(/[\s\S]{1,3}/g,P)},E=function(){function t(t,e,n,r){var o=this;this.clear=e,this.timer=t((function(){o.timer&&(o.timer=r(o.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}(),D=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)}}();function I(t){window.clearTimeout(t)}function $(t){window.clearInterval(t)}var F=function(t){function e(e,n){return t.call(this,setTimeout,I,e,(function(t){return n(),null}))||this}return D(e,t),e}(E),L=function(t){function e(e,n){return t.call(this,setInterval,$,e,(function(t){return n(),t}))||this}return D(e,t),e}(E),N={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(t){return new F(0,t)},method:function(t){for(var e=[],n=1;n0)for(r=0;r=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}},At=jt,Pt=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)}}(),Tt=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 Pt(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(At.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=At.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",e)},closed:function(e){n(),e&&e.code&&t.handleCloseEvent(e),t.transport=null,t.emit("closed")}},n=function(){U(e,(function(e,n){t.transport.unbind(n,e)}))};U(e,(function(e,n){t.transport.bind(n,e)}))},e.prototype.handleCloseEvent=function(t){var e=At.getCloseAction(t),n=At.getCloseError(t);n&&this.emit("error",n),e&&this.emit(e,{action:e,error:n})},e}(ut),Et=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=At.processHandshake(e)}catch(e){return t.finish("error",{error:e}),void t.transport.close()}"connected"===n.action?t.finish("connected",{connection:new Tt(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=At.getCloseAction(e)||"backoff",r=At.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(R({transport:this.transport,action:t},e))},t}(),Dt=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}(),It=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}(),$t=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)}}(),Ft=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 $t(e,t),e.prototype.authorize=function(t,e){return e(null,{auth:""})},e.prototype.trigger=function(t,e){if(0!==t.indexOf("client-"))throw new p("Event '"+t+"' does not start with 'client-'");if(!this.subscribed){var n=f("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(e.toString()),t.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof _?{status:e.status}:{}))):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}(ut),Lt=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 Lt(e,t),e.prototype.authorize=function(t,e){return Gt.createAuthorizer(this,this.pusher.config).authorize(t,e)},e}(Ft),Rt=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;U(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}(),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)}}(),Ht=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.members=new Rt,r}return Mt(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 o=f("authenticationEndpoint");return Z.error("Invalid auth response for channel '"+r.name+"',expected 'channel_data' field. "+o),void n("Invalid auth response")}var i=JSON.parse(e.channel_data);r.members.setMyID(i.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 o=this.members.removeMember(n);o&&this.emit("pusher:member_removed",o)}},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),Ut=n(1),Bt=n(0),qt=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,r){var o=t.call(this,e,n)||this;return o.key=null,o.nacl=r,o}return qt(e,t),e.prototype.authorize=function(e,n){var r=this;t.prototype.authorize.call(this,e,(function(t,e){if(t)n(t,e);else{var o=e.shared_secret;o?(r.key=Object(Bt.decode)(o),delete e.shared_secret,n(null,e)):n(new Error("No shared_secret key in auth payload for encrypted channel: "+r.name),null)}}))},e.prototype.trigger=function(t,e){throw new y("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(Bt.decode)(e.ciphertext);if(r.length0&&this.emit("connecting_in",Math.round(t/1e3)),this.retryTimer=new F(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 F(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 F(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 F(this.activityTimeout,(function(){t.sendActivityCheck()})))},e.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},e.prototype.buildConnectionCallbacks=function(t){var e=this;return R({},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",t)},closed:function(){e.abandonConnection(),e.shouldRetry()&&e.retryIn(1e3)}})},e.prototype.buildHandshakeCallbacks=function(t){var e=this;return R({},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}(ut),Jt=function(){function t(){this.channels={}}return t.prototype.add=function(t,e){return this.channels[t]||(this.channels[t]=function(t,e){if(0===t.indexOf("private-encrypted-")){if(e.config.nacl)return Gt.createEncryptedChannel(t,e,e.config.nacl);var n=f("encryptedChannelSupport");throw new y("Tried to subscribe to a private-encrypted- channel but no nacl implementation available. "+n)}return 0===t.indexOf("private-")?Gt.createPrivateChannel(t,e):0===t.indexOf("presence-")?Gt.createPresenceChannel(t,e):Gt.createChannel(t,e)}(t,e)),this.channels[t]},t.prototype.all=function(){return function(t){var e=[];return U(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(){U(this.channels,(function(t){t.disconnect()}))},t}(),Gt={createChannels:function(){return new Jt},createConnectionManager:function(t,e){return new Kt(t,e)},createChannel:function(t,e){return new Ft(t,e)},createPrivateChannel:function(t,e){return new Nt(t,e)},createPresenceChannel:function(t,e){return new Ht(t,e)},createEncryptedChannel:function(t,e,n){return new zt(t,e,n)},createTimelineSender:function(t,e){return new It(t,e)},createAuthorizer:function(t,e){return e.authorizer?e.authorizer(t,e):new Dt(t,e)},createHandshake:function(t,e){return new Et(t,e)},createAssistantToTheTransportManager:function(t,e,n){return new Ct(t,e,n)}},Wt=function(){function t(t){this.options=t||{},this.livesLeft=this.options.lives||1/0}return t.prototype.getAssistant=function(t){return Gt.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}(),Xt=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 J(this.strategies,N.method("isSupported"))},t.prototype.connect=function(t,e){var n=this,r=this.strategies,o=0,i=this.timeout,s=null,a=function(c,u){u?e(null,u):(o+=1,n.loop&&(o%=r.length),o0&&(o=new F(n.timeout,(function(){i.abort(),r(!0)}))),i=t.connect(e,(function(t,e){t&&o&&o.isRunning()&&!n.failFast||(o&&o.ensureAborted(),r(t,e))})),{abort:function(){o&&o.ensureAborted(),i.abort()},forceMinPriority:function(t){i.forceMinPriority(t)}}},t}(),Zt=function(){function t(t){this.strategies=t}return t.prototype.isSupported=function(){return J(this.strategies,N.method("isSupported"))},t.prototype.connect=function(t,e){return function(t,e,n){var r=z(t,(function(t,r,o,i){return t.connect(e,n(r,i))}));return{abort:function(){q(r,Qt)},forceMinPriority:function(t){q(r,(function(e){e.forceMinPriority(t)}))}}}(this.strategies,t,(function(t,n){return function(r,o){n[t].error=r,r?function(t){return function(t,e){for(var n=0;n=N.now()){var i=this.transports[r.transport];i&&(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),o.push(new Xt([i],{timeout:2*r.latency+1e3,failFast:!0})))}var s=N.now(),a=o.pop().connect(t,(function r(i,c){i?(ee(n),o.length>0?(s=N.now(),a=o.pop().connect(t,r)):e(i)):(function(t,e,n){var r=we.getLocalStorage();if(r)try{r[te(t)]=X({timestamp:N.now(),transport:e,latency:n})}catch(t){}}(n,c.transport.name,N.now()-s),e(null,c))}));return{abort:function(){a.abort()},forceMinPriority:function(e){t=e,a&&a.forceMinPriority(e)}}},t}();function te(t){return"pusherTransport"+(t?"TLS":"NonTLS")}function ee(t){var e=we.getLocalStorage();if(e)try{delete e[te(t)]}catch(t){}}var ne=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,o=new F(this.options.delay,(function(){n=r.connect(t,e)}));return{abort:function(){o.ensureAborted(),n&&n.abort()},forceMinPriority:function(e){t=e,n&&n.forceMinPriority(e)}}},t}(),re=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}(),oe=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 se,ae=function(t,e,n){var r={};function o(e,o,i,s,a){var c=n(t,e,o,i,s,a);return r[e]=c,c}var i,s=Object.assign({},e,{hostNonTLS:t.wsHost+":"+t.wsPort,hostTLS:t.wsHost+":"+t.wssPort,httpPath:t.wsPath}),a=Object.assign({},s,{useTLS:!0}),c=Object.assign({},e,{hostNonTLS:t.httpHost+":"+t.httpPort,hostTLS:t.httpHost+":"+t.httpsPort,httpPath:t.httpPath}),u={loop:!0,timeout:15e3,timeoutLimit:6e4},l=new Wt({lives:2,minPingDelay:1e4,maxPingDelay:t.activityTimeout}),f=new Wt({lives:2,minPingDelay:1e4,maxPingDelay:t.activityTimeout}),d=o("ws","ws",3,s,l),p=o("wss","ws",3,a,l),h=o("sockjs","sockjs",1,c),m=o("xhr_streaming","xhr_streaming",1,c,f),v=o("xdr_streaming","xdr_streaming",1,c,f),y=o("xhr_polling","xhr_polling",1,c),g=o("xdr_polling","xdr_polling",1,c),b=new Xt([d],u),_=new Xt([p],u),w=new Xt([h],u),k=new Xt([new re(ie(m),m,v)],u),O=new Xt([new re(ie(y),y,g)],u),x=new Xt([new re(ie(k),new Zt([k,new ne(O,{delay:4e3})]),O)],u),S=new re(ie(x),x,w);return i=e.useTLS?new Zt([b,new ne(S,{delay:2e3})]):new Zt([b,new ne(_,{delay:2e3}),new ne(S,{delay:5e3})]),new Yt(new oe(new re(ie(d),i,S)),r,{ttl:18e5,timeline:e.timeline,useTLS:e.useTLS})},ce={getRequest:function(t){var e=new window.XDomainRequest;return e.ontimeout=function(){t.emit("error",new h),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 o=t.call(this)||this;return o.hooks=e,o.method=n,o.url=r,o}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}(ut);!function(t){t[t.CONNECTING=0]="CONNECTING",t[t.OPEN=1]="OPEN",t[t.CLOSED=3]="CLOSED"}(se||(se={}));var fe=se,de=1;function pe(t){var e=-1===t.indexOf("?")?"?":"&";return t+e+"t="+ +new Date+"&n="+de++}function he(t){return Math.floor(Math.random()*t)}var me,ve=function(){function t(t,e){this.hooks=t,this.session=he(1e3)+"/"+function(t){for(var e=[],n=0;n0&&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()}},_e={createStreamingSocket:function(t){return this.createSocket(ye,t)},createPollingSocket:function(t){return this.createSocket(ge,t)},createSocket:function(t,e){return new ve(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(ce,t,e)}},we={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:c,getDefaultStrategy:ae,Transports:Ot,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:_e,TimelineTransport:et,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:w,jsonp:Q}},onDocumentBody:function(t){var e=this;document.body?t():setTimeout((function(){e.onDocumentBody(t)}),0)},createJSONPRequest:function(t,e){return new tt(t,e)},createScriptRequest:function(t){return new Y(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 St},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"}(me||(me={}));var ke=me,Oe=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(R({},e,{timestamp:N.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},t.prototype.error=function(t){this.log(ke.ERROR,t)},t.prototype.info=function(t){this.log(ke.INFO,t)},t.prototype.debug=function(t){this.log(ke.DEBUG,t)},t.prototype.isEmpty=function(){return 0===this.events.length},t.prototype.send=function(t,e){var n=this,r=R({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}(),xe=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 Se(new b,e);if(this.priority0?n("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]),t._v(" "),t.folder.feed_item_states_count>0?n("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e()]),t._v(" "),n("div",{staticClass:"body"},["folder"!==t.folder.type||t.folder.deleted_at?t._e():n("form",{attrs:{action:t.route("folder.update",t.folder)},on:{submit:function(e){return e.preventDefault(),t.onUpdateFolder(e)}}},[n("div",{staticClass:"form-group items-stretched"},[n("input",{attrs:{type:"text",name:"title"},domProps:{value:t.folder.title},on:{input:function(e){t.updateFolderTitle=e.target.value}}}),t._v(" "),n("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("update")}})]),t._v("\n "+t._s(t.__("Update folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():n("form",{attrs:{action:t.route("folder.store")},on:{submit:function(e){return e.preventDefault(),t.onAddFolder(e)}}},[n("div",{staticClass:"form-group items-stretched"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.addFolderTitle,expression:"addFolderTitle"}],attrs:{type:"text"},domProps:{value:t.addFolderTitle},on:{input:function(e){e.target.composing||(t.addFolderTitle=e.target.value)}}}),t._v(" "),n("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():n("form",{attrs:{action:t.route("document.store")},on:{submit:function(e){return e.preventDefault(),t.onAddDocument(e)}}},[n("div",{staticClass:"form-group items-stretched"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.addDocumentUrl,expression:"addDocumentUrl"}],attrs:{type:"url"},domProps:{value:t.addDocumentUrl},on:{input:function(e){e.target.composing||(t.addDocumentUrl=e.target.value)}}}),t._v(" "),n("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add document"))+"\n ")])])]),t._v(" "),"folder"===t.folder.type?n("div",{staticClass:"mt-6"},[n("button",{staticClass:"danger",on:{click:t.onDeleteFolder}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])]):t._e()])])}),[],!1,null,null,null);e.default=u.exports},l9N6:function(t,e,n){"use strict";var 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};function o(t){if(Array.isArray(t)){if(t.length)return!1}else if(null!=t&&"object"===(void 0===t?"undefined":r(t))){if(Object.keys(t).length)return!1}else if(t)return!1;return!0}t.exports=function(t){var e=t||!1,n=null;return n=Array.isArray(this.items)?function(t,e){if(t)return e.filter(t);for(var n=[],r=0;r":return o(e,t)!==Number(s)&&o(e,t)!==s.toString();case"!==":return o(e,t)!==s;case"<":return o(e,t)":return o(e,t)>s;case">=":return o(e,t)>=s}}));return new this.constructor(c)}},lfA6:function(t,e,n){"use strict";var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var e=this,n={};return Array.isArray(this.items)?this.items.forEach((function(e){var o=t(e),i=r(o,2),s=i[0],a=i[1];n[s]=a})):Object.keys(this.items).forEach((function(o){var i=t(e.items[o]),s=r(i,2),a=s[0],c=s[1];n[a]=c})),new this.constructor(n)}},lflG:function(t,e,n){"use strict";t.exports=function(){return!this.isEmpty()}},lpfs:function(t,e,n){"use strict";t.exports=function(t){return t(this),this}},ls82:function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function a(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),s=new O(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return S()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=_(s,n);if(a){if(a===l)continue;return a}}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=u(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,s),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function f(){}function d(){}function p(){}var h={};h[o]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(x([])));v&&v!==e&&n.call(v,o)&&(h=v);var y=p.prototype=f.prototype=Object.create(h);function g(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var r;this._invoke=function(o,i){function s(){return new e((function(r,s){!function r(o,i,s,a){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,a)}))}a(c.arg)}(o,i,r,s)}))}return r=r?r.then(s,s):s()}}function _(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,_(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(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 O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(a&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),l}},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 o=r.arg;k(n)}return o}}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),l}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},lwQh:function(t,e,n){"use strict";t.exports=function(){var t=0;return Array.isArray(this.items)&&(t=this.items.length),Math.max(Object.keys(this.items).length,t)}},mNb9:function(t,e,n){"use strict";var r=n("Aoxg");t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=r(this.items),n=new this.constructor(e).shuffle();return t!==parseInt(t,10)?n.first():n.take(t)}},nHqO:function(t,e,n){"use strict";var r=n("OxKB");t.exports=function(){for(var t=this,e=arguments.length,n=Array(e),o=0;o=0;--o){var i,s=t[o];if("[]"===s&&n.parseArrays)i=[].concat(r);else{i=n.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(a,10);n.parseArrays||""!==a?!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(i=[])[c]=r:i[a]=r:i={0:r}}r=i}return r}(c,e,n)}};t.exports=function(t,e){var n=function(t){if(!t)return i;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?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth?t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var n,a={},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,u=e.parameterLimit===1/0?void 0:e.parameterLimit,l=c.split(e.delimiter,u),f=-1,d=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(h=h.split(",")),o.call(a,p)?a[p]=r.combine(a[p],h):a[p]=h}return a}(t,n):t,u=n.plainObjects?Object.create(null):{},l=Object.keys(c),f=0;f0?n("div",[n("h2",[t._v(t._s(t.__("Community themes")))]),t._v(" "),n("p",[t._v(t._s(t.__("These themes were hand-picked by Cyca's author.")))]),t._v(" "),n("div",{staticClass:"themes-category"},t._l(t.themes.community,(function(e,r){return n("theme-card",{key:r,attrs:{repository_url:e,name:r,is_selected:r===t.selected},on:{selected:function(e){return t.useTheme(r)}}})})),1)]):t._e()])}),[],!1,null,null,null);e.default=l.exports},qBwO:function(t,e,n){"use strict";n.r(e);var r=n("L2JU");function o(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}var s={data:function(){return{selectedFeeds:[]}},computed:function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return new this.constructor(this.items).groupBy(t).map((function(t){return t.count()}))}},qigg:function(t,e,n){"use strict";n.r(e);var r=n("L2JU");function o(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){for(var e=1;e=t.target.scrollHeight&&this.canLoadMore&&this.loadMoreFeedItems()}})},c=n("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"feeditems-list"},on:{"&scroll":function(e){return t.onScroll(e)}}},t._l(t.sortedList,(function(e){return n("feed-item",{key:e.id,attrs:{feedItem:e},on:{"selected-feeditems-changed":t.onSelectedFeedItemsChanged}})})),1)}),[],!1,null,null,null);e.default=u.exports},qj89:function(t,e,n){"use strict";var r=n("Aoxg"),o=n("SIfw").isFunction;t.exports=function(t,e){if(void 0!==e)return Array.isArray(this.items)?this.items.filter((function(n){return void 0!==n[t]&&n[t]===e})).length>0:void 0!==this.items[t]&&this.items[t]===e;if(o(t))return this.items.filter((function(e,n){return t(e,n)})).length>0;if(Array.isArray(this.items))return-1!==this.items.indexOf(t);var n=r(this.items);return n.push.apply(n,function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);en&&(n=i)}else void 0!==t?e.push({key:r[t],count:1}):e.push({key:r,count:1})})),e.filter((function(t){return t.count===n})).map((function(t){return t.key}))):null}},t9qg:function(t,e,n){"use strict";t.exports=function(t,e){var n=this,r={};return Array.isArray(this.items)?r=this.items.slice(t*e-e,t*e):Object.keys(this.items).slice(t*e-e,t*e).forEach((function(t){r[t]=n.items[t]})),new this.constructor(r)}},tNWF:function(t,e,n){"use strict";t.exports=function(t,e){var n=this,r=null;return void 0!==e&&(r=e),Array.isArray(this.items)?this.items.forEach((function(e){r=t(r,e)})):Object.keys(this.items).forEach((function(e){r=t(r,n.items[e],e)})),r}},tiHo:function(t,e,n){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new this.constructor(t)}},tpAN:function(t,e,n){"use strict";n.r(e);var r=n("L2JU");function o(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){for(var e=1;e0?n("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()]),t._v(" "),n("div",{staticClass:"flex items-center"},[t.document.feed_item_states_count>0?n("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),n("a",{staticClass:"button info ml-2",attrs:{href:t.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))},mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})}}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),n("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),n("div",{staticClass:"body"},[t.document.description?n("div",{domProps:{innerHTML:t._s(t.document.description)}}):t._e(),t._v(" "),n("dl",[n("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),n("dd",[n("a",{attrs:{href:t.document.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))}}},[t._v(t._s(t.document.url))])]),t._v(" "),t.document.bookmark.visits?n("dt",[t._v(t._s(t.__("Visits")))]):t._e(),t._v(" "),t.document.bookmark.visits?n("dd",[t._v(t._s(t.document.bookmark.visits))]):t._e(),t._v(" "),n("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),n("dd",[n("date-time",{attrs:{datetime:t.document.checked_at,calendar:!0}})],1),t._v(" "),t.dupplicateInFolders.length>0?n("dt",[t._v(t._s(t.__("Also exists in")))]):t._e(),t._v(" "),t.dupplicateInFolders.length>0?n("dd",t._l(t.dupplicateInFolders,(function(e){return n("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500",on:{click:function(n){return t.$emit("folder-selected",e)}}},[n("svg",{staticClass:"favicon",class:e.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon(e.icon)}})]),t._v(" "),n("span",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(e.title))])])})),0):t._e()]),t._v(" "),t.document.feeds&&t.document.feeds.length>0?n("h2",[t._v(t._s(t.__("Feeds")))]):t._e(),t._v(" "),t._l(t.document.feeds,(function(e){return n("div",{key:e.id,staticClass:"rounded bg-gray-600 mb-2 p-2"},[n("div",{staticClass:"flex justify-between items-center"},[n("div",{staticClass:"flex items-center my-0 py-0"},[n("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),n("div",[t._v(t._s(e.title))])]),t._v(" "),e.is_ignored?n("button",{staticClass:"button success",on:{click:function(n){return t.follow(e)}}},[t._v(t._s(t.__("Follow")))]):t._e(),t._v(" "),e.is_ignored?t._e():n("button",{staticClass:"button danger",on:{click:function(n){return t.ignore(e)}}},[t._v(t._s(t.__("Ignore")))])]),t._v(" "),e.description?n("div",{domProps:{innerHTML:t._s(e.description)}}):t._e(),t._v(" "),n("dl",[n("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),n("dd",[n("div",[t._v(t._s(e.url))])]),t._v(" "),n("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),n("dd",[n("date-time",{attrs:{datetime:e.checked_at,calendar:!0}})],1)])])})),t._v(" "),n("div",{staticClass:"mt-6"},[n("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},u4XC:function(t,e,n){"use strict";var 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};t.exports=function(t){var e=this,n=[],o=0;if(Array.isArray(this.items))do{var i=this.items.slice(o,o+t),s=new this.constructor(i);n.push(s),o+=t}while(o1&&void 0!==arguments[1]?arguments[1]:0,n=r(this.items),o=n.slice(e).filter((function(e,n){return n%t==0}));return new this.constructor(o)}},"x+iC":function(t,e,n){"use strict";t.exports=function(t,e){var n=this.values();if(void 0===e)return n.implode(t);var r=n.count();if(0===r)return"";if(1===r)return n.last();var o=n.pop();return n.implode(t)+e+o}},xA6t:function(t,e,n){"use strict";var r=n("0tQ4");t.exports=function(t,e){return this.filter((function(n){return r(n,t)e[e.length-1]}))}},xWoM:function(t,e,n){"use strict";t.exports=function(){var t=this,e={};return Array.isArray(this.items)?Object.keys(this.items).forEach((function(n){e[t.items[n]]=Number(n)})):Object.keys(this.items).forEach((function(n){e[t.items[n]]=n})),new this.constructor(e)}},xazZ:function(t,e,n){"use strict";t.exports=function(t){return this.filter((function(e){return e instanceof t}))}},xgus:function(t,e,n){"use strict";var r=n("SIfw").isObject;t.exports=function(t){var e=this;return r(this.items)?new this.constructor(Object.keys(this.items).reduce((function(n,r,o){return o+1>t&&(n[r]=e.items[r]),n}),{})):new this.constructor(this.items.slice(t))}},xi9Z:function(t,e,n){"use strict";t.exports=function(t,e){return void 0===e?this.items.join(t):new this.constructor(this.items).pluck(t).all().join(e)}},yLpj: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},yd4a:function(t,e){},ysnW:function(t,e,n){var r={"./DateTime.vue":"YrHs","./Details/DetailsDocument.vue":"tpAN","./Details/DetailsDocuments.vue":"2FZ/","./Details/DetailsFeedItem.vue":"c993","./Details/DetailsFolder.vue":"l2C0","./DocumentItem.vue":"IfUw","./DocumentsList.vue":"qBwO","./FeedItem.vue":"+CwO","./FeedItemsList.vue":"qigg","./FolderItem.vue":"4VNc","./FoldersTree.vue":"RB6r","./Importer.vue":"gDOT","./Importers/ImportFromCyca.vue":"wT45","./ThemeCard.vue":"CV10","./ThemesBrowser.vue":"pKhy"};function o(t){var e=i(t);return n(e)}function i(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}o.keys=function(){return Object.keys(r)},o.resolve=i,t.exports=o,o.id="ysnW"},ytFn:function(t,e,n){"use strict";t.exports=function(t){var e,n=void 0;Array.isArray(t)?(e=n=[]).push.apply(e,function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e3&&void 0!==arguments[3]?arguments[3]:null;return a(this,v),(r=m.call(this)).name=t,r.absolute=n,r.ziggy=i||Ziggy,r.urlBuilder=r.name?new o(t,n,r.ziggy):null,r.template=r.urlBuilder?r.urlBuilder.construct():"",r.urlParams=r.normalizeParams(e),r.queryParams={},r.hydrated="",r}return r=v,(l=[{key:"normalizeParams",value:function(t){return void 0===t?{}:((t="object"!==s(t)?[t]:t).hasOwnProperty("id")&&-1==this.template.indexOf("{id}")&&(t=[t.id]),this.numericParamIndices=Array.isArray(t),Object.assign({},t))}},{key:"with",value:function(t){return this.urlParams=this.normalizeParams(t),this}},{key:"withQuery",value:function(t){return Object.assign(this.queryParams,t),this}},{key:"hydrateUrl",value:function(){var t=this;if(this.hydrated)return this.hydrated;var e=this.template.replace(/{([^}]+)}/gi,(function(e,n){var r,o,i=t.trimParam(e);if(t.ziggy.defaultParameters.hasOwnProperty(i)&&(r=t.ziggy.defaultParameters[i]),r&&!t.urlParams[i])return delete t.urlParams[i],r;if(t.numericParamIndices?(t.urlParams=Object.values(t.urlParams),o=t.urlParams.shift()):(o=t.urlParams[i],delete t.urlParams[i]),null==o){if(-1===e.indexOf("?"))throw new Error("Ziggy Error: '"+i+"' key is required for route '"+t.name+"'");return""}return o.id?encodeURIComponent(o.id):encodeURIComponent(o)}));return null!=this.urlBuilder&&""!==this.urlBuilder.path&&(e=e.replace(/\/+$/,"")),this.hydrated=e,this.hydrated}},{key:"matchUrl",value:function(){var t=window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname,e=this.template.replace(/(\/\{[^\}]*\?\})/g,"/").replace(/(\{[^\}]*\})/gi,"[^/?]+").replace(/\/?$/,"").split("://")[1],n=this.template.replace(/(\{[^\}]*\})/gi,"[^/?]+").split("://")[1],r=t.replace(/\/?$/,"/"),o=new RegExp("^"+n+"/$").test(r),i=new RegExp("^"+e+"/$").test(r);return o||i}},{key:"constructQuery",value:function(){if(0===Object.keys(this.queryParams).length&&0===Object.keys(this.urlParams).length)return"";var t=Object.assign(this.urlParams,this.queryParams);return Object(i.stringify)(t,{encodeValuesOnly:!0,skipNulls:!0,addQueryPrefix:!0,arrayFormat:"indices"})}},{key:"current",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=Object.keys(this.ziggy.namedRoutes),r=n.filter((function(e){return-1!==t.ziggy.namedRoutes[e].methods.indexOf("GET")&&new v(e,void 0,void 0,t.ziggy).matchUrl()}))[0];if(e){var o=new RegExp("^"+e.replace(".","\\.").replace("*",".*")+"$","i");return o.test(r)}return r}},{key:"check",value:function(t){return Object.keys(this.ziggy.namedRoutes).includes(t)}},{key:"extractParams",value:function(t,e,n){var r=this,o=t.split(n);return e.split(n).reduce((function(t,e,n){return 0===e.indexOf("{")&&-1!==e.indexOf("}")&&o[n]?Object.assign(t,(i={},s=r.trimParam(e),a=o[n],s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i)):t;var i,s,a}),{})}},{key:"parse",value:function(){this.return=this.hydrateUrl()+this.constructQuery()}},{key:"url",value:function(){return this.parse(),this.return}},{key:"toString",value:function(){return this.url()}},{key:"trimParam",value:function(t){return t.replace(/{|}|\?/g,"")}},{key:"valueOf",value:function(){return this.url()}},{key:"params",get:function(){var t=this.ziggy.namedRoutes[this.current()];return Object.assign(this.extractParams(window.location.hostname,t.domain||"","."),this.extractParams(window.location.pathname.slice(1),t.uri,"/"))}}])&&c(r.prototype,l),f&&c(r,f),v}(l(String));function v(t,e,n,r){return new m(t,e,n,r)}var y={namedRoutes:{account:{uri:"account",methods:["GET","HEAD"],domain:null},home:{uri:"/",methods:["GET","HEAD"],domain:null},"account.password":{uri:"account/password",methods:["GET","HEAD"],domain:null},"account.theme":{uri:"account/theme",methods:["GET","HEAD"],domain:null},"account.setTheme":{uri:"account/theme",methods:["POST"],domain:null},"account.theme.details":{uri:"account/theme/details/{name}",methods:["GET","HEAD"],domain:null},"account.getThemes":{uri:"account/theme/themes",methods:["GET","HEAD"],domain:null},"account.import.form":{uri:"account/import",methods:["GET","HEAD"],domain:null},"account.import":{uri:"account/import",methods:["POST"],domain:null},"account.export":{uri:"account/export",methods:["GET","HEAD"],domain:null},"document.move":{uri:"document/move/{sourceFolder}/{targetFolder}",methods:["POST"],domain:null},"document.destroy_bookmarks":{uri:"document/delete_bookmarks/{folder}",methods:["POST"],domain:null},"document.visit":{uri:"document/{document}/visit/{folder}",methods:["POST"],domain:null},"feed_item.mark_as_read":{uri:"feed_item/mark_as_read",methods:["POST"],domain:null},"feed.ignore":{uri:"feed/{feed}/ignore",methods:["POST"],domain:null},"feed.follow":{uri:"feed/{feed}/follow",methods:["POST"],domain:null},"folder.index":{uri:"folder",methods:["GET","HEAD"],domain:null},"folder.store":{uri:"folder",methods:["POST"],domain:null},"folder.show":{uri:"folder/{folder}",methods:["GET","HEAD"],domain:null},"folder.update":{uri:"folder/{folder}",methods:["PUT","PATCH"],domain:null},"folder.destroy":{uri:"folder/{folder}",methods:["DELETE"],domain:null},"document.index":{uri:"document",methods:["GET","HEAD"],domain:null},"document.store":{uri:"document",methods:["POST"],domain:null},"document.show":{uri:"document/{document}",methods:["GET","HEAD"],domain:null},"feed_item.index":{uri:"feed_item",methods:["GET","HEAD"],domain:null},"feed_item.show":{uri:"feed_item/{feed_item}",methods:["GET","HEAD"],domain:null}},baseUrl:"https://cyca.athaliasoft.com/",baseProtocol:"https",baseDomain:"cyca.athaliasoft.com",basePort:!1,defaultParameters:[]};if("undefined"!=typeof window&&void 0!==window.Ziggy)for(var g in window.Ziggy.namedRoutes)y.namedRoutes[g]=window.Ziggy.namedRoutes[g];window.route=v,window.Ziggy=y,Vue.mixin({methods:{route:function(t,e,n){return v(t,e,n,y)},icon:function(t){return document.querySelector('meta[name="icons-file-url"]').getAttribute("content")+"#"+t},__:function(t){var e=lang[t];return e||t}}})}}); \ No newline at end of file +!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));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=0)}({"+CwO":function(t,e,n){"use strict";n.r(e);var r=n("L0RC"),o=n.n(r),i=n("L2JU");function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n|[^<>]*$1')})),t}})},d=n("KHd+"),p=Object(d.a)(f,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"feed-item",class:{selected:t.is_selected,read:0===t.feedItem.feed_item_states_count},attrs:{href:t.feedItem.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),e.preventDefault(),t.onClicked(e))}}},[n("div",{staticClass:"feed-item-label",domProps:{innerHTML:t._s(t.highlight(t.feedItem.title))}}),t._v(" "),n("div",{staticClass:"feed-item-meta"},[n("date-time",{staticClass:"flex-none mr-4 w-2/12",attrs:{datetime:t.feedItem.published_at,calendar:!0}}),t._v(" "),n("img",{staticClass:"favicon",attrs:{src:t.feedItem.feeds[0].favicon}}),t._v(" "),n("div",{staticClass:"truncate"},[t._v(t._s(t.feedItem.feeds[0].title))])],1)])}),[],!1,null,null,null);e.default=p.exports},"+hMf":function(t,e,n){"use strict";t.exports=function(t,e){return this.items[t]=e,this}},"+p9u":function(t,e,n){"use strict";var r=n("SIfw"),o=r.isArray,i=r.isObject,s=r.isFunction;t.exports=function(t){var e=this,n=null,r=void 0,a=function(e){return e===t};return s(t)&&(a=t),o(this.items)&&(r=this.items.filter((function(t){return!0!==n&&(n=a(t)),n}))),i(this.items)&&(r=Object.keys(this.items).reduce((function(t,r){return!0!==n&&(n=a(e.items[r])),!1!==n&&(t[r]=e.items[r]),t}),{})),new this.constructor(r)}},"/c+j":function(t,e,n){"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var n=this.items.filter((function(t){return-1===e.indexOf(t)}));return new this.constructor(n)}},"/dWu":function(t,e,n){"use strict";var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var e={};return this.items.forEach((function(n,o){var i=t(n,o),s=r(i,2),a=s[0],c=s[1];void 0===e[a]?e[a]=[c]:e[a].push(c)})),new this.constructor(e)}},"/jPX":function(t,e,n){"use strict";t.exports=function(t){var e=this,n=void 0;return Array.isArray(this.items)?(n=[new this.constructor([]),new this.constructor([])],this.items.forEach((function(e){!0===t(e)?n[0].push(e):n[1].push(e)}))):(n=[new this.constructor({}),new this.constructor({})],Object.keys(this.items).forEach((function(r){var o=e.items[r];!0===t(o)?n[0].put(r,o):n[1].put(r,o)}))),new this.constructor(n)}},"/n9D":function(t,e,n){"use strict";t.exports=function(t,e,n){var r=this.slice(t,e);if(this.items=this.diff(r.all()).all(),Array.isArray(n))for(var o=0,i=n.length;o1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=r.charAt(s):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},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,i){if(!n)return e;if("object"!=typeof n){if(o(e))e.push(n);else{if(!e||"object"!=typeof e)return[e,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(e[n]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(n);var a=e;return o(e)&&!o(n)&&(a=s(e,i)),o(e)&&o(n)?(n.forEach((function(n,o){if(r.call(e,o)){var s=e[o];s&&"object"==typeof s&&n&&"object"==typeof n?e[o]=t(s,n,i):e.push(n)}else e[o]=n})),e):Object.keys(n).reduce((function(e,o){var s=n[o];return r.call(e,o)?e[o]=t(e[o],s,i):e[o]=s,e}),a)}}},"0k4l":function(t,e,n){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))return new this.constructor(this.items.map(t));var n={};return Object.keys(this.items).forEach((function(r){n[r]=t(e.items[r],r)})),new this.constructor(n)}},"0on8":function(t,e,n){"use strict";var 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};t.exports=function(){return"object"!==r(this.items)||Array.isArray(this.items)?JSON.stringify(this.toArray()):JSON.stringify(this.all())}},"0qqO":function(t,e,n){"use strict";t.exports=function(t){return this.each((function(e,n){t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0?n("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),n("button",{staticClass:"info ml-2",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.onOpenClicked(e))}}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")])])]),t._v(" "),n("div",{staticClass:"body"},[t._l(t.documents,(function(t){return n("img",{key:t.id,staticClass:"favicon inline mr-1 mb-1",attrs:{title:t.title,src:t.favicon}})})),t._v(" "),n("div",{staticClass:"mt-6"},[n("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},"2YvH":function(t,e,n){"use strict";var r=n("SIfw"),o=r.isArray,i=r.isObject;t.exports=function(t){var e=t||1/0,n=!1,r=[],s=function(t){r=[],o(t)?t.forEach((function(t){o(t)?r=r.concat(t):i(t)?Object.keys(t).forEach((function(e){r=r.concat(t[e])})):r.push(t)})):Object.keys(t).forEach((function(e){o(t[e])?r=r.concat(t[e]):i(t[e])?Object.keys(t[e]).forEach((function(n){r=r.concat(t[e][n])})):r.push(t[e])})),n=0===(n=r.filter((function(t){return i(t)}))).length,e-=1};for(s(this.items);!n&&e>0;)s(r);return new this.constructor(r)}},"3wPk":function(t,e,n){"use strict";t.exports=function(t){return this.map((function(e,n){return t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e0?t:0,t+"rem"},isDraggable:function(){return!this.folder.deleted_at&&"folder"===this.folder.type},canDrop:function(){return!this.folder.deleted_at&&("folder"===this.folder.type||"root"===this.folder.type)},branchIsExpanded:function(){var t=this.folder.parent_id;if(!t||!this.folders)return!0;for(;null!=t;){var e=this.folders.find((function(e){return e.id===t}));if(e&&!e.is_expanded)return!1;t=e.parent_id}return!0},expanderIcon:function(){return this.folder.is_expanded?"expanded":"collapsed"}}),methods:i(i({},Object(r.b)({startDraggingFolder:"folders/startDraggingFolder",stopDraggingFolder:"folders/stopDraggingFolder",dropIntoFolder:"folders/dropIntoFolder",toggleExpanded:"folders/toggleExpanded"})),{},{onDragStart:function(t){this.startDraggingFolder(this.folder)},onDragEnd:function(){this.stopDraggingFolder(),this.is_dragged_over=!1},onDrop:function(){this.is_dragged_over=!1,this.$emit("item-dropped",this.folder)},onDragLeave:function(){this.is_dragged_over=!1},onDragOver:function(t){this.is_dragged_over=!0,this.canDrop?(t.preventDefault(),this.cannot_drop=!1):this.cannot_drop=!0},onClick:function(){switch(this.folder.type){case"account":window.location.href=route("account");break;case"logout":document.getElementById("logout-form").submit();break;default:this.$emit("selected-folder-changed",this.folder)}}})},c=n("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.branchIsExpanded?n("button",{staticClass:"list-item",class:{selected:t.folder.is_selected,"dragged-over":t.is_dragged_over,"cannot-drop":t.cannot_drop,deleted:t.folder.deleted_at},attrs:{draggable:t.isDraggable},on:{click:function(e){return e.preventDefault(),t.onClick(e)},dragstart:t.onDragStart,dragend:t.onDragEnd,drop:t.onDrop,dragleave:t.onDragLeave,dragover:t.onDragOver}},[n("div",{staticClass:"list-item-label",style:{"padding-left":t.indent}},["folder"===t.folder.type?n("span",{staticClass:"caret"},["folder"===t.folder.type&&t.folder.children_count>0?n("svg",{attrs:{fill:"currentColor",width:"16",height:"16"},on:{"!click":function(e){return e.stopPropagation(),t.toggleExpanded(t.folder)}}},[n("use",{attrs:{"xlink:href":t.icon(t.expanderIcon)}})]):t._e()]):t._e(),t._v(" "),n("svg",{staticClass:"favicon",class:t.folder.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon(t.folder.icon)}})]),t._v(" "),n("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.folder.title))])]),t._v(" "),t.folder.feed_item_states_count>0?n("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]):t._e()}),[],!1,null,null,null);e.default=u.exports},"4s1B":function(t,e,n){"use strict";t.exports=function(){var t=[].concat(this.items).reverse();return new this.constructor(t)}},"5Cq2":function(t,e,n){"use strict";var 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};t.exports=function(t){var e=function t(e,n){var o={};return Object.keys(Object.assign({},e,n)).forEach((function(i){void 0===e[i]&&void 0!==n[i]?o[i]=n[i]:void 0!==e[i]&&void 0===n[i]?o[i]=e[i]:void 0!==e[i]&&void 0!==n[i]&&(e[i]===n[i]?o[i]=e[i]:Array.isArray(e[i])||"object"!==r(e[i])||Array.isArray(n[i])||"object"!==r(n[i])?o[i]=[].concat(e[i],n[i]):o[i]=t(e[i],n[i]))})),o};return t?"Collection"===t.constructor.name?new this.constructor(e(this.items,t.all())):new this.constructor(e(this.items,t)):this}},"6y7s":function(t,e,n){"use strict";t.exports=function(){var t;return(t=this.items).push.apply(t,arguments),this}},"7zD/":function(t,e,n){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))this.items=this.items.map(t);else{var n={};Object.keys(this.items).forEach((function(r){n[r]=t(e.items[r],r)})),this.items=n}return this}},"8oxB":function(t,e){var n,r,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===i||!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:i}catch(t){n=i}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(t){r=s}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var t=a(d);l=!0;for(var e=u.length;e;){for(c=u,u=[];++f1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==this.items[t]?this.items[t]:r(e)?e():null!==e?e:null}},AmQ0:function(t,e,n){"use strict";n.r(e);var r=n("o0o1"),o=n.n(r);function i(t,e,n,r,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}var s,a,c={props:["highlight"],mounted:function(){this.$watch("highlight.expression",this.updateHighlight)},methods:{updateHighlight:(s=o.a.mark((function t(){var e;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,api.put(route("highlight.update",e.highlight),{expression:e.highlight.expression,color:e.highlight.color});case 3:t.sent;case 4:case"end":return t.stop()}}),t,this)})),a=function(){var t=this,e=arguments;return new Promise((function(n,r){var o=s.apply(t,e);function a(t){i(o,n,r,a,c,"next",t)}function c(t){i(o,n,r,a,c,"throw",t)}a(void 0)}))},function(){return a.apply(this,arguments)}),removeHighlight:function(t){this.$emit("destroy",t)}}},u=n("KHd+"),l=Object(u.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("tr",[n("td",{staticClass:"w-1/2"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.highlight.expression,expression:"highlight.expression"}],staticClass:"w-full",attrs:{type:"text","aria-label":t.__("Expression")},domProps:{value:t.highlight.expression},on:{input:function(e){e.target.composing||t.$set(t.highlight,"expression",e.target.value)}}})]),t._v(" "),n("td",{staticClass:"w-1/4"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.highlight.color,expression:"highlight.color"}],staticClass:"w-full",attrs:{type:"color","aria-label":t.__("Color")},domProps:{value:t.highlight.color},on:{input:function(e){e.target.composing||t.$set(t.highlight,"color",e.target.value)}}})]),t._v(" "),n("td",[n("button",{staticClass:"danger",attrs:{type:"button",title:t.__("Remove highlight")},on:{click:function(e){return t.removeHighlight(t.highlight.id)}}},[n("svg",{attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("trash")}})])])])])}),[],!1,null,null,null);e.default=l.exports},Aoxg:function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=t.items.length}}}}},DAEf:function(t,e){},DMgR:function(t,e,n){"use strict";var r=n("SIfw").isFunction;t.exports=function(t,e){var n=this.items[t]||null;return n||void 0===e||(n=r(e)?e():e),delete this.items[t],n}},Dv6Q:function(t,e,n){"use strict";t.exports=function(t,e){for(var n=1;n<=t;n+=1)this.items.push(e(n));return this}},"EBS+":function(t,e,n){"use strict";t.exports=function(t){if(!t)return this;if(Array.isArray(t)){var e=this.items.map((function(e,n){return t[n]||e}));return new this.constructor(e)}if("Collection"===t.constructor.name){var n=Object.assign({},this.items,t.all());return new this.constructor(n)}var r=Object.assign({},this.items,t);return new this.constructor(r)}},ET5h:function(t,e,n){"use strict";t.exports=function(t,e){return void 0!==e?this.put(e,t):(this.items.unshift(t),this)}},ErmX:function(t,e,n){"use strict";var r=n("Aoxg"),o=n("SIfw").isFunction;t.exports=function(t){var e=r(this.items),n=0;if(void 0===t)for(var i=0,s=e.length;i0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"!==",null)}},HZ3i:function(t,e,n){"use strict";t.exports=function(){function t(e,n,r){var o=r[0];o instanceof n&&(o=o.all());for(var i=r.slice(1),s=!i.length,a=[],c=0;c=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var n=Object.create(null),r=t.split(","),o=0;o-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function w(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var k=/-(\w)/g,O=w((function(t){return t.replace(k,(function(t,e){return e?e.toUpperCase():""}))})),x=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,S=w((function(t){return t.replace(C,"-$1").toLowerCase()})),j=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 A(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function P(t,e){for(var n in e)t[n]=e[n];return t}function E(t){for(var e={},n=0;n0,Q=X&&X.indexOf("edge/")>0,Y=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===G),tt=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/)),et={}.watch,nt=!1;if(K)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener("test-passive",null,rt)}catch(r){}var ot=function(){return void 0===q&&(q=!K&&!J&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),q},it=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,ct="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);at="undefined"!=typeof Set&&st(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 ut=T,lt=0,ft=function(){this.id=lt++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){g(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-1)if(i&&!_(o,"default"))s=!1;else if(""===s||s===S(t)){var c=Ut(String,o.type);(c<0||a0&&(le((c=t(c,(n||"")+"_"+r))[0])&&le(l)&&(f[u]=gt(l.text+c[0].text),c.shift()),f.push.apply(f,c)):a(c)?le(l)?f[u]=gt(l.text+c):""!==c&&f.push(gt(c)):le(c)&&le(l)?f[u]=gt(l.text+c.text):(s(e._isVList)&&i(c.tag)&&o(c.key)&&i(n)&&(c.key="__vlist"+n+"_"+r+"__"),f.push(c)));return f}(t):void 0}function le(t){return i(t)&&i(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var n=Object.create(null),r=ct?Reflect.ownKeys(t):Object.keys(t),o=0;o0,s=t?!!t.$stable:!i,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&n&&n!==r&&a===n.$key&&!i&&!n.$hasNormal)return n;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=me(e,c,t[c]))}else o={};for(var u in e)u in o||(o[u]=ve(e,u));return t&&Object.isExtensible(t)&&(t._normalized=o),B(o,"$stable",s),B(o,"$key",a),B(o,"$hasNormal",i),o}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]:ue(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 ye(t,e){var n,r,o,s,a;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,o=t.length;rdocument.createEvent("Event").timeStamp&&(cn=function(){return un.now()})}function ln(){var t,e;for(an=cn(),on=!0,tn.sort((function(t,e){return t.id-e.id})),sn=0;snsn&&tn[n].id>t.id;)n--;tn.splice(n+1,0,t)}else tn.push(t);rn||(rn=!0,ee(ln))}}(this)},dn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Bt(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||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:T,set:T};function hn(t,e,n){pn.get=function(){return this[e][n]},pn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,pn)}var mn={lazy:!0};function vn(t,e,n){var r=!ot();"function"==typeof n?(pn.get=r?yn(e):gn(n),pn.set=T):(pn.get=n.get?r&&!1!==n.cache?yn(e):gn(n.get):T,pn.set=n.set||T),Object.defineProperty(t,e,pn)}function yn(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function gn(t){return function(){return t.call(this,this)}}function bn(t,e,n,r){return l(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=t[n]),t.$watch(e,n,r)}var _n=0;function wn(t){var e=t.options;if(t.super){var n=wn(t.super);if(n!==t.superOptions){t.superOptions=n;var r=function(t){var e,n=t.options,r=t.sealedOptions;for(var o in n)n[o]!==r[o]&&(e||(e={}),e[o]=n[o]);return e}(t);r&&P(t.extendOptions,r),(e=t.options=Lt(n,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function kn(t){this._init(t)}function On(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]"===u.call(n)&&t.test(e));var n}function Cn(t,e){var n=t.cache,r=t.keys,o=t._vnode;for(var i in n){var s=n[i];if(s){var a=On(s.componentOptions);a&&!e(a)&&Sn(n,i,r,o)}}}function Sn(t,e,n,r){var o=t[e];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),t[e]=null,g(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=_n++,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 o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Lt(wn(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&&Ge(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,o=n&&n.context;t.$slots=de(e._renderChildren,o),t.$scopedSlots=r,t._c=function(e,n,r,o){return Me(t,e,n,r,o,!1)},t.$createElement=function(e,n,r,o){return Me(t,e,n,r,o,!0)};var i=n&&n.data;jt(t,"$attrs",i&&i.attrs||r,null,!0),jt(t,"$listeners",e._parentListeners||r,null,!0)}(e),Ye(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(xt(!1),Object.keys(e).forEach((function(n){jt(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={},o=t.$options._propKeys=[];t.$parent&&xt(!1);var i=function(i){o.push(i);var s=Rt(i,e,n,t);jt(r,i,s),i in t||hn(t,"_props",i)};for(var s in e)i(s);xt(!0)}(t,e.props),e.methods&&function(t,e){for(var n in t.$options.props,e)t[n]="function"!=typeof e[n]?T:j(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;l(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return Bt(t,e,"data()"),{}}finally{ht()}}(e,t):e||{})||(e={});for(var n,r=Object.keys(e),o=t.$options.props,i=(t.$options.methods,r.length);i--;){var s=r[i];o&&_(o,s)||(void 0,36!==(n=(s+"").charCodeAt(0))&&95!==n&&hn(t,"_data",s))}St(e,!0)}(t):St(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=ot();for(var o in e){var i=e[o],s="function"==typeof i?i:i.get;r||(n[o]=new dn(t,s||T,T,mn)),o in t||vn(t,o,i)}}(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 o=0;o1?A(e):e;for(var n=A(arguments,1),r='event handler for "'+t+'"',o=0,i=e.length;oparseInt(this.max)&&Sn(s,a[0],a,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:P,mergeOptions:Lt,defineReactive:jt},t.set=At,t.delete=Pt,t.nextTick=ee,t.observable=function(t){return St(t),t},t.options=Object.create(null),R.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,An),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=A(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=Lt(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,o=t._Ctor||(t._Ctor={});if(o[r])return o[r];var i=t.name||n.options.name,s=function(t){this._init(t)};return(s.prototype=Object.create(n.prototype)).constructor=s,s.cid=e++,s.options=Lt(n.options,t),s.super=n,s.options.props&&function(t){var e=t.options.props;for(var n in e)hn(t.prototype,"_props",n)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var n in e)vn(t.prototype,n,e[n])}(s),s.extend=n.extend,s.mixin=n.mixin,s.use=n.use,R.forEach((function(t){s[t]=n[t]})),i&&(s.options.components[i]=s),s.superOptions=n.options,s.extendOptions=t,s.sealedOptions=P({},s.options),o[r]=s,s}}(t),function(t){R.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&l(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:ot}),Object.defineProperty(kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kn,"FunctionalRenderContext",{value:De}),kn.version="2.6.12";var Pn=m("style,class"),En=m("input,textarea,option,select,progress"),Tn=function(t,e,n){return"value"===n&&En(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},Dn=m("contenteditable,draggable,spellcheck"),In=m("events,caret,typing,plaintext-only"),$n=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"),Fn="http://www.w3.org/1999/xlink",Ln=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Nn=function(t){return Ln(t)?t.slice(6,t.length):""},Rn=function(t){return null==t||!1===t};function Mn(t,e){return{staticClass:Hn(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Hn(t,e){return t?e?t+" "+e:t:e||""}function Un(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,o=t.length;r-1?dr(t,e,n):$n(e)?Rn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Dn(e)?t.setAttribute(e,function(t,e){return Rn(e)||"false"===e?"false":"contenteditable"===t&&In(e)?e:"true"}(e,n)):Ln(e)?Rn(n)?t.removeAttributeNS(Fn,Nn(e)):t.setAttributeNS(Fn,e,n):dr(t,e,n)}function dr(t,e,n){if(Rn(n))t.removeAttribute(e);else{if(W&&!Z&&"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 pr={create:lr,update:lr};function hr(t,e){var n=e.elm,r=e.data,s=t.data;if(!(o(r.staticClass)&&o(r.class)&&(o(s)||o(s.staticClass)&&o(s.class)))){var a=function(t){for(var e=t.data,n=t,r=t;i(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Mn(r.data,e));for(;i(n=n.parent);)n&&n.data&&(e=Mn(e,n.data));return function(t,e){return i(t)||i(e)?Hn(t,Un(e)):""}(e.staticClass,e.class)}(e),c=n._transitionClasses;i(c)&&(a=Hn(a,Un(c))),a!==n._prevClass&&(n.setAttribute("class",a),n._prevClass=a)}}var mr,vr,yr,gr,br,_r,wr={create:hr,update:hr},kr=/[\w).+\-_$\]]/;function Or(t){var e,n,r,o,i,s=!1,a=!1,c=!1,u=!1,l=0,f=0,d=0,p=0;for(r=0;r=0&&" "===(m=t.charAt(h));h--);m&&kr.test(m)||(u=!0)}}else void 0===o?(p=r+1,o=t.slice(0,r).trim()):v();function v(){(i||(i=[])).push(t.slice(p,r).trim()),p=r+1}if(void 0===o?o=t.slice(0,r).trim():0!==p&&v(),i)for(r=0;r-1?{exp:t.slice(0,gr),key:'"'+t.slice(gr+1)+'"'}:{exp:t,key:null};for(vr=t,gr=br=_r=0;!Hr();)Ur(yr=Mr())?qr(yr):91===yr&&Br(yr);return{exp:t.slice(0,br),key:t.slice(br+1,_r)}}(t);return null===n.key?t+"="+e:"$set("+n.exp+", "+n.key+", "+e+")"}function Mr(){return vr.charCodeAt(++gr)}function Hr(){return gr>=mr}function Ur(t){return 34===t||39===t}function Br(t){var e=1;for(br=gr;!Hr();)if(Ur(t=Mr()))qr(t);else if(91===t&&e++,93===t&&e--,0===e){_r=gr;break}}function qr(t){for(var e=t;!Hr()&&(t=Mr())!==e;);}var zr,Vr="__r";function Kr(t,e,n){var r=zr;return function o(){null!==e.apply(null,arguments)&&Xr(t,o,n,r)}}var Jr=Jt&&!(tt&&Number(tt[1])<=53);function Gr(t,e,n,r){if(Jr){var o=an,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}zr.addEventListener(t,e,nt?{capture:n,passive:r}:n)}function Xr(t,e,n,r){(r||zr).removeEventListener(t,e._wrapper||e,n)}function Wr(t,e){if(!o(t.data.on)||!o(e.data.on)){var n=e.data.on||{},r=t.data.on||{};zr=e.elm,function(t){if(i(t.__r)){var e=W?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}i(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),se(n,r,Gr,Xr,Kr,e.context),zr=void 0}}var Zr,Qr={create:Wr,update:Wr};function Yr(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var n,r,s=e.elm,a=t.data.domProps||{},c=e.data.domProps||{};for(n in i(c.__ob__)&&(c=e.data.domProps=P({},c)),a)n in c||(s[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===a[n])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===n&&"PROGRESS"!==s.tagName){s._value=r;var u=o(r)?"":String(r);to(s,u)&&(s.value=u)}else if("innerHTML"===n&&zn(s.tagName)&&o(s.innerHTML)){(Zr=Zr||document.createElement("div")).innerHTML=""+r+"";for(var l=Zr.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;l.firstChild;)s.appendChild(l.firstChild)}else if(r!==a[n])try{s[n]=r}catch(t){}}}}function to(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(i(r)){if(r.number)return h(n)!==h(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var eo={create:Yr,update:Yr},no=w((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 ro(t){var e=oo(t.style);return t.staticStyle?P(t.staticStyle,e):e}function oo(t){return Array.isArray(t)?E(t):"string"==typeof t?no(t):t}var io,so=/^--/,ao=/\s*!important$/,co=function(t,e,n){if(so.test(e))t.style.setProperty(e,n);else if(ao.test(n))t.style.setProperty(S(e),n.replace(ao,""),"important");else{var r=lo(e);if(Array.isArray(n))for(var o=0,i=n.length;o-1?e.split(ho).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 vo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(ho).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 yo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&P(e,go(t.name||"v")),P(e,t),e}return"string"==typeof t?go(t):void 0}}var go=w((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"}})),bo=K&&!Z,_o="transition",wo="animation",ko="transition",Oo="transitionend",xo="animation",Co="animationend";bo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ko="WebkitTransition",Oo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(xo="WebkitAnimation",Co="webkitAnimationEnd"));var So=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function jo(t){So((function(){So(t)}))}function Ao(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),mo(t,e))}function Po(t,e){t._transitionClasses&&g(t._transitionClasses,e),vo(t,e)}function Eo(t,e,n){var r=Do(t,e),o=r.type,i=r.timeout,s=r.propCount;if(!o)return n();var a=o===_o?Oo:Co,c=0,u=function(){t.removeEventListener(a,l),n()},l=function(e){e.target===t&&++c>=s&&u()};setTimeout((function(){c0&&(n=_o,l=s,f=i.length):e===wo?u>0&&(n=wo,l=u,f=c.length):f=(n=(l=Math.max(s,u))>0?s>u?_o:wo:null)?n===_o?i.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===_o&&To.test(r[ko+"Property"])}}function Io(t,e){for(;t.length1}function Mo(t,e){!0!==e.data.show&&Fo(e)}var Ho=function(t){var e,n,r={},c=t.modules,u=t.nodeOps;for(e=0;eh?b(t,o(n[y+1])?null:n[y+1].elm,n,p,y,r):p>y&&w(e,d,h)}(d,m,y,n,l):i(y)?(i(t.text)&&u.setTextContent(d,""),b(d,null,y,0,y.length-1,n)):i(m)?w(m,0,m.length-1):i(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),i(h)&&i(p=h.hook)&&i(p=p.postpatch)&&p(t,e)}}}function C(t,e,n){if(s(n)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,s.selected!==i&&(s.selected=i);else if($(Vo(s),r))return void(t.selectedIndex!==a&&(t.selectedIndex=a));o||(t.selectedIndex=-1)}}function zo(t,e){return e.every((function(e){return!$(e,t)}))}function Vo(t){return"_value"in t?t._value:t.value}function Ko(t){t.target.composing=!0}function Jo(t){t.target.composing&&(t.target.composing=!1,Go(t.target,"input"))}function Go(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Xo(t){return!t.componentInstance||t.data&&t.data.transition?t:Xo(t.componentInstance._vnode)}var Wo={model:Uo,show:{bind:function(t,e,n){var r=e.value,o=(n=Xo(n)).data&&n.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&o?(n.data.show=!0,Fo(n,(function(){t.style.display=i}))):t.style.display=r?i:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=Xo(n)).data&&n.data.transition?(n.data.show=!0,r?Fo(n,(function(){t.style.display=t.__vOriginalDisplay})):Lo(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,o){o||(t.style.display=t.__vOriginalDisplay)}}},Zo={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 Qo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Qo(ze(e.children)):t}function Yo(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var o=n._parentListeners;for(var i in o)e[O(i)]=o[i];return e}function ti(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var ei=function(t){return t.tag||qe(t)},ni=function(t){return"show"===t.name},ri={name:"transition",props:Zo,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(ei)).length){var r=this.mode,o=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=Qo(o);if(!i)return o;if(this._leaving)return ti(t,o);var s="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?s+"comment":s+i.tag:a(i.key)?0===String(i.key).indexOf(s)?i.key:s+i.key:i.key;var c=(i.data||(i.data={})).transition=Yo(this),u=this._vnode,l=Qo(u);if(i.data.directives&&i.data.directives.some(ni)&&(i.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(i,l)&&!qe(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=P({},c);if("out-in"===r)return this._leaving=!0,ae(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ti(t,o);if("in-out"===r){if(qe(i))return u;var d,p=function(){d()};ae(c,"afterEnter",p),ae(c,"enterCancelled",p),ae(f,"delayLeave",(function(t){d=t}))}}return o}}},oi=P({tag:String,moveClass:String},Zo);function ii(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function si(t){t.data.newPos=t.elm.getBoundingClientRect()}function ai(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,o=e.top-n.top;if(r||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+r+"px,"+o+"px)",i.transitionDuration="0s"}}delete oi.mode;var ci={Transition:ri,TransitionGroup:{props:oi,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var o=We(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),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,o=this.$slots.default||[],i=this.children=[],s=Yo(this),a=0;a-1?Jn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Jn[t]=/HTMLUnknownElement/.test(e.toString())},P(kn.options.directives,Wo),P(kn.options.components,ci),kn.prototype.__patch__=K?Ho:T,kn.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=yt),Ye(t,"beforeMount"),r=function(){t._update(t._render(),n)},new dn(t,r,T,{before:function(){t._isMounted&&!t._isDestroyed&&Ye(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Ye(t,"mounted")),t}(this,t=t&&K?Xn(t):void 0,e)},K&&setTimeout((function(){H.devtools&&it&&it.emit("init",kn)}),0);var ui,li=/\{\{((?:.|\r?\n)+?)\}\}/g,fi=/[-.*+?^${}()|[\]\/\\]/g,di=w((function(t){var e=t[0].replace(fi,"\\$&"),n=t[1].replace(fi,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+n,"g")})),pi={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var n=$r(t,"class");n&&(t.staticClass=JSON.stringify(n));var r=Ir(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}},hi={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var n=$r(t,"style");n&&(t.staticStyle=JSON.stringify(no(n)));var r=Ir(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}},mi=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),vi=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),yi=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"),gi=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,bi=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,_i="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",wi="((?:"+_i+"\\:)?"+_i+")",ki=new RegExp("^<"+wi),Oi=/^\s*(\/?)>/,xi=new RegExp("^<\\/"+wi+"[^>]*>"),Ci=/^]+>/i,Si=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Ti=/&(?:lt|gt|quot|amp|#39);/g,Di=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Ii=m("pre,textarea",!0),$i=function(t,e){return t&&Ii(t)&&"\n"===e[0]};function Fi(t,e){var n=e?Di:Ti;return t.replace(n,(function(t){return Ei[t]}))}var Li,Ni,Ri,Mi,Hi,Ui,Bi,qi,zi=/^@|^v-on:/,Vi=/^v-|^@|^:|^#/,Ki=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ji=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Gi=/^\(|\)$/g,Xi=/^\[.*\]$/,Wi=/:(.*)$/,Zi=/^:|^\.|^v-bind:/,Qi=/\.[^.\]]+(?=[^\]]*$)/g,Yi=/^v-slot(:|$)|^#/,ts=/[\r\n]/,es=/\s+/g,ns=w((function(t){return(ui=ui||document.createElement("div")).innerHTML=t,ui.textContent})),rs="_empty_";function os(t,e,n){return{type:1,tag:t,attrsList:e,attrsMap:ls(e),rawAttrsMap:{},parent:n,children:[]}}function is(t,e){var n,r;(r=Ir(n=t,"key"))&&(n.key=r),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Ir(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=$r(t,"scope"),t.slotScope=e||$r(t,"slot-scope")):(e=$r(t,"slot-scope"))&&(t.slotScope=e);var n=Ir(t,"slot");if(n&&(t.slotTarget='""'===n?'"default"':n,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Ar(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=Fr(t,Yi);if(r){var o=cs(r),i=o.name,s=o.dynamic;t.slotTarget=i,t.slotTargetDynamic=s,t.slotScope=r.value||rs}}else{var a=Fr(t,Yi);if(a){var c=t.scopedSlots||(t.scopedSlots={}),u=cs(a),l=u.name,f=u.dynamic,d=c[l]=os("template",[],t);d.slotTarget=l,d.slotTargetDynamic=f,d.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=d,!0})),d.slotScope=a.value||rs,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Ir(t,"name"))}(t),function(t){var e;(e=Ir(t,"is"))&&(t.component=e),null!=$r(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var o=0;o-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),Dr(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+s+");if(Array.isArray($$a)){var $$v="+(r?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Rr(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Rr(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Rr(e,"$$c")+"}",null,!0)}(t,r,o);else if("input"===i&&"radio"===s)!function(t,e,n){var r=n&&n.number,o=Ir(t,"value")||"null";jr(t,"checked","_q("+e+","+(o=r?"_n("+o+")":o)+")"),Dr(t,"change",Rr(e,o),null,!0)}(t,r,o);else if("input"===i||"textarea"===i)!function(t,e,n){var r=t.attrsMap.type,o=n||{},i=o.lazy,s=o.number,a=o.trim,c=!i&&"range"!==r,u=i?"change":"range"===r?Vr:"input",l="$event.target.value";a&&(l="$event.target.value.trim()"),s&&(l="_n("+l+")");var f=Rr(e,l);c&&(f="if($event.target.composing)return;"+f),jr(t,"value","("+e+")"),Dr(t,u,f,null,!0),(a||s)&&Dr(t,"blur","$forceUpdate()")}(t,r,o);else if(!H.isReservedTag(i))return Nr(t,r,o),!1;return!0},text:function(t,e){e.value&&jr(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&jr(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:mi,mustUseProp:Tn,canBeLeftOpenTag:vi,isReservedTag:Vn,getTagNamespace:Kn,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(vs)},gs=w((function(t){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var bs=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,_s=/\([^)]*?\);*$/,ws=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ks={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Os={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"]},xs=function(t){return"if("+t+")return null;"},Cs={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:xs("$event.target !== $event.currentTarget"),ctrl:xs("!$event.ctrlKey"),shift:xs("!$event.shiftKey"),alt:xs("!$event.altKey"),meta:xs("!$event.metaKey"),left:xs("'button' in $event && $event.button !== 0"),middle:xs("'button' in $event && $event.button !== 1"),right:xs("'button' in $event && $event.button !== 2")};function Ss(t,e){var n=e?"nativeOn:":"on:",r="",o="";for(var i in t){var s=js(t[i]);t[i]&&t[i].dynamic?o+=i+","+s+",":r+='"'+i+'":'+s+","}return r="{"+r.slice(0,-1)+"}",o?n+"_d("+r+",["+o.slice(0,-1)+"])":n+r}function js(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return js(t)})).join(",")+"]";var e=ws.test(t.value),n=bs.test(t.value),r=ws.test(t.value.replace(_s,""));if(t.modifiers){var o="",i="",s=[];for(var a in t.modifiers)if(Cs[a])i+=Cs[a],ks[a]&&s.push(a);else if("exact"===a){var c=t.modifiers;i+=xs(["ctrl","shift","alt","meta"].filter((function(t){return!c[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else s.push(a);return s.length&&(o+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(As).join("&&")+")return null;"}(s)),i&&(o+=i),"function($event){"+o+(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 As(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var n=ks[t],r=Os[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ps={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:T},Es=function(t){this.options=t,this.warn=t.warn||Cr,this.transforms=Sr(t.modules,"transformCode"),this.dataGenFns=Sr(t.modules,"genData"),this.directives=P(P({},Ps),t.directives);var e=t.isReservedTag||D;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ts(t,e){var n=new Es(e);return{render:"with(this){return "+(t?Ds(t,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ds(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Is(t,e);if(t.once&&!t.onceProcessed)return $s(t,e);if(t.for&&!t.forProcessed)return Ls(t,e);if(t.if&&!t.ifProcessed)return Fs(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var n=t.slotName||'"default"',r=Hs(t,e),o="_t("+n+(r?","+r:""),i=t.attrs||t.dynamicAttrs?qs((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:O(t.name),value:t.value,dynamic:t.dynamic}}))):null,s=t.attrsMap["v-bind"];return!i&&!s||r||(o+=",null"),i&&(o+=","+i),s&&(o+=(i?"":",null")+","+s),o+")"}(t,e);var n;if(t.component)n=function(t,e,n){var r=e.inlineTemplate?null:Hs(e,n,!0);return"_c("+t+","+Ns(e,n)+(r?","+r:"")+")"}(t.component,t,e);else{var r;(!t.plain||t.pre&&e.maybeComponent(t))&&(r=Ns(t,e));var o=t.inlineTemplate?null:Hs(t,e,!0);n="_c('"+t.tag+"'"+(r?","+r:"")+(o?","+o:"")+")"}for(var i=0;i>>0}(s):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(n+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var i=function(t,e){var n=t.children[0];if(n&&1===n.type){var r=Ts(n,e.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);i&&(n+=i+",")}return n=n.replace(/,$/,"")+"}",t.dynamicAttrs&&(n="_b("+n+',"'+t.tag+'",'+qs(t.dynamicAttrs)+")"),t.wrapData&&(n=t.wrapData(n)),t.wrapListeners&&(n=t.wrapListeners(n)),n}function Rs(t){return 1===t.type&&("slot"===t.tag||t.children.some(Rs))}function Ms(t,e){var n=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!n)return Fs(t,e,Ms,"null");if(t.for&&!t.forProcessed)return Ls(t,e,Ms);var r=t.slotScope===rs?"":String(t.slotScope),o="function("+r+"){return "+("template"===t.tag?t.if&&n?"("+t.if+")?"+(Hs(t,e)||"undefined")+":undefined":Hs(t,e)||"undefined":Ds(t,e))+"}",i=r?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+o+i+"}"}function Hs(t,e,n,r,o){var i=t.children;if(i.length){var s=i[0];if(1===i.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var a=n?e.maybeComponent(s)?",1":",0":"";return""+(r||Ds)(s,e)+a}var c=n?function(t,e){for(var n=0,r=0;r]*>)","i")),d=t.replace(f,(function(t,n,r){return u=r.length,Ai(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),$i(l,n)&&(n=n.slice(1)),e.chars&&e.chars(n),""}));c+=t.length-d.length,t=d,S(l,c-u,c)}else{var p=t.indexOf("<");if(0===p){if(Si.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h),c,c+h+3),O(h+3);continue}}if(ji.test(t)){var m=t.indexOf("]>");if(m>=0){O(m+2);continue}}var v=t.match(Ci);if(v){O(v[0].length);continue}var y=t.match(xi);if(y){var g=c;O(y[0].length),S(y[1],g,c);continue}var b=x();if(b){C(b),$i(b.tagName,t)&&O(1);continue}}var _=void 0,w=void 0,k=void 0;if(p>=0){for(w=t.slice(p);!(xi.test(w)||ki.test(w)||Si.test(w)||ji.test(w)||(k=w.indexOf("<",1))<0);)p+=k,w=t.slice(p);_=t.substring(0,p)}p<0&&(_=t),_&&O(_.length),e.chars&&_&&e.chars(_,c-_.length,c)}if(t===n){e.chars&&e.chars(t);break}}function O(e){c+=e,t=t.substring(e)}function x(){var e=t.match(ki);if(e){var n,r,o={tagName:e[1],attrs:[],start:c};for(O(e[0].length);!(n=t.match(Oi))&&(r=t.match(bi)||t.match(gi));)r.start=c,O(r[0].length),r.end=c,o.attrs.push(r);if(n)return o.unarySlash=n[1],O(n[0].length),o.end=c,o}}function C(t){var n=t.tagName,c=t.unarySlash;i&&("p"===r&&yi(n)&&S(r),a(n)&&r===n&&S(n));for(var u=s(n)||!!c,l=t.attrs.length,f=new Array(l),d=0;d=0&&o[s].lowerCasedTag!==a;s--);else s=0;if(s>=0){for(var u=o.length-1;u>=s;u--)e.end&&e.end(o[u].tag,n,i);o.length=s,r=s&&o[s-1].tag}else"br"===a?e.start&&e.start(t,[],!0,n,i):"p"===a&&(e.start&&e.start(t,[],!1,n,i),e.end&&e.end(t,n,i))}S()}(t,{warn:Li,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,i,s,l,f){var d=r&&r.ns||qi(t);W&&"svg"===d&&(i=function(t){for(var e=[],n=0;nc&&(a.push(i=t.slice(c,o)),s.push(JSON.stringify(i)));var u=Or(r[1].trim());s.push("_s("+u+")"),a.push({"@binding":u}),c=o+r[0].length}return c':'
',Gs.innerHTML.indexOf(" ")>0}var Qs=!!K&&Zs(!1),Ys=!!K&&Zs(!0),ta=w((function(t){var e=Xn(t);return e&&e.innerHTML})),ea=kn.prototype.$mount;kn.prototype.$mount=function(t,e){if((t=t&&Xn(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=ta(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 o=Ws(r,{outputSourceRange:!1,shouldDecodeNewlines:Qs,shouldDecodeNewlinesForHref:Ys,delimiters:n.delimiters,comments:n.comments},this),i=o.render,s=o.staticRenderFns;n.render=i,n.staticRenderFns=s}}return ea.call(this,t,e)},kn.compile=Ws,t.exports=kn}).call(this,n("yLpj"),n("URgk").setImmediate)},IfUw:function(t,e,n){"use strict";n.r(e);var r=n("L2JU");function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&(t=this.selectedDocuments),this.startDraggingDocuments(t)},onDragEnd:function(){this.stopDraggingDocuments()}})},l=n("KHd+"),f=Object(l.a)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"list-item",class:{selected:t.is_selected},attrs:{draggable:!0,href:t.url,rel:"noopener noreferrer"},on:{click:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?null:e.metaKey?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey?null:(e.stopPropagation(),e.preventDefault(),t.onAddToSelection(e)):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),e.preventDefault(),t.onClicked(e))}],mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})},dblclick:function(e){return t.openDocument({document:t.document,folder:t.selectedFolder})},dragstart:t.onDragStart,dragend:t.onDragEnd}},[n("div",{staticClass:"list-item-label"},[n("img",{staticClass:"favicon",attrs:{src:t.document.favicon}}),t._v(" "),n("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.document.title))])]),t._v(" "),t.document.feed_item_states_count>0?n("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()])}),[],!1,null,null,null);e.default=f.exports},K93l:function(t,e,n){"use strict";t.exports=function(t){var e=!1;if(Array.isArray(this.items))for(var n=this.items.length,r=0;r127.5?"#000000":"#ffffff"}t.exports&&(e=t.exports=n),e.TEXTColor=n,n.findTextColor=function(t){const e=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;var n=t;if(/^(rgb|RGB)/.test(n))return o(n.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","));if(e.test(n)){var r=t.toLowerCase();if(r&&e.test(r)){if(4===r.length){for(var i="#",s=1;s<4;s+=1)i+=r.slice(s,s+1).concat(r.slice(s,s+1));r=i}var a=[];for(s=1;s<7;s+=2)a.push(parseInt("0x"+r.slice(s,s+2)));return o(a)}return!1}return!1},void 0===(r=function(){return n}.apply(e,[]))||(t.exports=r)}()},L2JU:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return O})),n.d(e,"c",(function(){return k}));var r=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var n,r=(n=function(e){return e.original===t},e.filter(n)[0]);if(r)return r.copy;var i=Array.isArray(t)?[]:{};return e.push({original:t,copy:i}),Object.keys(t).forEach((function(n){i[n]=o(t[n],e)})),i}function i(t,e){Object.keys(t).forEach((function(n){return e(t[n],n)}))}function s(t){return null!==t&&"object"==typeof t}var a=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(t,e){this._children[t]=e},a.prototype.removeChild=function(t){delete this._children[t]},a.prototype.getChild=function(t){return this._children[t]},a.prototype.hasChild=function(t){return t in this._children},a.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},a.prototype.forEachChild=function(t){i(this._children,t)},a.prototype.forEachGetter=function(t){this._rawModule.getters&&i(this._rawModule.getters,t)},a.prototype.forEachAction=function(t){this._rawModule.actions&&i(this._rawModule.actions,t)},a.prototype.forEachMutation=function(t){this._rawModule.mutations&&i(this._rawModule.mutations,t)},Object.defineProperties(a.prototype,c);var u=function(t){this.register([],t,!1)};u.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},u.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")}),"")},u.prototype.update=function(t){!function t(e,n,r){0;if(n.update(r),r.modules)for(var o in r.modules){if(!n.getChild(o))return void 0;t(e.concat(o),n.getChild(o),r.modules[o])}}([],this.root,t)},u.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=new a(e,n);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);e.modules&&i(e.modules,(function(e,o){r.register(t.concat(o),e,n)}))},u.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1],r=e.getChild(n);r&&r.runtime&&e.removeChild(n)},u.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];return e.hasChild(n)};var l;var f=function(t){var e=this;void 0===t&&(t={}),!l&&"undefined"!=typeof window&&window.Vue&&b(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var o=t.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new u(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var i=this,s=this.dispatch,a=this.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,n){return a.call(i,t,e,n)},this.strict=o;var c=this._modules.root.state;v(this,c,[],this._modules.root),m(this,c),n.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:l.config.devtools)&&function(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){r.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},d={state:{configurable:!0}};function p(t,e,n){return e.indexOf(t)<0&&(n&&n.prepend?e.unshift(t):e.push(t)),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function h(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;v(t,n,[],t._modules.root,!0),m(t,n,e)}function m(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,s={};i(o,(function(e,n){s[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})}));var a=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:s}),l.config.silent=a,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit((function(){r._data.$$state=null})),l.nextTick((function(){return r.$destroy()})))}function v(t,e,n,r,o){var i=!n.length,s=t._modules.getNamespace(n);if(r.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=r),!i&&!o){var a=y(e,n.slice(0,-1)),c=n[n.length-1];t._withCommit((function(){l.set(a,c,r.state)}))}var u=r.context=function(t,e,n){var r=""===e,o={dispatch:r?t.dispatch:function(n,r,o){var i=g(n,r,o),s=i.payload,a=i.options,c=i.type;return a&&a.root||(c=e+c),t.dispatch(c,s)},commit:r?t.commit:function(n,r,o){var i=g(n,r,o),s=i.payload,a=i.options,c=i.type;a&&a.root||(c=e+c),t.commit(c,s,a)}};return Object.defineProperties(o,{getters:{get:r?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},r=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,r)===e){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return y(t.state,n)}}}),o}(t,s,n);r.forEachMutation((function(e,n){!function(t,e,n,r){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){n.call(t,r.state,e)}))}(t,s+n,e,u)})),r.forEachAction((function(e,n){var r=e.root?n:s+n,o=e.handler||e;!function(t,e,n,r){(t._actions[e]||(t._actions[e]=[])).push((function(e){var o,i=n.call(t,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e);return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,r,o,u)})),r.forEachGetter((function(e,n){!function(t,e,n,r){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)}}(t,s+n,e,u)})),r.forEachChild((function(r,i){v(t,e,n.concat(i),r,o)}))}function y(t,e){return e.reduce((function(t,e){return t[e]}),t)}function g(t,e,n){return s(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function b(t){l&&t===l||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l=t)}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,n){var r=this,o=g(t,e,n),i=o.type,s=o.payload,a=(o.options,{type:i,payload:s}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(a,r.state)})))},f.prototype.dispatch=function(t,e){var n=this,r=g(t,e),o=r.type,i=r.payload,s={type:o,payload:i},a=this._actions[o];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,n.state)}))}catch(t){0}var c=a.length>1?Promise.all(a.map((function(t){return t(i)}))):a[0](i);return new Promise((function(t,e){c.then((function(e){try{n._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,n.state)}))}catch(t){0}t(e)}),(function(t){try{n._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,n.state,t)}))}catch(t){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){return p("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},f.prototype.watch=function(t,e,n){var r=this;return this._watcherVM.$watch((function(){return t(r.state,r.getters)}),e,n)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),n.preserveState),m(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var n=y(e.state,t.slice(0,-1));l.delete(n,t[t.length-1])})),h(this)},f.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype.hotUpdate=function(t){this._modules.update(t),h(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var _=C((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=S(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,e,n):e[o]},n[r].vuex=!0})),n})),w=C((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.commit;if(t){var i=S(this.$store,"mapMutations",t);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n})),k=C((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,o=e.val;o=t+o,n[r]=function(){if(!t||S(this.$store,"mapGetters",t))return this.$store.getters[o]},n[r].vuex=!0})),n})),O=C((function(t,e){var n={};return x(e).forEach((function(e){var r=e.key,o=e.val;n[r]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=this.$store.dispatch;if(t){var i=S(this.$store,"mapActions",t);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(e)):r.apply(this.$store,[o].concat(e))}})),n}));function x(t){return function(t){return Array.isArray(t)||s(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function C(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function S(t,e,n){return t._modulesNamespaceMap[n]}function j(t,e,n){var r=n?t.groupCollapsed:t.group;try{r.call(t,e)}catch(n){t.log(e)}}function A(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function P(){var t=new Date;return" @ "+E(t.getHours(),2)+":"+E(t.getMinutes(),2)+":"+E(t.getSeconds(),2)+"."+E(t.getMilliseconds(),3)}function E(t,e){return n="0",r=e-t.toString().length,new Array(r+1).join(n)+t;var n,r}var T={Store:f,install:b,version:"3.5.1",mapState:_,mapMutations:w,mapGetters:k,mapActions:O,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:k.bind(null,t),mapMutations:w.bind(null,t),mapActions:O.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var n=t.filter;void 0===n&&(n=function(t,e,n){return!0});var r=t.transformer;void 0===r&&(r=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var s=t.actionFilter;void 0===s&&(s=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=o(t.state);void 0!==l&&(c&&t.subscribe((function(t,s){var a=o(s);if(n(t,f,a)){var c=P(),u=i(t),d="mutation "+t.type+c;j(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",r(a)),A(l)}f=a})),u&&t.subscribeAction((function(t,n){if(s(t,n)){var r=P(),o=a(t),i="action "+t.type+r;j(l,i,e),l.log("%c action","color: #03A9F4; font-weight: bold",o),A(l)}})))}}};e.a=T}).call(this,n("yLpj"))},Lcjm:function(t,e,n){"use strict";var r=n("Aoxg");t.exports=function(){var t=r(this.items),e=void 0,n=void 0,o=void 0;for(o=t.length;o;o-=1)e=Math.floor(Math.random()*o),n=t[o-1],t[o-1]=t[e],t[e]=n;return this.items=t,this}},LlWW:function(t,e,n){"use strict";t.exports=function(t){return this.sortBy(t).reverse()}},LpLF:function(t,e,n){"use strict";t.exports=function(t){var e=this,n=t;n instanceof this.constructor&&(n=n.all());var r=this.items.map((function(t,r){return new e.constructor([t,n[r]])}));return new this.constructor(r)}},Lzbe:function(t,e,n){"use strict";t.exports=function(t,e){var n=this.items.slice(t);return void 0!==e&&(n=n.slice(0,e)),new this.constructor(n)}},M1FP:function(t,e,n){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().forEach((function(n){e[n]=t.items[n]})),new this.constructor(e)}},MIHw:function(t,e,n){"use strict";t.exports=function(t,e){return this.where(t,">=",e[0]).where(t,"<=",e[e.length-1])}},MSmq:function(t,e,n){"use strict";t.exports=function(t){var e=this,n=t;t instanceof this.constructor&&(n=t.all());var r={};return Object.keys(this.items).forEach((function(t){void 0!==n[t]&&n[t]===e.items[t]||(r[t]=e.items[t])})),new this.constructor(r)}},NAvP:function(t,e,n){"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var n=Object.keys(e),r=Object.keys(this.items).filter((function(t){return-1===n.indexOf(t)}));return new this.constructor(this.items).only(r)}},OKMW:function(t,e,n){"use strict";t.exports=function(t,e,n){return this.where(t,e,n).first()||null}},Ob7M:function(t,e,n){"use strict";t.exports=function(t){return new this.constructor(this.items).filter((function(e){return!t(e)}))}},OxKB:function(t,e,n){"use strict";t.exports=function(t){return Array.isArray(t[0])?t[0]:t}},PcwB:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n0?g+y:""}},Qyje:function(t,e,n){"use strict";var r=n("QSc6"),o=n("nmq7"),i=n("sxOR");t.exports={formats:i,parse:o,stringify:r}},RB6r:function(t,e,n){"use strict";n.r(e);var r=n("L2JU");function o(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){for(var e=1;eo?1:0})),new this.constructor(e)}},RR3J:function(t,e,n){"use strict";t.exports=function(t){var e=t;t instanceof this.constructor&&(e=t.all());var n=this.items.filter((function(t){return-1!==e.indexOf(t)}));return new this.constructor(n)}},RVo9:function(t,e,n){"use strict";t.exports=function(t,e){if(Array.isArray(this.items)&&this.items.length)return t(this);if(Object.keys(this.items).length)return t(this);if(void 0!==e){if(Array.isArray(this.items)&&!this.items.length)return e(this);if(!Object.keys(this.items).length)return e(this)}return this}},RtnH:function(t,e,n){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().reverse().forEach((function(n){e[n]=t.items[n]})),new this.constructor(e)}},Rx9r:function(t,e,n){"use strict";var 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},o=n("ytFn");t.exports=function(t){var e=t;t instanceof this.constructor?e=t.all():"object"===(void 0===t?"undefined":r(t))&&(e=[],Object.keys(t).forEach((function(n){e.push(t[n])})));var n=o(this.items);return e.forEach((function(t){"object"===(void 0===t?"undefined":r(t))?Object.keys(t).forEach((function(e){return n.push(t[e])})):n.push(t)})),new this.constructor(n)}},SIfw:function(t,e,n){"use strict";var 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};t.exports={isArray:function(t){return Array.isArray(t)},isObject:function(t){return"object"===(void 0===t?"undefined":r(t))&&!1===Array.isArray(t)&&null!==t},isFunction:function(t){return"function"==typeof t}}},T3CM:function(t,e,n){"use strict";n.r(e);var r=n("o0o1"),o=n.n(r);function i(t,e,n,r,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var s=t.apply(e,n);function a(t){i(s,r,o,a,c,"next",t)}function c(t){i(s,r,o,a,c,"throw",t)}a(void 0)}))}}var a,c,u={data:function(){return{highlights:highlights,newExpression:null,newColor:null}},computed:{sortedHighlights:function(){return collect(this.highlights).sortBy("expression")}},methods:{addHighlight:(c=s(o.a.mark((function t(){var e;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=this).newExpression){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,api.post(route("highlight.store"),{expression:e.newExpression,color:e.newColor});case 5:e.highlights=t.sent,e.newExpression=null,e.newColor=null;case 8:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)}),onDestroy:(a=s(o.a.mark((function t(e){var n;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this,t.next=3,api.delete(route("highlight.destroy",e));case 3:n.highlights=t.sent;case 4:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})}},l=n("KHd+"),f=Object(l.a)(u,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("table",{staticClass:"w-full"},[n("thead",[n("tr",[n("th",{staticClass:"w-1/2"},[t._v(t._s(t.__("Expression")))]),t._v(" "),n("th",{staticClass:"w-1/4"},[t._v(t._s(t.__("Color")))]),t._v(" "),n("th")]),t._v(" "),n("tr",[n("td",{staticClass:"w-1/2"},[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.newExpression,expression:"newExpression",modifiers:{lazy:!0}}],staticClass:"w-full",attrs:{type:"text","aria-label":t.__("Expression")},domProps:{value:t.newExpression},on:{change:function(e){t.newExpression=e.target.value}}})]),t._v(" "),n("td",{staticClass:"w-1/4"},[n("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.newColor,expression:"newColor",modifiers:{lazy:!0}}],staticClass:"w-full",attrs:{type:"color","aria-label":t.__("Color")},domProps:{value:t.newColor},on:{change:function(e){t.newColor=e.target.value}}})]),t._v(" "),n("td",[n("button",{staticClass:"success",attrs:{type:"submit",title:t.__("Add highlight")},on:{click:t.addHighlight}},[n("svg",{attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("add")}})])])])])]),t._v(" "),n("tbody",t._l(t.sortedHighlights,(function(e){return n("highlight",{key:e.id,attrs:{highlight:e},on:{destroy:t.onDestroy}})})),1)])}),[],!1,null,null,null);e.default=f.exports},TWr4:function(t,e,n){"use strict";var r=n("SIfw"),o=r.isArray,i=r.isObject,s=r.isFunction;t.exports=function(t){var e=this,n=null,r=void 0,a=function(e){return e===t};return s(t)&&(a=t),o(this.items)&&(r=this.items.filter((function(t){return!0!==n&&(n=!a(t)),n}))),i(this.items)&&(r=Object.keys(this.items).reduce((function(t,r){return!0!==n&&(n=!a(e.items[r])),!1!==n&&(t[r]=e.items[r]),t}),{})),new this.constructor(r)}},TZAN:function(t,e,n){"use strict";var r=n("Aoxg"),o=n("0tQ4");t.exports=function(t,e){var n=r(e),i=this.items.filter((function(e){return-1!==n.indexOf(o(e,t))}));return new this.constructor(i)}},"UH+N":function(t,e,n){"use strict";t.exports=function(t){var e=this,n=JSON.parse(JSON.stringify(this.items));return Object.keys(t).forEach((function(r){void 0===e.items[r]&&(n[r]=t[r])})),new this.constructor(n)}},URgk:function(t,e,n){(function(t){var r=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.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("YBdB"),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("yLpj"))},UY0H:function(t,e,n){"use strict";var r=n("Aoxg");t.exports=function(){return new this.constructor(r(this.items))}},UgDP:function(t,e,n){"use strict";var r=n("Aoxg"),o=n("0tQ4");t.exports=function(t,e){var n=r(e),i=this.items.filter((function(e){return-1===n.indexOf(o(e,t))}));return new this.constructor(i)}},UnNl:function(t,e,n){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"===",null)}},Ww0C:function(t,e,n){"use strict";t.exports=function(){return this.sort().reverse()}},XuX8:function(t,e,n){t.exports=n("INkZ")},YBdB:function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var r,o,i,s,a,c=1,u={},l=!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(){h(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?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},r=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):r=function(t){setTimeout(h,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&h(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),r=function(e){t.postMessage(s+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n",0).whereNotIn("id",e).first();i?r("selectDocuments",[i]):"unread_items"===o["folders/selectedFolder"].type&&r("selectDocuments",[])},startDraggingDocuments:function(t,e){(0,t.commit)("setDraggedDocuments",e)},stopDraggingDocuments:function(t){(0,t.commit)("setDraggedDocuments",[])},dropIntoFolder:function(t,e){return m(a.a.mark((function n(){var r,o,i,s,c,u;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.getters,o=t.commit,i=t.dispatch,s=e.sourceFolder,c=e.targetFolder,(u=r.draggedDocuments)&&0!==u.length){n.next=5;break}return n.abrupt("return");case 5:return n.next=7,api.post(route("document.move",{sourceFolder:s,targetFolder:c}),{documents:collect(u).pluck("id").all()});case 7:n.sent,o("setDraggedDocuments",[]),o("setSelectedDocuments",[]),i("feedItems/index",r.feeds,{root:!0});case 11:case"end":return n.stop()}}),n)})))()},incrementVisits:function(t,e){return m(a.a.mark((function n(){var r,o,i,s;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,o=e.document,i=e.folder,n.next=4,api.post(route("document.visit",{document:o,folder:i}));case 4:s=n.sent,r("update",{document:o,newProperties:s});case 6:case"end":return n.stop()}}),n)})))()},openDocument:function(t,e){var n=t.dispatch,r=e.document,o=e.folder;window.open(r.bookmark.initial_url),n("incrementVisits",{document:r,folder:o})},destroy:function(t,e){return m(a.a.mark((function n(){var r,o,i,s,c,u;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.commit,o=t.getters,i=t.dispatch,s=e.folder,c=e.documents,r("setSelectedDocuments",[]),n.next=5,api.post(route("document.destroy_bookmarks",s),{documents:collect(c).pluck("id").all()});case 5:u=n.sent,i("folders/index",null,{root:!0}),i("index",u),i("feedItems/index",o.feeds,{root:!0});case 9:case"end":return n.stop()}}),n)})))()},update:function(t,e){var n=t.commit,r=t.getters,o=e.documentId,i=e.newProperties,s=r.documents.find((function(t){return t.id===o}));s&&n("update",{document:s,newProperties:i})},followFeed:function(t,e){var n=t.commit;api.post(route("feed.follow",e.id)),n("ignoreFeed",{feed:e,ignored:!1})},ignoreFeed:function(t,e){var n=t.commit;api.post(route("feed.ignore",e.id)),n("ignoreFeed",{feed:e,ignored:!0})}},mutations:{setDocuments:function(t,e){t.documents=e},setSelectedDocuments:function(t,e){t.selectedDocuments=e},setDraggedDocuments:function(t,e){t.draggedDocuments=e},update:function(t,e){var n=e.document,r=e.newProperties;for(var o in r)n[o]=r[o]},ignoreFeed:function(t,e){var n=e.feed,r=e.ignored;n.is_ignored=r}}},y={feedItems:function(t){return t.feedItems},feedItem:function(t){return collect(t.feedItems).first()},selectedFeedItems:function(t){return t.selectedFeedItems?t.selectedFeedItems:[]},selectedFeedItem:function(t){return collect(t.selectedFeedItems).first()},nextPage:function(t){return t.nextPage},feeds:function(t){return t.feeds},canLoadMore:function(t){return t.nextPage>1}},g=n("j5l6");function b(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(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 _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0)){n.next=10;break}return n.next=7,api.get(route("feed_item.index",{feeds:o}));case 7:c=n.sent,s=c.data,i=null!==c.next_page_url?c.current_page+1:0;case 10:r("setNextPage",i),r("setFeeds",o),r("setFeedItems",s);case 13:case"end":return n.stop()}}),n)})))()},loadMoreFeedItems:function(t){return k(a.a.mark((function e(){var n,r,o,i,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.getters,r=t.commit,n.nextPage&&n.feeds){e.next=3;break}return e.abrupt("return");case 3:return o=n.feedItems,e.next=6,api.get(route("feed_item.index",{page:n.nextPage,feeds:n.feeds}));case 6:i=e.sent,s=[].concat(b(o),b(i.data)),r("setNextPage",null!==i.next_page_url?i.current_page+1:0),r("setFeeds",n.feeds),r("setFeedItems",s);case 11:case"end":return e.stop()}}),e)})))()},selectFeedItems:function(t,e){return k(a.a.mark((function n(){var r,o;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=t.commit,1!==e.length){n.next=6;break}return n.next=4,api.get(route("feed_item.show",e[0]));case 4:o=n.sent,r("update",{feedItem:e[0],newProperties:o});case 6:r("setSelectedFeedItems",e);case 7:case"end":return n.stop()}}),n)})))()},selectFirstUnreadFeedItem:function(t,e){var n=t.getters,r=t.dispatch;e||(e=[]);var o=Object(g.collect)(n.feedItems).where("feed_item_states_count",">",0).whereNotIn("id",e).first();o?r("selectFeedItems",[o]):(r("selectFeedItems",[]),r("documents/selectFirstDocumentWithUnreadItems",null,{root:!0}))},markAsRead:function(t,e){return k(a.a.mark((function n(){var r,o,i;return a.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.dispatch,o=t.commit,"feed_items"in e?r("selectFirstUnreadFeedItem",e.feed_items):"documents"in e&&r("documents/selectFirstDocumentWithUnreadItems",e.documents,{root:!0}),n.next=4,api.post(route("feed_item.mark_as_read"),e);case 4:return i=n.sent,o("folders/setFolders",i,{root:!0}),n.next=8,r("documents/index",null,{root:!0});case 8:case"end":return n.stop()}}),n)})))()}},mutations:{setFeedItems:function(t,e){t.feedItems=e},setNextPage:function(t,e){t.nextPage=e},setFeeds:function(t,e){t.feeds=e},setSelectedFeedItems:function(t,e){e||(e=[]),t.selectedFeedItems=e},update:function(t,e){var n=e.feedItem,r=e.newProperties;for(var o in r)n[o]=r[o]}}};o.a.use(i.a);var x=new i.a.Store({modules:{folders:p,documents:v,feedItems:O},strict:!1});function C(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;e0?1===t.length?this.detailsViewComponent="details-document":this.detailsViewComponent="details-documents":this.detailsViewComponent="details-folder"},selectedFeedItems:function(t){t&&t.length>0?1===t.length?this.detailsViewComponent="details-feed-item":this.detailsViewComponent=null:this.selectedDocuments&&this.selectedDocuments.length>0?this.detailsViewComponent="details-document":this.detailsViewComponent="details-folder"}},methods:S(S({},Object(i.b)({showFolder:"folders/show",indexFolders:"folders/index",selectDocuments:"documents/selectDocuments",indexDocuments:"documents/index",dropIntoFolder:"folders/dropIntoFolder",selectFeedItems:"feedItems/selectFeedItems",markFeedItemsAsRead:"feedItems/markAsRead",updateDocument:"documents/update",deleteDocuments:"documents/destroy"})),{},{listenToBroadcast:function(){var t=this,e=document.querySelector('meta[name="user-id"]').getAttribute("content");window.Echo.private("App.Models.User."+e).notification((function(e){switch(e.type){case"App\\Notifications\\UnreadItemsChanged":t.indexFolders().then((function(){t.indexDocuments()}));break;case"App\\Notifications\\DocumentUpdated":t.updateDocument({documentId:e.document.id,newProperties:e.document})}}))},onFoldersLoaded:function(){},onSelectedFolderChanged:function(t){this.showFolder(t),this.detailsViewComponent="details-folder"},onItemDropped:function(t){this.dropIntoFolder(t)},onSelectedDocumentsChanged:function(t){this.selectDocuments(t)},onDocumentAdded:function(){},onDocumentsDeleted:function(t){var e=t.folder,n=t.documents;this.deleteDocuments({documents:n,folder:e})},onSelectedFeedItemsChanged:function(t){this.selectFeedItems(t)},onFeedItemsRead:function(t){this.markFeedItemsAsRead(t)}})})},"c58/":function(t,e,n){"use strict";n.r(e);var r=n("o0o1"),o=n.n(r);function i(t,e,n,r,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,o)}function s(t){return function(){var e=this,n=arguments;return new Promise((function(r,o){var s=t.apply(e,n);function a(t){i(s,r,o,a,c,"next",t)}function c(t){i(s,r,o,a,c,"throw",t)}a(void 0)}))}}var a={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest","X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').getAttribute("content")},c={send:function(t,e){var n=arguments;return s(o.a.mark((function r(){var i,s,c,u,l,f;return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=n.length>2&&void 0!==n[2]?n[2]:"POST",s=n.length>3&&void 0!==n[3]&&n[3],c=a,s&&(c["Content-Type"]="multipart/form-data"),u={method:i,headers:c},e&&(u.body=s?e:JSON.stringify(e)),r.next=8,fetch(t,u);case 8:return l=r.sent,r.prev=9,r.next=12,l.json();case 12:return f=r.sent,r.abrupt("return",f);case 16:return r.prev=16,r.t0=r.catch(9),r.abrupt("return",l);case 19:case"end":return r.stop()}}),r,null,[[9,16]])})))()},get:function(t){var e=this;return s(o.a.mark((function n(){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",e.send(t,null,"GET"));case 1:case"end":return n.stop()}}),n)})))()},post:function(t,e){var n=arguments,r=this;return s(o.a.mark((function i(){var s;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=n.length>2&&void 0!==n[2]&&n[2],o.abrupt("return",r.send(t,e,"POST",s));case 2:case"end":return o.stop()}}),i)})))()},put:function(t,e){var n=this;return s(o.a.mark((function r(){return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",n.send(t,e,"PUT"));case 1:case"end":return r.stop()}}),r)})))()},delete:function(t,e){var n=this;return s(o.a.mark((function r(){return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",n.send(t,e,"DELETE"));case 1:case"end":return r.stop()}}),r)})))()}};window.Vue=n("XuX8"),window.collect=n("j5l6"),window.api=c,n("zhh1")},c993:function(t,e,n){"use strict";n.r(e);var r=n("L2JU");function o(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){for(var e=1;e0?n("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),n("a",{staticClass:"button info ml-2",attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),n("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),n("div",{staticClass:"body"},[n("div",{domProps:{innerHTML:t._s(t.feedItem.content?t.feedItem.content:t.feedItem.description)}}),t._v(" "),n("dl",[n("dt",[t._v(t._s(t.__("URL")))]),t._v(" "),n("dd",[n("a",{attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[t._v(t._s(t.feedItem.url))])]),t._v(" "),n("dt",[t._v(t._s(t.__("Date of item's creation")))]),t._v(" "),n("dd",[n("date-time",{attrs:{datetime:t.feedItem.created_at,calendar:!0}})],1),t._v(" "),n("dt",[t._v(t._s(t.__("Date of item's publication")))]),t._v(" "),n("dd",[n("date-time",{attrs:{datetime:t.feedItem.published_at,calendar:!0}})],1),t._v(" "),n("dt",[t._v(t._s(t.__("Published in")))]),t._v(" "),n("dd",t._l(t.feedItem.feeds,(function(e){return n("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500"},[n("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),n("div",{staticClass:"py-0.5"},[t._v(t._s(e.title))])])})),0)])])])}),[],!1,null,null,null);e.default=u.exports},cZbx:function(t,e,n){"use strict";var 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};t.exports=function(t){return t instanceof this.constructor?t:"object"===(void 0===t?"undefined":r(t))?new this.constructor(t):new this.constructor([t])}},clGK:function(t,e,n){"use strict";t.exports=function(t,e,n){t?n(this):e(this)}},dydJ:function(t,e,n){"use strict";var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o="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.exports=function(t){var e=this,n=t;n instanceof this.constructor&&(n=t.all());var i={};if(Array.isArray(this.items)&&Array.isArray(n))this.items.forEach((function(t,e){i[t]=n[e]}));else if("object"===o(this.items)&&"object"===(void 0===n?"undefined":o(n)))Object.keys(this.items).forEach((function(t,r){i[e.items[t]]=n[Object.keys(n)[r]]}));else if(Array.isArray(this.items))i[this.items[0]]=n;else if("string"==typeof this.items&&Array.isArray(n)){var s=r(n,1);i[this.items]=s[0]}else"string"==typeof this.items&&(i[this.items]=n);return new this.constructor(i)}},eC5B:function(t,e,n){var r;window,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.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 o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));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";var r,o=this&&this.__extends||(r=function(t,e){return(r=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}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){void 0===t&&(t="="),this._paddingCharacter=t}return t.prototype.encodedLength=function(t){return this._paddingCharacter?(t+2)/3*4|0:(8*t+5)/6|0},t.prototype.encode=function(t){for(var e="",n=0;n>>18&63),e+=this._encodeByte(r>>>12&63),e+=this._encodeByte(r>>>6&63),e+=this._encodeByte(r>>>0&63)}var o=t.length-n;return o>0&&(r=t[n]<<16|(2===o?t[n+1]<<8:0),e+=this._encodeByte(r>>>18&63),e+=this._encodeByte(r>>>12&63),e+=2===o?this._encodeByte(r>>>6&63):this._paddingCharacter||"",e+=this._paddingCharacter||""),e},t.prototype.maxDecodedLength=function(t){return this._paddingCharacter?t/4*3|0:(6*t+7)/8|0},t.prototype.decodedLength=function(t){return this.maxDecodedLength(t.length-this._getPaddingLength(t))},t.prototype.decode=function(t){if(0===t.length)return new Uint8Array(0);for(var e=this._getPaddingLength(t),n=t.length-e,r=new Uint8Array(this.maxDecodedLength(n)),o=0,i=0,s=0,a=0,c=0,u=0,l=0;i>>4,r[o++]=c<<4|u>>>2,r[o++]=u<<6|l,s|=256&a,s|=256&c,s|=256&u,s|=256&l;if(i>>4,s|=256&a,s|=256&c),i>>2,s|=256&u),i>>8&6,e+=51-t>>>8&-75,e+=61-t>>>8&-15,e+=62-t>>>8&3,String.fromCharCode(e)},t.prototype._decodeChar=function(t){var e=256;return e+=(42-t&t-44)>>>8&-256+t-43+62,e+=(46-t&t-48)>>>8&-256+t-47+63,e+=(47-t&t-58)>>>8&-256+t-48+52,e+=(64-t&t-91)>>>8&-256+t-65+0,e+=(96-t&t-123)>>>8&-256+t-97+26},t.prototype._getPaddingLength=function(t){var e=0;if(this._paddingCharacter){for(var n=t.length-1;n>=0&&t[n]===this._paddingCharacter;n--)e++;if(t.length<4||e>2)throw new Error("Base64Coder: incorrect padding")}return e},t}();e.Coder=i;var s=new i;e.encode=function(t){return s.encode(t)},e.decode=function(t){return s.decode(t)};var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype._encodeByte=function(t){var e=t;return e+=65,e+=25-t>>>8&6,e+=51-t>>>8&-75,e+=61-t>>>8&-13,e+=62-t>>>8&49,String.fromCharCode(e)},e.prototype._decodeChar=function(t){var e=256;return e+=(44-t&t-46)>>>8&-256+t-45+62,e+=(94-t&t-96)>>>8&-256+t-95+63,e+=(47-t&t-58)>>>8&-256+t-48+52,e+=(64-t&t-91)>>>8&-256+t-65+0,e+=(96-t&t-123)>>>8&-256+t-97+26},e}(i);e.URLSafeCoder=a;var c=new a;e.encodeURLSafe=function(t){return c.encode(t)},e.decodeURLSafe=function(t){return c.decode(t)},e.encodedLength=function(t){return s.encodedLength(t)},e.maxDecodedLength=function(t){return s.maxDecodedLength(t)},e.decodedLength=function(t){return s.decodedLength(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r="utf8: invalid source encoding";function o(t){for(var e=0,n=0;n=t.length-1)throw new Error("utf8: invalid string");n++,e+=4}}return e}e.encode=function(t){for(var e=new Uint8Array(o(t)),n=0,r=0;r>6,e[n++]=128|63&i):i<55296?(e[n++]=224|i>>12,e[n++]=128|i>>6&63,e[n++]=128|63&i):(r++,i=(1023&i)<<10,i|=1023&t.charCodeAt(r),i+=65536,e[n++]=240|i>>18,e[n++]=128|i>>12&63,e[n++]=128|i>>6&63,e[n++]=128|63&i)}return e},e.encodedLength=o,e.decode=function(t){for(var e=[],n=0;n=t.length)throw new Error(r);if(128!=(192&(s=t[++n])))throw new Error(r);o=(31&o)<<6|63&s,i=128}else if(o<240){if(n>=t.length-1)throw new Error(r);var s=t[++n],a=t[++n];if(128!=(192&s)||128!=(192&a))throw new Error(r);o=(15&o)<<12|(63&s)<<6|63&a,i=2048}else{if(!(o<248))throw new Error(r);if(n>=t.length-2)throw new Error(r);s=t[++n],a=t[++n];var c=t[++n];if(128!=(192&s)||128!=(192&a)||128!=(192&c))throw new Error(r);o=(15&o)<<18|(63&s)<<12|(63&a)<<6|63&c,i=65536}if(o=55296&&o<=57343)throw new Error(r);if(o>=65536){if(o>1114111)throw new Error(r);o-=65536,e.push(String.fromCharCode(55296|o>>10)),o=56320|1023&o}}e.push(String.fromCharCode(o))}return e.join("")}},function(t,e,n){t.exports=n(3).default},function(t,e,n){"use strict";n.r(e);for(var r,o=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+"]",o=!1,i=function(){o||(t.apply(null,arguments),o=!0)};return this[e]=i,{number:e,id:n,name:r,callback:i}},t.prototype.remove=function(t){delete this[t.number]},t}(),i=new o("_pusher_script_","Pusher.ScriptReceivers"),s={VERSION:"7.0.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,cluster:"mt1",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 o=we.createScriptRequest(r.getPath(t,e)),i=r.receivers.create((function(e){if(r.receivers.remove(i),r.loading[t]){var n=r.loading[t];delete r.loading[t];for(var s=function(t){t||o.cleanup()},a=0;a>>6)+k(128|63&e):k(224|e>>>12&15)+k(128|e>>>6&63)+k(128|63&e)},A=function(t){return t.replace(/[^\x00-\x7F]/g,j)},P=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[O.charAt(n>>>18),O.charAt(n>>>12&63),e>=2?"=":O.charAt(n>>>6&63),e>=1?"=":O.charAt(63&n)].join("")},E=window.btoa||function(t){return t.replace(/[\s\S]{1,3}/g,P)},T=function(){function t(t,e,n,r){var o=this;this.clear=e,this.timer=t((function(){o.timer&&(o.timer=r(o.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}(),D=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)}}();function I(t){window.clearTimeout(t)}function $(t){window.clearInterval(t)}var F=function(t){function e(e,n){return t.call(this,setTimeout,I,e,(function(t){return n(),null}))||this}return D(e,t),e}(T),L=function(t){function e(e,n){return t.call(this,setInterval,$,e,(function(t){return n(),t}))||this}return D(e,t),e}(T),N={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(t){return new F(0,t)},method:function(t){for(var e=[],n=1;n0)for(r=0;r=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}},At=jt,Pt=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)}}(),Et=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 Pt(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(At.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=At.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",e)},closed:function(e){n(),e&&e.code&&t.handleCloseEvent(e),t.transport=null,t.emit("closed")}},n=function(){U(e,(function(e,n){t.transport.unbind(n,e)}))};U(e,(function(e,n){t.transport.bind(n,e)}))},e.prototype.handleCloseEvent=function(t){var e=At.getCloseAction(t),n=At.getCloseError(t);n&&this.emit("error",n),e&&this.emit(e,{action:e,error:n})},e}(ut),Tt=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=At.processHandshake(e)}catch(e){return t.finish("error",{error:e}),void t.transport.close()}"connected"===n.action?t.finish("connected",{connection:new Et(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=At.getCloseAction(e)||"backoff",r=At.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(R({transport:this.transport,action:t},e))},t}(),Dt=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}(),It=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}(),$t=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)}}(),Ft=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 $t(e,t),e.prototype.authorize=function(t,e){return e(null,{auth:""})},e.prototype.trigger=function(t,e){if(0!==t.indexOf("client-"))throw new p("Event '"+t+"' does not start with 'client-'");if(!this.subscribed){var n=f("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(e.toString()),t.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:e.message},e instanceof _?{status:e.status}:{}))):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}(ut),Lt=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 Lt(e,t),e.prototype.authorize=function(t,e){return Gt.createAuthorizer(this,this.pusher.config).authorize(t,e)},e}(Ft),Rt=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;U(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}(),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)}}(),Ht=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.members=new Rt,r}return Mt(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 o=f("authenticationEndpoint");return Z.error("Invalid auth response for channel '"+r.name+"',expected 'channel_data' field. "+o),void n("Invalid auth response")}var i=JSON.parse(e.channel_data);r.members.setMyID(i.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 o=this.members.removeMember(n);o&&this.emit("pusher:member_removed",o)}},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),Ut=n(1),Bt=n(0),qt=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,r){var o=t.call(this,e,n)||this;return o.key=null,o.nacl=r,o}return qt(e,t),e.prototype.authorize=function(e,n){var r=this;t.prototype.authorize.call(this,e,(function(t,e){if(t)n(t,e);else{var o=e.shared_secret;o?(r.key=Object(Bt.decode)(o),delete e.shared_secret,n(null,e)):n(new Error("No shared_secret key in auth payload for encrypted channel: "+r.name),null)}}))},e.prototype.trigger=function(t,e){throw new y("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(Bt.decode)(e.ciphertext);if(r.length0&&this.emit("connecting_in",Math.round(t/1e3)),this.retryTimer=new F(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 F(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 F(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 F(this.activityTimeout,(function(){t.sendActivityCheck()})))},e.prototype.stopActivityCheck=function(){this.activityTimer&&this.activityTimer.ensureAborted()},e.prototype.buildConnectionCallbacks=function(t){var e=this;return R({},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",t)},closed:function(){e.abandonConnection(),e.shouldRetry()&&e.retryIn(1e3)}})},e.prototype.buildHandshakeCallbacks=function(t){var e=this;return R({},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}(ut),Jt=function(){function t(){this.channels={}}return t.prototype.add=function(t,e){return this.channels[t]||(this.channels[t]=function(t,e){if(0===t.indexOf("private-encrypted-")){if(e.config.nacl)return Gt.createEncryptedChannel(t,e,e.config.nacl);var n=f("encryptedChannelSupport");throw new y("Tried to subscribe to a private-encrypted- channel but no nacl implementation available. "+n)}return 0===t.indexOf("private-")?Gt.createPrivateChannel(t,e):0===t.indexOf("presence-")?Gt.createPresenceChannel(t,e):Gt.createChannel(t,e)}(t,e)),this.channels[t]},t.prototype.all=function(){return function(t){var e=[];return U(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(){U(this.channels,(function(t){t.disconnect()}))},t}(),Gt={createChannels:function(){return new Jt},createConnectionManager:function(t,e){return new Kt(t,e)},createChannel:function(t,e){return new Ft(t,e)},createPrivateChannel:function(t,e){return new Nt(t,e)},createPresenceChannel:function(t,e){return new Ht(t,e)},createEncryptedChannel:function(t,e,n){return new zt(t,e,n)},createTimelineSender:function(t,e){return new It(t,e)},createAuthorizer:function(t,e){return e.authorizer?e.authorizer(t,e):new Dt(t,e)},createHandshake:function(t,e){return new Tt(t,e)},createAssistantToTheTransportManager:function(t,e,n){return new St(t,e,n)}},Xt=function(){function t(t){this.options=t||{},this.livesLeft=this.options.lives||1/0}return t.prototype.getAssistant=function(t){return Gt.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}(),Wt=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 J(this.strategies,N.method("isSupported"))},t.prototype.connect=function(t,e){var n=this,r=this.strategies,o=0,i=this.timeout,s=null,a=function(c,u){u?e(null,u):(o+=1,n.loop&&(o%=r.length),o0&&(o=new F(n.timeout,(function(){i.abort(),r(!0)}))),i=t.connect(e,(function(t,e){t&&o&&o.isRunning()&&!n.failFast||(o&&o.ensureAborted(),r(t,e))})),{abort:function(){o&&o.ensureAborted(),i.abort()},forceMinPriority:function(t){i.forceMinPriority(t)}}},t}(),Zt=function(){function t(t){this.strategies=t}return t.prototype.isSupported=function(){return J(this.strategies,N.method("isSupported"))},t.prototype.connect=function(t,e){return function(t,e,n){var r=z(t,(function(t,r,o,i){return t.connect(e,n(r,i))}));return{abort:function(){q(r,Qt)},forceMinPriority:function(t){q(r,(function(e){e.forceMinPriority(t)}))}}}(this.strategies,t,(function(t,n){return function(r,o){n[t].error=r,r?function(t){return function(t,e){for(var n=0;n=N.now()){var i=this.transports[r.transport];i&&(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),o.push(new Wt([i],{timeout:2*r.latency+1e3,failFast:!0})))}var s=N.now(),a=o.pop().connect(t,(function r(i,c){i?(ee(n),o.length>0?(s=N.now(),a=o.pop().connect(t,r)):e(i)):(function(t,e,n){var r=we.getLocalStorage();if(r)try{r[te(t)]=W({timestamp:N.now(),transport:e,latency:n})}catch(t){}}(n,c.transport.name,N.now()-s),e(null,c))}));return{abort:function(){a.abort()},forceMinPriority:function(e){t=e,a&&a.forceMinPriority(e)}}},t}();function te(t){return"pusherTransport"+(t?"TLS":"NonTLS")}function ee(t){var e=we.getLocalStorage();if(e)try{delete e[te(t)]}catch(t){}}var ne=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,o=new F(this.options.delay,(function(){n=r.connect(t,e)}));return{abort:function(){o.ensureAborted(),n&&n.abort()},forceMinPriority:function(e){t=e,n&&n.forceMinPriority(e)}}},t}(),re=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}(),oe=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 se,ae=function(t,e,n){var r={};function o(e,o,i,s,a){var c=n(t,e,o,i,s,a);return r[e]=c,c}var i,s=Object.assign({},e,{hostNonTLS:t.wsHost+":"+t.wsPort,hostTLS:t.wsHost+":"+t.wssPort,httpPath:t.wsPath}),a=Object.assign({},s,{useTLS:!0}),c=Object.assign({},e,{hostNonTLS:t.httpHost+":"+t.httpPort,hostTLS:t.httpHost+":"+t.httpsPort,httpPath:t.httpPath}),u={loop:!0,timeout:15e3,timeoutLimit:6e4},l=new Xt({lives:2,minPingDelay:1e4,maxPingDelay:t.activityTimeout}),f=new Xt({lives:2,minPingDelay:1e4,maxPingDelay:t.activityTimeout}),d=o("ws","ws",3,s,l),p=o("wss","ws",3,a,l),h=o("sockjs","sockjs",1,c),m=o("xhr_streaming","xhr_streaming",1,c,f),v=o("xdr_streaming","xdr_streaming",1,c,f),y=o("xhr_polling","xhr_polling",1,c),g=o("xdr_polling","xdr_polling",1,c),b=new Wt([d],u),_=new Wt([p],u),w=new Wt([h],u),k=new Wt([new re(ie(m),m,v)],u),O=new Wt([new re(ie(y),y,g)],u),x=new Wt([new re(ie(k),new Zt([k,new ne(O,{delay:4e3})]),O)],u),C=new re(ie(x),x,w);return i=e.useTLS?new Zt([b,new ne(C,{delay:2e3})]):new Zt([b,new ne(_,{delay:2e3}),new ne(C,{delay:5e3})]),new Yt(new oe(new re(ie(d),i,C)),r,{ttl:18e5,timeline:e.timeline,useTLS:e.useTLS})},ce={getRequest:function(t){var e=new window.XDomainRequest;return e.ontimeout=function(){t.emit("error",new h),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 o=t.call(this)||this;return o.hooks=e,o.method=n,o.url=r,o}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}(ut);!function(t){t[t.CONNECTING=0]="CONNECTING",t[t.OPEN=1]="OPEN",t[t.CLOSED=3]="CLOSED"}(se||(se={}));var fe=se,de=1;function pe(t){var e=-1===t.indexOf("?")?"?":"&";return t+e+"t="+ +new Date+"&n="+de++}function he(t){return Math.floor(Math.random()*t)}var me,ve=function(){function t(t,e){this.hooks=t,this.session=he(1e3)+"/"+function(t){for(var e=[],n=0;n0&&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()}},_e={createStreamingSocket:function(t){return this.createSocket(ye,t)},createPollingSocket:function(t){return this.createSocket(ge,t)},createSocket:function(t,e){return new ve(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(ce,t,e)}},we={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:i,DependenciesReceivers:c,getDefaultStrategy:ae,Transports:Ot,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:_e,TimelineTransport:et,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:w,jsonp:Q}},onDocumentBody:function(t){var e=this;document.body?t():setTimeout((function(){e.onDocumentBody(t)}),0)},createJSONPRequest:function(t,e){return new tt(t,e)},createScriptRequest:function(t){return new Y(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 Ct},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"}(me||(me={}));var ke=me,Oe=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(R({},e,{timestamp:N.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())},t.prototype.error=function(t){this.log(ke.ERROR,t)},t.prototype.info=function(t){this.log(ke.INFO,t)},t.prototype.debug=function(t){this.log(ke.DEBUG,t)},t.prototype.isEmpty=function(){return 0===this.events.length},t.prototype.send=function(t,e){var n=this,r=R({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}(),xe=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 Ce(new b,e);if(this.priority0?n("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]),t._v(" "),t.folder.feed_item_states_count>0?n("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e()]),t._v(" "),n("div",{staticClass:"body"},["folder"!==t.folder.type||t.folder.deleted_at?t._e():n("form",{attrs:{action:t.route("folder.update",t.folder)},on:{submit:function(e){return e.preventDefault(),t.onUpdateFolder(e)}}},[n("div",{staticClass:"form-group items-stretched"},[n("input",{attrs:{type:"text",name:"title"},domProps:{value:t.folder.title},on:{input:function(e){t.updateFolderTitle=e.target.value}}}),t._v(" "),n("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("update")}})]),t._v("\n "+t._s(t.__("Update folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():n("form",{attrs:{action:t.route("folder.store")},on:{submit:function(e){return e.preventDefault(),t.onAddFolder(e)}}},[n("div",{staticClass:"form-group items-stretched"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.addFolderTitle,expression:"addFolderTitle"}],attrs:{type:"text"},domProps:{value:t.addFolderTitle},on:{input:function(e){e.target.composing||(t.addFolderTitle=e.target.value)}}}),t._v(" "),n("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():n("form",{attrs:{action:t.route("document.store")},on:{submit:function(e){return e.preventDefault(),t.onAddDocument(e)}}},[n("div",{staticClass:"form-group items-stretched"},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.addDocumentUrl,expression:"addDocumentUrl"}],attrs:{type:"url"},domProps:{value:t.addDocumentUrl},on:{input:function(e){e.target.composing||(t.addDocumentUrl=e.target.value)}}}),t._v(" "),n("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add document"))+"\n ")])])]),t._v(" "),"folder"===t.folder.type?n("div",{staticClass:"mt-6"},[n("button",{staticClass:"danger",on:{click:t.onDeleteFolder}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])]):t._e()])])}),[],!1,null,null,null);e.default=u.exports},l9N6:function(t,e,n){"use strict";var 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};function o(t){if(Array.isArray(t)){if(t.length)return!1}else if(null!=t&&"object"===(void 0===t?"undefined":r(t))){if(Object.keys(t).length)return!1}else if(t)return!1;return!0}t.exports=function(t){var e=t||!1,n=null;return n=Array.isArray(this.items)?function(t,e){if(t)return e.filter(t);for(var n=[],r=0;r":return o(e,t)!==Number(s)&&o(e,t)!==s.toString();case"!==":return o(e,t)!==s;case"<":return o(e,t)":return o(e,t)>s;case">=":return o(e,t)>=s}}));return new this.constructor(c)}},lfA6:function(t,e,n){"use strict";var r=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],r=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var e=this,n={};return Array.isArray(this.items)?this.items.forEach((function(e){var o=t(e),i=r(o,2),s=i[0],a=i[1];n[s]=a})):Object.keys(this.items).forEach((function(o){var i=t(e.items[o]),s=r(i,2),a=s[0],c=s[1];n[a]=c})),new this.constructor(n)}},lflG:function(t,e,n){"use strict";t.exports=function(){return!this.isEmpty()}},lpfs:function(t,e,n){"use strict";t.exports=function(t){return t(this),this}},ls82:function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function a(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),s=new O(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var s=n.delegate;if(s){var a=_(s,n);if(a){if(a===l)continue;return a}}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=u(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(t,n,s),i}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function f(){}function d(){}function p(){}var h={};h[o]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(x([])));v&&v!==e&&n.call(v,o)&&(h=v);var y=p.prototype=f.prototype=Object.create(h);function g(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var r;this._invoke=function(o,i){function s(){return new e((function(r,s){!function r(o,i,s,a){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,a)}),(function(t){r("throw",t,s,a)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,a)}))}a(c.arg)}(o,i,r,s)}))}return r=r?r.then(s,s):s()}}function _(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,_(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(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 O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function x(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(a&&c){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),l}},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 o=r.arg;k(n)}return o}}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),l}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},lwQh:function(t,e,n){"use strict";t.exports=function(){var t=0;return Array.isArray(this.items)&&(t=this.items.length),Math.max(Object.keys(this.items).length,t)}},mNb9:function(t,e,n){"use strict";var r=n("Aoxg");t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=r(this.items),n=new this.constructor(e).shuffle();return t!==parseInt(t,10)?n.first():n.take(t)}},nHqO:function(t,e,n){"use strict";var r=n("OxKB");t.exports=function(){for(var t=this,e=arguments.length,n=Array(e),o=0;o=0;--o){var i,s=t[o];if("[]"===s&&n.parseArrays)i=[].concat(r);else{i=n.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(a,10);n.parseArrays||""!==a?!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(i=[])[c]=r:i[a]=r:i={0:r}}r=i}return r}(c,e,n)}};t.exports=function(t,e){var n=function(t){if(!t)return i;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?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth?t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var n,a={},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,u=e.parameterLimit===1/0?void 0:e.parameterLimit,l=c.split(e.delimiter,u),f=-1,d=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(h=h.split(",")),o.call(a,p)?a[p]=r.combine(a[p],h):a[p]=h}return a}(t,n):t,u=n.plainObjects?Object.create(null):{},l=Object.keys(c),f=0;f0?n("div",[n("h2",[t._v(t._s(t.__("Community themes")))]),t._v(" "),n("p",[t._v(t._s(t.__("These themes were hand-picked by Cyca's author.")))]),t._v(" "),n("div",{staticClass:"themes-category"},t._l(t.themes.community,(function(e,r){return n("theme-card",{key:r,attrs:{repository_url:e,name:r,is_selected:r===t.selected},on:{selected:function(e){return t.useTheme(r)}}})})),1)]):t._e()])}),[],!1,null,null,null);e.default=l.exports},qBwO:function(t,e,n){"use strict";n.r(e);var r=n("L2JU");function o(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}var s={data:function(){return{selectedFeeds:[]}},computed:function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return new this.constructor(this.items).groupBy(t).map((function(t){return t.count()}))}},qigg:function(t,e,n){"use strict";n.r(e);var r=n("L2JU");function o(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){for(var e=1;e=t.target.scrollHeight&&this.canLoadMore&&this.loadMoreFeedItems()}})},c=n("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"feeditems-list"},on:{"&scroll":function(e){return t.onScroll(e)}}},t._l(t.sortedList,(function(e){return n("feed-item",{key:e.id,attrs:{feedItem:e},on:{"selected-feeditems-changed":t.onSelectedFeedItemsChanged}})})),1)}),[],!1,null,null,null);e.default=u.exports},qj89:function(t,e,n){"use strict";var r=n("Aoxg"),o=n("SIfw").isFunction;t.exports=function(t,e){if(void 0!==e)return Array.isArray(this.items)?this.items.filter((function(n){return void 0!==n[t]&&n[t]===e})).length>0:void 0!==this.items[t]&&this.items[t]===e;if(o(t))return this.items.filter((function(e,n){return t(e,n)})).length>0;if(Array.isArray(this.items))return-1!==this.items.indexOf(t);var n=r(this.items);return n.push.apply(n,function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);en&&(n=i)}else void 0!==t?e.push({key:r[t],count:1}):e.push({key:r,count:1})})),e.filter((function(t){return t.count===n})).map((function(t){return t.key}))):null}},t9qg:function(t,e,n){"use strict";t.exports=function(t,e){var n=this,r={};return Array.isArray(this.items)?r=this.items.slice(t*e-e,t*e):Object.keys(this.items).slice(t*e-e,t*e).forEach((function(t){r[t]=n.items[t]})),new this.constructor(r)}},tNWF:function(t,e,n){"use strict";t.exports=function(t,e){var n=this,r=null;return void 0!==e&&(r=e),Array.isArray(this.items)?this.items.forEach((function(e){r=t(r,e)})):Object.keys(this.items).forEach((function(e){r=t(r,n.items[e],e)})),r}},tiHo:function(t,e,n){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new this.constructor(t)}},tpAN:function(t,e,n){"use strict";n.r(e);var r=n("L2JU");function o(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){for(var e=1;e0?n("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()]),t._v(" "),n("div",{staticClass:"flex items-center"},[t.document.feed_item_states_count>0?n("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),n("a",{staticClass:"button info ml-2",attrs:{href:t.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))},mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})}}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),n("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),n("div",{staticClass:"body"},[t.document.description?n("div",{domProps:{innerHTML:t._s(t.document.description)}}):t._e(),t._v(" "),n("dl",[n("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),n("dd",[n("a",{attrs:{href:t.document.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))}}},[t._v(t._s(t.document.url))])]),t._v(" "),t.document.bookmark.visits?n("dt",[t._v(t._s(t.__("Visits")))]):t._e(),t._v(" "),t.document.bookmark.visits?n("dd",[t._v(t._s(t.document.bookmark.visits))]):t._e(),t._v(" "),n("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),n("dd",[n("date-time",{attrs:{datetime:t.document.checked_at,calendar:!0}})],1),t._v(" "),t.dupplicateInFolders.length>0?n("dt",[t._v(t._s(t.__("Also exists in")))]):t._e(),t._v(" "),t.dupplicateInFolders.length>0?n("dd",t._l(t.dupplicateInFolders,(function(e){return n("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500",on:{click:function(n){return t.$emit("folder-selected",e)}}},[n("svg",{staticClass:"favicon",class:e.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon(e.icon)}})]),t._v(" "),n("span",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(e.title))])])})),0):t._e()]),t._v(" "),t.document.feeds&&t.document.feeds.length>0?n("h2",[t._v(t._s(t.__("Feeds")))]):t._e(),t._v(" "),t._l(t.document.feeds,(function(e){return n("div",{key:e.id,staticClass:"rounded bg-gray-600 mb-2 p-2"},[n("div",{staticClass:"flex justify-between items-center"},[n("div",{staticClass:"flex items-center my-0 py-0"},[n("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),n("div",[t._v(t._s(e.title))])]),t._v(" "),e.is_ignored?n("button",{staticClass:"button success",on:{click:function(n){return t.follow(e)}}},[t._v(t._s(t.__("Follow")))]):t._e(),t._v(" "),e.is_ignored?t._e():n("button",{staticClass:"button danger",on:{click:function(n){return t.ignore(e)}}},[t._v(t._s(t.__("Ignore")))])]),t._v(" "),e.description?n("div",{domProps:{innerHTML:t._s(e.description)}}):t._e(),t._v(" "),n("dl",[n("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),n("dd",[n("div",[t._v(t._s(e.url))])]),t._v(" "),n("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),n("dd",[n("date-time",{attrs:{datetime:e.checked_at,calendar:!0}})],1)])])})),t._v(" "),n("div",{staticClass:"mt-6"},[n("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[n("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[n("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},u4XC:function(t,e,n){"use strict";var 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};t.exports=function(t){var e=this,n=[],o=0;if(Array.isArray(this.items))do{var i=this.items.slice(o,o+t),s=new this.constructor(i);n.push(s),o+=t}while(o1&&void 0!==arguments[1]?arguments[1]:0,n=r(this.items),o=n.slice(e).filter((function(e,n){return n%t==0}));return new this.constructor(o)}},"x+iC":function(t,e,n){"use strict";t.exports=function(t,e){var n=this.values();if(void 0===e)return n.implode(t);var r=n.count();if(0===r)return"";if(1===r)return n.last();var o=n.pop();return n.implode(t)+e+o}},xA6t:function(t,e,n){"use strict";var r=n("0tQ4");t.exports=function(t,e){return this.filter((function(n){return r(n,t)e[e.length-1]}))}},xWoM:function(t,e,n){"use strict";t.exports=function(){var t=this,e={};return Array.isArray(this.items)?Object.keys(this.items).forEach((function(n){e[t.items[n]]=Number(n)})):Object.keys(this.items).forEach((function(n){e[t.items[n]]=n})),new this.constructor(e)}},xazZ:function(t,e,n){"use strict";t.exports=function(t){return this.filter((function(e){return e instanceof t}))}},xgus:function(t,e,n){"use strict";var r=n("SIfw").isObject;t.exports=function(t){var e=this;return r(this.items)?new this.constructor(Object.keys(this.items).reduce((function(n,r,o){return o+1>t&&(n[r]=e.items[r]),n}),{})):new this.constructor(this.items.slice(t))}},xi9Z:function(t,e,n){"use strict";t.exports=function(t,e){return void 0===e?this.items.join(t):new this.constructor(this.items).pluck(t).all().join(e)}},yLpj: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},yd4a:function(t,e){},ysnW:function(t,e,n){var r={"./DateTime.vue":"YrHs","./Details/DetailsDocument.vue":"tpAN","./Details/DetailsDocuments.vue":"2FZ/","./Details/DetailsFeedItem.vue":"c993","./Details/DetailsFolder.vue":"l2C0","./DocumentItem.vue":"IfUw","./DocumentsList.vue":"qBwO","./FeedItem.vue":"+CwO","./FeedItemsList.vue":"qigg","./FolderItem.vue":"4VNc","./FoldersTree.vue":"RB6r","./Highlight.vue":"AmQ0","./Highlights.vue":"T3CM","./Importer.vue":"gDOT","./Importers/ImportFromCyca.vue":"wT45","./ThemeCard.vue":"CV10","./ThemesBrowser.vue":"pKhy"};function o(t){var e=i(t);return n(e)}function i(t){if(!n.o(r,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return r[t]}o.keys=function(){return Object.keys(r)},o.resolve=i,t.exports=o,o.id="ysnW"},ytFn:function(t,e,n){"use strict";t.exports=function(t){var e,n=void 0;Array.isArray(t)?(e=n=[]).push.apply(e,function(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e3&&void 0!==arguments[3]?arguments[3]:null;return a(this,v),(r=m.call(this)).name=t,r.absolute=n,r.ziggy=i||Ziggy,r.urlBuilder=r.name?new o(t,n,r.ziggy):null,r.template=r.urlBuilder?r.urlBuilder.construct():"",r.urlParams=r.normalizeParams(e),r.queryParams={},r.hydrated="",r}return r=v,(l=[{key:"normalizeParams",value:function(t){return void 0===t?{}:((t="object"!==s(t)?[t]:t).hasOwnProperty("id")&&-1==this.template.indexOf("{id}")&&(t=[t.id]),this.numericParamIndices=Array.isArray(t),Object.assign({},t))}},{key:"with",value:function(t){return this.urlParams=this.normalizeParams(t),this}},{key:"withQuery",value:function(t){return Object.assign(this.queryParams,t),this}},{key:"hydrateUrl",value:function(){var t=this;if(this.hydrated)return this.hydrated;var e=this.template.replace(/{([^}]+)}/gi,(function(e,n){var r,o,i=t.trimParam(e);if(t.ziggy.defaultParameters.hasOwnProperty(i)&&(r=t.ziggy.defaultParameters[i]),r&&!t.urlParams[i])return delete t.urlParams[i],r;if(t.numericParamIndices?(t.urlParams=Object.values(t.urlParams),o=t.urlParams.shift()):(o=t.urlParams[i],delete t.urlParams[i]),null==o){if(-1===e.indexOf("?"))throw new Error("Ziggy Error: '"+i+"' key is required for route '"+t.name+"'");return""}return o.id?encodeURIComponent(o.id):encodeURIComponent(o)}));return null!=this.urlBuilder&&""!==this.urlBuilder.path&&(e=e.replace(/\/+$/,"")),this.hydrated=e,this.hydrated}},{key:"matchUrl",value:function(){var t=window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname,e=this.template.replace(/(\/\{[^\}]*\?\})/g,"/").replace(/(\{[^\}]*\})/gi,"[^/?]+").replace(/\/?$/,"").split("://")[1],n=this.template.replace(/(\{[^\}]*\})/gi,"[^/?]+").split("://")[1],r=t.replace(/\/?$/,"/"),o=new RegExp("^"+n+"/$").test(r),i=new RegExp("^"+e+"/$").test(r);return o||i}},{key:"constructQuery",value:function(){if(0===Object.keys(this.queryParams).length&&0===Object.keys(this.urlParams).length)return"";var t=Object.assign(this.urlParams,this.queryParams);return Object(i.stringify)(t,{encodeValuesOnly:!0,skipNulls:!0,addQueryPrefix:!0,arrayFormat:"indices"})}},{key:"current",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=Object.keys(this.ziggy.namedRoutes),r=n.filter((function(e){return-1!==t.ziggy.namedRoutes[e].methods.indexOf("GET")&&new v(e,void 0,void 0,t.ziggy).matchUrl()}))[0];if(e){var o=new RegExp("^"+e.replace(".","\\.").replace("*",".*")+"$","i");return o.test(r)}return r}},{key:"check",value:function(t){return Object.keys(this.ziggy.namedRoutes).includes(t)}},{key:"extractParams",value:function(t,e,n){var r=this,o=t.split(n);return e.split(n).reduce((function(t,e,n){return 0===e.indexOf("{")&&-1!==e.indexOf("}")&&o[n]?Object.assign(t,(i={},s=r.trimParam(e),a=o[n],s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i)):t;var i,s,a}),{})}},{key:"parse",value:function(){this.return=this.hydrateUrl()+this.constructQuery()}},{key:"url",value:function(){return this.parse(),this.return}},{key:"toString",value:function(){return this.url()}},{key:"trimParam",value:function(t){return t.replace(/{|}|\?/g,"")}},{key:"valueOf",value:function(){return this.url()}},{key:"params",get:function(){var t=this.ziggy.namedRoutes[this.current()];return Object.assign(this.extractParams(window.location.hostname,t.domain||"","."),this.extractParams(window.location.pathname.slice(1),t.uri,"/"))}}])&&c(r.prototype,l),f&&c(r,f),v}(l(String));function v(t,e,n,r){return new m(t,e,n,r)}var y={namedRoutes:{account:{uri:"account",methods:["GET","HEAD"],domain:null},home:{uri:"/",methods:["GET","HEAD"],domain:null},"account.password":{uri:"account/password",methods:["GET","HEAD"],domain:null},"account.theme":{uri:"account/theme",methods:["GET","HEAD"],domain:null},"account.setTheme":{uri:"account/theme",methods:["POST"],domain:null},"account.theme.details":{uri:"account/theme/details/{name}",methods:["GET","HEAD"],domain:null},"account.getThemes":{uri:"account/theme/themes",methods:["GET","HEAD"],domain:null},"account.import.form":{uri:"account/import",methods:["GET","HEAD"],domain:null},"account.import":{uri:"account/import",methods:["POST"],domain:null},"account.export":{uri:"account/export",methods:["GET","HEAD"],domain:null},"document.move":{uri:"document/move/{sourceFolder}/{targetFolder}",methods:["POST"],domain:null},"document.destroy_bookmarks":{uri:"document/delete_bookmarks/{folder}",methods:["POST"],domain:null},"document.visit":{uri:"document/{document}/visit/{folder}",methods:["POST"],domain:null},"feed_item.mark_as_read":{uri:"feed_item/mark_as_read",methods:["POST"],domain:null},"feed.ignore":{uri:"feed/{feed}/ignore",methods:["POST"],domain:null},"feed.follow":{uri:"feed/{feed}/follow",methods:["POST"],domain:null},"folder.index":{uri:"folder",methods:["GET","HEAD"],domain:null},"folder.store":{uri:"folder",methods:["POST"],domain:null},"folder.show":{uri:"folder/{folder}",methods:["GET","HEAD"],domain:null},"folder.update":{uri:"folder/{folder}",methods:["PUT","PATCH"],domain:null},"folder.destroy":{uri:"folder/{folder}",methods:["DELETE"],domain:null},"document.index":{uri:"document",methods:["GET","HEAD"],domain:null},"document.store":{uri:"document",methods:["POST"],domain:null},"document.show":{uri:"document/{document}",methods:["GET","HEAD"],domain:null},"feed_item.index":{uri:"feed_item",methods:["GET","HEAD"],domain:null},"feed_item.show":{uri:"feed_item/{feed_item}",methods:["GET","HEAD"],domain:null},"highlight.index":{uri:"highlight",methods:["GET","HEAD"],domain:null},"highlight.store":{uri:"highlight",methods:["POST"],domain:null},"highlight.show":{uri:"highlight/{highlight}",methods:["GET","HEAD"],domain:null},"highlight.update":{uri:"highlight/{highlight}",methods:["PUT","PATCH"],domain:null},"highlight.destroy":{uri:"highlight/{highlight}",methods:["DELETE"],domain:null}},baseUrl:"https://cyca.athaliasoft.com/",baseProtocol:"https",baseDomain:"cyca.athaliasoft.com",basePort:!1,defaultParameters:[]};if("undefined"!=typeof window&&void 0!==window.Ziggy)for(var g in window.Ziggy.namedRoutes)y.namedRoutes[g]=window.Ziggy.namedRoutes[g];window.route=v,window.Ziggy=y,Vue.mixin({methods:{route:function(t,e,n){return v(t,e,n,y)},icon:function(t){return document.querySelector('meta[name="icons-file-url"]').getAttribute("content")+"#"+t},__:function(t){var e=lang[t];return e||t}}})}}); \ No newline at end of file diff --git a/public/js/highlights.js b/public/js/highlights.js new file mode 100644 index 0000000..66ee377 --- /dev/null +++ b/public/js/highlights.js @@ -0,0 +1,2 @@ +/*! For license information please see highlights.js.LICENSE.txt */ +!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r(r.s=3)}({"+CwO":function(t,e,r){"use strict";r.r(e);var n=r("L0RC"),o=r.n(n),i=r("L2JU");function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r|[^<>]*$1')})),t}})},d=r("KHd+"),p=Object(d.a)(f,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a",{staticClass:"feed-item",class:{selected:t.is_selected,read:0===t.feedItem.feed_item_states_count},attrs:{href:t.feedItem.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),e.preventDefault(),t.onClicked(e))}}},[r("div",{staticClass:"feed-item-label",domProps:{innerHTML:t._s(t.highlight(t.feedItem.title))}}),t._v(" "),r("div",{staticClass:"feed-item-meta"},[r("date-time",{staticClass:"flex-none mr-4 w-2/12",attrs:{datetime:t.feedItem.published_at,calendar:!0}}),t._v(" "),r("img",{staticClass:"favicon",attrs:{src:t.feedItem.feeds[0].favicon}}),t._v(" "),r("div",{staticClass:"truncate"},[t._v(t._s(t.feedItem.feeds[0].title))])],1)])}),[],!1,null,null,null);e.default=p.exports},"+hMf":function(t,e,r){"use strict";t.exports=function(t,e){return this.items[t]=e,this}},"+p9u":function(t,e,r){"use strict";var n=r("SIfw"),o=n.isArray,i=n.isObject,s=n.isFunction;t.exports=function(t){var e=this,r=null,n=void 0,a=function(e){return e===t};return s(t)&&(a=t),o(this.items)&&(n=this.items.filter((function(t){return!0!==r&&(r=a(t)),r}))),i(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!0!==r&&(r=a(e.items[n])),!1!==r&&(t[n]=e.items[n]),t}),{})),new this.constructor(n)}},"/c+j":function(t,e,r){"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var r=this.items.filter((function(t){return-1===e.indexOf(t)}));return new this.constructor(r)}},"/dWu":function(t,e,r){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var e={};return this.items.forEach((function(r,o){var i=t(r,o),s=n(i,2),a=s[0],c=s[1];void 0===e[a]?e[a]=[c]:e[a].push(c)})),new this.constructor(e)}},"/jPX":function(t,e,r){"use strict";t.exports=function(t){var e=this,r=void 0;return Array.isArray(this.items)?(r=[new this.constructor([]),new this.constructor([])],this.items.forEach((function(e){!0===t(e)?r[0].push(e):r[1].push(e)}))):(r=[new this.constructor({}),new this.constructor({})],Object.keys(this.items).forEach((function(n){var o=e.items[n];!0===t(o)?r[0].put(n,o):r[1].put(n,o)}))),new this.constructor(r)}},"/n9D":function(t,e,r){"use strict";t.exports=function(t,e,r){var n=this.slice(t,e);if(this.items=this.diff(n.all()).all(),Array.isArray(r))for(var o=0,i=r.length;o1;){var e=t.pop(),r=e.obj[e.prop];if(o(r)){for(var n=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(s):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(s)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},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,r,i){if(!r)return e;if("object"!=typeof r){if(o(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return o(e)&&!o(r)&&(a=s(e,i)),o(e)&&o(r)?(r.forEach((function(r,o){if(n.call(e,o)){var s=e[o];s&&"object"==typeof s&&r&&"object"==typeof r?e[o]=t(s,r,i):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var s=r[o];return n.call(e,o)?e[o]=t(e[o],s,i):e[o]=s,e}),a)}}},"0k4l":function(t,e,r){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))return new this.constructor(this.items.map(t));var r={};return Object.keys(this.items).forEach((function(n){r[n]=t(e.items[n],n)})),new this.constructor(r)}},"0on8":function(t,e,r){"use strict";var n="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.exports=function(){return"object"!==n(this.items)||Array.isArray(this.items)?JSON.stringify(this.toArray()):JSON.stringify(this.all())}},"0qqO":function(t,e,r){"use strict";t.exports=function(t){return this.each((function(e,r){t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("button",{staticClass:"info ml-2",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.onOpenClicked(e))}}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[t._l(t.documents,(function(t){return r("img",{key:t.id,staticClass:"favicon inline mr-1 mb-1",attrs:{title:t.title,src:t.favicon}})})),t._v(" "),r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},"2YvH":function(t,e,r){"use strict";var n=r("SIfw"),o=n.isArray,i=n.isObject;t.exports=function(t){var e=t||1/0,r=!1,n=[],s=function(t){n=[],o(t)?t.forEach((function(t){o(t)?n=n.concat(t):i(t)?Object.keys(t).forEach((function(e){n=n.concat(t[e])})):n.push(t)})):Object.keys(t).forEach((function(e){o(t[e])?n=n.concat(t[e]):i(t[e])?Object.keys(t[e]).forEach((function(r){n=n.concat(t[e][r])})):n.push(t[e])})),r=0===(r=n.filter((function(t){return i(t)}))).length,e-=1};for(s(this.items);!r&&e>0;)s(n);return new this.constructor(n)}},3:function(t,e,r){t.exports=r("0ZPs")},"3wPk":function(t,e,r){"use strict";t.exports=function(t){return this.map((function(e,r){return t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?t:0,t+"rem"},isDraggable:function(){return!this.folder.deleted_at&&"folder"===this.folder.type},canDrop:function(){return!this.folder.deleted_at&&("folder"===this.folder.type||"root"===this.folder.type)},branchIsExpanded:function(){var t=this.folder.parent_id;if(!t||!this.folders)return!0;for(;null!=t;){var e=this.folders.find((function(e){return e.id===t}));if(e&&!e.is_expanded)return!1;t=e.parent_id}return!0},expanderIcon:function(){return this.folder.is_expanded?"expanded":"collapsed"}}),methods:i(i({},Object(n.b)({startDraggingFolder:"folders/startDraggingFolder",stopDraggingFolder:"folders/stopDraggingFolder",dropIntoFolder:"folders/dropIntoFolder",toggleExpanded:"folders/toggleExpanded"})),{},{onDragStart:function(t){this.startDraggingFolder(this.folder)},onDragEnd:function(){this.stopDraggingFolder(),this.is_dragged_over=!1},onDrop:function(){this.is_dragged_over=!1,this.$emit("item-dropped",this.folder)},onDragLeave:function(){this.is_dragged_over=!1},onDragOver:function(t){this.is_dragged_over=!0,this.canDrop?(t.preventDefault(),this.cannot_drop=!1):this.cannot_drop=!0},onClick:function(){switch(this.folder.type){case"account":window.location.href=route("account");break;case"logout":document.getElementById("logout-form").submit();break;default:this.$emit("selected-folder-changed",this.folder)}}})},c=r("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.branchIsExpanded?r("button",{staticClass:"list-item",class:{selected:t.folder.is_selected,"dragged-over":t.is_dragged_over,"cannot-drop":t.cannot_drop,deleted:t.folder.deleted_at},attrs:{draggable:t.isDraggable},on:{click:function(e){return e.preventDefault(),t.onClick(e)},dragstart:t.onDragStart,dragend:t.onDragEnd,drop:t.onDrop,dragleave:t.onDragLeave,dragover:t.onDragOver}},[r("div",{staticClass:"list-item-label",style:{"padding-left":t.indent}},["folder"===t.folder.type?r("span",{staticClass:"caret"},["folder"===t.folder.type&&t.folder.children_count>0?r("svg",{attrs:{fill:"currentColor",width:"16",height:"16"},on:{"!click":function(e){return e.stopPropagation(),t.toggleExpanded(t.folder)}}},[r("use",{attrs:{"xlink:href":t.icon(t.expanderIcon)}})]):t._e()]):t._e(),t._v(" "),r("svg",{staticClass:"favicon",class:t.folder.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon(t.folder.icon)}})]),t._v(" "),r("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.folder.title))])]),t._v(" "),t.folder.feed_item_states_count>0?r("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]):t._e()}),[],!1,null,null,null);e.default=u.exports},"4s1B":function(t,e,r){"use strict";t.exports=function(){var t=[].concat(this.items).reverse();return new this.constructor(t)}},"5Cq2":function(t,e,r){"use strict";var n="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.exports=function(t){var e=function t(e,r){var o={};return Object.keys(Object.assign({},e,r)).forEach((function(i){void 0===e[i]&&void 0!==r[i]?o[i]=r[i]:void 0!==e[i]&&void 0===r[i]?o[i]=e[i]:void 0!==e[i]&&void 0!==r[i]&&(e[i]===r[i]?o[i]=e[i]:Array.isArray(e[i])||"object"!==n(e[i])||Array.isArray(r[i])||"object"!==n(r[i])?o[i]=[].concat(e[i],r[i]):o[i]=t(e[i],r[i]))})),o};return t?"Collection"===t.constructor.name?new this.constructor(e(this.items,t.all())):new this.constructor(e(this.items,t)):this}},"6y7s":function(t,e,r){"use strict";t.exports=function(){var t;return(t=this.items).push.apply(t,arguments),this}},"7zD/":function(t,e,r){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))this.items=this.items.map(t);else{var r={};Object.keys(this.items).forEach((function(n){r[n]=t(e.items[n],n)})),this.items=r}return this}},"8oxB":function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var t=a(d);l=!0;for(var e=u.length;e;){for(c=u,u=[];++f1)for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==this.items[t]?this.items[t]:n(e)?e():null!==e?e:null}},AmQ0:function(t,e,r){"use strict";r.r(e);var n=r("o0o1"),o=r.n(n);function i(t,e,r,n,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}var s,a,c={props:["highlight"],mounted:function(){this.$watch("highlight.expression",this.updateHighlight)},methods:{updateHighlight:(s=o.a.mark((function t(){var e;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,api.put(route("highlight.update",e.highlight),{expression:e.highlight.expression,color:e.highlight.color});case 3:t.sent;case 4:case"end":return t.stop()}}),t,this)})),a=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=s.apply(t,e);function a(t){i(o,r,n,a,c,"next",t)}function c(t){i(o,r,n,a,c,"throw",t)}a(void 0)}))},function(){return a.apply(this,arguments)}),removeHighlight:function(t){this.$emit("destroy",t)}}},u=r("KHd+"),l=Object(u.a)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("tr",[r("td",{staticClass:"w-1/2"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.highlight.expression,expression:"highlight.expression"}],staticClass:"w-full",attrs:{type:"text","aria-label":t.__("Expression")},domProps:{value:t.highlight.expression},on:{input:function(e){e.target.composing||t.$set(t.highlight,"expression",e.target.value)}}})]),t._v(" "),r("td",{staticClass:"w-1/4"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.highlight.color,expression:"highlight.color"}],staticClass:"w-full",attrs:{type:"color","aria-label":t.__("Color")},domProps:{value:t.highlight.color},on:{input:function(e){e.target.composing||t.$set(t.highlight,"color",e.target.value)}}})]),t._v(" "),r("td",[r("button",{staticClass:"danger",attrs:{type:"button",title:t.__("Remove highlight")},on:{click:function(e){return t.removeHighlight(t.highlight.id)}}},[r("svg",{attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})])])])])}),[],!1,null,null,null);e.default=l.exports},Aoxg:function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e=t.items.length}}}}},DMgR:function(t,e,r){"use strict";var n=r("SIfw").isFunction;t.exports=function(t,e){var r=this.items[t]||null;return r||void 0===e||(r=n(e)?e():e),delete this.items[t],r}},Dv6Q:function(t,e,r){"use strict";t.exports=function(t,e){for(var r=1;r<=t;r+=1)this.items.push(e(r));return this}},"EBS+":function(t,e,r){"use strict";t.exports=function(t){if(!t)return this;if(Array.isArray(t)){var e=this.items.map((function(e,r){return t[r]||e}));return new this.constructor(e)}if("Collection"===t.constructor.name){var r=Object.assign({},this.items,t.all());return new this.constructor(r)}var n=Object.assign({},this.items,t);return new this.constructor(n)}},ET5h:function(t,e,r){"use strict";t.exports=function(t,e){return void 0!==e?this.put(e,t):(this.items.unshift(t),this)}},ErmX:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("SIfw").isFunction;t.exports=function(t){var e=n(this.items),r=0;if(void 0===t)for(var i=0,s=e.length;i0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"!==",null)}},HZ3i:function(t,e,r){"use strict";t.exports=function(){function t(e,r,n){var o=n[0];o instanceof r&&(o=o.all());for(var i=n.slice(1),s=!i.length,a=[],c=0;c=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var r=Object.create(null),n=t.split(","),o=0;o-1)return t.splice(r,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function w(t){var e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}var O=/-(\w)/g,x=w((function(t){return t.replace(O,(function(t,e){return e?e.toUpperCase():""}))})),k=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,j=w((function(t){return t.replace(C,"-$1").toLowerCase()})),A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function r(r){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return r._length=t.length,r};function S(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function $(t,e){for(var r in e)t[r]=e[r];return t}function E(t){for(var e={},r=0;r0,X=Z&&Z.indexOf("edge/")>0,Y=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),tt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),et={}.watch,rt=!1;if(V)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){rt=!0}}),window.addEventListener("test-passive",null,nt)}catch(n){}var ot=function(){return void 0===K&&(K=!V&&!G&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),K},it=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,ct="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);at="undefined"!=typeof Set&&st(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 ut=D,lt=0,ft=function(){this.id=lt++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){g(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,r=t.length;e-1)if(i&&!_(o,"default"))s=!1;else if(""===s||s===j(t)){var c=Ut(String,o.type);(c<0||a0&&(le((c=t(c,(r||"")+"_"+n))[0])&&le(l)&&(f[u]=gt(l.text+c[0].text),c.shift()),f.push.apply(f,c)):a(c)?le(l)?f[u]=gt(l.text+c):""!==c&&f.push(gt(c)):le(c)&&le(l)?f[u]=gt(l.text+c.text):(s(e._isVList)&&i(c.tag)&&o(c.key)&&i(r)&&(c.key="__vlist"+r+"_"+n+"__"),f.push(c)));return f}(t):void 0}function le(t){return i(t)&&i(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var r=Object.create(null),n=ct?Reflect.ownKeys(t):Object.keys(t),o=0;o0,s=t?!!t.$stable:!i,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&r&&r!==n&&a===r.$key&&!i&&!r.$hasNormal)return r;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=me(e,c,t[c]))}else o={};for(var u in e)u in o||(o[u]=ve(e,u));return t&&Object.isExtensible(t)&&(t._normalized=o),B(o,"$stable",s),B(o,"$key",a),B(o,"$hasNormal",i),o}function me(t,e,r){var n=function(){var t=arguments.length?r.apply(null,arguments):r({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return r.proxy&&Object.defineProperty(t,e,{get:n,enumerable:!0,configurable:!0}),n}function ve(t,e){return function(){return t[e]}}function ye(t,e){var r,n,o,s,a;if(Array.isArray(t)||"string"==typeof t)for(r=new Array(t.length),n=0,o=t.length;ndocument.createEvent("Event").timeStamp&&(ar=function(){return cr.now()})}function ur(){var t,e;for(sr=ar(),or=!0,tr.sort((function(t,e){return t.id-e.id})),ir=0;irir&&tr[r].id>t.id;)r--;tr.splice(r+1,0,t)}else tr.push(t);nr||(nr=!0,ee(ur))}}(this)},fr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Bt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},fr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fr.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},fr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var dr={enumerable:!0,configurable:!0,get:D,set:D};function pr(t,e,r){dr.get=function(){return this[e][r]},dr.set=function(t){this[e][r]=t},Object.defineProperty(t,r,dr)}var hr={lazy:!0};function mr(t,e,r){var n=!ot();"function"==typeof r?(dr.get=n?vr(e):yr(r),dr.set=D):(dr.get=r.get?n&&!1!==r.cache?vr(e):yr(r.get):D,dr.set=r.set||D),Object.defineProperty(t,e,dr)}function vr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function yr(t){return function(){return t.call(this,this)}}function gr(t,e,r,n){return l(r)&&(n=r,r=r.handler),"string"==typeof r&&(r=t[r]),t.$watch(e,r,n)}var br=0;function _r(t){var e=t.options;if(t.super){var r=_r(t.super);if(r!==t.superOptions){t.superOptions=r;var n=function(t){var e,r=t.options,n=t.sealedOptions;for(var o in r)r[o]!==n[o]&&(e||(e={}),e[o]=r[o]);return e}(t);n&&$(t.extendOptions,n),(e=t.options=Lt(r,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function wr(t){this._init(t)}function Or(t){return t&&(t.Ctor.options.name||t.tag)}function xr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(r=t,"[object RegExp]"===u.call(r)&&t.test(e));var r}function kr(t,e){var r=t.cache,n=t.keys,o=t._vnode;for(var i in r){var s=r[i];if(s){var a=Or(s.componentOptions);a&&!e(a)&&Cr(r,i,n,o)}}}function Cr(t,e,r,n){var o=t[e];!o||n&&o.tag===n.tag||o.componentInstance.$destroy(),t[e]=null,g(r,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=br++,e._isVue=!0,t&&t._isComponent?function(t,e){var r=t.$options=Object.create(t.constructor.options),n=e._parentVnode;r.parent=e.parent,r._parentVnode=n;var o=n.componentOptions;r.propsData=o.propsData,r._parentListeners=o.listeners,r._renderChildren=o.children,r._componentTag=o.tag,e.render&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Lt(_r(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,r=e.parent;if(r&&!e.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(t)}t.$parent=r,t.$root=r?r.$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&&Je(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,o=r&&r.context;t.$slots=de(e._renderChildren,o),t.$scopedSlots=n,t._c=function(e,r,n,o){return Re(t,e,r,n,o,!1)},t.$createElement=function(e,r,n,o){return Re(t,e,r,n,o,!0)};var i=r&&r.data;At(t,"$attrs",i&&i.attrs||n,null,!0),At(t,"$listeners",e._parentListeners||n,null,!0)}(e),Ye(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(kt(!1),Object.keys(e).forEach((function(r){At(t,r,e[r])})),kt(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var r=t.$options.propsData||{},n=t._props={},o=t.$options._propKeys=[];t.$parent&&kt(!1);var i=function(i){o.push(i);var s=Mt(i,e,r,t);At(n,i,s),i in t||pr(t,"_props",i)};for(var s in e)i(s);kt(!0)}(t,e.props),e.methods&&function(t,e){for(var r in t.$options.props,e)t[r]="function"!=typeof e[r]?D:A(e[r],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;l(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return Bt(t,e,"data()"),{}}finally{ht()}}(e,t):e||{})||(e={});for(var r,n=Object.keys(e),o=t.$options.props,i=(t.$options.methods,n.length);i--;){var s=n[i];o&&_(o,s)||(void 0,36!==(r=(s+"").charCodeAt(0))&&95!==r&&pr(t,"_data",s))}jt(e,!0)}(t):jt(t._data={},!0),e.computed&&function(t,e){var r=t._computedWatchers=Object.create(null),n=ot();for(var o in e){var i=e[o],s="function"==typeof i?i:i.get;n||(r[o]=new fr(t,s||D,D,hr)),o in t||mr(t,o,i)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var r in e){var n=e[r];if(Array.isArray(n))for(var o=0;o1?S(e):e;for(var r=S(arguments,1),n='event handler for "'+t+'"',o=0,i=e.length;oparseInt(this.max)&&Cr(s,a[0],a,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:$,mergeOptions:Lt,defineReactive:At},t.set=St,t.delete=$t,t.nextTick=ee,t.observable=function(t){return jt(t),t},t.options=Object.create(null),M.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,$(t.options.components,Ar),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var r=S(arguments,1);return r.unshift(this),"function"==typeof t.install?t.install.apply(t,r):"function"==typeof t&&t.apply(null,r),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Lt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var r=this,n=r.cid,o=t._Ctor||(t._Ctor={});if(o[n])return o[n];var i=t.name||r.options.name,s=function(t){this._init(t)};return(s.prototype=Object.create(r.prototype)).constructor=s,s.cid=e++,s.options=Lt(r.options,t),s.super=r,s.options.props&&function(t){var e=t.options.props;for(var r in e)pr(t.prototype,"_props",r)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var r in e)mr(t.prototype,r,e[r])}(s),s.extend=r.extend,s.mixin=r.mixin,s.use=r.use,M.forEach((function(t){s[t]=r[t]})),i&&(s.options.components[i]=s),s.superOptions=r.options,s.extendOptions=t,s.sealedOptions=$({},s.options),o[n]=s,s}}(t),function(t){M.forEach((function(e){t[e]=function(t,r){return r?("component"===e&&l(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===e&&"function"==typeof r&&(r={bind:r,update:r}),this.options[e+"s"][t]=r,r):this.options[e+"s"][t]}}))}(t)}(wr),Object.defineProperty(wr.prototype,"$isServer",{get:ot}),Object.defineProperty(wr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wr,"FunctionalRenderContext",{value:Te}),wr.version="2.6.12";var Sr=m("style,class"),$r=m("input,textarea,option,select,progress"),Er=function(t,e,r){return"value"===r&&$r(t)&&"button"!==e||"selected"===r&&"option"===t||"checked"===r&&"input"===t||"muted"===r&&"video"===t},Dr=m("contenteditable,draggable,spellcheck"),Tr=m("events,caret,typing,plaintext-only"),Pr=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"),Ir="http://www.w3.org/1999/xlink",Fr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Lr=function(t){return Fr(t)?t.slice(6,t.length):""},Nr=function(t){return null==t||!1===t};function Mr(t,e){return{staticClass:Rr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Rr(t,e){return t?e?t+" "+e:t:e||""}function Hr(t){return Array.isArray(t)?function(t){for(var e,r="",n=0,o=t.length;n-1?dn(t,e,r):Pr(e)?Nr(r)?t.removeAttribute(e):(r="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,r)):Dr(e)?t.setAttribute(e,function(t,e){return Nr(e)||"false"===e?"false":"contenteditable"===t&&Tr(e)?e:"true"}(e,r)):Fr(e)?Nr(r)?t.removeAttributeNS(Ir,Lr(e)):t.setAttributeNS(Ir,e,r):dn(t,e,r)}function dn(t,e,r){if(Nr(r))t.removeAttribute(e);else{if(W&&!Q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==r&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,r)}}var pn={create:ln,update:ln};function hn(t,e){var r=e.elm,n=e.data,s=t.data;if(!(o(n.staticClass)&&o(n.class)&&(o(s)||o(s.staticClass)&&o(s.class)))){var a=function(t){for(var e=t.data,r=t,n=t;i(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(e=Mr(n.data,e));for(;i(r=r.parent);)r&&r.data&&(e=Mr(e,r.data));return function(t,e){return i(t)||i(e)?Rr(t,Hr(e)):""}(e.staticClass,e.class)}(e),c=r._transitionClasses;i(c)&&(a=Rr(a,Hr(c))),a!==r._prevClass&&(r.setAttribute("class",a),r._prevClass=a)}}var mn,vn,yn,gn,bn,_n,wn={create:hn,update:hn},On=/[\w).+\-_$\]]/;function xn(t){var e,r,n,o,i,s=!1,a=!1,c=!1,u=!1,l=0,f=0,d=0,p=0;for(n=0;n=0&&" "===(m=t.charAt(h));h--);m&&On.test(m)||(u=!0)}}else void 0===o?(p=n+1,o=t.slice(0,n).trim()):v();function v(){(i||(i=[])).push(t.slice(p,n).trim()),p=n+1}if(void 0===o?o=t.slice(0,n).trim():0!==p&&v(),i)for(n=0;n-1?{exp:t.slice(0,gn),key:'"'+t.slice(gn+1)+'"'}:{exp:t,key:null};for(vn=t,gn=bn=_n=0;!Hn();)Un(yn=Rn())?Kn(yn):91===yn&&Bn(yn);return{exp:t.slice(0,bn),key:t.slice(bn+1,_n)}}(t);return null===r.key?t+"="+e:"$set("+r.exp+", "+r.key+", "+e+")"}function Rn(){return vn.charCodeAt(++gn)}function Hn(){return gn>=mn}function Un(t){return 34===t||39===t}function Bn(t){var e=1;for(bn=gn;!Hn();)if(Un(t=Rn()))Kn(t);else if(91===t&&e++,93===t&&e--,0===e){_n=gn;break}}function Kn(t){for(var e=t;!Hn()&&(t=Rn())!==e;);}var zn,qn="__r";function Vn(t,e,r){var n=zn;return function o(){null!==e.apply(null,arguments)&&Zn(t,o,r,n)}}var Gn=Gt&&!(tt&&Number(tt[1])<=53);function Jn(t,e,r,n){if(Gn){var o=sr,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}zn.addEventListener(t,e,rt?{capture:r,passive:n}:r)}function Zn(t,e,r,n){(n||zn).removeEventListener(t,e._wrapper||e,r)}function Wn(t,e){if(!o(t.data.on)||!o(e.data.on)){var r=e.data.on||{},n=t.data.on||{};zn=e.elm,function(t){if(i(t.__r)){var e=W?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}i(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(r),se(r,n,Jn,Zn,Vn,e.context),zn=void 0}}var Qn,Xn={create:Wn,update:Wn};function Yn(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var r,n,s=e.elm,a=t.data.domProps||{},c=e.data.domProps||{};for(r in i(c.__ob__)&&(c=e.data.domProps=$({},c)),a)r in c||(s[r]="");for(r in c){if(n=c[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),n===a[r])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===r&&"PROGRESS"!==s.tagName){s._value=n;var u=o(n)?"":String(n);to(s,u)&&(s.value=u)}else if("innerHTML"===r&&Kr(s.tagName)&&o(s.innerHTML)){(Qn=Qn||document.createElement("div")).innerHTML=""+n+"";for(var l=Qn.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;l.firstChild;)s.appendChild(l.firstChild)}else if(n!==a[r])try{s[r]=n}catch(t){}}}}function to(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var r=!0;try{r=document.activeElement!==t}catch(t){}return r&&t.value!==e}(t,e)||function(t,e){var r=t.value,n=t._vModifiers;if(i(n)){if(n.number)return h(r)!==h(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}(t,e))}var eo={create:Yn,update:Yn},ro=w((function(t){var e={},r=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function no(t){var e=oo(t.style);return t.staticStyle?$(t.staticStyle,e):e}function oo(t){return Array.isArray(t)?E(t):"string"==typeof t?ro(t):t}var io,so=/^--/,ao=/\s*!important$/,co=function(t,e,r){if(so.test(e))t.style.setProperty(e,r);else if(ao.test(r))t.style.setProperty(j(e),r.replace(ao,""),"important");else{var n=lo(e);if(Array.isArray(r))for(var o=0,i=r.length;o-1?e.split(ho).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var r=" "+(t.getAttribute("class")||"")+" ";r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function vo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(ho).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var r=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?t.setAttribute("class",r):t.removeAttribute("class")}}function yo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&$(e,go(t.name||"v")),$(e,t),e}return"string"==typeof t?go(t):void 0}}var go=w((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"}})),bo=V&&!Q,_o="transition",wo="animation",Oo="transition",xo="transitionend",ko="animation",Co="animationend";bo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Oo="WebkitTransition",xo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ko="WebkitAnimation",Co="webkitAnimationEnd"));var jo=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ao(t){jo((function(){jo(t)}))}function So(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),mo(t,e))}function $o(t,e){t._transitionClasses&&g(t._transitionClasses,e),vo(t,e)}function Eo(t,e,r){var n=To(t,e),o=n.type,i=n.timeout,s=n.propCount;if(!o)return r();var a=o===_o?xo:Co,c=0,u=function(){t.removeEventListener(a,l),r()},l=function(e){e.target===t&&++c>=s&&u()};setTimeout((function(){c0&&(r=_o,l=s,f=i.length):e===wo?u>0&&(r=wo,l=u,f=c.length):f=(r=(l=Math.max(s,u))>0?s>u?_o:wo:null)?r===_o?i.length:c.length:0,{type:r,timeout:l,propCount:f,hasTransform:r===_o&&Do.test(n[Oo+"Property"])}}function Po(t,e){for(;t.length1}function Ro(t,e){!0!==e.data.show&&Fo(e)}var Ho=function(t){var e,r,n={},c=t.modules,u=t.nodeOps;for(e=0;eh?b(t,o(r[y+1])?null:r[y+1].elm,r,p,y,n):p>y&&w(e,d,h)}(d,m,y,r,l):i(y)?(i(t.text)&&u.setTextContent(d,""),b(d,null,y,0,y.length-1,r)):i(m)?w(m,0,m.length-1):i(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),i(h)&&i(p=h.hook)&&i(p=p.postpatch)&&p(t,e)}}}function C(t,e,r){if(s(r)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var n=0;n-1,s.selected!==i&&(s.selected=i);else if(I(qo(s),n))return void(t.selectedIndex!==a&&(t.selectedIndex=a));o||(t.selectedIndex=-1)}}function zo(t,e){return e.every((function(e){return!I(e,t)}))}function qo(t){return"_value"in t?t._value:t.value}function Vo(t){t.target.composing=!0}function Go(t){t.target.composing&&(t.target.composing=!1,Jo(t.target,"input"))}function Jo(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function Zo(t){return!t.componentInstance||t.data&&t.data.transition?t:Zo(t.componentInstance._vnode)}var Wo={model:Uo,show:{bind:function(t,e,r){var n=e.value,o=(r=Zo(r)).data&&r.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&o?(r.data.show=!0,Fo(r,(function(){t.style.display=i}))):t.style.display=n?i:"none"},update:function(t,e,r){var n=e.value;!n!=!e.oldValue&&((r=Zo(r)).data&&r.data.transition?(r.data.show=!0,n?Fo(r,(function(){t.style.display=t.__vOriginalDisplay})):Lo(r,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,r,n,o){o||(t.style.display=t.__vOriginalDisplay)}}},Qo={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 Xo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Xo(ze(e.children)):t}function Yo(t){var e={},r=t.$options;for(var n in r.propsData)e[n]=t[n];var o=r._parentListeners;for(var i in o)e[x(i)]=o[i];return e}function ti(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var ei=function(t){return t.tag||Ke(t)},ri=function(t){return"show"===t.name},ni={name:"transition",props:Qo,abstract:!0,render:function(t){var e=this,r=this.$slots.default;if(r&&(r=r.filter(ei)).length){var n=this.mode,o=r[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=Xo(o);if(!i)return o;if(this._leaving)return ti(t,o);var s="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?s+"comment":s+i.tag:a(i.key)?0===String(i.key).indexOf(s)?i.key:s+i.key:i.key;var c=(i.data||(i.data={})).transition=Yo(this),u=this._vnode,l=Xo(u);if(i.data.directives&&i.data.directives.some(ri)&&(i.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(i,l)&&!Ke(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=$({},c);if("out-in"===n)return this._leaving=!0,ae(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ti(t,o);if("in-out"===n){if(Ke(i))return u;var d,p=function(){d()};ae(c,"afterEnter",p),ae(c,"enterCancelled",p),ae(f,"delayLeave",(function(t){d=t}))}}return o}}},oi=$({tag:String,moveClass:String},Qo);function ii(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function si(t){t.data.newPos=t.elm.getBoundingClientRect()}function ai(t){var e=t.data.pos,r=t.data.newPos,n=e.left-r.left,o=e.top-r.top;if(n||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+n+"px,"+o+"px)",i.transitionDuration="0s"}}delete oi.mode;var ci={Transition:ni,TransitionGroup:{props:oi,beforeMount:function(){var t=this,e=this._update;this._update=function(r,n){var o=We(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,r,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],s=Yo(this),a=0;a-1?Vr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Vr[t]=/HTMLUnknownElement/.test(e.toString())},$(wr.options.directives,Wo),$(wr.options.components,ci),wr.prototype.__patch__=V?Ho:D,wr.prototype.$mount=function(t,e){return function(t,e,r){var n;return t.$el=e,t.$options.render||(t.$options.render=yt),Ye(t,"beforeMount"),n=function(){t._update(t._render(),r)},new fr(t,n,D,{before:function(){t._isMounted&&!t._isDestroyed&&Ye(t,"beforeUpdate")}},!0),r=!1,null==t.$vnode&&(t._isMounted=!0,Ye(t,"mounted")),t}(this,t=t&&V?Jr(t):void 0,e)},V&&setTimeout((function(){H.devtools&&it&&it.emit("init",wr)}),0);var ui,li=/\{\{((?:.|\r?\n)+?)\}\}/g,fi=/[-.*+?^${}()|[\]\/\\]/g,di=w((function(t){var e=t[0].replace(fi,"\\$&"),r=t[1].replace(fi,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+r,"g")})),pi={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var r=In(t,"class");r&&(t.staticClass=JSON.stringify(r));var n=Pn(t,"class",!1);n&&(t.classBinding=n)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},hi={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var r=In(t,"style");r&&(t.staticStyle=JSON.stringify(ro(r)));var n=Pn(t,"style",!1);n&&(t.styleBinding=n)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},mi=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),vi=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),yi=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"),gi=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,bi=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,_i="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",wi="((?:"+_i+"\\:)?"+_i+")",Oi=new RegExp("^<"+wi),xi=/^\s*(\/?)>/,ki=new RegExp("^<\\/"+wi+"[^>]*>"),Ci=/^]+>/i,ji=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Di=/&(?:lt|gt|quot|amp|#39);/g,Ti=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Pi=m("pre,textarea",!0),Ii=function(t,e){return t&&Pi(t)&&"\n"===e[0]};function Fi(t,e){var r=e?Ti:Di;return t.replace(r,(function(t){return Ei[t]}))}var Li,Ni,Mi,Ri,Hi,Ui,Bi,Ki,zi=/^@|^v-on:/,qi=/^v-|^@|^:|^#/,Vi=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Gi=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ji=/^\(|\)$/g,Zi=/^\[.*\]$/,Wi=/:(.*)$/,Qi=/^:|^\.|^v-bind:/,Xi=/\.[^.\]]+(?=[^\]]*$)/g,Yi=/^v-slot(:|$)|^#/,ts=/[\r\n]/,es=/\s+/g,rs=w((function(t){return(ui=ui||document.createElement("div")).innerHTML=t,ui.textContent})),ns="_empty_";function os(t,e,r){return{type:1,tag:t,attrsList:e,attrsMap:ls(e),rawAttrsMap:{},parent:r,children:[]}}function is(t,e){var r,n;(n=Pn(r=t,"key"))&&(r.key=n),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Pn(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=In(t,"scope"),t.slotScope=e||In(t,"slot-scope")):(e=In(t,"slot-scope"))&&(t.slotScope=e);var r=Pn(t,"slot");if(r&&(t.slotTarget='""'===r?'"default"':r,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Sn(t,"slot",r,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var n=Fn(t,Yi);if(n){var o=cs(n),i=o.name,s=o.dynamic;t.slotTarget=i,t.slotTargetDynamic=s,t.slotScope=n.value||ns}}else{var a=Fn(t,Yi);if(a){var c=t.scopedSlots||(t.scopedSlots={}),u=cs(a),l=u.name,f=u.dynamic,d=c[l]=os("template",[],t);d.slotTarget=l,d.slotTargetDynamic=f,d.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=d,!0})),d.slotScope=a.value||ns,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Pn(t,"name"))}(t),function(t){var e;(e=Pn(t,"is"))&&(t.component=e),null!=In(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var o=0;o-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),Tn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+s+");if(Array.isArray($$a)){var $$v="+(n?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Mn(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Mn(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Mn(e,"$$c")+"}",null,!0)}(t,n,o);else if("input"===i&&"radio"===s)!function(t,e,r){var n=r&&r.number,o=Pn(t,"value")||"null";An(t,"checked","_q("+e+","+(o=n?"_n("+o+")":o)+")"),Tn(t,"change",Mn(e,o),null,!0)}(t,n,o);else if("input"===i||"textarea"===i)!function(t,e,r){var n=t.attrsMap.type,o=r||{},i=o.lazy,s=o.number,a=o.trim,c=!i&&"range"!==n,u=i?"change":"range"===n?qn:"input",l="$event.target.value";a&&(l="$event.target.value.trim()"),s&&(l="_n("+l+")");var f=Mn(e,l);c&&(f="if($event.target.composing)return;"+f),An(t,"value","("+e+")"),Tn(t,u,f,null,!0),(a||s)&&Tn(t,"blur","$forceUpdate()")}(t,n,o);else if(!H.isReservedTag(i))return Nn(t,n,o),!1;return!0},text:function(t,e){e.value&&An(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&An(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:mi,mustUseProp:Er,canBeLeftOpenTag:vi,isReservedTag:zr,getTagNamespace:qr,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(vs)},gs=w((function(t){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var bs=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,_s=/\([^)]*?\);*$/,ws=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Os={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},xs={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"]},ks=function(t){return"if("+t+")return null;"},Cs={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ks("$event.target !== $event.currentTarget"),ctrl:ks("!$event.ctrlKey"),shift:ks("!$event.shiftKey"),alt:ks("!$event.altKey"),meta:ks("!$event.metaKey"),left:ks("'button' in $event && $event.button !== 0"),middle:ks("'button' in $event && $event.button !== 1"),right:ks("'button' in $event && $event.button !== 2")};function js(t,e){var r=e?"nativeOn:":"on:",n="",o="";for(var i in t){var s=As(t[i]);t[i]&&t[i].dynamic?o+=i+","+s+",":n+='"'+i+'":'+s+","}return n="{"+n.slice(0,-1)+"}",o?r+"_d("+n+",["+o.slice(0,-1)+"])":r+n}function As(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return As(t)})).join(",")+"]";var e=ws.test(t.value),r=bs.test(t.value),n=ws.test(t.value.replace(_s,""));if(t.modifiers){var o="",i="",s=[];for(var a in t.modifiers)if(Cs[a])i+=Cs[a],Os[a]&&s.push(a);else if("exact"===a){var c=t.modifiers;i+=ks(["ctrl","shift","alt","meta"].filter((function(t){return!c[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else s.push(a);return s.length&&(o+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Ss).join("&&")+")return null;"}(s)),i&&(o+=i),"function($event){"+o+(e?"return "+t.value+"($event)":r?"return ("+t.value+")($event)":n?"return "+t.value:t.value)+"}"}return e||r?t.value:"function($event){"+(n?"return "+t.value:t.value)+"}"}function Ss(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var r=Os[t],n=xs[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(r)+",$event.key,"+JSON.stringify(n)+")"}var $s={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(r){return"_b("+r+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:D},Es=function(t){this.options=t,this.warn=t.warn||Cn,this.transforms=jn(t.modules,"transformCode"),this.dataGenFns=jn(t.modules,"genData"),this.directives=$($({},$s),t.directives);var e=t.isReservedTag||T;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ds(t,e){var r=new Es(e);return{render:"with(this){return "+(t?Ts(t,r):'_c("div")')+"}",staticRenderFns:r.staticRenderFns}}function Ts(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ps(t,e);if(t.once&&!t.onceProcessed)return Is(t,e);if(t.for&&!t.forProcessed)return Ls(t,e);if(t.if&&!t.ifProcessed)return Fs(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var r=t.slotName||'"default"',n=Hs(t,e),o="_t("+r+(n?","+n:""),i=t.attrs||t.dynamicAttrs?Ks((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:x(t.name),value:t.value,dynamic:t.dynamic}}))):null,s=t.attrsMap["v-bind"];return!i&&!s||n||(o+=",null"),i&&(o+=","+i),s&&(o+=(i?"":",null")+","+s),o+")"}(t,e);var r;if(t.component)r=function(t,e,r){var n=e.inlineTemplate?null:Hs(e,r,!0);return"_c("+t+","+Ns(e,r)+(n?","+n:"")+")"}(t.component,t,e);else{var n;(!t.plain||t.pre&&e.maybeComponent(t))&&(n=Ns(t,e));var o=t.inlineTemplate?null:Hs(t,e,!0);r="_c('"+t.tag+"'"+(n?","+n:"")+(o?","+o:"")+")"}for(var i=0;i>>0}(s):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(r+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var i=function(t,e){var r=t.children[0];if(r&&1===r.type){var n=Ds(r,e.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);i&&(r+=i+",")}return r=r.replace(/,$/,"")+"}",t.dynamicAttrs&&(r="_b("+r+',"'+t.tag+'",'+Ks(t.dynamicAttrs)+")"),t.wrapData&&(r=t.wrapData(r)),t.wrapListeners&&(r=t.wrapListeners(r)),r}function Ms(t){return 1===t.type&&("slot"===t.tag||t.children.some(Ms))}function Rs(t,e){var r=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!r)return Fs(t,e,Rs,"null");if(t.for&&!t.forProcessed)return Ls(t,e,Rs);var n=t.slotScope===ns?"":String(t.slotScope),o="function("+n+"){return "+("template"===t.tag?t.if&&r?"("+t.if+")?"+(Hs(t,e)||"undefined")+":undefined":Hs(t,e)||"undefined":Ts(t,e))+"}",i=n?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+o+i+"}"}function Hs(t,e,r,n,o){var i=t.children;if(i.length){var s=i[0];if(1===i.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var a=r?e.maybeComponent(s)?",1":",0":"";return""+(n||Ts)(s,e)+a}var c=r?function(t,e){for(var r=0,n=0;n]*>)","i")),d=t.replace(f,(function(t,r,n){return u=n.length,Si(l)||"noscript"===l||(r=r.replace(//g,"$1").replace(//g,"$1")),Ii(l,r)&&(r=r.slice(1)),e.chars&&e.chars(r),""}));c+=t.length-d.length,t=d,j(l,c-u,c)}else{var p=t.indexOf("<");if(0===p){if(ji.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h),c,c+h+3),x(h+3);continue}}if(Ai.test(t)){var m=t.indexOf("]>");if(m>=0){x(m+2);continue}}var v=t.match(Ci);if(v){x(v[0].length);continue}var y=t.match(ki);if(y){var g=c;x(y[0].length),j(y[1],g,c);continue}var b=k();if(b){C(b),Ii(b.tagName,t)&&x(1);continue}}var _=void 0,w=void 0,O=void 0;if(p>=0){for(w=t.slice(p);!(ki.test(w)||Oi.test(w)||ji.test(w)||Ai.test(w)||(O=w.indexOf("<",1))<0);)p+=O,w=t.slice(p);_=t.substring(0,p)}p<0&&(_=t),_&&x(_.length),e.chars&&_&&e.chars(_,c-_.length,c)}if(t===r){e.chars&&e.chars(t);break}}function x(e){c+=e,t=t.substring(e)}function k(){var e=t.match(Oi);if(e){var r,n,o={tagName:e[1],attrs:[],start:c};for(x(e[0].length);!(r=t.match(xi))&&(n=t.match(bi)||t.match(gi));)n.start=c,x(n[0].length),n.end=c,o.attrs.push(n);if(r)return o.unarySlash=r[1],x(r[0].length),o.end=c,o}}function C(t){var r=t.tagName,c=t.unarySlash;i&&("p"===n&&yi(r)&&j(n),a(r)&&n===r&&j(r));for(var u=s(r)||!!c,l=t.attrs.length,f=new Array(l),d=0;d=0&&o[s].lowerCasedTag!==a;s--);else s=0;if(s>=0){for(var u=o.length-1;u>=s;u--)e.end&&e.end(o[u].tag,r,i);o.length=s,n=s&&o[s-1].tag}else"br"===a?e.start&&e.start(t,[],!0,r,i):"p"===a&&(e.start&&e.start(t,[],!1,r,i),e.end&&e.end(t,r,i))}j()}(t,{warn:Li,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,i,s,l,f){var d=n&&n.ns||Ki(t);W&&"svg"===d&&(i=function(t){for(var e=[],r=0;rc&&(a.push(i=t.slice(c,o)),s.push(JSON.stringify(i)));var u=xn(n[1].trim());s.push("_s("+u+")"),a.push({"@binding":u}),c=o+n[0].length}return c':'
',Js.innerHTML.indexOf(" ")>0}var Xs=!!V&&Qs(!1),Ys=!!V&&Qs(!0),ta=w((function(t){var e=Jr(t);return e&&e.innerHTML})),ea=wr.prototype.$mount;wr.prototype.$mount=function(t,e){if((t=t&&Jr(t))===document.body||t===document.documentElement)return this;var r=this.$options;if(!r.render){var n=r.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=ta(n));else{if(!n.nodeType)return this;n=n.innerHTML}else t&&(n=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(n){var o=Ws(n,{outputSourceRange:!1,shouldDecodeNewlines:Xs,shouldDecodeNewlinesForHref:Ys,delimiters:r.delimiters,comments:r.comments},this),i=o.render,s=o.staticRenderFns;r.render=i,r.staticRenderFns=s}}return ea.call(this,t,e)},wr.compile=Ws,t.exports=wr}).call(this,r("yLpj"),r("URgk").setImmediate)},IfUw:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(t=this.selectedDocuments),this.startDraggingDocuments(t)},onDragEnd:function(){this.stopDraggingDocuments()}})},l=r("KHd+"),f=Object(l.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a",{staticClass:"list-item",class:{selected:t.is_selected},attrs:{draggable:!0,href:t.url,rel:"noopener noreferrer"},on:{click:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?null:e.metaKey?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey?null:(e.stopPropagation(),e.preventDefault(),t.onAddToSelection(e)):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),e.preventDefault(),t.onClicked(e))}],mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})},dblclick:function(e){return t.openDocument({document:t.document,folder:t.selectedFolder})},dragstart:t.onDragStart,dragend:t.onDragEnd}},[r("div",{staticClass:"list-item-label"},[r("img",{staticClass:"favicon",attrs:{src:t.document.favicon}}),t._v(" "),r("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.document.title))])]),t._v(" "),t.document.feed_item_states_count>0?r("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()])}),[],!1,null,null,null);e.default=f.exports},K93l:function(t,e,r){"use strict";t.exports=function(t){var e=!1;if(Array.isArray(this.items))for(var r=this.items.length,n=0;n127.5?"#000000":"#ffffff"}t.exports&&(e=t.exports=r),e.TEXTColor=r,r.findTextColor=function(t){const e=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;var r=t;if(/^(rgb|RGB)/.test(r))return o(r.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","));if(e.test(r)){var n=t.toLowerCase();if(n&&e.test(n)){if(4===n.length){for(var i="#",s=1;s<4;s+=1)i+=n.slice(s,s+1).concat(n.slice(s,s+1));n=i}var a=[];for(s=1;s<7;s+=2)a.push(parseInt("0x"+n.slice(s,s+2)));return o(a)}return!1}return!1},void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()},L2JU:function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return x})),r.d(e,"c",(function(){return O}));var n=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var r,n=(r=function(e){return e.original===t},e.filter(r)[0]);if(n)return n.copy;var i=Array.isArray(t)?[]:{};return e.push({original:t,copy:i}),Object.keys(t).forEach((function(r){i[r]=o(t[r],e)})),i}function i(t,e){Object.keys(t).forEach((function(r){return e(t[r],r)}))}function s(t){return null!==t&&"object"==typeof t}var a=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=("function"==typeof r?r():r)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(t,e){this._children[t]=e},a.prototype.removeChild=function(t){delete this._children[t]},a.prototype.getChild=function(t){return this._children[t]},a.prototype.hasChild=function(t){return t in this._children},a.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},a.prototype.forEachChild=function(t){i(this._children,t)},a.prototype.forEachGetter=function(t){this._rawModule.getters&&i(this._rawModule.getters,t)},a.prototype.forEachAction=function(t){this._rawModule.actions&&i(this._rawModule.actions,t)},a.prototype.forEachMutation=function(t){this._rawModule.mutations&&i(this._rawModule.mutations,t)},Object.defineProperties(a.prototype,c);var u=function(t){this.register([],t,!1)};u.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},u.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,r){return t+((e=e.getChild(r)).namespaced?r+"/":"")}),"")},u.prototype.update=function(t){!function t(e,r,n){0;if(r.update(n),n.modules)for(var o in n.modules){if(!r.getChild(o))return void 0;t(e.concat(o),r.getChild(o),n.modules[o])}}([],this.root,t)},u.prototype.register=function(t,e,r){var n=this;void 0===r&&(r=!0);var o=new a(e,r);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);e.modules&&i(e.modules,(function(e,o){n.register(t.concat(o),e,r)}))},u.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1],n=e.getChild(r);n&&n.runtime&&e.removeChild(r)},u.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1];return e.hasChild(r)};var l;var f=function(t){var e=this;void 0===t&&(t={}),!l&&"undefined"!=typeof window&&window.Vue&&b(window.Vue);var r=t.plugins;void 0===r&&(r=[]);var o=t.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new u(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var i=this,s=this.dispatch,a=this.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,r){return a.call(i,t,e,r)},this.strict=o;var c=this._modules.root.state;v(this,c,[],this._modules.root),m(this,c),r.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:l.config.devtools)&&function(t){n&&(t._devtoolHook=n,n.emit("vuex:init",t),n.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){n.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){n.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},d={state:{configurable:!0}};function p(t,e,r){return e.indexOf(t)<0&&(r&&r.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function h(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;v(t,r,[],t._modules.root,!0),m(t,r,e)}function m(t,e,r){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,s={};i(o,(function(e,r){s[r]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,r,{get:function(){return t._vm[r]},enumerable:!0})}));var a=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:s}),l.config.silent=a,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),n&&(r&&t._withCommit((function(){n._data.$$state=null})),l.nextTick((function(){return n.$destroy()})))}function v(t,e,r,n,o){var i=!r.length,s=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=n),!i&&!o){var a=y(e,r.slice(0,-1)),c=r[r.length-1];t._withCommit((function(){l.set(a,c,n.state)}))}var u=n.context=function(t,e,r){var n=""===e,o={dispatch:n?t.dispatch:function(r,n,o){var i=g(r,n,o),s=i.payload,a=i.options,c=i.type;return a&&a.root||(c=e+c),t.dispatch(c,s)},commit:n?t.commit:function(r,n,o){var i=g(r,n,o),s=i.payload,a=i.options,c=i.type;a&&a.root||(c=e+c),t.commit(c,s,a)}};return Object.defineProperties(o,{getters:{get:n?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,n)===e){var i=o.slice(n);Object.defineProperty(r,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return y(t.state,r)}}}),o}(t,s,r);n.forEachMutation((function(e,r){!function(t,e,r,n){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){r.call(t,n.state,e)}))}(t,s+r,e,u)})),n.forEachAction((function(e,r){var n=e.root?r:s+r,o=e.handler||e;!function(t,e,r,n){(t._actions[e]||(t._actions[e]=[])).push((function(e){var o,i=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,n,o,u)})),n.forEachGetter((function(e,r){!function(t,e,r,n){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return r(n.state,n.getters,t.state,t.getters)}}(t,s+r,e,u)})),n.forEachChild((function(n,i){v(t,e,r.concat(i),n,o)}))}function y(t,e){return e.reduce((function(t,e){return t[e]}),t)}function g(t,e,r){return s(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}function b(t){l&&t===l||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:r});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,e.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l=t)}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,r){var n=this,o=g(t,e,r),i=o.type,s=o.payload,a=(o.options,{type:i,payload:s}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(a,n.state)})))},f.prototype.dispatch=function(t,e){var r=this,n=g(t,e),o=n.type,i=n.payload,s={type:o,payload:i},a=this._actions[o];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,r.state)}))}catch(t){0}var c=a.length>1?Promise.all(a.map((function(t){return t(i)}))):a[0](i);return new Promise((function(t,e){c.then((function(e){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,r.state)}))}catch(t){0}t(e)}),(function(t){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,r.state,t)}))}catch(t){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){return p("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},f.prototype.watch=function(t,e,r){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,r)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,r){void 0===r&&(r={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),r.preserveState),m(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var r=y(e.state,t.slice(0,-1));l.delete(r,t[t.length-1])})),h(this)},f.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype.hotUpdate=function(t){this._modules.update(t),h(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var _=C((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){var e=this.$store.state,r=this.$store.getters;if(t){var n=j(this.$store,"mapState",t);if(!n)return;e=n.context.state,r=n.context.getters}return"function"==typeof o?o.call(this,e,r):e[o]},r[n].vuex=!0})),r})),w=C((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.commit;if(t){var i=j(this.$store,"mapMutations",t);if(!i)return;n=i.context.commit}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r})),O=C((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;o=t+o,r[n]=function(){if(!t||j(this.$store,"mapGetters",t))return this.$store.getters[o]},r[n].vuex=!0})),r})),x=C((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.dispatch;if(t){var i=j(this.$store,"mapActions",t);if(!i)return;n=i.context.dispatch}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r}));function k(t){return function(t){return Array.isArray(t)||s(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function C(t){return function(e,r){return"string"!=typeof e?(r=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,r)}}function j(t,e,r){return t._modulesNamespaceMap[r]}function A(t,e,r){var n=r?t.groupCollapsed:t.group;try{n.call(t,e)}catch(r){t.log(e)}}function S(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function $(){var t=new Date;return" @ "+E(t.getHours(),2)+":"+E(t.getMinutes(),2)+":"+E(t.getSeconds(),2)+"."+E(t.getMilliseconds(),3)}function E(t,e){return r="0",n=e-t.toString().length,new Array(n+1).join(r)+t;var r,n}var D={Store:f,install:b,version:"3.5.1",mapState:_,mapMutations:w,mapGetters:O,mapActions:x,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:O.bind(null,t),mapMutations:w.bind(null,t),mapActions:x.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var r=t.filter;void 0===r&&(r=function(t,e,r){return!0});var n=t.transformer;void 0===n&&(n=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var s=t.actionFilter;void 0===s&&(s=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=o(t.state);void 0!==l&&(c&&t.subscribe((function(t,s){var a=o(s);if(r(t,f,a)){var c=$(),u=i(t),d="mutation "+t.type+c;A(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",n(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",n(a)),S(l)}f=a})),u&&t.subscribeAction((function(t,r){if(s(t,r)){var n=$(),o=a(t),i="action "+t.type+n;A(l,i,e),l.log("%c action","color: #03A9F4; font-weight: bold",o),S(l)}})))}}};e.a=D}).call(this,r("yLpj"))},Lcjm:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){var t=n(this.items),e=void 0,r=void 0,o=void 0;for(o=t.length;o;o-=1)e=Math.floor(Math.random()*o),r=t[o-1],t[o-1]=t[e],t[e]=r;return this.items=t,this}},LlWW:function(t,e,r){"use strict";t.exports=function(t){return this.sortBy(t).reverse()}},LpLF:function(t,e,r){"use strict";t.exports=function(t){var e=this,r=t;r instanceof this.constructor&&(r=r.all());var n=this.items.map((function(t,n){return new e.constructor([t,r[n]])}));return new this.constructor(n)}},Lzbe:function(t,e,r){"use strict";t.exports=function(t,e){var r=this.items.slice(t);return void 0!==e&&(r=r.slice(0,e)),new this.constructor(r)}},M1FP:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().forEach((function(r){e[r]=t.items[r]})),new this.constructor(e)}},MIHw:function(t,e,r){"use strict";t.exports=function(t,e){return this.where(t,">=",e[0]).where(t,"<=",e[e.length-1])}},MSmq:function(t,e,r){"use strict";t.exports=function(t){var e=this,r=t;t instanceof this.constructor&&(r=t.all());var n={};return Object.keys(this.items).forEach((function(t){void 0!==r[t]&&r[t]===e.items[t]||(n[t]=e.items[t])})),new this.constructor(n)}},NAvP:function(t,e,r){"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var r=Object.keys(e),n=Object.keys(this.items).filter((function(t){return-1===r.indexOf(t)}));return new this.constructor(this.items).only(n)}},OKMW:function(t,e,r){"use strict";t.exports=function(t,e,r){return this.where(t,e,r).first()||null}},Ob7M:function(t,e,r){"use strict";t.exports=function(t){return new this.constructor(this.items).filter((function(e){return!t(e)}))}},OxKB:function(t,e,r){"use strict";t.exports=function(t){return Array.isArray(t[0])?t[0]:t}},Pu7b:function(t,e,r){"use strict";var n=r("0tQ4"),o=r("SIfw").isFunction;t.exports=function(t){var e=this,r={};return this.items.forEach((function(i,s){var a=void 0;a=o(t)?t(i,s):n(i,t)||0===n(i,t)?n(i,t):"",void 0===r[a]&&(r[a]=new e.constructor([])),r[a].push(i)})),new this.constructor(r)}},QSc6:function(t,e,r){"use strict";var n=r("0jNN"),o=r("sxOR"),i=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Array.isArray,c=Array.prototype.push,u=function(t,e){c.apply(t,a(e)?e:[e])},l=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,r,o,i,s,c,l,d,p,h,m,v,y){var g=e;if("function"==typeof l?g=l(r,g):g instanceof Date?g=h(g):"comma"===o&&a(g)&&(g=g.join(",")),null===g){if(i)return c&&!v?c(r,f.encoder,y):r;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||n.isBuffer(g))return c?[m(v?r:c(r,f.encoder,y))+"="+m(c(g,f.encoder,y))]:[m(r)+"="+m(String(g))];var b,_=[];if(void 0===g)return _;if(a(l))b=l;else{var w=Object.keys(g);b=d?w.sort(d):w}for(var O=0;O0?g+y:""}},Qyje:function(t,e,r){"use strict";var n=r("QSc6"),o=r("nmq7"),i=r("sxOR");t.exports={formats:i,parse:o,stringify:n}},RB6r:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;eo?1:0})),new this.constructor(e)}},RR3J:function(t,e,r){"use strict";t.exports=function(t){var e=t;t instanceof this.constructor&&(e=t.all());var r=this.items.filter((function(t){return-1!==e.indexOf(t)}));return new this.constructor(r)}},RVo9:function(t,e,r){"use strict";t.exports=function(t,e){if(Array.isArray(this.items)&&this.items.length)return t(this);if(Object.keys(this.items).length)return t(this);if(void 0!==e){if(Array.isArray(this.items)&&!this.items.length)return e(this);if(!Object.keys(this.items).length)return e(this)}return this}},RtnH:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().reverse().forEach((function(r){e[r]=t.items[r]})),new this.constructor(e)}},Rx9r:function(t,e,r){"use strict";var n="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=r("ytFn");t.exports=function(t){var e=t;t instanceof this.constructor?e=t.all():"object"===(void 0===t?"undefined":n(t))&&(e=[],Object.keys(t).forEach((function(r){e.push(t[r])})));var r=o(this.items);return e.forEach((function(t){"object"===(void 0===t?"undefined":n(t))?Object.keys(t).forEach((function(e){return r.push(t[e])})):r.push(t)})),new this.constructor(r)}},SIfw:function(t,e,r){"use strict";var n="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.exports={isArray:function(t){return Array.isArray(t)},isObject:function(t){return"object"===(void 0===t?"undefined":n(t))&&!1===Array.isArray(t)&&null!==t},isFunction:function(t){return"function"==typeof t}}},T3CM:function(t,e,r){"use strict";r.r(e);var n=r("o0o1"),o=r.n(n);function i(t,e,r,n,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var s=t.apply(e,r);function a(t){i(s,n,o,a,c,"next",t)}function c(t){i(s,n,o,a,c,"throw",t)}a(void 0)}))}}var a,c,u={data:function(){return{highlights:highlights,newExpression:null,newColor:null}},computed:{sortedHighlights:function(){return collect(this.highlights).sortBy("expression")}},methods:{addHighlight:(c=s(o.a.mark((function t(){var e;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=this).newExpression){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,api.post(route("highlight.store"),{expression:e.newExpression,color:e.newColor});case 5:e.highlights=t.sent,e.newExpression=null,e.newColor=null;case 8:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)}),onDestroy:(a=s(o.a.mark((function t(e){var r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,t.next=3,api.delete(route("highlight.destroy",e));case 3:r.highlights=t.sent;case 4:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})}},l=r("KHd+"),f=Object(l.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("table",{staticClass:"w-full"},[r("thead",[r("tr",[r("th",{staticClass:"w-1/2"},[t._v(t._s(t.__("Expression")))]),t._v(" "),r("th",{staticClass:"w-1/4"},[t._v(t._s(t.__("Color")))]),t._v(" "),r("th")]),t._v(" "),r("tr",[r("td",{staticClass:"w-1/2"},[r("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.newExpression,expression:"newExpression",modifiers:{lazy:!0}}],staticClass:"w-full",attrs:{type:"text","aria-label":t.__("Expression")},domProps:{value:t.newExpression},on:{change:function(e){t.newExpression=e.target.value}}})]),t._v(" "),r("td",{staticClass:"w-1/4"},[r("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.newColor,expression:"newColor",modifiers:{lazy:!0}}],staticClass:"w-full",attrs:{type:"color","aria-label":t.__("Color")},domProps:{value:t.newColor},on:{change:function(e){t.newColor=e.target.value}}})]),t._v(" "),r("td",[r("button",{staticClass:"success",attrs:{type:"submit",title:t.__("Add highlight")},on:{click:t.addHighlight}},[r("svg",{attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("add")}})])])])])]),t._v(" "),r("tbody",t._l(t.sortedHighlights,(function(e){return r("highlight",{key:e.id,attrs:{highlight:e},on:{destroy:t.onDestroy}})})),1)])}),[],!1,null,null,null);e.default=f.exports},TWr4:function(t,e,r){"use strict";var n=r("SIfw"),o=n.isArray,i=n.isObject,s=n.isFunction;t.exports=function(t){var e=this,r=null,n=void 0,a=function(e){return e===t};return s(t)&&(a=t),o(this.items)&&(n=this.items.filter((function(t){return!0!==r&&(r=!a(t)),r}))),i(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!0!==r&&(r=!a(e.items[n])),!1!==r&&(t[n]=e.items[n]),t}),{})),new this.constructor(n)}},TZAN:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("0tQ4");t.exports=function(t,e){var r=n(e),i=this.items.filter((function(e){return-1!==r.indexOf(o(e,t))}));return new this.constructor(i)}},"UH+N":function(t,e,r){"use strict";t.exports=function(t){var e=this,r=JSON.parse(JSON.stringify(this.items));return Object.keys(t).forEach((function(n){void 0===e.items[n]&&(r[n]=t[n])})),new this.constructor(r)}},URgk:function(t,e,r){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(n,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))},r("YBdB"),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,r("yLpj"))},UY0H:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){return new this.constructor(n(this.items))}},UgDP:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("0tQ4");t.exports=function(t,e){var r=n(e),i=this.items.filter((function(e){return-1===r.indexOf(o(e,t))}));return new this.constructor(i)}},UnNl:function(t,e,r){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"===",null)}},Ww0C:function(t,e,r){"use strict";t.exports=function(){return this.sort().reverse()}},XuX8:function(t,e,r){t.exports=r("INkZ")},YBdB:function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var n,o,i,s,a,c=1,u={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},n=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,n=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):n=function(t){setTimeout(h,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&h(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),n=function(e){t.postMessage(s+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r2&&void 0!==r[2]?r[2]:"POST",s=r.length>3&&void 0!==r[3]&&r[3],c=a,s&&(c["Content-Type"]="multipart/form-data"),u={method:i,headers:c},e&&(u.body=s?e:JSON.stringify(e)),n.next=8,fetch(t,u);case 8:return l=n.sent,n.prev=9,n.next=12,l.json();case 12:return f=n.sent,n.abrupt("return",f);case 16:return n.prev=16,n.t0=n.catch(9),n.abrupt("return",l);case 19:case"end":return n.stop()}}),n,null,[[9,16]])})))()},get:function(t){var e=this;return s(o.a.mark((function r(){return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",e.send(t,null,"GET"));case 1:case"end":return r.stop()}}),r)})))()},post:function(t,e){var r=arguments,n=this;return s(o.a.mark((function i(){var s;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=r.length>2&&void 0!==r[2]&&r[2],o.abrupt("return",n.send(t,e,"POST",s));case 2:case"end":return o.stop()}}),i)})))()},put:function(t,e){var r=this;return s(o.a.mark((function n(){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.send(t,e,"PUT"));case 1:case"end":return n.stop()}}),n)})))()},delete:function(t,e){var r=this;return s(o.a.mark((function n(){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.send(t,e,"DELETE"));case 1:case"end":return n.stop()}}),n)})))()}};window.Vue=r("XuX8"),window.collect=r("j5l6"),window.api=c,r("zhh1")},c993:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("a",{staticClass:"button info ml-2",attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),r("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[r("div",{domProps:{innerHTML:t._s(t.feedItem.content?t.feedItem.content:t.feedItem.description)}}),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("URL")))]),t._v(" "),r("dd",[r("a",{attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[t._v(t._s(t.feedItem.url))])]),t._v(" "),r("dt",[t._v(t._s(t.__("Date of item's creation")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.feedItem.created_at,calendar:!0}})],1),t._v(" "),r("dt",[t._v(t._s(t.__("Date of item's publication")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.feedItem.published_at,calendar:!0}})],1),t._v(" "),r("dt",[t._v(t._s(t.__("Published in")))]),t._v(" "),r("dd",t._l(t.feedItem.feeds,(function(e){return r("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500"},[r("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),r("div",{staticClass:"py-0.5"},[t._v(t._s(e.title))])])})),0)])])])}),[],!1,null,null,null);e.default=u.exports},cZbx:function(t,e,r){"use strict";var n="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.exports=function(t){return t instanceof this.constructor?t:"object"===(void 0===t?"undefined":n(t))?new this.constructor(t):new this.constructor([t])}},clGK:function(t,e,r){"use strict";t.exports=function(t,e,r){t?r(this):e(this)}},dydJ:function(t,e,r){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o="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.exports=function(t){var e=this,r=t;r instanceof this.constructor&&(r=t.all());var i={};if(Array.isArray(this.items)&&Array.isArray(r))this.items.forEach((function(t,e){i[t]=r[e]}));else if("object"===o(this.items)&&"object"===(void 0===r?"undefined":o(r)))Object.keys(this.items).forEach((function(t,n){i[e.items[t]]=r[Object.keys(r)[n]]}));else if(Array.isArray(this.items))i[this.items[0]]=r;else if("string"==typeof this.items&&Array.isArray(r)){var s=n(r,1);i[this.items]=s[0]}else"string"==typeof this.items&&(i[this.items]=r);return new this.constructor(i)}},epP6:function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?r("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]),t._v(" "),t.folder.feed_item_states_count>0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e()]),t._v(" "),r("div",{staticClass:"body"},["folder"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("folder.update",t.folder)},on:{submit:function(e){return e.preventDefault(),t.onUpdateFolder(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{attrs:{type:"text",name:"title"},domProps:{value:t.folder.title},on:{input:function(e){t.updateFolderTitle=e.target.value}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("update")}})]),t._v("\n "+t._s(t.__("Update folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("folder.store")},on:{submit:function(e){return e.preventDefault(),t.onAddFolder(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.addFolderTitle,expression:"addFolderTitle"}],attrs:{type:"text"},domProps:{value:t.addFolderTitle},on:{input:function(e){e.target.composing||(t.addFolderTitle=e.target.value)}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("document.store")},on:{submit:function(e){return e.preventDefault(),t.onAddDocument(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.addDocumentUrl,expression:"addDocumentUrl"}],attrs:{type:"url"},domProps:{value:t.addDocumentUrl},on:{input:function(e){e.target.composing||(t.addDocumentUrl=e.target.value)}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add document"))+"\n ")])])]),t._v(" "),"folder"===t.folder.type?r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteFolder}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])]):t._e()])])}),[],!1,null,null,null);e.default=u.exports},l9N6:function(t,e,r){"use strict";var n="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 o(t){if(Array.isArray(t)){if(t.length)return!1}else if(null!=t&&"object"===(void 0===t?"undefined":n(t))){if(Object.keys(t).length)return!1}else if(t)return!1;return!0}t.exports=function(t){var e=t||!1,r=null;return r=Array.isArray(this.items)?function(t,e){if(t)return e.filter(t);for(var r=[],n=0;n":return o(e,t)!==Number(s)&&o(e,t)!==s.toString();case"!==":return o(e,t)!==s;case"<":return o(e,t)":return o(e,t)>s;case">=":return o(e,t)>=s}}));return new this.constructor(c)}},lfA6:function(t,e,r){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var e=this,r={};return Array.isArray(this.items)?this.items.forEach((function(e){var o=t(e),i=n(o,2),s=i[0],a=i[1];r[s]=a})):Object.keys(this.items).forEach((function(o){var i=t(e.items[o]),s=n(i,2),a=s[0],c=s[1];r[a]=c})),new this.constructor(r)}},lflG:function(t,e,r){"use strict";t.exports=function(){return!this.isEmpty()}},lpfs:function(t,e,r){"use strict";t.exports=function(t){return t(this),this}},ls82:function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function a(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),s=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var a=_(s,r);if(a){if(a===l)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,s),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function f(){}function d(){}function p(){}var h={};h[o]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(k([])));v&&v!==e&&r.call(v,o)&&(h=v);var y=p.prototype=f.prototype=Object.create(h);function g(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var n;this._invoke=function(o,i){function s(){return new e((function(n,s){!function n(o,i,s,a){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,a)}))}a(c.arg)}(o,i,n,s)}))}return n=n?n.then(s,s):s()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(a&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},lwQh:function(t,e,r){"use strict";t.exports=function(){var t=0;return Array.isArray(this.items)&&(t=this.items.length),Math.max(Object.keys(this.items).length,t)}},mNb9:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=n(this.items),r=new this.constructor(e).shuffle();return t!==parseInt(t,10)?r.first():r.take(t)}},nHqO:function(t,e,r){"use strict";var n=r("OxKB");t.exports=function(){for(var t=this,e=arguments.length,r=Array(e),o=0;o=0;--o){var i,s=t[o];if("[]"===s&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(a,10);r.parseArrays||""!==a?!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[a]=n:i={0:n}}n=i}return n}(c,e,r)}};t.exports=function(t,e){var r=function(t){if(!t)return i;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?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth?t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var r,a={},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,u=e.parameterLimit===1/0?void 0:e.parameterLimit,l=c.split(e.delimiter,u),f=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(h=h.split(",")),o.call(a,p)?a[p]=n.combine(a[p],h):a[p]=h}return a}(t,r):t,u=r.plainObjects?Object.create(null):{},l=Object.keys(c),f=0;f0?r("div",[r("h2",[t._v(t._s(t.__("Community themes")))]),t._v(" "),r("p",[t._v(t._s(t.__("These themes were hand-picked by Cyca's author.")))]),t._v(" "),r("div",{staticClass:"themes-category"},t._l(t.themes.community,(function(e,n){return r("theme-card",{key:n,attrs:{repository_url:e,name:n,is_selected:n===t.selected},on:{selected:function(e){return t.useTheme(n)}}})})),1)]):t._e()])}),[],!1,null,null,null);e.default=l.exports},qBwO:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s={data:function(){return{selectedFeeds:[]}},computed:function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return new this.constructor(this.items).groupBy(t).map((function(t){return t.count()}))}},qigg:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e=t.target.scrollHeight&&this.canLoadMore&&this.loadMoreFeedItems()}})},c=r("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"feeditems-list"},on:{"&scroll":function(e){return t.onScroll(e)}}},t._l(t.sortedList,(function(e){return r("feed-item",{key:e.id,attrs:{feedItem:e},on:{"selected-feeditems-changed":t.onSelectedFeedItemsChanged}})})),1)}),[],!1,null,null,null);e.default=u.exports},qj89:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("SIfw").isFunction;t.exports=function(t,e){if(void 0!==e)return Array.isArray(this.items)?this.items.filter((function(r){return void 0!==r[t]&&r[t]===e})).length>0:void 0!==this.items[t]&&this.items[t]===e;if(o(t))return this.items.filter((function(e,r){return t(e,r)})).length>0;if(Array.isArray(this.items))return-1!==this.items.indexOf(t);var r=n(this.items);return r.push.apply(r,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);er&&(r=i)}else void 0!==t?e.push({key:n[t],count:1}):e.push({key:n,count:1})})),e.filter((function(t){return t.count===r})).map((function(t){return t.key}))):null}},t9qg:function(t,e,r){"use strict";t.exports=function(t,e){var r=this,n={};return Array.isArray(this.items)?n=this.items.slice(t*e-e,t*e):Object.keys(this.items).slice(t*e-e,t*e).forEach((function(t){n[t]=r.items[t]})),new this.constructor(n)}},tNWF:function(t,e,r){"use strict";t.exports=function(t,e){var r=this,n=null;return void 0!==e&&(n=e),Array.isArray(this.items)?this.items.forEach((function(e){n=t(n,e)})):Object.keys(this.items).forEach((function(e){n=t(n,r.items[e],e)})),n}},tiHo:function(t,e,r){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new this.constructor(t)}},tpAN:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0?r("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()]),t._v(" "),r("div",{staticClass:"flex items-center"},[t.document.feed_item_states_count>0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("a",{staticClass:"button info ml-2",attrs:{href:t.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))},mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})}}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),r("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[t.document.description?r("div",{domProps:{innerHTML:t._s(t.document.description)}}):t._e(),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),r("dd",[r("a",{attrs:{href:t.document.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))}}},[t._v(t._s(t.document.url))])]),t._v(" "),t.document.bookmark.visits?r("dt",[t._v(t._s(t.__("Visits")))]):t._e(),t._v(" "),t.document.bookmark.visits?r("dd",[t._v(t._s(t.document.bookmark.visits))]):t._e(),t._v(" "),r("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.document.checked_at,calendar:!0}})],1),t._v(" "),t.dupplicateInFolders.length>0?r("dt",[t._v(t._s(t.__("Also exists in")))]):t._e(),t._v(" "),t.dupplicateInFolders.length>0?r("dd",t._l(t.dupplicateInFolders,(function(e){return r("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500",on:{click:function(r){return t.$emit("folder-selected",e)}}},[r("svg",{staticClass:"favicon",class:e.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon(e.icon)}})]),t._v(" "),r("span",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(e.title))])])})),0):t._e()]),t._v(" "),t.document.feeds&&t.document.feeds.length>0?r("h2",[t._v(t._s(t.__("Feeds")))]):t._e(),t._v(" "),t._l(t.document.feeds,(function(e){return r("div",{key:e.id,staticClass:"rounded bg-gray-600 mb-2 p-2"},[r("div",{staticClass:"flex justify-between items-center"},[r("div",{staticClass:"flex items-center my-0 py-0"},[r("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),r("div",[t._v(t._s(e.title))])]),t._v(" "),e.is_ignored?r("button",{staticClass:"button success",on:{click:function(r){return t.follow(e)}}},[t._v(t._s(t.__("Follow")))]):t._e(),t._v(" "),e.is_ignored?t._e():r("button",{staticClass:"button danger",on:{click:function(r){return t.ignore(e)}}},[t._v(t._s(t.__("Ignore")))])]),t._v(" "),e.description?r("div",{domProps:{innerHTML:t._s(e.description)}}):t._e(),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),r("dd",[r("div",[t._v(t._s(e.url))])]),t._v(" "),r("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:e.checked_at,calendar:!0}})],1)])])})),t._v(" "),r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},u4XC:function(t,e,r){"use strict";var n="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.exports=function(t){var e=this,r=[],o=0;if(Array.isArray(this.items))do{var i=this.items.slice(o,o+t),s=new this.constructor(i);r.push(s),o+=t}while(o1&&void 0!==arguments[1]?arguments[1]:0,r=n(this.items),o=r.slice(e).filter((function(e,r){return r%t==0}));return new this.constructor(o)}},"x+iC":function(t,e,r){"use strict";t.exports=function(t,e){var r=this.values();if(void 0===e)return r.implode(t);var n=r.count();if(0===n)return"";if(1===n)return r.last();var o=r.pop();return r.implode(t)+e+o}},xA6t:function(t,e,r){"use strict";var n=r("0tQ4");t.exports=function(t,e){return this.filter((function(r){return n(r,t)e[e.length-1]}))}},xWoM:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Array.isArray(this.items)?Object.keys(this.items).forEach((function(r){e[t.items[r]]=Number(r)})):Object.keys(this.items).forEach((function(r){e[t.items[r]]=r})),new this.constructor(e)}},xazZ:function(t,e,r){"use strict";t.exports=function(t){return this.filter((function(e){return e instanceof t}))}},xgus:function(t,e,r){"use strict";var n=r("SIfw").isObject;t.exports=function(t){var e=this;return n(this.items)?new this.constructor(Object.keys(this.items).reduce((function(r,n,o){return o+1>t&&(r[n]=e.items[n]),r}),{})):new this.constructor(this.items.slice(t))}},xi9Z:function(t,e,r){"use strict";t.exports=function(t,e){return void 0===e?this.items.join(t):new this.constructor(this.items).pluck(t).all().join(e)}},yLpj:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},ysnW:function(t,e,r){var n={"./DateTime.vue":"YrHs","./Details/DetailsDocument.vue":"tpAN","./Details/DetailsDocuments.vue":"2FZ/","./Details/DetailsFeedItem.vue":"c993","./Details/DetailsFolder.vue":"l2C0","./DocumentItem.vue":"IfUw","./DocumentsList.vue":"qBwO","./FeedItem.vue":"+CwO","./FeedItemsList.vue":"qigg","./FolderItem.vue":"4VNc","./FoldersTree.vue":"RB6r","./Highlight.vue":"AmQ0","./Highlights.vue":"T3CM","./Importer.vue":"gDOT","./Importers/ImportFromCyca.vue":"wT45","./ThemeCard.vue":"CV10","./ThemesBrowser.vue":"pKhy"};function o(t){var e=i(t);return r(e)}function i(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}o.keys=function(){return Object.keys(n)},o.resolve=i,t.exports=o,o.id="ysnW"},ytFn:function(t,e,r){"use strict";t.exports=function(t){var e,r=void 0;Array.isArray(t)?(e=r=[]).push.apply(e,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e3&&void 0!==arguments[3]?arguments[3]:null;return a(this,v),(n=m.call(this)).name=t,n.absolute=r,n.ziggy=i||Ziggy,n.urlBuilder=n.name?new o(t,r,n.ziggy):null,n.template=n.urlBuilder?n.urlBuilder.construct():"",n.urlParams=n.normalizeParams(e),n.queryParams={},n.hydrated="",n}return n=v,(l=[{key:"normalizeParams",value:function(t){return void 0===t?{}:((t="object"!==s(t)?[t]:t).hasOwnProperty("id")&&-1==this.template.indexOf("{id}")&&(t=[t.id]),this.numericParamIndices=Array.isArray(t),Object.assign({},t))}},{key:"with",value:function(t){return this.urlParams=this.normalizeParams(t),this}},{key:"withQuery",value:function(t){return Object.assign(this.queryParams,t),this}},{key:"hydrateUrl",value:function(){var t=this;if(this.hydrated)return this.hydrated;var e=this.template.replace(/{([^}]+)}/gi,(function(e,r){var n,o,i=t.trimParam(e);if(t.ziggy.defaultParameters.hasOwnProperty(i)&&(n=t.ziggy.defaultParameters[i]),n&&!t.urlParams[i])return delete t.urlParams[i],n;if(t.numericParamIndices?(t.urlParams=Object.values(t.urlParams),o=t.urlParams.shift()):(o=t.urlParams[i],delete t.urlParams[i]),null==o){if(-1===e.indexOf("?"))throw new Error("Ziggy Error: '"+i+"' key is required for route '"+t.name+"'");return""}return o.id?encodeURIComponent(o.id):encodeURIComponent(o)}));return null!=this.urlBuilder&&""!==this.urlBuilder.path&&(e=e.replace(/\/+$/,"")),this.hydrated=e,this.hydrated}},{key:"matchUrl",value:function(){var t=window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname,e=this.template.replace(/(\/\{[^\}]*\?\})/g,"/").replace(/(\{[^\}]*\})/gi,"[^/?]+").replace(/\/?$/,"").split("://")[1],r=this.template.replace(/(\{[^\}]*\})/gi,"[^/?]+").split("://")[1],n=t.replace(/\/?$/,"/"),o=new RegExp("^"+r+"/$").test(n),i=new RegExp("^"+e+"/$").test(n);return o||i}},{key:"constructQuery",value:function(){if(0===Object.keys(this.queryParams).length&&0===Object.keys(this.urlParams).length)return"";var t=Object.assign(this.urlParams,this.queryParams);return Object(i.stringify)(t,{encodeValuesOnly:!0,skipNulls:!0,addQueryPrefix:!0,arrayFormat:"indices"})}},{key:"current",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=Object.keys(this.ziggy.namedRoutes),n=r.filter((function(e){return-1!==t.ziggy.namedRoutes[e].methods.indexOf("GET")&&new v(e,void 0,void 0,t.ziggy).matchUrl()}))[0];if(e){var o=new RegExp("^"+e.replace(".","\\.").replace("*",".*")+"$","i");return o.test(n)}return n}},{key:"check",value:function(t){return Object.keys(this.ziggy.namedRoutes).includes(t)}},{key:"extractParams",value:function(t,e,r){var n=this,o=t.split(r);return e.split(r).reduce((function(t,e,r){return 0===e.indexOf("{")&&-1!==e.indexOf("}")&&o[r]?Object.assign(t,(i={},s=n.trimParam(e),a=o[r],s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i)):t;var i,s,a}),{})}},{key:"parse",value:function(){this.return=this.hydrateUrl()+this.constructQuery()}},{key:"url",value:function(){return this.parse(),this.return}},{key:"toString",value:function(){return this.url()}},{key:"trimParam",value:function(t){return t.replace(/{|}|\?/g,"")}},{key:"valueOf",value:function(){return this.url()}},{key:"params",get:function(){var t=this.ziggy.namedRoutes[this.current()];return Object.assign(this.extractParams(window.location.hostname,t.domain||"","."),this.extractParams(window.location.pathname.slice(1),t.uri,"/"))}}])&&c(n.prototype,l),f&&c(n,f),v}(l(String));function v(t,e,r,n){return new m(t,e,r,n)}var y={namedRoutes:{account:{uri:"account",methods:["GET","HEAD"],domain:null},home:{uri:"/",methods:["GET","HEAD"],domain:null},"account.password":{uri:"account/password",methods:["GET","HEAD"],domain:null},"account.theme":{uri:"account/theme",methods:["GET","HEAD"],domain:null},"account.setTheme":{uri:"account/theme",methods:["POST"],domain:null},"account.theme.details":{uri:"account/theme/details/{name}",methods:["GET","HEAD"],domain:null},"account.getThemes":{uri:"account/theme/themes",methods:["GET","HEAD"],domain:null},"account.import.form":{uri:"account/import",methods:["GET","HEAD"],domain:null},"account.import":{uri:"account/import",methods:["POST"],domain:null},"account.export":{uri:"account/export",methods:["GET","HEAD"],domain:null},"document.move":{uri:"document/move/{sourceFolder}/{targetFolder}",methods:["POST"],domain:null},"document.destroy_bookmarks":{uri:"document/delete_bookmarks/{folder}",methods:["POST"],domain:null},"document.visit":{uri:"document/{document}/visit/{folder}",methods:["POST"],domain:null},"feed_item.mark_as_read":{uri:"feed_item/mark_as_read",methods:["POST"],domain:null},"feed.ignore":{uri:"feed/{feed}/ignore",methods:["POST"],domain:null},"feed.follow":{uri:"feed/{feed}/follow",methods:["POST"],domain:null},"folder.index":{uri:"folder",methods:["GET","HEAD"],domain:null},"folder.store":{uri:"folder",methods:["POST"],domain:null},"folder.show":{uri:"folder/{folder}",methods:["GET","HEAD"],domain:null},"folder.update":{uri:"folder/{folder}",methods:["PUT","PATCH"],domain:null},"folder.destroy":{uri:"folder/{folder}",methods:["DELETE"],domain:null},"document.index":{uri:"document",methods:["GET","HEAD"],domain:null},"document.store":{uri:"document",methods:["POST"],domain:null},"document.show":{uri:"document/{document}",methods:["GET","HEAD"],domain:null},"feed_item.index":{uri:"feed_item",methods:["GET","HEAD"],domain:null},"feed_item.show":{uri:"feed_item/{feed_item}",methods:["GET","HEAD"],domain:null},"highlight.index":{uri:"highlight",methods:["GET","HEAD"],domain:null},"highlight.store":{uri:"highlight",methods:["POST"],domain:null},"highlight.show":{uri:"highlight/{highlight}",methods:["GET","HEAD"],domain:null},"highlight.update":{uri:"highlight/{highlight}",methods:["PUT","PATCH"],domain:null},"highlight.destroy":{uri:"highlight/{highlight}",methods:["DELETE"],domain:null}},baseUrl:"https://cyca.athaliasoft.com/",baseProtocol:"https",baseDomain:"cyca.athaliasoft.com",basePort:!1,defaultParameters:[]};if("undefined"!=typeof window&&void 0!==window.Ziggy)for(var g in window.Ziggy.namedRoutes)y.namedRoutes[g]=window.Ziggy.namedRoutes[g];window.route=v,window.Ziggy=y,Vue.mixin({methods:{route:function(t,e,r){return v(t,e,r,y)},icon:function(t){return document.querySelector('meta[name="icons-file-url"]').getAttribute("content")+"#"+t},__:function(t){var e=lang[t];return e||t}}})}}); \ No newline at end of file diff --git a/public/js/highlights.js.LICENSE.txt b/public/js/highlights.js.LICENSE.txt new file mode 100644 index 0000000..05cd343 --- /dev/null +++ b/public/js/highlights.js.LICENSE.txt @@ -0,0 +1,11 @@ +/*! + * Vue.js v2.6.12 + * (c) 2014-2020 Evan You + * Released under the MIT License. + */ + +/*! + * vuex v3.5.1 + * (c) 2020 Evan You + * @license MIT + */ diff --git a/public/js/import.js b/public/js/import.js index cdab48c..6563192 100644 --- a/public/js/import.js +++ b/public/js/import.js @@ -1,2 +1,2 @@ /*! For license information please see import.js.LICENSE.txt */ -!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r(r.s=2)}({"+CwO":function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1;){var e=t.pop(),r=e.obj[e.prop];if(o(r)){for(var n=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(s):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(s)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},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,r,i){if(!r)return e;if("object"!=typeof r){if(o(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return o(e)&&!o(r)&&(a=s(e,i)),o(e)&&o(r)?(r.forEach((function(r,o){if(n.call(e,o)){var s=e[o];s&&"object"==typeof s&&r&&"object"==typeof r?e[o]=t(s,r,i):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var s=r[o];return n.call(e,o)?e[o]=t(e[o],s,i):e[o]=s,e}),a)}}},"0k4l":function(t,e,r){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))return new this.constructor(this.items.map(t));var r={};return Object.keys(this.items).forEach((function(n){r[n]=t(e.items[n],n)})),new this.constructor(r)}},"0on8":function(t,e,r){"use strict";var n="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.exports=function(){return"object"!==n(this.items)||Array.isArray(this.items)?JSON.stringify(this.toArray()):JSON.stringify(this.all())}},"0qqO":function(t,e,r){"use strict";t.exports=function(t){return this.each((function(e,r){t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("button",{staticClass:"info ml-2",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.onOpenClicked(e))}}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[t._l(t.documents,(function(t){return r("img",{key:t.id,staticClass:"favicon inline mr-1 mb-1",attrs:{title:t.title,src:t.favicon}})})),t._v(" "),r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},"2YvH":function(t,e,r){"use strict";var n=r("SIfw"),o=n.isArray,i=n.isObject;t.exports=function(t){var e=t||1/0,r=!1,n=[],s=function(t){n=[],o(t)?t.forEach((function(t){o(t)?n=n.concat(t):i(t)?Object.keys(t).forEach((function(e){n=n.concat(t[e])})):n.push(t)})):Object.keys(t).forEach((function(e){o(t[e])?n=n.concat(t[e]):i(t[e])?Object.keys(t[e]).forEach((function(r){n=n.concat(t[e][r])})):n.push(t[e])})),r=0===(r=n.filter((function(t){return i(t)}))).length,e-=1};for(s(this.items);!r&&e>0;)s(n);return new this.constructor(n)}},"3wPk":function(t,e,r){"use strict";t.exports=function(t){return this.map((function(e,r){return t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?t:0,t+"rem"},isDraggable:function(){return!this.folder.deleted_at&&"folder"===this.folder.type},canDrop:function(){return!this.folder.deleted_at&&("folder"===this.folder.type||"root"===this.folder.type)},branchIsExpanded:function(){var t=this.folder.parent_id;if(!t||!this.folders)return!0;for(;null!=t;){var e=this.folders.find((function(e){return e.id===t}));if(e&&!e.is_expanded)return!1;t=e.parent_id}return!0},expanderIcon:function(){return this.folder.is_expanded?"expanded":"collapsed"}}),methods:i(i({},Object(n.b)({startDraggingFolder:"folders/startDraggingFolder",stopDraggingFolder:"folders/stopDraggingFolder",dropIntoFolder:"folders/dropIntoFolder",toggleExpanded:"folders/toggleExpanded"})),{},{onDragStart:function(t){this.startDraggingFolder(this.folder)},onDragEnd:function(){this.stopDraggingFolder(),this.is_dragged_over=!1},onDrop:function(){this.is_dragged_over=!1,this.$emit("item-dropped",this.folder)},onDragLeave:function(){this.is_dragged_over=!1},onDragOver:function(t){this.is_dragged_over=!0,this.canDrop?(t.preventDefault(),this.cannot_drop=!1):this.cannot_drop=!0},onClick:function(){switch(this.folder.type){case"account":window.location.href=route("account");break;case"logout":document.getElementById("logout-form").submit();break;default:this.$emit("selected-folder-changed",this.folder)}}})},c=r("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.branchIsExpanded?r("button",{staticClass:"list-item",class:{selected:t.folder.is_selected,"dragged-over":t.is_dragged_over,"cannot-drop":t.cannot_drop,deleted:t.folder.deleted_at},attrs:{draggable:t.isDraggable},on:{click:function(e){return e.preventDefault(),t.onClick(e)},dragstart:t.onDragStart,dragend:t.onDragEnd,drop:t.onDrop,dragleave:t.onDragLeave,dragover:t.onDragOver}},[r("div",{staticClass:"list-item-label",style:{"padding-left":t.indent}},["folder"===t.folder.type?r("span",{staticClass:"caret"},["folder"===t.folder.type&&t.folder.children_count>0?r("svg",{attrs:{fill:"currentColor",width:"16",height:"16"},on:{"!click":function(e){return e.stopPropagation(),t.toggleExpanded(t.folder)}}},[r("use",{attrs:{"xlink:href":t.icon(t.expanderIcon)}})]):t._e()]):t._e(),t._v(" "),r("svg",{staticClass:"favicon",class:t.folder.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon(t.folder.icon)}})]),t._v(" "),r("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.folder.title))])]),t._v(" "),t.folder.feed_item_states_count>0?r("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]):t._e()}),[],!1,null,null,null);e.default=u.exports},"4luE":function(t,e,r){r("c58/"),r("qq0i")("import");new Vue({el:"#app"})},"4s1B":function(t,e,r){"use strict";t.exports=function(){var t=[].concat(this.items).reverse();return new this.constructor(t)}},"5Cq2":function(t,e,r){"use strict";var n="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.exports=function(t){var e=function t(e,r){var o={};return Object.keys(Object.assign({},e,r)).forEach((function(i){void 0===e[i]&&void 0!==r[i]?o[i]=r[i]:void 0!==e[i]&&void 0===r[i]?o[i]=e[i]:void 0!==e[i]&&void 0!==r[i]&&(e[i]===r[i]?o[i]=e[i]:Array.isArray(e[i])||"object"!==n(e[i])||Array.isArray(r[i])||"object"!==n(r[i])?o[i]=[].concat(e[i],r[i]):o[i]=t(e[i],r[i]))})),o};return t?"Collection"===t.constructor.name?new this.constructor(e(this.items,t.all())):new this.constructor(e(this.items,t)):this}},"6y7s":function(t,e,r){"use strict";t.exports=function(){var t;return(t=this.items).push.apply(t,arguments),this}},"7zD/":function(t,e,r){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))this.items=this.items.map(t);else{var r={};Object.keys(this.items).forEach((function(n){r[n]=t(e.items[n],n)})),this.items=r}return this}},"8oxB":function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var t=a(d);l=!0;for(var e=u.length;e;){for(c=u,u=[];++f1)for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==this.items[t]?this.items[t]:n(e)?e():null!==e?e:null}},Aoxg:function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e=t.items.length}}}}},DMgR:function(t,e,r){"use strict";var n=r("SIfw").isFunction;t.exports=function(t,e){var r=this.items[t]||null;return r||void 0===e||(r=n(e)?e():e),delete this.items[t],r}},Dv6Q:function(t,e,r){"use strict";t.exports=function(t,e){for(var r=1;r<=t;r+=1)this.items.push(e(r));return this}},"EBS+":function(t,e,r){"use strict";t.exports=function(t){if(!t)return this;if(Array.isArray(t)){var e=this.items.map((function(e,r){return t[r]||e}));return new this.constructor(e)}if("Collection"===t.constructor.name){var r=Object.assign({},this.items,t.all());return new this.constructor(r)}var n=Object.assign({},this.items,t);return new this.constructor(n)}},ET5h:function(t,e,r){"use strict";t.exports=function(t,e){return void 0!==e?this.put(e,t):(this.items.unshift(t),this)}},ErmX:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("SIfw").isFunction;t.exports=function(t){var e=n(this.items),r=0;if(void 0===t)for(var i=0,s=e.length;i0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"!==",null)}},HZ3i:function(t,e,r){"use strict";t.exports=function(){function t(e,r,n){var o=n[0];o instanceof r&&(o=o.all());for(var i=n.slice(1),s=!i.length,a=[],c=0;c=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var r=Object.create(null),n=t.split(","),o=0;o-1)return t.splice(r,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function w(t){var e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}var O=/-(\w)/g,x=w((function(t){return t.replace(O,(function(t,e){return e?e.toUpperCase():""}))})),k=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),j=/\B([A-Z])/g,A=w((function(t){return t.replace(j,"-$1").toLowerCase()})),C=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function r(r){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return r._length=t.length,r};function S(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function $(t,e){for(var r in e)t[r]=e[r];return t}function E(t){for(var e={},r=0;r0,X=Z&&Z.indexOf("edge/")>0,Y=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),tt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),et={}.watch,rt=!1;if(V)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){rt=!0}}),window.addEventListener("test-passive",null,nt)}catch(n){}var ot=function(){return void 0===K&&(K=!V&&!G&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),K},it=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,ct="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);at="undefined"!=typeof Set&&st(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 ut=D,lt=0,ft=function(){this.id=lt++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){g(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,r=t.length;e-1)if(i&&!_(o,"default"))s=!1;else if(""===s||s===A(t)){var c=Ut(String,o.type);(c<0||a0&&(le((c=t(c,(r||"")+"_"+n))[0])&&le(l)&&(f[u]=gt(l.text+c[0].text),c.shift()),f.push.apply(f,c)):a(c)?le(l)?f[u]=gt(l.text+c):""!==c&&f.push(gt(c)):le(c)&&le(l)?f[u]=gt(l.text+c.text):(s(e._isVList)&&i(c.tag)&&o(c.key)&&i(r)&&(c.key="__vlist"+r+"_"+n+"__"),f.push(c)));return f}(t):void 0}function le(t){return i(t)&&i(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var r=Object.create(null),n=ct?Reflect.ownKeys(t):Object.keys(t),o=0;o0,s=t?!!t.$stable:!i,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&r&&r!==n&&a===r.$key&&!i&&!r.$hasNormal)return r;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=me(e,c,t[c]))}else o={};for(var u in e)u in o||(o[u]=ve(e,u));return t&&Object.isExtensible(t)&&(t._normalized=o),B(o,"$stable",s),B(o,"$key",a),B(o,"$hasNormal",i),o}function me(t,e,r){var n=function(){var t=arguments.length?r.apply(null,arguments):r({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return r.proxy&&Object.defineProperty(t,e,{get:n,enumerable:!0,configurable:!0}),n}function ve(t,e){return function(){return t[e]}}function ye(t,e){var r,n,o,s,a;if(Array.isArray(t)||"string"==typeof t)for(r=new Array(t.length),n=0,o=t.length;ndocument.createEvent("Event").timeStamp&&(ar=function(){return cr.now()})}function ur(){var t,e;for(sr=ar(),or=!0,tr.sort((function(t,e){return t.id-e.id})),ir=0;irir&&tr[r].id>t.id;)r--;tr.splice(r+1,0,t)}else tr.push(t);nr||(nr=!0,ee(ur))}}(this)},fr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Bt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},fr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fr.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},fr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var dr={enumerable:!0,configurable:!0,get:D,set:D};function pr(t,e,r){dr.get=function(){return this[e][r]},dr.set=function(t){this[e][r]=t},Object.defineProperty(t,r,dr)}var hr={lazy:!0};function mr(t,e,r){var n=!ot();"function"==typeof r?(dr.get=n?vr(e):yr(r),dr.set=D):(dr.get=r.get?n&&!1!==r.cache?vr(e):yr(r.get):D,dr.set=r.set||D),Object.defineProperty(t,e,dr)}function vr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function yr(t){return function(){return t.call(this,this)}}function gr(t,e,r,n){return l(r)&&(n=r,r=r.handler),"string"==typeof r&&(r=t[r]),t.$watch(e,r,n)}var br=0;function _r(t){var e=t.options;if(t.super){var r=_r(t.super);if(r!==t.superOptions){t.superOptions=r;var n=function(t){var e,r=t.options,n=t.sealedOptions;for(var o in r)r[o]!==n[o]&&(e||(e={}),e[o]=r[o]);return e}(t);n&&$(t.extendOptions,n),(e=t.options=Lt(r,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function wr(t){this._init(t)}function Or(t){return t&&(t.Ctor.options.name||t.tag)}function xr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(r=t,"[object RegExp]"===u.call(r)&&t.test(e));var r}function kr(t,e){var r=t.cache,n=t.keys,o=t._vnode;for(var i in r){var s=r[i];if(s){var a=Or(s.componentOptions);a&&!e(a)&&jr(r,i,n,o)}}}function jr(t,e,r,n){var o=t[e];!o||n&&o.tag===n.tag||o.componentInstance.$destroy(),t[e]=null,g(r,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=br++,e._isVue=!0,t&&t._isComponent?function(t,e){var r=t.$options=Object.create(t.constructor.options),n=e._parentVnode;r.parent=e.parent,r._parentVnode=n;var o=n.componentOptions;r.propsData=o.propsData,r._parentListeners=o.listeners,r._renderChildren=o.children,r._componentTag=o.tag,e.render&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Lt(_r(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,r=e.parent;if(r&&!e.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(t)}t.$parent=r,t.$root=r?r.$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&&Je(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,o=r&&r.context;t.$slots=de(e._renderChildren,o),t.$scopedSlots=n,t._c=function(e,r,n,o){return Re(t,e,r,n,o,!1)},t.$createElement=function(e,r,n,o){return Re(t,e,r,n,o,!0)};var i=r&&r.data;Ct(t,"$attrs",i&&i.attrs||n,null,!0),Ct(t,"$listeners",e._parentListeners||n,null,!0)}(e),Ye(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(kt(!1),Object.keys(e).forEach((function(r){Ct(t,r,e[r])})),kt(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var r=t.$options.propsData||{},n=t._props={},o=t.$options._propKeys=[];t.$parent&&kt(!1);var i=function(i){o.push(i);var s=Mt(i,e,r,t);Ct(n,i,s),i in t||pr(t,"_props",i)};for(var s in e)i(s);kt(!0)}(t,e.props),e.methods&&function(t,e){for(var r in t.$options.props,e)t[r]="function"!=typeof e[r]?D:C(e[r],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;l(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return Bt(t,e,"data()"),{}}finally{ht()}}(e,t):e||{})||(e={});for(var r,n=Object.keys(e),o=t.$options.props,i=(t.$options.methods,n.length);i--;){var s=n[i];o&&_(o,s)||(void 0,36!==(r=(s+"").charCodeAt(0))&&95!==r&&pr(t,"_data",s))}At(e,!0)}(t):At(t._data={},!0),e.computed&&function(t,e){var r=t._computedWatchers=Object.create(null),n=ot();for(var o in e){var i=e[o],s="function"==typeof i?i:i.get;n||(r[o]=new fr(t,s||D,D,hr)),o in t||mr(t,o,i)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var r in e){var n=e[r];if(Array.isArray(n))for(var o=0;o1?S(e):e;for(var r=S(arguments,1),n='event handler for "'+t+'"',o=0,i=e.length;oparseInt(this.max)&&jr(s,a[0],a,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:$,mergeOptions:Lt,defineReactive:Ct},t.set=St,t.delete=$t,t.nextTick=ee,t.observable=function(t){return At(t),t},t.options=Object.create(null),M.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,$(t.options.components,Cr),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var r=S(arguments,1);return r.unshift(this),"function"==typeof t.install?t.install.apply(t,r):"function"==typeof t&&t.apply(null,r),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Lt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var r=this,n=r.cid,o=t._Ctor||(t._Ctor={});if(o[n])return o[n];var i=t.name||r.options.name,s=function(t){this._init(t)};return(s.prototype=Object.create(r.prototype)).constructor=s,s.cid=e++,s.options=Lt(r.options,t),s.super=r,s.options.props&&function(t){var e=t.options.props;for(var r in e)pr(t.prototype,"_props",r)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var r in e)mr(t.prototype,r,e[r])}(s),s.extend=r.extend,s.mixin=r.mixin,s.use=r.use,M.forEach((function(t){s[t]=r[t]})),i&&(s.options.components[i]=s),s.superOptions=r.options,s.extendOptions=t,s.sealedOptions=$({},s.options),o[n]=s,s}}(t),function(t){M.forEach((function(e){t[e]=function(t,r){return r?("component"===e&&l(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===e&&"function"==typeof r&&(r={bind:r,update:r}),this.options[e+"s"][t]=r,r):this.options[e+"s"][t]}}))}(t)}(wr),Object.defineProperty(wr.prototype,"$isServer",{get:ot}),Object.defineProperty(wr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wr,"FunctionalRenderContext",{value:Te}),wr.version="2.6.12";var Sr=m("style,class"),$r=m("input,textarea,option,select,progress"),Er=function(t,e,r){return"value"===r&&$r(t)&&"button"!==e||"selected"===r&&"option"===t||"checked"===r&&"input"===t||"muted"===r&&"video"===t},Dr=m("contenteditable,draggable,spellcheck"),Tr=m("events,caret,typing,plaintext-only"),Pr=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"),Ir="http://www.w3.org/1999/xlink",Fr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Lr=function(t){return Fr(t)?t.slice(6,t.length):""},Nr=function(t){return null==t||!1===t};function Mr(t,e){return{staticClass:Rr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Rr(t,e){return t?e?t+" "+e:t:e||""}function Hr(t){return Array.isArray(t)?function(t){for(var e,r="",n=0,o=t.length;n-1?dn(t,e,r):Pr(e)?Nr(r)?t.removeAttribute(e):(r="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,r)):Dr(e)?t.setAttribute(e,function(t,e){return Nr(e)||"false"===e?"false":"contenteditable"===t&&Tr(e)?e:"true"}(e,r)):Fr(e)?Nr(r)?t.removeAttributeNS(Ir,Lr(e)):t.setAttributeNS(Ir,e,r):dn(t,e,r)}function dn(t,e,r){if(Nr(r))t.removeAttribute(e);else{if(W&&!Q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==r&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,r)}}var pn={create:ln,update:ln};function hn(t,e){var r=e.elm,n=e.data,s=t.data;if(!(o(n.staticClass)&&o(n.class)&&(o(s)||o(s.staticClass)&&o(s.class)))){var a=function(t){for(var e=t.data,r=t,n=t;i(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(e=Mr(n.data,e));for(;i(r=r.parent);)r&&r.data&&(e=Mr(e,r.data));return function(t,e){return i(t)||i(e)?Rr(t,Hr(e)):""}(e.staticClass,e.class)}(e),c=r._transitionClasses;i(c)&&(a=Rr(a,Hr(c))),a!==r._prevClass&&(r.setAttribute("class",a),r._prevClass=a)}}var mn,vn,yn,gn,bn,_n,wn={create:hn,update:hn},On=/[\w).+\-_$\]]/;function xn(t){var e,r,n,o,i,s=!1,a=!1,c=!1,u=!1,l=0,f=0,d=0,p=0;for(n=0;n=0&&" "===(m=t.charAt(h));h--);m&&On.test(m)||(u=!0)}}else void 0===o?(p=n+1,o=t.slice(0,n).trim()):v();function v(){(i||(i=[])).push(t.slice(p,n).trim()),p=n+1}if(void 0===o?o=t.slice(0,n).trim():0!==p&&v(),i)for(n=0;n-1?{exp:t.slice(0,gn),key:'"'+t.slice(gn+1)+'"'}:{exp:t,key:null};for(vn=t,gn=bn=_n=0;!Hn();)Un(yn=Rn())?Kn(yn):91===yn&&Bn(yn);return{exp:t.slice(0,bn),key:t.slice(bn+1,_n)}}(t);return null===r.key?t+"="+e:"$set("+r.exp+", "+r.key+", "+e+")"}function Rn(){return vn.charCodeAt(++gn)}function Hn(){return gn>=mn}function Un(t){return 34===t||39===t}function Bn(t){var e=1;for(bn=gn;!Hn();)if(Un(t=Rn()))Kn(t);else if(91===t&&e++,93===t&&e--,0===e){_n=gn;break}}function Kn(t){for(var e=t;!Hn()&&(t=Rn())!==e;);}var zn,qn="__r";function Vn(t,e,r){var n=zn;return function o(){null!==e.apply(null,arguments)&&Zn(t,o,r,n)}}var Gn=Gt&&!(tt&&Number(tt[1])<=53);function Jn(t,e,r,n){if(Gn){var o=sr,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}zn.addEventListener(t,e,rt?{capture:r,passive:n}:r)}function Zn(t,e,r,n){(n||zn).removeEventListener(t,e._wrapper||e,r)}function Wn(t,e){if(!o(t.data.on)||!o(e.data.on)){var r=e.data.on||{},n=t.data.on||{};zn=e.elm,function(t){if(i(t.__r)){var e=W?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}i(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(r),se(r,n,Jn,Zn,Vn,e.context),zn=void 0}}var Qn,Xn={create:Wn,update:Wn};function Yn(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var r,n,s=e.elm,a=t.data.domProps||{},c=e.data.domProps||{};for(r in i(c.__ob__)&&(c=e.data.domProps=$({},c)),a)r in c||(s[r]="");for(r in c){if(n=c[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),n===a[r])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===r&&"PROGRESS"!==s.tagName){s._value=n;var u=o(n)?"":String(n);to(s,u)&&(s.value=u)}else if("innerHTML"===r&&Kr(s.tagName)&&o(s.innerHTML)){(Qn=Qn||document.createElement("div")).innerHTML=""+n+"";for(var l=Qn.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;l.firstChild;)s.appendChild(l.firstChild)}else if(n!==a[r])try{s[r]=n}catch(t){}}}}function to(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var r=!0;try{r=document.activeElement!==t}catch(t){}return r&&t.value!==e}(t,e)||function(t,e){var r=t.value,n=t._vModifiers;if(i(n)){if(n.number)return h(r)!==h(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}(t,e))}var eo={create:Yn,update:Yn},ro=w((function(t){var e={},r=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function no(t){var e=oo(t.style);return t.staticStyle?$(t.staticStyle,e):e}function oo(t){return Array.isArray(t)?E(t):"string"==typeof t?ro(t):t}var io,so=/^--/,ao=/\s*!important$/,co=function(t,e,r){if(so.test(e))t.style.setProperty(e,r);else if(ao.test(r))t.style.setProperty(A(e),r.replace(ao,""),"important");else{var n=lo(e);if(Array.isArray(r))for(var o=0,i=r.length;o-1?e.split(ho).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var r=" "+(t.getAttribute("class")||"")+" ";r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function vo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(ho).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var r=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?t.setAttribute("class",r):t.removeAttribute("class")}}function yo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&$(e,go(t.name||"v")),$(e,t),e}return"string"==typeof t?go(t):void 0}}var go=w((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"}})),bo=V&&!Q,_o="transition",wo="animation",Oo="transition",xo="transitionend",ko="animation",jo="animationend";bo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Oo="WebkitTransition",xo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ko="WebkitAnimation",jo="webkitAnimationEnd"));var Ao=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Co(t){Ao((function(){Ao(t)}))}function So(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),mo(t,e))}function $o(t,e){t._transitionClasses&&g(t._transitionClasses,e),vo(t,e)}function Eo(t,e,r){var n=To(t,e),o=n.type,i=n.timeout,s=n.propCount;if(!o)return r();var a=o===_o?xo:jo,c=0,u=function(){t.removeEventListener(a,l),r()},l=function(e){e.target===t&&++c>=s&&u()};setTimeout((function(){c0&&(r=_o,l=s,f=i.length):e===wo?u>0&&(r=wo,l=u,f=c.length):f=(r=(l=Math.max(s,u))>0?s>u?_o:wo:null)?r===_o?i.length:c.length:0,{type:r,timeout:l,propCount:f,hasTransform:r===_o&&Do.test(n[Oo+"Property"])}}function Po(t,e){for(;t.length1}function Ro(t,e){!0!==e.data.show&&Fo(e)}var Ho=function(t){var e,r,n={},c=t.modules,u=t.nodeOps;for(e=0;eh?b(t,o(r[y+1])?null:r[y+1].elm,r,p,y,n):p>y&&w(e,d,h)}(d,m,y,r,l):i(y)?(i(t.text)&&u.setTextContent(d,""),b(d,null,y,0,y.length-1,r)):i(m)?w(m,0,m.length-1):i(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),i(h)&&i(p=h.hook)&&i(p=p.postpatch)&&p(t,e)}}}function j(t,e,r){if(s(r)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var n=0;n-1,s.selected!==i&&(s.selected=i);else if(I(qo(s),n))return void(t.selectedIndex!==a&&(t.selectedIndex=a));o||(t.selectedIndex=-1)}}function zo(t,e){return e.every((function(e){return!I(e,t)}))}function qo(t){return"_value"in t?t._value:t.value}function Vo(t){t.target.composing=!0}function Go(t){t.target.composing&&(t.target.composing=!1,Jo(t.target,"input"))}function Jo(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function Zo(t){return!t.componentInstance||t.data&&t.data.transition?t:Zo(t.componentInstance._vnode)}var Wo={model:Uo,show:{bind:function(t,e,r){var n=e.value,o=(r=Zo(r)).data&&r.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&o?(r.data.show=!0,Fo(r,(function(){t.style.display=i}))):t.style.display=n?i:"none"},update:function(t,e,r){var n=e.value;!n!=!e.oldValue&&((r=Zo(r)).data&&r.data.transition?(r.data.show=!0,n?Fo(r,(function(){t.style.display=t.__vOriginalDisplay})):Lo(r,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,r,n,o){o||(t.style.display=t.__vOriginalDisplay)}}},Qo={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 Xo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Xo(ze(e.children)):t}function Yo(t){var e={},r=t.$options;for(var n in r.propsData)e[n]=t[n];var o=r._parentListeners;for(var i in o)e[x(i)]=o[i];return e}function ti(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var ei=function(t){return t.tag||Ke(t)},ri=function(t){return"show"===t.name},ni={name:"transition",props:Qo,abstract:!0,render:function(t){var e=this,r=this.$slots.default;if(r&&(r=r.filter(ei)).length){var n=this.mode,o=r[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=Xo(o);if(!i)return o;if(this._leaving)return ti(t,o);var s="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?s+"comment":s+i.tag:a(i.key)?0===String(i.key).indexOf(s)?i.key:s+i.key:i.key;var c=(i.data||(i.data={})).transition=Yo(this),u=this._vnode,l=Xo(u);if(i.data.directives&&i.data.directives.some(ri)&&(i.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(i,l)&&!Ke(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=$({},c);if("out-in"===n)return this._leaving=!0,ae(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ti(t,o);if("in-out"===n){if(Ke(i))return u;var d,p=function(){d()};ae(c,"afterEnter",p),ae(c,"enterCancelled",p),ae(f,"delayLeave",(function(t){d=t}))}}return o}}},oi=$({tag:String,moveClass:String},Qo);function ii(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function si(t){t.data.newPos=t.elm.getBoundingClientRect()}function ai(t){var e=t.data.pos,r=t.data.newPos,n=e.left-r.left,o=e.top-r.top;if(n||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+n+"px,"+o+"px)",i.transitionDuration="0s"}}delete oi.mode;var ci={Transition:ni,TransitionGroup:{props:oi,beforeMount:function(){var t=this,e=this._update;this._update=function(r,n){var o=We(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,r,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],s=Yo(this),a=0;a-1?Vr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Vr[t]=/HTMLUnknownElement/.test(e.toString())},$(wr.options.directives,Wo),$(wr.options.components,ci),wr.prototype.__patch__=V?Ho:D,wr.prototype.$mount=function(t,e){return function(t,e,r){var n;return t.$el=e,t.$options.render||(t.$options.render=yt),Ye(t,"beforeMount"),n=function(){t._update(t._render(),r)},new fr(t,n,D,{before:function(){t._isMounted&&!t._isDestroyed&&Ye(t,"beforeUpdate")}},!0),r=!1,null==t.$vnode&&(t._isMounted=!0,Ye(t,"mounted")),t}(this,t=t&&V?Jr(t):void 0,e)},V&&setTimeout((function(){H.devtools&&it&&it.emit("init",wr)}),0);var ui,li=/\{\{((?:.|\r?\n)+?)\}\}/g,fi=/[-.*+?^${}()|[\]\/\\]/g,di=w((function(t){var e=t[0].replace(fi,"\\$&"),r=t[1].replace(fi,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+r,"g")})),pi={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var r=In(t,"class");r&&(t.staticClass=JSON.stringify(r));var n=Pn(t,"class",!1);n&&(t.classBinding=n)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},hi={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var r=In(t,"style");r&&(t.staticStyle=JSON.stringify(ro(r)));var n=Pn(t,"style",!1);n&&(t.styleBinding=n)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},mi=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),vi=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),yi=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"),gi=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,bi=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,_i="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",wi="((?:"+_i+"\\:)?"+_i+")",Oi=new RegExp("^<"+wi),xi=/^\s*(\/?)>/,ki=new RegExp("^<\\/"+wi+"[^>]*>"),ji=/^]+>/i,Ai=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Di=/&(?:lt|gt|quot|amp|#39);/g,Ti=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Pi=m("pre,textarea",!0),Ii=function(t,e){return t&&Pi(t)&&"\n"===e[0]};function Fi(t,e){var r=e?Ti:Di;return t.replace(r,(function(t){return Ei[t]}))}var Li,Ni,Mi,Ri,Hi,Ui,Bi,Ki,zi=/^@|^v-on:/,qi=/^v-|^@|^:|^#/,Vi=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Gi=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ji=/^\(|\)$/g,Zi=/^\[.*\]$/,Wi=/:(.*)$/,Qi=/^:|^\.|^v-bind:/,Xi=/\.[^.\]]+(?=[^\]]*$)/g,Yi=/^v-slot(:|$)|^#/,ts=/[\r\n]/,es=/\s+/g,rs=w((function(t){return(ui=ui||document.createElement("div")).innerHTML=t,ui.textContent})),ns="_empty_";function os(t,e,r){return{type:1,tag:t,attrsList:e,attrsMap:ls(e),rawAttrsMap:{},parent:r,children:[]}}function is(t,e){var r,n;(n=Pn(r=t,"key"))&&(r.key=n),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Pn(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=In(t,"scope"),t.slotScope=e||In(t,"slot-scope")):(e=In(t,"slot-scope"))&&(t.slotScope=e);var r=Pn(t,"slot");if(r&&(t.slotTarget='""'===r?'"default"':r,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Sn(t,"slot",r,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var n=Fn(t,Yi);if(n){var o=cs(n),i=o.name,s=o.dynamic;t.slotTarget=i,t.slotTargetDynamic=s,t.slotScope=n.value||ns}}else{var a=Fn(t,Yi);if(a){var c=t.scopedSlots||(t.scopedSlots={}),u=cs(a),l=u.name,f=u.dynamic,d=c[l]=os("template",[],t);d.slotTarget=l,d.slotTargetDynamic=f,d.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=d,!0})),d.slotScope=a.value||ns,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Pn(t,"name"))}(t),function(t){var e;(e=Pn(t,"is"))&&(t.component=e),null!=In(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var o=0;o-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),Tn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+s+");if(Array.isArray($$a)){var $$v="+(n?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Mn(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Mn(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Mn(e,"$$c")+"}",null,!0)}(t,n,o);else if("input"===i&&"radio"===s)!function(t,e,r){var n=r&&r.number,o=Pn(t,"value")||"null";Cn(t,"checked","_q("+e+","+(o=n?"_n("+o+")":o)+")"),Tn(t,"change",Mn(e,o),null,!0)}(t,n,o);else if("input"===i||"textarea"===i)!function(t,e,r){var n=t.attrsMap.type,o=r||{},i=o.lazy,s=o.number,a=o.trim,c=!i&&"range"!==n,u=i?"change":"range"===n?qn:"input",l="$event.target.value";a&&(l="$event.target.value.trim()"),s&&(l="_n("+l+")");var f=Mn(e,l);c&&(f="if($event.target.composing)return;"+f),Cn(t,"value","("+e+")"),Tn(t,u,f,null,!0),(a||s)&&Tn(t,"blur","$forceUpdate()")}(t,n,o);else if(!H.isReservedTag(i))return Nn(t,n,o),!1;return!0},text:function(t,e){e.value&&Cn(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Cn(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:mi,mustUseProp:Er,canBeLeftOpenTag:vi,isReservedTag:zr,getTagNamespace:qr,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(vs)},gs=w((function(t){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var bs=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,_s=/\([^)]*?\);*$/,ws=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Os={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},xs={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"]},ks=function(t){return"if("+t+")return null;"},js={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ks("$event.target !== $event.currentTarget"),ctrl:ks("!$event.ctrlKey"),shift:ks("!$event.shiftKey"),alt:ks("!$event.altKey"),meta:ks("!$event.metaKey"),left:ks("'button' in $event && $event.button !== 0"),middle:ks("'button' in $event && $event.button !== 1"),right:ks("'button' in $event && $event.button !== 2")};function As(t,e){var r=e?"nativeOn:":"on:",n="",o="";for(var i in t){var s=Cs(t[i]);t[i]&&t[i].dynamic?o+=i+","+s+",":n+='"'+i+'":'+s+","}return n="{"+n.slice(0,-1)+"}",o?r+"_d("+n+",["+o.slice(0,-1)+"])":r+n}function Cs(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Cs(t)})).join(",")+"]";var e=ws.test(t.value),r=bs.test(t.value),n=ws.test(t.value.replace(_s,""));if(t.modifiers){var o="",i="",s=[];for(var a in t.modifiers)if(js[a])i+=js[a],Os[a]&&s.push(a);else if("exact"===a){var c=t.modifiers;i+=ks(["ctrl","shift","alt","meta"].filter((function(t){return!c[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else s.push(a);return s.length&&(o+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Ss).join("&&")+")return null;"}(s)),i&&(o+=i),"function($event){"+o+(e?"return "+t.value+"($event)":r?"return ("+t.value+")($event)":n?"return "+t.value:t.value)+"}"}return e||r?t.value:"function($event){"+(n?"return "+t.value:t.value)+"}"}function Ss(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var r=Os[t],n=xs[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(r)+",$event.key,"+JSON.stringify(n)+")"}var $s={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(r){return"_b("+r+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:D},Es=function(t){this.options=t,this.warn=t.warn||jn,this.transforms=An(t.modules,"transformCode"),this.dataGenFns=An(t.modules,"genData"),this.directives=$($({},$s),t.directives);var e=t.isReservedTag||T;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ds(t,e){var r=new Es(e);return{render:"with(this){return "+(t?Ts(t,r):'_c("div")')+"}",staticRenderFns:r.staticRenderFns}}function Ts(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ps(t,e);if(t.once&&!t.onceProcessed)return Is(t,e);if(t.for&&!t.forProcessed)return Ls(t,e);if(t.if&&!t.ifProcessed)return Fs(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var r=t.slotName||'"default"',n=Hs(t,e),o="_t("+r+(n?","+n:""),i=t.attrs||t.dynamicAttrs?Ks((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:x(t.name),value:t.value,dynamic:t.dynamic}}))):null,s=t.attrsMap["v-bind"];return!i&&!s||n||(o+=",null"),i&&(o+=","+i),s&&(o+=(i?"":",null")+","+s),o+")"}(t,e);var r;if(t.component)r=function(t,e,r){var n=e.inlineTemplate?null:Hs(e,r,!0);return"_c("+t+","+Ns(e,r)+(n?","+n:"")+")"}(t.component,t,e);else{var n;(!t.plain||t.pre&&e.maybeComponent(t))&&(n=Ns(t,e));var o=t.inlineTemplate?null:Hs(t,e,!0);r="_c('"+t.tag+"'"+(n?","+n:"")+(o?","+o:"")+")"}for(var i=0;i>>0}(s):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(r+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var i=function(t,e){var r=t.children[0];if(r&&1===r.type){var n=Ds(r,e.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);i&&(r+=i+",")}return r=r.replace(/,$/,"")+"}",t.dynamicAttrs&&(r="_b("+r+',"'+t.tag+'",'+Ks(t.dynamicAttrs)+")"),t.wrapData&&(r=t.wrapData(r)),t.wrapListeners&&(r=t.wrapListeners(r)),r}function Ms(t){return 1===t.type&&("slot"===t.tag||t.children.some(Ms))}function Rs(t,e){var r=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!r)return Fs(t,e,Rs,"null");if(t.for&&!t.forProcessed)return Ls(t,e,Rs);var n=t.slotScope===ns?"":String(t.slotScope),o="function("+n+"){return "+("template"===t.tag?t.if&&r?"("+t.if+")?"+(Hs(t,e)||"undefined")+":undefined":Hs(t,e)||"undefined":Ts(t,e))+"}",i=n?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+o+i+"}"}function Hs(t,e,r,n,o){var i=t.children;if(i.length){var s=i[0];if(1===i.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var a=r?e.maybeComponent(s)?",1":",0":"";return""+(n||Ts)(s,e)+a}var c=r?function(t,e){for(var r=0,n=0;n]*>)","i")),d=t.replace(f,(function(t,r,n){return u=n.length,Si(l)||"noscript"===l||(r=r.replace(//g,"$1").replace(//g,"$1")),Ii(l,r)&&(r=r.slice(1)),e.chars&&e.chars(r),""}));c+=t.length-d.length,t=d,A(l,c-u,c)}else{var p=t.indexOf("<");if(0===p){if(Ai.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h),c,c+h+3),x(h+3);continue}}if(Ci.test(t)){var m=t.indexOf("]>");if(m>=0){x(m+2);continue}}var v=t.match(ji);if(v){x(v[0].length);continue}var y=t.match(ki);if(y){var g=c;x(y[0].length),A(y[1],g,c);continue}var b=k();if(b){j(b),Ii(b.tagName,t)&&x(1);continue}}var _=void 0,w=void 0,O=void 0;if(p>=0){for(w=t.slice(p);!(ki.test(w)||Oi.test(w)||Ai.test(w)||Ci.test(w)||(O=w.indexOf("<",1))<0);)p+=O,w=t.slice(p);_=t.substring(0,p)}p<0&&(_=t),_&&x(_.length),e.chars&&_&&e.chars(_,c-_.length,c)}if(t===r){e.chars&&e.chars(t);break}}function x(e){c+=e,t=t.substring(e)}function k(){var e=t.match(Oi);if(e){var r,n,o={tagName:e[1],attrs:[],start:c};for(x(e[0].length);!(r=t.match(xi))&&(n=t.match(bi)||t.match(gi));)n.start=c,x(n[0].length),n.end=c,o.attrs.push(n);if(r)return o.unarySlash=r[1],x(r[0].length),o.end=c,o}}function j(t){var r=t.tagName,c=t.unarySlash;i&&("p"===n&&yi(r)&&A(n),a(r)&&n===r&&A(r));for(var u=s(r)||!!c,l=t.attrs.length,f=new Array(l),d=0;d=0&&o[s].lowerCasedTag!==a;s--);else s=0;if(s>=0){for(var u=o.length-1;u>=s;u--)e.end&&e.end(o[u].tag,r,i);o.length=s,n=s&&o[s-1].tag}else"br"===a?e.start&&e.start(t,[],!0,r,i):"p"===a&&(e.start&&e.start(t,[],!1,r,i),e.end&&e.end(t,r,i))}A()}(t,{warn:Li,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,i,s,l,f){var d=n&&n.ns||Ki(t);W&&"svg"===d&&(i=function(t){for(var e=[],r=0;rc&&(a.push(i=t.slice(c,o)),s.push(JSON.stringify(i)));var u=xn(n[1].trim());s.push("_s("+u+")"),a.push({"@binding":u}),c=o+n[0].length}return c':'
',Js.innerHTML.indexOf(" ")>0}var Xs=!!V&&Qs(!1),Ys=!!V&&Qs(!0),ta=w((function(t){var e=Jr(t);return e&&e.innerHTML})),ea=wr.prototype.$mount;wr.prototype.$mount=function(t,e){if((t=t&&Jr(t))===document.body||t===document.documentElement)return this;var r=this.$options;if(!r.render){var n=r.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=ta(n));else{if(!n.nodeType)return this;n=n.innerHTML}else t&&(n=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(n){var o=Ws(n,{outputSourceRange:!1,shouldDecodeNewlines:Xs,shouldDecodeNewlinesForHref:Ys,delimiters:r.delimiters,comments:r.comments},this),i=o.render,s=o.staticRenderFns;r.render=i,r.staticRenderFns=s}}return ea.call(this,t,e)},wr.compile=Ws,t.exports=wr}).call(this,r("yLpj"),r("URgk").setImmediate)},IfUw:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(t=this.selectedDocuments),this.startDraggingDocuments(t)},onDragEnd:function(){this.stopDraggingDocuments()}})},l=r("KHd+"),f=Object(l.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a",{staticClass:"list-item",class:{selected:t.is_selected},attrs:{draggable:!0,href:t.url,rel:"noopener noreferrer"},on:{click:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?null:e.metaKey?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey?null:(e.stopPropagation(),e.preventDefault(),t.onAddToSelection(e)):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),e.preventDefault(),t.onClicked(e))}],mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})},dblclick:function(e){return t.openDocument({document:t.document,folder:t.selectedFolder})},dragstart:t.onDragStart,dragend:t.onDragEnd}},[r("div",{staticClass:"list-item-label"},[r("img",{staticClass:"favicon",attrs:{src:t.document.favicon}}),t._v(" "),r("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.document.title))])]),t._v(" "),t.document.feed_item_states_count>0?r("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()])}),[],!1,null,null,null);e.default=f.exports},K93l:function(t,e,r){"use strict";t.exports=function(t){var e=!1;if(Array.isArray(this.items))for(var r=this.items.length,n=0;n-1&&e.splice(r,1)}}function h(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;v(t,r,[],t._modules.root,!0),m(t,r,e)}function m(t,e,r){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,s={};i(o,(function(e,r){s[r]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,r,{get:function(){return t._vm[r]},enumerable:!0})}));var a=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:s}),l.config.silent=a,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),n&&(r&&t._withCommit((function(){n._data.$$state=null})),l.nextTick((function(){return n.$destroy()})))}function v(t,e,r,n,o){var i=!r.length,s=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=n),!i&&!o){var a=y(e,r.slice(0,-1)),c=r[r.length-1];t._withCommit((function(){l.set(a,c,n.state)}))}var u=n.context=function(t,e,r){var n=""===e,o={dispatch:n?t.dispatch:function(r,n,o){var i=g(r,n,o),s=i.payload,a=i.options,c=i.type;return a&&a.root||(c=e+c),t.dispatch(c,s)},commit:n?t.commit:function(r,n,o){var i=g(r,n,o),s=i.payload,a=i.options,c=i.type;a&&a.root||(c=e+c),t.commit(c,s,a)}};return Object.defineProperties(o,{getters:{get:n?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,n)===e){var i=o.slice(n);Object.defineProperty(r,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return y(t.state,r)}}}),o}(t,s,r);n.forEachMutation((function(e,r){!function(t,e,r,n){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){r.call(t,n.state,e)}))}(t,s+r,e,u)})),n.forEachAction((function(e,r){var n=e.root?r:s+r,o=e.handler||e;!function(t,e,r,n){(t._actions[e]||(t._actions[e]=[])).push((function(e){var o,i=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,n,o,u)})),n.forEachGetter((function(e,r){!function(t,e,r,n){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return r(n.state,n.getters,t.state,t.getters)}}(t,s+r,e,u)})),n.forEachChild((function(n,i){v(t,e,r.concat(i),n,o)}))}function y(t,e){return e.reduce((function(t,e){return t[e]}),t)}function g(t,e,r){return s(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}function b(t){l&&t===l||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:r});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,e.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l=t)}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,r){var n=this,o=g(t,e,r),i=o.type,s=o.payload,a=(o.options,{type:i,payload:s}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(a,n.state)})))},f.prototype.dispatch=function(t,e){var r=this,n=g(t,e),o=n.type,i=n.payload,s={type:o,payload:i},a=this._actions[o];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,r.state)}))}catch(t){0}var c=a.length>1?Promise.all(a.map((function(t){return t(i)}))):a[0](i);return new Promise((function(t,e){c.then((function(e){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,r.state)}))}catch(t){0}t(e)}),(function(t){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,r.state,t)}))}catch(t){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){return p("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},f.prototype.watch=function(t,e,r){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,r)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,r){void 0===r&&(r={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),r.preserveState),m(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var r=y(e.state,t.slice(0,-1));l.delete(r,t[t.length-1])})),h(this)},f.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype.hotUpdate=function(t){this._modules.update(t),h(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var _=j((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){var e=this.$store.state,r=this.$store.getters;if(t){var n=A(this.$store,"mapState",t);if(!n)return;e=n.context.state,r=n.context.getters}return"function"==typeof o?o.call(this,e,r):e[o]},r[n].vuex=!0})),r})),w=j((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.commit;if(t){var i=A(this.$store,"mapMutations",t);if(!i)return;n=i.context.commit}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r})),O=j((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;o=t+o,r[n]=function(){if(!t||A(this.$store,"mapGetters",t))return this.$store.getters[o]},r[n].vuex=!0})),r})),x=j((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.dispatch;if(t){var i=A(this.$store,"mapActions",t);if(!i)return;n=i.context.dispatch}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r}));function k(t){return function(t){return Array.isArray(t)||s(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function j(t){return function(e,r){return"string"!=typeof e?(r=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,r)}}function A(t,e,r){return t._modulesNamespaceMap[r]}function C(t,e,r){var n=r?t.groupCollapsed:t.group;try{n.call(t,e)}catch(r){t.log(e)}}function S(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function $(){var t=new Date;return" @ "+E(t.getHours(),2)+":"+E(t.getMinutes(),2)+":"+E(t.getSeconds(),2)+"."+E(t.getMilliseconds(),3)}function E(t,e){return r="0",n=e-t.toString().length,new Array(n+1).join(r)+t;var r,n}var D={Store:f,install:b,version:"3.5.1",mapState:_,mapMutations:w,mapGetters:O,mapActions:x,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:O.bind(null,t),mapMutations:w.bind(null,t),mapActions:x.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var r=t.filter;void 0===r&&(r=function(t,e,r){return!0});var n=t.transformer;void 0===n&&(n=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var s=t.actionFilter;void 0===s&&(s=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=o(t.state);void 0!==l&&(c&&t.subscribe((function(t,s){var a=o(s);if(r(t,f,a)){var c=$(),u=i(t),d="mutation "+t.type+c;C(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",n(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",n(a)),S(l)}f=a})),u&&t.subscribeAction((function(t,r){if(s(t,r)){var n=$(),o=a(t),i="action "+t.type+n;C(l,i,e),l.log("%c action","color: #03A9F4; font-weight: bold",o),S(l)}})))}}};e.a=D}).call(this,r("yLpj"))},Lcjm:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){var t=n(this.items),e=void 0,r=void 0,o=void 0;for(o=t.length;o;o-=1)e=Math.floor(Math.random()*o),r=t[o-1],t[o-1]=t[e],t[e]=r;return this.items=t,this}},LlWW:function(t,e,r){"use strict";t.exports=function(t){return this.sortBy(t).reverse()}},LpLF:function(t,e,r){"use strict";t.exports=function(t){var e=this,r=t;r instanceof this.constructor&&(r=r.all());var n=this.items.map((function(t,n){return new e.constructor([t,r[n]])}));return new this.constructor(n)}},Lzbe:function(t,e,r){"use strict";t.exports=function(t,e){var r=this.items.slice(t);return void 0!==e&&(r=r.slice(0,e)),new this.constructor(r)}},M1FP:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().forEach((function(r){e[r]=t.items[r]})),new this.constructor(e)}},MIHw:function(t,e,r){"use strict";t.exports=function(t,e){return this.where(t,">=",e[0]).where(t,"<=",e[e.length-1])}},MSmq:function(t,e,r){"use strict";t.exports=function(t){var e=this,r=t;t instanceof this.constructor&&(r=t.all());var n={};return Object.keys(this.items).forEach((function(t){void 0!==r[t]&&r[t]===e.items[t]||(n[t]=e.items[t])})),new this.constructor(n)}},NAvP:function(t,e,r){"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var r=Object.keys(e),n=Object.keys(this.items).filter((function(t){return-1===r.indexOf(t)}));return new this.constructor(this.items).only(n)}},OKMW:function(t,e,r){"use strict";t.exports=function(t,e,r){return this.where(t,e,r).first()||null}},Ob7M:function(t,e,r){"use strict";t.exports=function(t){return new this.constructor(this.items).filter((function(e){return!t(e)}))}},OxKB:function(t,e,r){"use strict";t.exports=function(t){return Array.isArray(t[0])?t[0]:t}},Pu7b:function(t,e,r){"use strict";var n=r("0tQ4"),o=r("SIfw").isFunction;t.exports=function(t){var e=this,r={};return this.items.forEach((function(i,s){var a=void 0;a=o(t)?t(i,s):n(i,t)||0===n(i,t)?n(i,t):"",void 0===r[a]&&(r[a]=new e.constructor([])),r[a].push(i)})),new this.constructor(r)}},QSc6:function(t,e,r){"use strict";var n=r("0jNN"),o=r("sxOR"),i=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Array.isArray,c=Array.prototype.push,u=function(t,e){c.apply(t,a(e)?e:[e])},l=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,r,o,i,s,c,l,d,p,h,m,v,y){var g=e;if("function"==typeof l?g=l(r,g):g instanceof Date?g=h(g):"comma"===o&&a(g)&&(g=g.join(",")),null===g){if(i)return c&&!v?c(r,f.encoder,y):r;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||n.isBuffer(g))return c?[m(v?r:c(r,f.encoder,y))+"="+m(c(g,f.encoder,y))]:[m(r)+"="+m(String(g))];var b,_=[];if(void 0===g)return _;if(a(l))b=l;else{var w=Object.keys(g);b=d?w.sort(d):w}for(var O=0;O0?g+y:""}},Qyje:function(t,e,r){"use strict";var n=r("QSc6"),o=r("nmq7"),i=r("sxOR");t.exports={formats:i,parse:o,stringify:n}},RB6r:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;eo?1:0})),new this.constructor(e)}},RR3J:function(t,e,r){"use strict";t.exports=function(t){var e=t;t instanceof this.constructor&&(e=t.all());var r=this.items.filter((function(t){return-1!==e.indexOf(t)}));return new this.constructor(r)}},RVo9:function(t,e,r){"use strict";t.exports=function(t,e){if(Array.isArray(this.items)&&this.items.length)return t(this);if(Object.keys(this.items).length)return t(this);if(void 0!==e){if(Array.isArray(this.items)&&!this.items.length)return e(this);if(!Object.keys(this.items).length)return e(this)}return this}},RtnH:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().reverse().forEach((function(r){e[r]=t.items[r]})),new this.constructor(e)}},Rx9r:function(t,e,r){"use strict";var n="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=r("ytFn");t.exports=function(t){var e=t;t instanceof this.constructor?e=t.all():"object"===(void 0===t?"undefined":n(t))&&(e=[],Object.keys(t).forEach((function(r){e.push(t[r])})));var r=o(this.items);return e.forEach((function(t){"object"===(void 0===t?"undefined":n(t))?Object.keys(t).forEach((function(e){return r.push(t[e])})):r.push(t)})),new this.constructor(r)}},SIfw:function(t,e,r){"use strict";var n="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.exports={isArray:function(t){return Array.isArray(t)},isObject:function(t){return"object"===(void 0===t?"undefined":n(t))&&!1===Array.isArray(t)&&null!==t},isFunction:function(t){return"function"==typeof t}}},TWr4:function(t,e,r){"use strict";var n=r("SIfw"),o=n.isArray,i=n.isObject,s=n.isFunction;t.exports=function(t){var e=this,r=null,n=void 0,a=function(e){return e===t};return s(t)&&(a=t),o(this.items)&&(n=this.items.filter((function(t){return!0!==r&&(r=!a(t)),r}))),i(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!0!==r&&(r=!a(e.items[n])),!1!==r&&(t[n]=e.items[n]),t}),{})),new this.constructor(n)}},TZAN:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("0tQ4");t.exports=function(t,e){var r=n(e),i=this.items.filter((function(e){return-1!==r.indexOf(o(e,t))}));return new this.constructor(i)}},"UH+N":function(t,e,r){"use strict";t.exports=function(t){var e=this,r=JSON.parse(JSON.stringify(this.items));return Object.keys(t).forEach((function(n){void 0===e.items[n]&&(r[n]=t[n])})),new this.constructor(r)}},URgk:function(t,e,r){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(n,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))},r("YBdB"),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,r("yLpj"))},UY0H:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){return new this.constructor(n(this.items))}},UgDP:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("0tQ4");t.exports=function(t,e){var r=n(e),i=this.items.filter((function(e){return-1===r.indexOf(o(e,t))}));return new this.constructor(i)}},UnNl:function(t,e,r){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"===",null)}},Ww0C:function(t,e,r){"use strict";t.exports=function(){return this.sort().reverse()}},XuX8:function(t,e,r){t.exports=r("INkZ")},YBdB:function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var n,o,i,s,a,c=1,u={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},n=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,n=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):n=function(t){setTimeout(h,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&h(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),n=function(e){t.postMessage(s+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r2&&void 0!==r[2]?r[2]:"POST",s=r.length>3&&void 0!==r[3]&&r[3],c=a,s&&(c["Content-Type"]="multipart/form-data"),u={method:i,headers:c},e&&(u.body=s?e:JSON.stringify(e)),n.next=8,fetch(t,u);case 8:return l=n.sent,n.prev=9,n.next=12,l.json();case 12:return f=n.sent,n.abrupt("return",f);case 16:return n.prev=16,n.t0=n.catch(9),n.abrupt("return",l);case 19:case"end":return n.stop()}}),n,null,[[9,16]])})))()},get:function(t){var e=this;return s(o.a.mark((function r(){return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",e.send(t,null,"GET"));case 1:case"end":return r.stop()}}),r)})))()},post:function(t,e){var r=arguments,n=this;return s(o.a.mark((function i(){var s;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=r.length>2&&void 0!==r[2]&&r[2],o.abrupt("return",n.send(t,e,"POST",s));case 2:case"end":return o.stop()}}),i)})))()},put:function(t,e){var r=this;return s(o.a.mark((function n(){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.send(t,e,"PUT"));case 1:case"end":return n.stop()}}),n)})))()},delete:function(t,e){var r=this;return s(o.a.mark((function n(){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.send(t,e,"DELETE"));case 1:case"end":return n.stop()}}),n)})))()}};window.Vue=r("XuX8"),window.collect=r("j5l6"),window.api=c,r("zhh1")},c993:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("a",{staticClass:"button info ml-2",attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),r("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[r("div",{domProps:{innerHTML:t._s(t.feedItem.content?t.feedItem.content:t.feedItem.description)}}),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("URL")))]),t._v(" "),r("dd",[r("a",{attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[t._v(t._s(t.feedItem.url))])]),t._v(" "),r("dt",[t._v(t._s(t.__("Date of item's creation")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.feedItem.created_at,calendar:!0}})],1),t._v(" "),r("dt",[t._v(t._s(t.__("Date of item's publication")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.feedItem.published_at,calendar:!0}})],1),t._v(" "),r("dt",[t._v(t._s(t.__("Published in")))]),t._v(" "),r("dd",t._l(t.feedItem.feeds,(function(e){return r("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500"},[r("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),r("div",{staticClass:"py-0.5"},[t._v(t._s(e.title))])])})),0)])])])}),[],!1,null,null,null);e.default=u.exports},cZbx:function(t,e,r){"use strict";var n="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.exports=function(t){return t instanceof this.constructor?t:"object"===(void 0===t?"undefined":n(t))?new this.constructor(t):new this.constructor([t])}},clGK:function(t,e,r){"use strict";t.exports=function(t,e,r){t?r(this):e(this)}},dydJ:function(t,e,r){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o="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.exports=function(t){var e=this,r=t;r instanceof this.constructor&&(r=t.all());var i={};if(Array.isArray(this.items)&&Array.isArray(r))this.items.forEach((function(t,e){i[t]=r[e]}));else if("object"===o(this.items)&&"object"===(void 0===r?"undefined":o(r)))Object.keys(this.items).forEach((function(t,n){i[e.items[t]]=r[Object.keys(r)[n]]}));else if(Array.isArray(this.items))i[this.items[0]]=r;else if("string"==typeof this.items&&Array.isArray(r)){var s=n(r,1);i[this.items]=s[0]}else"string"==typeof this.items&&(i[this.items]=r);return new this.constructor(i)}},epP6:function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?r("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]),t._v(" "),t.folder.feed_item_states_count>0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e()]),t._v(" "),r("div",{staticClass:"body"},["folder"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("folder.update",t.folder)},on:{submit:function(e){return e.preventDefault(),t.onUpdateFolder(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{attrs:{type:"text",name:"title"},domProps:{value:t.folder.title},on:{input:function(e){t.updateFolderTitle=e.target.value}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("update")}})]),t._v("\n "+t._s(t.__("Update folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("folder.store")},on:{submit:function(e){return e.preventDefault(),t.onAddFolder(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.addFolderTitle,expression:"addFolderTitle"}],attrs:{type:"text"},domProps:{value:t.addFolderTitle},on:{input:function(e){e.target.composing||(t.addFolderTitle=e.target.value)}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("document.store")},on:{submit:function(e){return e.preventDefault(),t.onAddDocument(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.addDocumentUrl,expression:"addDocumentUrl"}],attrs:{type:"url"},domProps:{value:t.addDocumentUrl},on:{input:function(e){e.target.composing||(t.addDocumentUrl=e.target.value)}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add document"))+"\n ")])])]),t._v(" "),"folder"===t.folder.type?r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteFolder}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])]):t._e()])])}),[],!1,null,null,null);e.default=u.exports},l9N6:function(t,e,r){"use strict";var n="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 o(t){if(Array.isArray(t)){if(t.length)return!1}else if(null!=t&&"object"===(void 0===t?"undefined":n(t))){if(Object.keys(t).length)return!1}else if(t)return!1;return!0}t.exports=function(t){var e=t||!1,r=null;return r=Array.isArray(this.items)?function(t,e){if(t)return e.filter(t);for(var r=[],n=0;n":return o(e,t)!==Number(s)&&o(e,t)!==s.toString();case"!==":return o(e,t)!==s;case"<":return o(e,t)":return o(e,t)>s;case">=":return o(e,t)>=s}}));return new this.constructor(c)}},lfA6:function(t,e,r){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var e=this,r={};return Array.isArray(this.items)?this.items.forEach((function(e){var o=t(e),i=n(o,2),s=i[0],a=i[1];r[s]=a})):Object.keys(this.items).forEach((function(o){var i=t(e.items[o]),s=n(i,2),a=s[0],c=s[1];r[a]=c})),new this.constructor(r)}},lflG:function(t,e,r){"use strict";t.exports=function(){return!this.isEmpty()}},lpfs:function(t,e,r){"use strict";t.exports=function(t){return t(this),this}},ls82:function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function a(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),s=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var a=_(s,r);if(a){if(a===l)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,s),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function f(){}function d(){}function p(){}var h={};h[o]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(k([])));v&&v!==e&&r.call(v,o)&&(h=v);var y=p.prototype=f.prototype=Object.create(h);function g(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var n;this._invoke=function(o,i){function s(){return new e((function(n,s){!function n(o,i,s,a){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,a)}))}a(c.arg)}(o,i,n,s)}))}return n=n?n.then(s,s):s()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(a&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},lwQh:function(t,e,r){"use strict";t.exports=function(){var t=0;return Array.isArray(this.items)&&(t=this.items.length),Math.max(Object.keys(this.items).length,t)}},mNb9:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=n(this.items),r=new this.constructor(e).shuffle();return t!==parseInt(t,10)?r.first():r.take(t)}},nHqO:function(t,e,r){"use strict";var n=r("OxKB");t.exports=function(){for(var t=this,e=arguments.length,r=Array(e),o=0;o=0;--o){var i,s=t[o];if("[]"===s&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(a,10);r.parseArrays||""!==a?!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[a]=n:i={0:n}}n=i}return n}(c,e,r)}};t.exports=function(t,e){var r=function(t){if(!t)return i;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?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth?t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var r,a={},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,u=e.parameterLimit===1/0?void 0:e.parameterLimit,l=c.split(e.delimiter,u),f=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(h=h.split(",")),o.call(a,p)?a[p]=n.combine(a[p],h):a[p]=h}return a}(t,r):t,u=r.plainObjects?Object.create(null):{},l=Object.keys(c),f=0;f0?r("div",[r("h2",[t._v(t._s(t.__("Community themes")))]),t._v(" "),r("p",[t._v(t._s(t.__("These themes were hand-picked by Cyca's author.")))]),t._v(" "),r("div",{staticClass:"themes-category"},t._l(t.themes.community,(function(e,n){return r("theme-card",{key:n,attrs:{repository_url:e,name:n,is_selected:n===t.selected},on:{selected:function(e){return t.useTheme(n)}}})})),1)]):t._e()])}),[],!1,null,null,null);e.default=l.exports},qBwO:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s={data:function(){return{selectedFeeds:[]}},computed:function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return new this.constructor(this.items).groupBy(t).map((function(t){return t.count()}))}},qigg:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e=t.target.scrollHeight&&this.canLoadMore&&this.loadMoreFeedItems()}})},c=r("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"feeditems-list"},on:{"&scroll":function(e){return t.onScroll(e)}}},t._l(t.sortedList,(function(e){return r("feed-item",{key:e.id,attrs:{feedItem:e},on:{"selected-feeditems-changed":t.onSelectedFeedItemsChanged}})})),1)}),[],!1,null,null,null);e.default=u.exports},qj89:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("SIfw").isFunction;t.exports=function(t,e){if(void 0!==e)return Array.isArray(this.items)?this.items.filter((function(r){return void 0!==r[t]&&r[t]===e})).length>0:void 0!==this.items[t]&&this.items[t]===e;if(o(t))return this.items.filter((function(e,r){return t(e,r)})).length>0;if(Array.isArray(this.items))return-1!==this.items.indexOf(t);var r=n(this.items);return r.push.apply(r,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);er&&(r=i)}else void 0!==t?e.push({key:n[t],count:1}):e.push({key:n,count:1})})),e.filter((function(t){return t.count===r})).map((function(t){return t.key}))):null}},t9qg:function(t,e,r){"use strict";t.exports=function(t,e){var r=this,n={};return Array.isArray(this.items)?n=this.items.slice(t*e-e,t*e):Object.keys(this.items).slice(t*e-e,t*e).forEach((function(t){n[t]=r.items[t]})),new this.constructor(n)}},tNWF:function(t,e,r){"use strict";t.exports=function(t,e){var r=this,n=null;return void 0!==e&&(n=e),Array.isArray(this.items)?this.items.forEach((function(e){n=t(n,e)})):Object.keys(this.items).forEach((function(e){n=t(n,r.items[e],e)})),n}},tiHo:function(t,e,r){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new this.constructor(t)}},tpAN:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0?r("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()]),t._v(" "),r("div",{staticClass:"flex items-center"},[t.document.feed_item_states_count>0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("a",{staticClass:"button info ml-2",attrs:{href:t.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))},mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})}}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),r("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[t.document.description?r("div",{domProps:{innerHTML:t._s(t.document.description)}}):t._e(),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),r("dd",[r("a",{attrs:{href:t.document.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))}}},[t._v(t._s(t.document.url))])]),t._v(" "),t.document.bookmark.visits?r("dt",[t._v(t._s(t.__("Visits")))]):t._e(),t._v(" "),t.document.bookmark.visits?r("dd",[t._v(t._s(t.document.bookmark.visits))]):t._e(),t._v(" "),r("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.document.checked_at,calendar:!0}})],1),t._v(" "),t.dupplicateInFolders.length>0?r("dt",[t._v(t._s(t.__("Also exists in")))]):t._e(),t._v(" "),t.dupplicateInFolders.length>0?r("dd",t._l(t.dupplicateInFolders,(function(e){return r("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500",on:{click:function(r){return t.$emit("folder-selected",e)}}},[r("svg",{staticClass:"favicon",class:e.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon(e.icon)}})]),t._v(" "),r("span",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(e.title))])])})),0):t._e()]),t._v(" "),t.document.feeds&&t.document.feeds.length>0?r("h2",[t._v(t._s(t.__("Feeds")))]):t._e(),t._v(" "),t._l(t.document.feeds,(function(e){return r("div",{key:e.id,staticClass:"rounded bg-gray-600 mb-2 p-2"},[r("div",{staticClass:"flex justify-between items-center"},[r("div",{staticClass:"flex items-center my-0 py-0"},[r("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),r("div",[t._v(t._s(e.title))])]),t._v(" "),e.is_ignored?r("button",{staticClass:"button success",on:{click:function(r){return t.follow(e)}}},[t._v(t._s(t.__("Follow")))]):t._e(),t._v(" "),e.is_ignored?t._e():r("button",{staticClass:"button danger",on:{click:function(r){return t.ignore(e)}}},[t._v(t._s(t.__("Ignore")))])]),t._v(" "),e.description?r("div",{domProps:{innerHTML:t._s(e.description)}}):t._e(),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),r("dd",[r("div",[t._v(t._s(e.url))])]),t._v(" "),r("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:e.checked_at,calendar:!0}})],1)])])})),t._v(" "),r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},u4XC:function(t,e,r){"use strict";var n="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.exports=function(t){var e=this,r=[],o=0;if(Array.isArray(this.items))do{var i=this.items.slice(o,o+t),s=new this.constructor(i);r.push(s),o+=t}while(o1&&void 0!==arguments[1]?arguments[1]:0,r=n(this.items),o=r.slice(e).filter((function(e,r){return r%t==0}));return new this.constructor(o)}},"x+iC":function(t,e,r){"use strict";t.exports=function(t,e){var r=this.values();if(void 0===e)return r.implode(t);var n=r.count();if(0===n)return"";if(1===n)return r.last();var o=r.pop();return r.implode(t)+e+o}},xA6t:function(t,e,r){"use strict";var n=r("0tQ4");t.exports=function(t,e){return this.filter((function(r){return n(r,t)e[e.length-1]}))}},xWoM:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Array.isArray(this.items)?Object.keys(this.items).forEach((function(r){e[t.items[r]]=Number(r)})):Object.keys(this.items).forEach((function(r){e[t.items[r]]=r})),new this.constructor(e)}},xazZ:function(t,e,r){"use strict";t.exports=function(t){return this.filter((function(e){return e instanceof t}))}},xgus:function(t,e,r){"use strict";var n=r("SIfw").isObject;t.exports=function(t){var e=this;return n(this.items)?new this.constructor(Object.keys(this.items).reduce((function(r,n,o){return o+1>t&&(r[n]=e.items[n]),r}),{})):new this.constructor(this.items.slice(t))}},xi9Z:function(t,e,r){"use strict";t.exports=function(t,e){return void 0===e?this.items.join(t):new this.constructor(this.items).pluck(t).all().join(e)}},yLpj:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},ysnW:function(t,e,r){var n={"./DateTime.vue":"YrHs","./Details/DetailsDocument.vue":"tpAN","./Details/DetailsDocuments.vue":"2FZ/","./Details/DetailsFeedItem.vue":"c993","./Details/DetailsFolder.vue":"l2C0","./DocumentItem.vue":"IfUw","./DocumentsList.vue":"qBwO","./FeedItem.vue":"+CwO","./FeedItemsList.vue":"qigg","./FolderItem.vue":"4VNc","./FoldersTree.vue":"RB6r","./Importer.vue":"gDOT","./Importers/ImportFromCyca.vue":"wT45","./ThemeCard.vue":"CV10","./ThemesBrowser.vue":"pKhy"};function o(t){var e=i(t);return r(e)}function i(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}o.keys=function(){return Object.keys(n)},o.resolve=i,t.exports=o,o.id="ysnW"},ytFn:function(t,e,r){"use strict";t.exports=function(t){var e,r=void 0;Array.isArray(t)?(e=r=[]).push.apply(e,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e3&&void 0!==arguments[3]?arguments[3]:null;return a(this,v),(n=m.call(this)).name=t,n.absolute=r,n.ziggy=i||Ziggy,n.urlBuilder=n.name?new o(t,r,n.ziggy):null,n.template=n.urlBuilder?n.urlBuilder.construct():"",n.urlParams=n.normalizeParams(e),n.queryParams={},n.hydrated="",n}return n=v,(l=[{key:"normalizeParams",value:function(t){return void 0===t?{}:((t="object"!==s(t)?[t]:t).hasOwnProperty("id")&&-1==this.template.indexOf("{id}")&&(t=[t.id]),this.numericParamIndices=Array.isArray(t),Object.assign({},t))}},{key:"with",value:function(t){return this.urlParams=this.normalizeParams(t),this}},{key:"withQuery",value:function(t){return Object.assign(this.queryParams,t),this}},{key:"hydrateUrl",value:function(){var t=this;if(this.hydrated)return this.hydrated;var e=this.template.replace(/{([^}]+)}/gi,(function(e,r){var n,o,i=t.trimParam(e);if(t.ziggy.defaultParameters.hasOwnProperty(i)&&(n=t.ziggy.defaultParameters[i]),n&&!t.urlParams[i])return delete t.urlParams[i],n;if(t.numericParamIndices?(t.urlParams=Object.values(t.urlParams),o=t.urlParams.shift()):(o=t.urlParams[i],delete t.urlParams[i]),null==o){if(-1===e.indexOf("?"))throw new Error("Ziggy Error: '"+i+"' key is required for route '"+t.name+"'");return""}return o.id?encodeURIComponent(o.id):encodeURIComponent(o)}));return null!=this.urlBuilder&&""!==this.urlBuilder.path&&(e=e.replace(/\/+$/,"")),this.hydrated=e,this.hydrated}},{key:"matchUrl",value:function(){var t=window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname,e=this.template.replace(/(\/\{[^\}]*\?\})/g,"/").replace(/(\{[^\}]*\})/gi,"[^/?]+").replace(/\/?$/,"").split("://")[1],r=this.template.replace(/(\{[^\}]*\})/gi,"[^/?]+").split("://")[1],n=t.replace(/\/?$/,"/"),o=new RegExp("^"+r+"/$").test(n),i=new RegExp("^"+e+"/$").test(n);return o||i}},{key:"constructQuery",value:function(){if(0===Object.keys(this.queryParams).length&&0===Object.keys(this.urlParams).length)return"";var t=Object.assign(this.urlParams,this.queryParams);return Object(i.stringify)(t,{encodeValuesOnly:!0,skipNulls:!0,addQueryPrefix:!0,arrayFormat:"indices"})}},{key:"current",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=Object.keys(this.ziggy.namedRoutes),n=r.filter((function(e){return-1!==t.ziggy.namedRoutes[e].methods.indexOf("GET")&&new v(e,void 0,void 0,t.ziggy).matchUrl()}))[0];if(e){var o=new RegExp("^"+e.replace(".","\\.").replace("*",".*")+"$","i");return o.test(n)}return n}},{key:"check",value:function(t){return Object.keys(this.ziggy.namedRoutes).includes(t)}},{key:"extractParams",value:function(t,e,r){var n=this,o=t.split(r);return e.split(r).reduce((function(t,e,r){return 0===e.indexOf("{")&&-1!==e.indexOf("}")&&o[r]?Object.assign(t,(i={},s=n.trimParam(e),a=o[r],s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i)):t;var i,s,a}),{})}},{key:"parse",value:function(){this.return=this.hydrateUrl()+this.constructQuery()}},{key:"url",value:function(){return this.parse(),this.return}},{key:"toString",value:function(){return this.url()}},{key:"trimParam",value:function(t){return t.replace(/{|}|\?/g,"")}},{key:"valueOf",value:function(){return this.url()}},{key:"params",get:function(){var t=this.ziggy.namedRoutes[this.current()];return Object.assign(this.extractParams(window.location.hostname,t.domain||"","."),this.extractParams(window.location.pathname.slice(1),t.uri,"/"))}}])&&c(n.prototype,l),f&&c(n,f),v}(l(String));function v(t,e,r,n){return new m(t,e,r,n)}var y={namedRoutes:{account:{uri:"account",methods:["GET","HEAD"],domain:null},home:{uri:"/",methods:["GET","HEAD"],domain:null},"account.password":{uri:"account/password",methods:["GET","HEAD"],domain:null},"account.theme":{uri:"account/theme",methods:["GET","HEAD"],domain:null},"account.setTheme":{uri:"account/theme",methods:["POST"],domain:null},"account.theme.details":{uri:"account/theme/details/{name}",methods:["GET","HEAD"],domain:null},"account.getThemes":{uri:"account/theme/themes",methods:["GET","HEAD"],domain:null},"account.import.form":{uri:"account/import",methods:["GET","HEAD"],domain:null},"account.import":{uri:"account/import",methods:["POST"],domain:null},"account.export":{uri:"account/export",methods:["GET","HEAD"],domain:null},"document.move":{uri:"document/move/{sourceFolder}/{targetFolder}",methods:["POST"],domain:null},"document.destroy_bookmarks":{uri:"document/delete_bookmarks/{folder}",methods:["POST"],domain:null},"document.visit":{uri:"document/{document}/visit/{folder}",methods:["POST"],domain:null},"feed_item.mark_as_read":{uri:"feed_item/mark_as_read",methods:["POST"],domain:null},"feed.ignore":{uri:"feed/{feed}/ignore",methods:["POST"],domain:null},"feed.follow":{uri:"feed/{feed}/follow",methods:["POST"],domain:null},"folder.index":{uri:"folder",methods:["GET","HEAD"],domain:null},"folder.store":{uri:"folder",methods:["POST"],domain:null},"folder.show":{uri:"folder/{folder}",methods:["GET","HEAD"],domain:null},"folder.update":{uri:"folder/{folder}",methods:["PUT","PATCH"],domain:null},"folder.destroy":{uri:"folder/{folder}",methods:["DELETE"],domain:null},"document.index":{uri:"document",methods:["GET","HEAD"],domain:null},"document.store":{uri:"document",methods:["POST"],domain:null},"document.show":{uri:"document/{document}",methods:["GET","HEAD"],domain:null},"feed_item.index":{uri:"feed_item",methods:["GET","HEAD"],domain:null},"feed_item.show":{uri:"feed_item/{feed_item}",methods:["GET","HEAD"],domain:null}},baseUrl:"https://cyca.athaliasoft.com/",baseProtocol:"https",baseDomain:"cyca.athaliasoft.com",basePort:!1,defaultParameters:[]};if("undefined"!=typeof window&&void 0!==window.Ziggy)for(var g in window.Ziggy.namedRoutes)y.namedRoutes[g]=window.Ziggy.namedRoutes[g];window.route=v,window.Ziggy=y,Vue.mixin({methods:{route:function(t,e,r){return v(t,e,r,y)},icon:function(t){return document.querySelector('meta[name="icons-file-url"]').getAttribute("content")+"#"+t},__:function(t){var e=lang[t];return e||t}}})}}); \ No newline at end of file +!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r(r.s=2)}({"+CwO":function(t,e,r){"use strict";r.r(e);var n=r("L0RC"),o=r.n(n),i=r("L2JU");function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r|[^<>]*$1')})),t}})},d=r("KHd+"),p=Object(d.a)(f,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a",{staticClass:"feed-item",class:{selected:t.is_selected,read:0===t.feedItem.feed_item_states_count},attrs:{href:t.feedItem.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),e.preventDefault(),t.onClicked(e))}}},[r("div",{staticClass:"feed-item-label",domProps:{innerHTML:t._s(t.highlight(t.feedItem.title))}}),t._v(" "),r("div",{staticClass:"feed-item-meta"},[r("date-time",{staticClass:"flex-none mr-4 w-2/12",attrs:{datetime:t.feedItem.published_at,calendar:!0}}),t._v(" "),r("img",{staticClass:"favicon",attrs:{src:t.feedItem.feeds[0].favicon}}),t._v(" "),r("div",{staticClass:"truncate"},[t._v(t._s(t.feedItem.feeds[0].title))])],1)])}),[],!1,null,null,null);e.default=p.exports},"+hMf":function(t,e,r){"use strict";t.exports=function(t,e){return this.items[t]=e,this}},"+p9u":function(t,e,r){"use strict";var n=r("SIfw"),o=n.isArray,i=n.isObject,s=n.isFunction;t.exports=function(t){var e=this,r=null,n=void 0,a=function(e){return e===t};return s(t)&&(a=t),o(this.items)&&(n=this.items.filter((function(t){return!0!==r&&(r=a(t)),r}))),i(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!0!==r&&(r=a(e.items[n])),!1!==r&&(t[n]=e.items[n]),t}),{})),new this.constructor(n)}},"/c+j":function(t,e,r){"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var r=this.items.filter((function(t){return-1===e.indexOf(t)}));return new this.constructor(r)}},"/dWu":function(t,e,r){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var e={};return this.items.forEach((function(r,o){var i=t(r,o),s=n(i,2),a=s[0],c=s[1];void 0===e[a]?e[a]=[c]:e[a].push(c)})),new this.constructor(e)}},"/jPX":function(t,e,r){"use strict";t.exports=function(t){var e=this,r=void 0;return Array.isArray(this.items)?(r=[new this.constructor([]),new this.constructor([])],this.items.forEach((function(e){!0===t(e)?r[0].push(e):r[1].push(e)}))):(r=[new this.constructor({}),new this.constructor({})],Object.keys(this.items).forEach((function(n){var o=e.items[n];!0===t(o)?r[0].put(n,o):r[1].put(n,o)}))),new this.constructor(r)}},"/n9D":function(t,e,r){"use strict";t.exports=function(t,e,r){var n=this.slice(t,e);if(this.items=this.diff(n.all()).all(),Array.isArray(r))for(var o=0,i=r.length;o1;){var e=t.pop(),r=e.obj[e.prop];if(o(r)){for(var n=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(s):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(s)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},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,r,i){if(!r)return e;if("object"!=typeof r){if(o(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return o(e)&&!o(r)&&(a=s(e,i)),o(e)&&o(r)?(r.forEach((function(r,o){if(n.call(e,o)){var s=e[o];s&&"object"==typeof s&&r&&"object"==typeof r?e[o]=t(s,r,i):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var s=r[o];return n.call(e,o)?e[o]=t(e[o],s,i):e[o]=s,e}),a)}}},"0k4l":function(t,e,r){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))return new this.constructor(this.items.map(t));var r={};return Object.keys(this.items).forEach((function(n){r[n]=t(e.items[n],n)})),new this.constructor(r)}},"0on8":function(t,e,r){"use strict";var n="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.exports=function(){return"object"!==n(this.items)||Array.isArray(this.items)?JSON.stringify(this.toArray()):JSON.stringify(this.all())}},"0qqO":function(t,e,r){"use strict";t.exports=function(t){return this.each((function(e,r){t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("button",{staticClass:"info ml-2",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.onOpenClicked(e))}}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[t._l(t.documents,(function(t){return r("img",{key:t.id,staticClass:"favicon inline mr-1 mb-1",attrs:{title:t.title,src:t.favicon}})})),t._v(" "),r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},"2YvH":function(t,e,r){"use strict";var n=r("SIfw"),o=n.isArray,i=n.isObject;t.exports=function(t){var e=t||1/0,r=!1,n=[],s=function(t){n=[],o(t)?t.forEach((function(t){o(t)?n=n.concat(t):i(t)?Object.keys(t).forEach((function(e){n=n.concat(t[e])})):n.push(t)})):Object.keys(t).forEach((function(e){o(t[e])?n=n.concat(t[e]):i(t[e])?Object.keys(t[e]).forEach((function(r){n=n.concat(t[e][r])})):n.push(t[e])})),r=0===(r=n.filter((function(t){return i(t)}))).length,e-=1};for(s(this.items);!r&&e>0;)s(n);return new this.constructor(n)}},"3wPk":function(t,e,r){"use strict";t.exports=function(t){return this.map((function(e,r){return t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?t:0,t+"rem"},isDraggable:function(){return!this.folder.deleted_at&&"folder"===this.folder.type},canDrop:function(){return!this.folder.deleted_at&&("folder"===this.folder.type||"root"===this.folder.type)},branchIsExpanded:function(){var t=this.folder.parent_id;if(!t||!this.folders)return!0;for(;null!=t;){var e=this.folders.find((function(e){return e.id===t}));if(e&&!e.is_expanded)return!1;t=e.parent_id}return!0},expanderIcon:function(){return this.folder.is_expanded?"expanded":"collapsed"}}),methods:i(i({},Object(n.b)({startDraggingFolder:"folders/startDraggingFolder",stopDraggingFolder:"folders/stopDraggingFolder",dropIntoFolder:"folders/dropIntoFolder",toggleExpanded:"folders/toggleExpanded"})),{},{onDragStart:function(t){this.startDraggingFolder(this.folder)},onDragEnd:function(){this.stopDraggingFolder(),this.is_dragged_over=!1},onDrop:function(){this.is_dragged_over=!1,this.$emit("item-dropped",this.folder)},onDragLeave:function(){this.is_dragged_over=!1},onDragOver:function(t){this.is_dragged_over=!0,this.canDrop?(t.preventDefault(),this.cannot_drop=!1):this.cannot_drop=!0},onClick:function(){switch(this.folder.type){case"account":window.location.href=route("account");break;case"logout":document.getElementById("logout-form").submit();break;default:this.$emit("selected-folder-changed",this.folder)}}})},c=r("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.branchIsExpanded?r("button",{staticClass:"list-item",class:{selected:t.folder.is_selected,"dragged-over":t.is_dragged_over,"cannot-drop":t.cannot_drop,deleted:t.folder.deleted_at},attrs:{draggable:t.isDraggable},on:{click:function(e){return e.preventDefault(),t.onClick(e)},dragstart:t.onDragStart,dragend:t.onDragEnd,drop:t.onDrop,dragleave:t.onDragLeave,dragover:t.onDragOver}},[r("div",{staticClass:"list-item-label",style:{"padding-left":t.indent}},["folder"===t.folder.type?r("span",{staticClass:"caret"},["folder"===t.folder.type&&t.folder.children_count>0?r("svg",{attrs:{fill:"currentColor",width:"16",height:"16"},on:{"!click":function(e){return e.stopPropagation(),t.toggleExpanded(t.folder)}}},[r("use",{attrs:{"xlink:href":t.icon(t.expanderIcon)}})]):t._e()]):t._e(),t._v(" "),r("svg",{staticClass:"favicon",class:t.folder.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon(t.folder.icon)}})]),t._v(" "),r("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.folder.title))])]),t._v(" "),t.folder.feed_item_states_count>0?r("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]):t._e()}),[],!1,null,null,null);e.default=u.exports},"4luE":function(t,e,r){r("c58/"),r("qq0i")("import");new Vue({el:"#app"})},"4s1B":function(t,e,r){"use strict";t.exports=function(){var t=[].concat(this.items).reverse();return new this.constructor(t)}},"5Cq2":function(t,e,r){"use strict";var n="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.exports=function(t){var e=function t(e,r){var o={};return Object.keys(Object.assign({},e,r)).forEach((function(i){void 0===e[i]&&void 0!==r[i]?o[i]=r[i]:void 0!==e[i]&&void 0===r[i]?o[i]=e[i]:void 0!==e[i]&&void 0!==r[i]&&(e[i]===r[i]?o[i]=e[i]:Array.isArray(e[i])||"object"!==n(e[i])||Array.isArray(r[i])||"object"!==n(r[i])?o[i]=[].concat(e[i],r[i]):o[i]=t(e[i],r[i]))})),o};return t?"Collection"===t.constructor.name?new this.constructor(e(this.items,t.all())):new this.constructor(e(this.items,t)):this}},"6y7s":function(t,e,r){"use strict";t.exports=function(){var t;return(t=this.items).push.apply(t,arguments),this}},"7zD/":function(t,e,r){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))this.items=this.items.map(t);else{var r={};Object.keys(this.items).forEach((function(n){r[n]=t(e.items[n],n)})),this.items=r}return this}},"8oxB":function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var t=a(d);l=!0;for(var e=u.length;e;){for(c=u,u=[];++f1)for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==this.items[t]?this.items[t]:n(e)?e():null!==e?e:null}},AmQ0:function(t,e,r){"use strict";r.r(e);var n=r("o0o1"),o=r.n(n);function i(t,e,r,n,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}var s,a,c={props:["highlight"],mounted:function(){this.$watch("highlight.expression",this.updateHighlight)},methods:{updateHighlight:(s=o.a.mark((function t(){var e;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,api.put(route("highlight.update",e.highlight),{expression:e.highlight.expression,color:e.highlight.color});case 3:t.sent;case 4:case"end":return t.stop()}}),t,this)})),a=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=s.apply(t,e);function a(t){i(o,r,n,a,c,"next",t)}function c(t){i(o,r,n,a,c,"throw",t)}a(void 0)}))},function(){return a.apply(this,arguments)}),removeHighlight:function(t){this.$emit("destroy",t)}}},u=r("KHd+"),l=Object(u.a)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("tr",[r("td",{staticClass:"w-1/2"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.highlight.expression,expression:"highlight.expression"}],staticClass:"w-full",attrs:{type:"text","aria-label":t.__("Expression")},domProps:{value:t.highlight.expression},on:{input:function(e){e.target.composing||t.$set(t.highlight,"expression",e.target.value)}}})]),t._v(" "),r("td",{staticClass:"w-1/4"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.highlight.color,expression:"highlight.color"}],staticClass:"w-full",attrs:{type:"color","aria-label":t.__("Color")},domProps:{value:t.highlight.color},on:{input:function(e){e.target.composing||t.$set(t.highlight,"color",e.target.value)}}})]),t._v(" "),r("td",[r("button",{staticClass:"danger",attrs:{type:"button",title:t.__("Remove highlight")},on:{click:function(e){return t.removeHighlight(t.highlight.id)}}},[r("svg",{attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})])])])])}),[],!1,null,null,null);e.default=l.exports},Aoxg:function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e=t.items.length}}}}},DMgR:function(t,e,r){"use strict";var n=r("SIfw").isFunction;t.exports=function(t,e){var r=this.items[t]||null;return r||void 0===e||(r=n(e)?e():e),delete this.items[t],r}},Dv6Q:function(t,e,r){"use strict";t.exports=function(t,e){for(var r=1;r<=t;r+=1)this.items.push(e(r));return this}},"EBS+":function(t,e,r){"use strict";t.exports=function(t){if(!t)return this;if(Array.isArray(t)){var e=this.items.map((function(e,r){return t[r]||e}));return new this.constructor(e)}if("Collection"===t.constructor.name){var r=Object.assign({},this.items,t.all());return new this.constructor(r)}var n=Object.assign({},this.items,t);return new this.constructor(n)}},ET5h:function(t,e,r){"use strict";t.exports=function(t,e){return void 0!==e?this.put(e,t):(this.items.unshift(t),this)}},ErmX:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("SIfw").isFunction;t.exports=function(t){var e=n(this.items),r=0;if(void 0===t)for(var i=0,s=e.length;i0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"!==",null)}},HZ3i:function(t,e,r){"use strict";t.exports=function(){function t(e,r,n){var o=n[0];o instanceof r&&(o=o.all());for(var i=n.slice(1),s=!i.length,a=[],c=0;c=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var r=Object.create(null),n=t.split(","),o=0;o-1)return t.splice(r,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function w(t){var e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}var O=/-(\w)/g,x=w((function(t){return t.replace(O,(function(t,e){return e?e.toUpperCase():""}))})),k=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,j=w((function(t){return t.replace(C,"-$1").toLowerCase()})),A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function r(r){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return r._length=t.length,r};function S(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function E(t,e){for(var r in e)t[r]=e[r];return t}function $(t){for(var e={},r=0;r0,X=Z&&Z.indexOf("edge/")>0,Y=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),tt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),et={}.watch,rt=!1;if(V)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){rt=!0}}),window.addEventListener("test-passive",null,nt)}catch(n){}var ot=function(){return void 0===K&&(K=!V&&!G&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),K},it=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,ct="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);at="undefined"!=typeof Set&&st(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 ut=D,lt=0,ft=function(){this.id=lt++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){g(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,r=t.length;e-1)if(i&&!_(o,"default"))s=!1;else if(""===s||s===j(t)){var c=Ut(String,o.type);(c<0||a0&&(le((c=t(c,(r||"")+"_"+n))[0])&&le(l)&&(f[u]=gt(l.text+c[0].text),c.shift()),f.push.apply(f,c)):a(c)?le(l)?f[u]=gt(l.text+c):""!==c&&f.push(gt(c)):le(c)&&le(l)?f[u]=gt(l.text+c.text):(s(e._isVList)&&i(c.tag)&&o(c.key)&&i(r)&&(c.key="__vlist"+r+"_"+n+"__"),f.push(c)));return f}(t):void 0}function le(t){return i(t)&&i(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var r=Object.create(null),n=ct?Reflect.ownKeys(t):Object.keys(t),o=0;o0,s=t?!!t.$stable:!i,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&r&&r!==n&&a===r.$key&&!i&&!r.$hasNormal)return r;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=me(e,c,t[c]))}else o={};for(var u in e)u in o||(o[u]=ve(e,u));return t&&Object.isExtensible(t)&&(t._normalized=o),B(o,"$stable",s),B(o,"$key",a),B(o,"$hasNormal",i),o}function me(t,e,r){var n=function(){var t=arguments.length?r.apply(null,arguments):r({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return r.proxy&&Object.defineProperty(t,e,{get:n,enumerable:!0,configurable:!0}),n}function ve(t,e){return function(){return t[e]}}function ye(t,e){var r,n,o,s,a;if(Array.isArray(t)||"string"==typeof t)for(r=new Array(t.length),n=0,o=t.length;ndocument.createEvent("Event").timeStamp&&(ar=function(){return cr.now()})}function ur(){var t,e;for(sr=ar(),or=!0,tr.sort((function(t,e){return t.id-e.id})),ir=0;irir&&tr[r].id>t.id;)r--;tr.splice(r+1,0,t)}else tr.push(t);nr||(nr=!0,ee(ur))}}(this)},fr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Bt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},fr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fr.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},fr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var dr={enumerable:!0,configurable:!0,get:D,set:D};function pr(t,e,r){dr.get=function(){return this[e][r]},dr.set=function(t){this[e][r]=t},Object.defineProperty(t,r,dr)}var hr={lazy:!0};function mr(t,e,r){var n=!ot();"function"==typeof r?(dr.get=n?vr(e):yr(r),dr.set=D):(dr.get=r.get?n&&!1!==r.cache?vr(e):yr(r.get):D,dr.set=r.set||D),Object.defineProperty(t,e,dr)}function vr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function yr(t){return function(){return t.call(this,this)}}function gr(t,e,r,n){return l(r)&&(n=r,r=r.handler),"string"==typeof r&&(r=t[r]),t.$watch(e,r,n)}var br=0;function _r(t){var e=t.options;if(t.super){var r=_r(t.super);if(r!==t.superOptions){t.superOptions=r;var n=function(t){var e,r=t.options,n=t.sealedOptions;for(var o in r)r[o]!==n[o]&&(e||(e={}),e[o]=r[o]);return e}(t);n&&E(t.extendOptions,n),(e=t.options=Lt(r,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function wr(t){this._init(t)}function Or(t){return t&&(t.Ctor.options.name||t.tag)}function xr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(r=t,"[object RegExp]"===u.call(r)&&t.test(e));var r}function kr(t,e){var r=t.cache,n=t.keys,o=t._vnode;for(var i in r){var s=r[i];if(s){var a=Or(s.componentOptions);a&&!e(a)&&Cr(r,i,n,o)}}}function Cr(t,e,r,n){var o=t[e];!o||n&&o.tag===n.tag||o.componentInstance.$destroy(),t[e]=null,g(r,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=br++,e._isVue=!0,t&&t._isComponent?function(t,e){var r=t.$options=Object.create(t.constructor.options),n=e._parentVnode;r.parent=e.parent,r._parentVnode=n;var o=n.componentOptions;r.propsData=o.propsData,r._parentListeners=o.listeners,r._renderChildren=o.children,r._componentTag=o.tag,e.render&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Lt(_r(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,r=e.parent;if(r&&!e.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(t)}t.$parent=r,t.$root=r?r.$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&&Je(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,o=r&&r.context;t.$slots=de(e._renderChildren,o),t.$scopedSlots=n,t._c=function(e,r,n,o){return Re(t,e,r,n,o,!1)},t.$createElement=function(e,r,n,o){return Re(t,e,r,n,o,!0)};var i=r&&r.data;At(t,"$attrs",i&&i.attrs||n,null,!0),At(t,"$listeners",e._parentListeners||n,null,!0)}(e),Ye(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(kt(!1),Object.keys(e).forEach((function(r){At(t,r,e[r])})),kt(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var r=t.$options.propsData||{},n=t._props={},o=t.$options._propKeys=[];t.$parent&&kt(!1);var i=function(i){o.push(i);var s=Mt(i,e,r,t);At(n,i,s),i in t||pr(t,"_props",i)};for(var s in e)i(s);kt(!0)}(t,e.props),e.methods&&function(t,e){for(var r in t.$options.props,e)t[r]="function"!=typeof e[r]?D:A(e[r],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;l(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return Bt(t,e,"data()"),{}}finally{ht()}}(e,t):e||{})||(e={});for(var r,n=Object.keys(e),o=t.$options.props,i=(t.$options.methods,n.length);i--;){var s=n[i];o&&_(o,s)||(void 0,36!==(r=(s+"").charCodeAt(0))&&95!==r&&pr(t,"_data",s))}jt(e,!0)}(t):jt(t._data={},!0),e.computed&&function(t,e){var r=t._computedWatchers=Object.create(null),n=ot();for(var o in e){var i=e[o],s="function"==typeof i?i:i.get;n||(r[o]=new fr(t,s||D,D,hr)),o in t||mr(t,o,i)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var r in e){var n=e[r];if(Array.isArray(n))for(var o=0;o1?S(e):e;for(var r=S(arguments,1),n='event handler for "'+t+'"',o=0,i=e.length;oparseInt(this.max)&&Cr(s,a[0],a,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:E,mergeOptions:Lt,defineReactive:At},t.set=St,t.delete=Et,t.nextTick=ee,t.observable=function(t){return jt(t),t},t.options=Object.create(null),M.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,E(t.options.components,Ar),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var r=S(arguments,1);return r.unshift(this),"function"==typeof t.install?t.install.apply(t,r):"function"==typeof t&&t.apply(null,r),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Lt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var r=this,n=r.cid,o=t._Ctor||(t._Ctor={});if(o[n])return o[n];var i=t.name||r.options.name,s=function(t){this._init(t)};return(s.prototype=Object.create(r.prototype)).constructor=s,s.cid=e++,s.options=Lt(r.options,t),s.super=r,s.options.props&&function(t){var e=t.options.props;for(var r in e)pr(t.prototype,"_props",r)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var r in e)mr(t.prototype,r,e[r])}(s),s.extend=r.extend,s.mixin=r.mixin,s.use=r.use,M.forEach((function(t){s[t]=r[t]})),i&&(s.options.components[i]=s),s.superOptions=r.options,s.extendOptions=t,s.sealedOptions=E({},s.options),o[n]=s,s}}(t),function(t){M.forEach((function(e){t[e]=function(t,r){return r?("component"===e&&l(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===e&&"function"==typeof r&&(r={bind:r,update:r}),this.options[e+"s"][t]=r,r):this.options[e+"s"][t]}}))}(t)}(wr),Object.defineProperty(wr.prototype,"$isServer",{get:ot}),Object.defineProperty(wr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wr,"FunctionalRenderContext",{value:Te}),wr.version="2.6.12";var Sr=m("style,class"),Er=m("input,textarea,option,select,progress"),$r=function(t,e,r){return"value"===r&&Er(t)&&"button"!==e||"selected"===r&&"option"===t||"checked"===r&&"input"===t||"muted"===r&&"video"===t},Dr=m("contenteditable,draggable,spellcheck"),Tr=m("events,caret,typing,plaintext-only"),Pr=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"),Ir="http://www.w3.org/1999/xlink",Fr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Lr=function(t){return Fr(t)?t.slice(6,t.length):""},Nr=function(t){return null==t||!1===t};function Mr(t,e){return{staticClass:Rr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Rr(t,e){return t?e?t+" "+e:t:e||""}function Hr(t){return Array.isArray(t)?function(t){for(var e,r="",n=0,o=t.length;n-1?dn(t,e,r):Pr(e)?Nr(r)?t.removeAttribute(e):(r="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,r)):Dr(e)?t.setAttribute(e,function(t,e){return Nr(e)||"false"===e?"false":"contenteditable"===t&&Tr(e)?e:"true"}(e,r)):Fr(e)?Nr(r)?t.removeAttributeNS(Ir,Lr(e)):t.setAttributeNS(Ir,e,r):dn(t,e,r)}function dn(t,e,r){if(Nr(r))t.removeAttribute(e);else{if(W&&!Q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==r&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,r)}}var pn={create:ln,update:ln};function hn(t,e){var r=e.elm,n=e.data,s=t.data;if(!(o(n.staticClass)&&o(n.class)&&(o(s)||o(s.staticClass)&&o(s.class)))){var a=function(t){for(var e=t.data,r=t,n=t;i(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(e=Mr(n.data,e));for(;i(r=r.parent);)r&&r.data&&(e=Mr(e,r.data));return function(t,e){return i(t)||i(e)?Rr(t,Hr(e)):""}(e.staticClass,e.class)}(e),c=r._transitionClasses;i(c)&&(a=Rr(a,Hr(c))),a!==r._prevClass&&(r.setAttribute("class",a),r._prevClass=a)}}var mn,vn,yn,gn,bn,_n,wn={create:hn,update:hn},On=/[\w).+\-_$\]]/;function xn(t){var e,r,n,o,i,s=!1,a=!1,c=!1,u=!1,l=0,f=0,d=0,p=0;for(n=0;n=0&&" "===(m=t.charAt(h));h--);m&&On.test(m)||(u=!0)}}else void 0===o?(p=n+1,o=t.slice(0,n).trim()):v();function v(){(i||(i=[])).push(t.slice(p,n).trim()),p=n+1}if(void 0===o?o=t.slice(0,n).trim():0!==p&&v(),i)for(n=0;n-1?{exp:t.slice(0,gn),key:'"'+t.slice(gn+1)+'"'}:{exp:t,key:null};for(vn=t,gn=bn=_n=0;!Hn();)Un(yn=Rn())?Kn(yn):91===yn&&Bn(yn);return{exp:t.slice(0,bn),key:t.slice(bn+1,_n)}}(t);return null===r.key?t+"="+e:"$set("+r.exp+", "+r.key+", "+e+")"}function Rn(){return vn.charCodeAt(++gn)}function Hn(){return gn>=mn}function Un(t){return 34===t||39===t}function Bn(t){var e=1;for(bn=gn;!Hn();)if(Un(t=Rn()))Kn(t);else if(91===t&&e++,93===t&&e--,0===e){_n=gn;break}}function Kn(t){for(var e=t;!Hn()&&(t=Rn())!==e;);}var zn,qn="__r";function Vn(t,e,r){var n=zn;return function o(){null!==e.apply(null,arguments)&&Zn(t,o,r,n)}}var Gn=Gt&&!(tt&&Number(tt[1])<=53);function Jn(t,e,r,n){if(Gn){var o=sr,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}zn.addEventListener(t,e,rt?{capture:r,passive:n}:r)}function Zn(t,e,r,n){(n||zn).removeEventListener(t,e._wrapper||e,r)}function Wn(t,e){if(!o(t.data.on)||!o(e.data.on)){var r=e.data.on||{},n=t.data.on||{};zn=e.elm,function(t){if(i(t.__r)){var e=W?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}i(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(r),se(r,n,Jn,Zn,Vn,e.context),zn=void 0}}var Qn,Xn={create:Wn,update:Wn};function Yn(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var r,n,s=e.elm,a=t.data.domProps||{},c=e.data.domProps||{};for(r in i(c.__ob__)&&(c=e.data.domProps=E({},c)),a)r in c||(s[r]="");for(r in c){if(n=c[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),n===a[r])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===r&&"PROGRESS"!==s.tagName){s._value=n;var u=o(n)?"":String(n);to(s,u)&&(s.value=u)}else if("innerHTML"===r&&Kr(s.tagName)&&o(s.innerHTML)){(Qn=Qn||document.createElement("div")).innerHTML=""+n+"";for(var l=Qn.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;l.firstChild;)s.appendChild(l.firstChild)}else if(n!==a[r])try{s[r]=n}catch(t){}}}}function to(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var r=!0;try{r=document.activeElement!==t}catch(t){}return r&&t.value!==e}(t,e)||function(t,e){var r=t.value,n=t._vModifiers;if(i(n)){if(n.number)return h(r)!==h(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}(t,e))}var eo={create:Yn,update:Yn},ro=w((function(t){var e={},r=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function no(t){var e=oo(t.style);return t.staticStyle?E(t.staticStyle,e):e}function oo(t){return Array.isArray(t)?$(t):"string"==typeof t?ro(t):t}var io,so=/^--/,ao=/\s*!important$/,co=function(t,e,r){if(so.test(e))t.style.setProperty(e,r);else if(ao.test(r))t.style.setProperty(j(e),r.replace(ao,""),"important");else{var n=lo(e);if(Array.isArray(r))for(var o=0,i=r.length;o-1?e.split(ho).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var r=" "+(t.getAttribute("class")||"")+" ";r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function vo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(ho).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var r=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?t.setAttribute("class",r):t.removeAttribute("class")}}function yo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&E(e,go(t.name||"v")),E(e,t),e}return"string"==typeof t?go(t):void 0}}var go=w((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"}})),bo=V&&!Q,_o="transition",wo="animation",Oo="transition",xo="transitionend",ko="animation",Co="animationend";bo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Oo="WebkitTransition",xo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ko="WebkitAnimation",Co="webkitAnimationEnd"));var jo=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ao(t){jo((function(){jo(t)}))}function So(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),mo(t,e))}function Eo(t,e){t._transitionClasses&&g(t._transitionClasses,e),vo(t,e)}function $o(t,e,r){var n=To(t,e),o=n.type,i=n.timeout,s=n.propCount;if(!o)return r();var a=o===_o?xo:Co,c=0,u=function(){t.removeEventListener(a,l),r()},l=function(e){e.target===t&&++c>=s&&u()};setTimeout((function(){c0&&(r=_o,l=s,f=i.length):e===wo?u>0&&(r=wo,l=u,f=c.length):f=(r=(l=Math.max(s,u))>0?s>u?_o:wo:null)?r===_o?i.length:c.length:0,{type:r,timeout:l,propCount:f,hasTransform:r===_o&&Do.test(n[Oo+"Property"])}}function Po(t,e){for(;t.length1}function Ro(t,e){!0!==e.data.show&&Fo(e)}var Ho=function(t){var e,r,n={},c=t.modules,u=t.nodeOps;for(e=0;eh?b(t,o(r[y+1])?null:r[y+1].elm,r,p,y,n):p>y&&w(e,d,h)}(d,m,y,r,l):i(y)?(i(t.text)&&u.setTextContent(d,""),b(d,null,y,0,y.length-1,r)):i(m)?w(m,0,m.length-1):i(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),i(h)&&i(p=h.hook)&&i(p=p.postpatch)&&p(t,e)}}}function C(t,e,r){if(s(r)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var n=0;n-1,s.selected!==i&&(s.selected=i);else if(I(qo(s),n))return void(t.selectedIndex!==a&&(t.selectedIndex=a));o||(t.selectedIndex=-1)}}function zo(t,e){return e.every((function(e){return!I(e,t)}))}function qo(t){return"_value"in t?t._value:t.value}function Vo(t){t.target.composing=!0}function Go(t){t.target.composing&&(t.target.composing=!1,Jo(t.target,"input"))}function Jo(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function Zo(t){return!t.componentInstance||t.data&&t.data.transition?t:Zo(t.componentInstance._vnode)}var Wo={model:Uo,show:{bind:function(t,e,r){var n=e.value,o=(r=Zo(r)).data&&r.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&o?(r.data.show=!0,Fo(r,(function(){t.style.display=i}))):t.style.display=n?i:"none"},update:function(t,e,r){var n=e.value;!n!=!e.oldValue&&((r=Zo(r)).data&&r.data.transition?(r.data.show=!0,n?Fo(r,(function(){t.style.display=t.__vOriginalDisplay})):Lo(r,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,r,n,o){o||(t.style.display=t.__vOriginalDisplay)}}},Qo={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 Xo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Xo(ze(e.children)):t}function Yo(t){var e={},r=t.$options;for(var n in r.propsData)e[n]=t[n];var o=r._parentListeners;for(var i in o)e[x(i)]=o[i];return e}function ti(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var ei=function(t){return t.tag||Ke(t)},ri=function(t){return"show"===t.name},ni={name:"transition",props:Qo,abstract:!0,render:function(t){var e=this,r=this.$slots.default;if(r&&(r=r.filter(ei)).length){var n=this.mode,o=r[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=Xo(o);if(!i)return o;if(this._leaving)return ti(t,o);var s="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?s+"comment":s+i.tag:a(i.key)?0===String(i.key).indexOf(s)?i.key:s+i.key:i.key;var c=(i.data||(i.data={})).transition=Yo(this),u=this._vnode,l=Xo(u);if(i.data.directives&&i.data.directives.some(ri)&&(i.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(i,l)&&!Ke(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=E({},c);if("out-in"===n)return this._leaving=!0,ae(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ti(t,o);if("in-out"===n){if(Ke(i))return u;var d,p=function(){d()};ae(c,"afterEnter",p),ae(c,"enterCancelled",p),ae(f,"delayLeave",(function(t){d=t}))}}return o}}},oi=E({tag:String,moveClass:String},Qo);function ii(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function si(t){t.data.newPos=t.elm.getBoundingClientRect()}function ai(t){var e=t.data.pos,r=t.data.newPos,n=e.left-r.left,o=e.top-r.top;if(n||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+n+"px,"+o+"px)",i.transitionDuration="0s"}}delete oi.mode;var ci={Transition:ni,TransitionGroup:{props:oi,beforeMount:function(){var t=this,e=this._update;this._update=function(r,n){var o=We(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,r,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],s=Yo(this),a=0;a-1?Vr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Vr[t]=/HTMLUnknownElement/.test(e.toString())},E(wr.options.directives,Wo),E(wr.options.components,ci),wr.prototype.__patch__=V?Ho:D,wr.prototype.$mount=function(t,e){return function(t,e,r){var n;return t.$el=e,t.$options.render||(t.$options.render=yt),Ye(t,"beforeMount"),n=function(){t._update(t._render(),r)},new fr(t,n,D,{before:function(){t._isMounted&&!t._isDestroyed&&Ye(t,"beforeUpdate")}},!0),r=!1,null==t.$vnode&&(t._isMounted=!0,Ye(t,"mounted")),t}(this,t=t&&V?Jr(t):void 0,e)},V&&setTimeout((function(){H.devtools&&it&&it.emit("init",wr)}),0);var ui,li=/\{\{((?:.|\r?\n)+?)\}\}/g,fi=/[-.*+?^${}()|[\]\/\\]/g,di=w((function(t){var e=t[0].replace(fi,"\\$&"),r=t[1].replace(fi,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+r,"g")})),pi={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var r=In(t,"class");r&&(t.staticClass=JSON.stringify(r));var n=Pn(t,"class",!1);n&&(t.classBinding=n)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},hi={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var r=In(t,"style");r&&(t.staticStyle=JSON.stringify(ro(r)));var n=Pn(t,"style",!1);n&&(t.styleBinding=n)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},mi=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),vi=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),yi=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"),gi=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,bi=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,_i="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",wi="((?:"+_i+"\\:)?"+_i+")",Oi=new RegExp("^<"+wi),xi=/^\s*(\/?)>/,ki=new RegExp("^<\\/"+wi+"[^>]*>"),Ci=/^]+>/i,ji=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Di=/&(?:lt|gt|quot|amp|#39);/g,Ti=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Pi=m("pre,textarea",!0),Ii=function(t,e){return t&&Pi(t)&&"\n"===e[0]};function Fi(t,e){var r=e?Ti:Di;return t.replace(r,(function(t){return $i[t]}))}var Li,Ni,Mi,Ri,Hi,Ui,Bi,Ki,zi=/^@|^v-on:/,qi=/^v-|^@|^:|^#/,Vi=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Gi=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ji=/^\(|\)$/g,Zi=/^\[.*\]$/,Wi=/:(.*)$/,Qi=/^:|^\.|^v-bind:/,Xi=/\.[^.\]]+(?=[^\]]*$)/g,Yi=/^v-slot(:|$)|^#/,ts=/[\r\n]/,es=/\s+/g,rs=w((function(t){return(ui=ui||document.createElement("div")).innerHTML=t,ui.textContent})),ns="_empty_";function os(t,e,r){return{type:1,tag:t,attrsList:e,attrsMap:ls(e),rawAttrsMap:{},parent:r,children:[]}}function is(t,e){var r,n;(n=Pn(r=t,"key"))&&(r.key=n),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Pn(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=In(t,"scope"),t.slotScope=e||In(t,"slot-scope")):(e=In(t,"slot-scope"))&&(t.slotScope=e);var r=Pn(t,"slot");if(r&&(t.slotTarget='""'===r?'"default"':r,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Sn(t,"slot",r,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var n=Fn(t,Yi);if(n){var o=cs(n),i=o.name,s=o.dynamic;t.slotTarget=i,t.slotTargetDynamic=s,t.slotScope=n.value||ns}}else{var a=Fn(t,Yi);if(a){var c=t.scopedSlots||(t.scopedSlots={}),u=cs(a),l=u.name,f=u.dynamic,d=c[l]=os("template",[],t);d.slotTarget=l,d.slotTargetDynamic=f,d.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=d,!0})),d.slotScope=a.value||ns,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Pn(t,"name"))}(t),function(t){var e;(e=Pn(t,"is"))&&(t.component=e),null!=In(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var o=0;o-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),Tn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+s+");if(Array.isArray($$a)){var $$v="+(n?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Mn(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Mn(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Mn(e,"$$c")+"}",null,!0)}(t,n,o);else if("input"===i&&"radio"===s)!function(t,e,r){var n=r&&r.number,o=Pn(t,"value")||"null";An(t,"checked","_q("+e+","+(o=n?"_n("+o+")":o)+")"),Tn(t,"change",Mn(e,o),null,!0)}(t,n,o);else if("input"===i||"textarea"===i)!function(t,e,r){var n=t.attrsMap.type,o=r||{},i=o.lazy,s=o.number,a=o.trim,c=!i&&"range"!==n,u=i?"change":"range"===n?qn:"input",l="$event.target.value";a&&(l="$event.target.value.trim()"),s&&(l="_n("+l+")");var f=Mn(e,l);c&&(f="if($event.target.composing)return;"+f),An(t,"value","("+e+")"),Tn(t,u,f,null,!0),(a||s)&&Tn(t,"blur","$forceUpdate()")}(t,n,o);else if(!H.isReservedTag(i))return Nn(t,n,o),!1;return!0},text:function(t,e){e.value&&An(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&An(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:mi,mustUseProp:$r,canBeLeftOpenTag:vi,isReservedTag:zr,getTagNamespace:qr,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(vs)},gs=w((function(t){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var bs=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,_s=/\([^)]*?\);*$/,ws=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Os={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},xs={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"]},ks=function(t){return"if("+t+")return null;"},Cs={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ks("$event.target !== $event.currentTarget"),ctrl:ks("!$event.ctrlKey"),shift:ks("!$event.shiftKey"),alt:ks("!$event.altKey"),meta:ks("!$event.metaKey"),left:ks("'button' in $event && $event.button !== 0"),middle:ks("'button' in $event && $event.button !== 1"),right:ks("'button' in $event && $event.button !== 2")};function js(t,e){var r=e?"nativeOn:":"on:",n="",o="";for(var i in t){var s=As(t[i]);t[i]&&t[i].dynamic?o+=i+","+s+",":n+='"'+i+'":'+s+","}return n="{"+n.slice(0,-1)+"}",o?r+"_d("+n+",["+o.slice(0,-1)+"])":r+n}function As(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return As(t)})).join(",")+"]";var e=ws.test(t.value),r=bs.test(t.value),n=ws.test(t.value.replace(_s,""));if(t.modifiers){var o="",i="",s=[];for(var a in t.modifiers)if(Cs[a])i+=Cs[a],Os[a]&&s.push(a);else if("exact"===a){var c=t.modifiers;i+=ks(["ctrl","shift","alt","meta"].filter((function(t){return!c[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else s.push(a);return s.length&&(o+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Ss).join("&&")+")return null;"}(s)),i&&(o+=i),"function($event){"+o+(e?"return "+t.value+"($event)":r?"return ("+t.value+")($event)":n?"return "+t.value:t.value)+"}"}return e||r?t.value:"function($event){"+(n?"return "+t.value:t.value)+"}"}function Ss(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var r=Os[t],n=xs[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(r)+",$event.key,"+JSON.stringify(n)+")"}var Es={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(r){return"_b("+r+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:D},$s=function(t){this.options=t,this.warn=t.warn||Cn,this.transforms=jn(t.modules,"transformCode"),this.dataGenFns=jn(t.modules,"genData"),this.directives=E(E({},Es),t.directives);var e=t.isReservedTag||T;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ds(t,e){var r=new $s(e);return{render:"with(this){return "+(t?Ts(t,r):'_c("div")')+"}",staticRenderFns:r.staticRenderFns}}function Ts(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ps(t,e);if(t.once&&!t.onceProcessed)return Is(t,e);if(t.for&&!t.forProcessed)return Ls(t,e);if(t.if&&!t.ifProcessed)return Fs(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var r=t.slotName||'"default"',n=Hs(t,e),o="_t("+r+(n?","+n:""),i=t.attrs||t.dynamicAttrs?Ks((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:x(t.name),value:t.value,dynamic:t.dynamic}}))):null,s=t.attrsMap["v-bind"];return!i&&!s||n||(o+=",null"),i&&(o+=","+i),s&&(o+=(i?"":",null")+","+s),o+")"}(t,e);var r;if(t.component)r=function(t,e,r){var n=e.inlineTemplate?null:Hs(e,r,!0);return"_c("+t+","+Ns(e,r)+(n?","+n:"")+")"}(t.component,t,e);else{var n;(!t.plain||t.pre&&e.maybeComponent(t))&&(n=Ns(t,e));var o=t.inlineTemplate?null:Hs(t,e,!0);r="_c('"+t.tag+"'"+(n?","+n:"")+(o?","+o:"")+")"}for(var i=0;i>>0}(s):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(r+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var i=function(t,e){var r=t.children[0];if(r&&1===r.type){var n=Ds(r,e.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);i&&(r+=i+",")}return r=r.replace(/,$/,"")+"}",t.dynamicAttrs&&(r="_b("+r+',"'+t.tag+'",'+Ks(t.dynamicAttrs)+")"),t.wrapData&&(r=t.wrapData(r)),t.wrapListeners&&(r=t.wrapListeners(r)),r}function Ms(t){return 1===t.type&&("slot"===t.tag||t.children.some(Ms))}function Rs(t,e){var r=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!r)return Fs(t,e,Rs,"null");if(t.for&&!t.forProcessed)return Ls(t,e,Rs);var n=t.slotScope===ns?"":String(t.slotScope),o="function("+n+"){return "+("template"===t.tag?t.if&&r?"("+t.if+")?"+(Hs(t,e)||"undefined")+":undefined":Hs(t,e)||"undefined":Ts(t,e))+"}",i=n?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+o+i+"}"}function Hs(t,e,r,n,o){var i=t.children;if(i.length){var s=i[0];if(1===i.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var a=r?e.maybeComponent(s)?",1":",0":"";return""+(n||Ts)(s,e)+a}var c=r?function(t,e){for(var r=0,n=0;n]*>)","i")),d=t.replace(f,(function(t,r,n){return u=n.length,Si(l)||"noscript"===l||(r=r.replace(//g,"$1").replace(//g,"$1")),Ii(l,r)&&(r=r.slice(1)),e.chars&&e.chars(r),""}));c+=t.length-d.length,t=d,j(l,c-u,c)}else{var p=t.indexOf("<");if(0===p){if(ji.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h),c,c+h+3),x(h+3);continue}}if(Ai.test(t)){var m=t.indexOf("]>");if(m>=0){x(m+2);continue}}var v=t.match(Ci);if(v){x(v[0].length);continue}var y=t.match(ki);if(y){var g=c;x(y[0].length),j(y[1],g,c);continue}var b=k();if(b){C(b),Ii(b.tagName,t)&&x(1);continue}}var _=void 0,w=void 0,O=void 0;if(p>=0){for(w=t.slice(p);!(ki.test(w)||Oi.test(w)||ji.test(w)||Ai.test(w)||(O=w.indexOf("<",1))<0);)p+=O,w=t.slice(p);_=t.substring(0,p)}p<0&&(_=t),_&&x(_.length),e.chars&&_&&e.chars(_,c-_.length,c)}if(t===r){e.chars&&e.chars(t);break}}function x(e){c+=e,t=t.substring(e)}function k(){var e=t.match(Oi);if(e){var r,n,o={tagName:e[1],attrs:[],start:c};for(x(e[0].length);!(r=t.match(xi))&&(n=t.match(bi)||t.match(gi));)n.start=c,x(n[0].length),n.end=c,o.attrs.push(n);if(r)return o.unarySlash=r[1],x(r[0].length),o.end=c,o}}function C(t){var r=t.tagName,c=t.unarySlash;i&&("p"===n&&yi(r)&&j(n),a(r)&&n===r&&j(r));for(var u=s(r)||!!c,l=t.attrs.length,f=new Array(l),d=0;d=0&&o[s].lowerCasedTag!==a;s--);else s=0;if(s>=0){for(var u=o.length-1;u>=s;u--)e.end&&e.end(o[u].tag,r,i);o.length=s,n=s&&o[s-1].tag}else"br"===a?e.start&&e.start(t,[],!0,r,i):"p"===a&&(e.start&&e.start(t,[],!1,r,i),e.end&&e.end(t,r,i))}j()}(t,{warn:Li,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,i,s,l,f){var d=n&&n.ns||Ki(t);W&&"svg"===d&&(i=function(t){for(var e=[],r=0;rc&&(a.push(i=t.slice(c,o)),s.push(JSON.stringify(i)));var u=xn(n[1].trim());s.push("_s("+u+")"),a.push({"@binding":u}),c=o+n[0].length}return c':'
',Js.innerHTML.indexOf(" ")>0}var Xs=!!V&&Qs(!1),Ys=!!V&&Qs(!0),ta=w((function(t){var e=Jr(t);return e&&e.innerHTML})),ea=wr.prototype.$mount;wr.prototype.$mount=function(t,e){if((t=t&&Jr(t))===document.body||t===document.documentElement)return this;var r=this.$options;if(!r.render){var n=r.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=ta(n));else{if(!n.nodeType)return this;n=n.innerHTML}else t&&(n=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(n){var o=Ws(n,{outputSourceRange:!1,shouldDecodeNewlines:Xs,shouldDecodeNewlinesForHref:Ys,delimiters:r.delimiters,comments:r.comments},this),i=o.render,s=o.staticRenderFns;r.render=i,r.staticRenderFns=s}}return ea.call(this,t,e)},wr.compile=Ws,t.exports=wr}).call(this,r("yLpj"),r("URgk").setImmediate)},IfUw:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(t=this.selectedDocuments),this.startDraggingDocuments(t)},onDragEnd:function(){this.stopDraggingDocuments()}})},l=r("KHd+"),f=Object(l.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a",{staticClass:"list-item",class:{selected:t.is_selected},attrs:{draggable:!0,href:t.url,rel:"noopener noreferrer"},on:{click:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?null:e.metaKey?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey?null:(e.stopPropagation(),e.preventDefault(),t.onAddToSelection(e)):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),e.preventDefault(),t.onClicked(e))}],mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})},dblclick:function(e){return t.openDocument({document:t.document,folder:t.selectedFolder})},dragstart:t.onDragStart,dragend:t.onDragEnd}},[r("div",{staticClass:"list-item-label"},[r("img",{staticClass:"favicon",attrs:{src:t.document.favicon}}),t._v(" "),r("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.document.title))])]),t._v(" "),t.document.feed_item_states_count>0?r("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()])}),[],!1,null,null,null);e.default=f.exports},K93l:function(t,e,r){"use strict";t.exports=function(t){var e=!1;if(Array.isArray(this.items))for(var r=this.items.length,n=0;n127.5?"#000000":"#ffffff"}t.exports&&(e=t.exports=r),e.TEXTColor=r,r.findTextColor=function(t){const e=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;var r=t;if(/^(rgb|RGB)/.test(r))return o(r.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","));if(e.test(r)){var n=t.toLowerCase();if(n&&e.test(n)){if(4===n.length){for(var i="#",s=1;s<4;s+=1)i+=n.slice(s,s+1).concat(n.slice(s,s+1));n=i}var a=[];for(s=1;s<7;s+=2)a.push(parseInt("0x"+n.slice(s,s+2)));return o(a)}return!1}return!1},void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()},L2JU:function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return x})),r.d(e,"c",(function(){return O}));var n=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var r,n=(r=function(e){return e.original===t},e.filter(r)[0]);if(n)return n.copy;var i=Array.isArray(t)?[]:{};return e.push({original:t,copy:i}),Object.keys(t).forEach((function(r){i[r]=o(t[r],e)})),i}function i(t,e){Object.keys(t).forEach((function(r){return e(t[r],r)}))}function s(t){return null!==t&&"object"==typeof t}var a=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=("function"==typeof r?r():r)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(t,e){this._children[t]=e},a.prototype.removeChild=function(t){delete this._children[t]},a.prototype.getChild=function(t){return this._children[t]},a.prototype.hasChild=function(t){return t in this._children},a.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},a.prototype.forEachChild=function(t){i(this._children,t)},a.prototype.forEachGetter=function(t){this._rawModule.getters&&i(this._rawModule.getters,t)},a.prototype.forEachAction=function(t){this._rawModule.actions&&i(this._rawModule.actions,t)},a.prototype.forEachMutation=function(t){this._rawModule.mutations&&i(this._rawModule.mutations,t)},Object.defineProperties(a.prototype,c);var u=function(t){this.register([],t,!1)};u.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},u.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,r){return t+((e=e.getChild(r)).namespaced?r+"/":"")}),"")},u.prototype.update=function(t){!function t(e,r,n){0;if(r.update(n),n.modules)for(var o in n.modules){if(!r.getChild(o))return void 0;t(e.concat(o),r.getChild(o),n.modules[o])}}([],this.root,t)},u.prototype.register=function(t,e,r){var n=this;void 0===r&&(r=!0);var o=new a(e,r);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);e.modules&&i(e.modules,(function(e,o){n.register(t.concat(o),e,r)}))},u.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1],n=e.getChild(r);n&&n.runtime&&e.removeChild(r)},u.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1];return e.hasChild(r)};var l;var f=function(t){var e=this;void 0===t&&(t={}),!l&&"undefined"!=typeof window&&window.Vue&&b(window.Vue);var r=t.plugins;void 0===r&&(r=[]);var o=t.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new u(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var i=this,s=this.dispatch,a=this.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,r){return a.call(i,t,e,r)},this.strict=o;var c=this._modules.root.state;v(this,c,[],this._modules.root),m(this,c),r.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:l.config.devtools)&&function(t){n&&(t._devtoolHook=n,n.emit("vuex:init",t),n.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){n.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){n.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},d={state:{configurable:!0}};function p(t,e,r){return e.indexOf(t)<0&&(r&&r.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function h(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;v(t,r,[],t._modules.root,!0),m(t,r,e)}function m(t,e,r){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,s={};i(o,(function(e,r){s[r]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,r,{get:function(){return t._vm[r]},enumerable:!0})}));var a=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:s}),l.config.silent=a,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),n&&(r&&t._withCommit((function(){n._data.$$state=null})),l.nextTick((function(){return n.$destroy()})))}function v(t,e,r,n,o){var i=!r.length,s=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=n),!i&&!o){var a=y(e,r.slice(0,-1)),c=r[r.length-1];t._withCommit((function(){l.set(a,c,n.state)}))}var u=n.context=function(t,e,r){var n=""===e,o={dispatch:n?t.dispatch:function(r,n,o){var i=g(r,n,o),s=i.payload,a=i.options,c=i.type;return a&&a.root||(c=e+c),t.dispatch(c,s)},commit:n?t.commit:function(r,n,o){var i=g(r,n,o),s=i.payload,a=i.options,c=i.type;a&&a.root||(c=e+c),t.commit(c,s,a)}};return Object.defineProperties(o,{getters:{get:n?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,n)===e){var i=o.slice(n);Object.defineProperty(r,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return y(t.state,r)}}}),o}(t,s,r);n.forEachMutation((function(e,r){!function(t,e,r,n){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){r.call(t,n.state,e)}))}(t,s+r,e,u)})),n.forEachAction((function(e,r){var n=e.root?r:s+r,o=e.handler||e;!function(t,e,r,n){(t._actions[e]||(t._actions[e]=[])).push((function(e){var o,i=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,n,o,u)})),n.forEachGetter((function(e,r){!function(t,e,r,n){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return r(n.state,n.getters,t.state,t.getters)}}(t,s+r,e,u)})),n.forEachChild((function(n,i){v(t,e,r.concat(i),n,o)}))}function y(t,e){return e.reduce((function(t,e){return t[e]}),t)}function g(t,e,r){return s(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}function b(t){l&&t===l||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:r});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,e.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l=t)}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,r){var n=this,o=g(t,e,r),i=o.type,s=o.payload,a=(o.options,{type:i,payload:s}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(a,n.state)})))},f.prototype.dispatch=function(t,e){var r=this,n=g(t,e),o=n.type,i=n.payload,s={type:o,payload:i},a=this._actions[o];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,r.state)}))}catch(t){0}var c=a.length>1?Promise.all(a.map((function(t){return t(i)}))):a[0](i);return new Promise((function(t,e){c.then((function(e){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,r.state)}))}catch(t){0}t(e)}),(function(t){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,r.state,t)}))}catch(t){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){return p("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},f.prototype.watch=function(t,e,r){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,r)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,r){void 0===r&&(r={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),r.preserveState),m(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var r=y(e.state,t.slice(0,-1));l.delete(r,t[t.length-1])})),h(this)},f.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype.hotUpdate=function(t){this._modules.update(t),h(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var _=C((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){var e=this.$store.state,r=this.$store.getters;if(t){var n=j(this.$store,"mapState",t);if(!n)return;e=n.context.state,r=n.context.getters}return"function"==typeof o?o.call(this,e,r):e[o]},r[n].vuex=!0})),r})),w=C((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.commit;if(t){var i=j(this.$store,"mapMutations",t);if(!i)return;n=i.context.commit}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r})),O=C((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;o=t+o,r[n]=function(){if(!t||j(this.$store,"mapGetters",t))return this.$store.getters[o]},r[n].vuex=!0})),r})),x=C((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.dispatch;if(t){var i=j(this.$store,"mapActions",t);if(!i)return;n=i.context.dispatch}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r}));function k(t){return function(t){return Array.isArray(t)||s(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function C(t){return function(e,r){return"string"!=typeof e?(r=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,r)}}function j(t,e,r){return t._modulesNamespaceMap[r]}function A(t,e,r){var n=r?t.groupCollapsed:t.group;try{n.call(t,e)}catch(r){t.log(e)}}function S(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function E(){var t=new Date;return" @ "+$(t.getHours(),2)+":"+$(t.getMinutes(),2)+":"+$(t.getSeconds(),2)+"."+$(t.getMilliseconds(),3)}function $(t,e){return r="0",n=e-t.toString().length,new Array(n+1).join(r)+t;var r,n}var D={Store:f,install:b,version:"3.5.1",mapState:_,mapMutations:w,mapGetters:O,mapActions:x,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:O.bind(null,t),mapMutations:w.bind(null,t),mapActions:x.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var r=t.filter;void 0===r&&(r=function(t,e,r){return!0});var n=t.transformer;void 0===n&&(n=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var s=t.actionFilter;void 0===s&&(s=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=o(t.state);void 0!==l&&(c&&t.subscribe((function(t,s){var a=o(s);if(r(t,f,a)){var c=E(),u=i(t),d="mutation "+t.type+c;A(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",n(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",n(a)),S(l)}f=a})),u&&t.subscribeAction((function(t,r){if(s(t,r)){var n=E(),o=a(t),i="action "+t.type+n;A(l,i,e),l.log("%c action","color: #03A9F4; font-weight: bold",o),S(l)}})))}}};e.a=D}).call(this,r("yLpj"))},Lcjm:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){var t=n(this.items),e=void 0,r=void 0,o=void 0;for(o=t.length;o;o-=1)e=Math.floor(Math.random()*o),r=t[o-1],t[o-1]=t[e],t[e]=r;return this.items=t,this}},LlWW:function(t,e,r){"use strict";t.exports=function(t){return this.sortBy(t).reverse()}},LpLF:function(t,e,r){"use strict";t.exports=function(t){var e=this,r=t;r instanceof this.constructor&&(r=r.all());var n=this.items.map((function(t,n){return new e.constructor([t,r[n]])}));return new this.constructor(n)}},Lzbe:function(t,e,r){"use strict";t.exports=function(t,e){var r=this.items.slice(t);return void 0!==e&&(r=r.slice(0,e)),new this.constructor(r)}},M1FP:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().forEach((function(r){e[r]=t.items[r]})),new this.constructor(e)}},MIHw:function(t,e,r){"use strict";t.exports=function(t,e){return this.where(t,">=",e[0]).where(t,"<=",e[e.length-1])}},MSmq:function(t,e,r){"use strict";t.exports=function(t){var e=this,r=t;t instanceof this.constructor&&(r=t.all());var n={};return Object.keys(this.items).forEach((function(t){void 0!==r[t]&&r[t]===e.items[t]||(n[t]=e.items[t])})),new this.constructor(n)}},NAvP:function(t,e,r){"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var r=Object.keys(e),n=Object.keys(this.items).filter((function(t){return-1===r.indexOf(t)}));return new this.constructor(this.items).only(n)}},OKMW:function(t,e,r){"use strict";t.exports=function(t,e,r){return this.where(t,e,r).first()||null}},Ob7M:function(t,e,r){"use strict";t.exports=function(t){return new this.constructor(this.items).filter((function(e){return!t(e)}))}},OxKB:function(t,e,r){"use strict";t.exports=function(t){return Array.isArray(t[0])?t[0]:t}},Pu7b:function(t,e,r){"use strict";var n=r("0tQ4"),o=r("SIfw").isFunction;t.exports=function(t){var e=this,r={};return this.items.forEach((function(i,s){var a=void 0;a=o(t)?t(i,s):n(i,t)||0===n(i,t)?n(i,t):"",void 0===r[a]&&(r[a]=new e.constructor([])),r[a].push(i)})),new this.constructor(r)}},QSc6:function(t,e,r){"use strict";var n=r("0jNN"),o=r("sxOR"),i=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Array.isArray,c=Array.prototype.push,u=function(t,e){c.apply(t,a(e)?e:[e])},l=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,r,o,i,s,c,l,d,p,h,m,v,y){var g=e;if("function"==typeof l?g=l(r,g):g instanceof Date?g=h(g):"comma"===o&&a(g)&&(g=g.join(",")),null===g){if(i)return c&&!v?c(r,f.encoder,y):r;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||n.isBuffer(g))return c?[m(v?r:c(r,f.encoder,y))+"="+m(c(g,f.encoder,y))]:[m(r)+"="+m(String(g))];var b,_=[];if(void 0===g)return _;if(a(l))b=l;else{var w=Object.keys(g);b=d?w.sort(d):w}for(var O=0;O0?g+y:""}},Qyje:function(t,e,r){"use strict";var n=r("QSc6"),o=r("nmq7"),i=r("sxOR");t.exports={formats:i,parse:o,stringify:n}},RB6r:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;eo?1:0})),new this.constructor(e)}},RR3J:function(t,e,r){"use strict";t.exports=function(t){var e=t;t instanceof this.constructor&&(e=t.all());var r=this.items.filter((function(t){return-1!==e.indexOf(t)}));return new this.constructor(r)}},RVo9:function(t,e,r){"use strict";t.exports=function(t,e){if(Array.isArray(this.items)&&this.items.length)return t(this);if(Object.keys(this.items).length)return t(this);if(void 0!==e){if(Array.isArray(this.items)&&!this.items.length)return e(this);if(!Object.keys(this.items).length)return e(this)}return this}},RtnH:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().reverse().forEach((function(r){e[r]=t.items[r]})),new this.constructor(e)}},Rx9r:function(t,e,r){"use strict";var n="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=r("ytFn");t.exports=function(t){var e=t;t instanceof this.constructor?e=t.all():"object"===(void 0===t?"undefined":n(t))&&(e=[],Object.keys(t).forEach((function(r){e.push(t[r])})));var r=o(this.items);return e.forEach((function(t){"object"===(void 0===t?"undefined":n(t))?Object.keys(t).forEach((function(e){return r.push(t[e])})):r.push(t)})),new this.constructor(r)}},SIfw:function(t,e,r){"use strict";var n="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.exports={isArray:function(t){return Array.isArray(t)},isObject:function(t){return"object"===(void 0===t?"undefined":n(t))&&!1===Array.isArray(t)&&null!==t},isFunction:function(t){return"function"==typeof t}}},T3CM:function(t,e,r){"use strict";r.r(e);var n=r("o0o1"),o=r.n(n);function i(t,e,r,n,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var s=t.apply(e,r);function a(t){i(s,n,o,a,c,"next",t)}function c(t){i(s,n,o,a,c,"throw",t)}a(void 0)}))}}var a,c,u={data:function(){return{highlights:highlights,newExpression:null,newColor:null}},computed:{sortedHighlights:function(){return collect(this.highlights).sortBy("expression")}},methods:{addHighlight:(c=s(o.a.mark((function t(){var e;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=this).newExpression){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,api.post(route("highlight.store"),{expression:e.newExpression,color:e.newColor});case 5:e.highlights=t.sent,e.newExpression=null,e.newColor=null;case 8:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)}),onDestroy:(a=s(o.a.mark((function t(e){var r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,t.next=3,api.delete(route("highlight.destroy",e));case 3:r.highlights=t.sent;case 4:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})}},l=r("KHd+"),f=Object(l.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("table",{staticClass:"w-full"},[r("thead",[r("tr",[r("th",{staticClass:"w-1/2"},[t._v(t._s(t.__("Expression")))]),t._v(" "),r("th",{staticClass:"w-1/4"},[t._v(t._s(t.__("Color")))]),t._v(" "),r("th")]),t._v(" "),r("tr",[r("td",{staticClass:"w-1/2"},[r("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.newExpression,expression:"newExpression",modifiers:{lazy:!0}}],staticClass:"w-full",attrs:{type:"text","aria-label":t.__("Expression")},domProps:{value:t.newExpression},on:{change:function(e){t.newExpression=e.target.value}}})]),t._v(" "),r("td",{staticClass:"w-1/4"},[r("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.newColor,expression:"newColor",modifiers:{lazy:!0}}],staticClass:"w-full",attrs:{type:"color","aria-label":t.__("Color")},domProps:{value:t.newColor},on:{change:function(e){t.newColor=e.target.value}}})]),t._v(" "),r("td",[r("button",{staticClass:"success",attrs:{type:"submit",title:t.__("Add highlight")},on:{click:t.addHighlight}},[r("svg",{attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("add")}})])])])])]),t._v(" "),r("tbody",t._l(t.sortedHighlights,(function(e){return r("highlight",{key:e.id,attrs:{highlight:e},on:{destroy:t.onDestroy}})})),1)])}),[],!1,null,null,null);e.default=f.exports},TWr4:function(t,e,r){"use strict";var n=r("SIfw"),o=n.isArray,i=n.isObject,s=n.isFunction;t.exports=function(t){var e=this,r=null,n=void 0,a=function(e){return e===t};return s(t)&&(a=t),o(this.items)&&(n=this.items.filter((function(t){return!0!==r&&(r=!a(t)),r}))),i(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!0!==r&&(r=!a(e.items[n])),!1!==r&&(t[n]=e.items[n]),t}),{})),new this.constructor(n)}},TZAN:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("0tQ4");t.exports=function(t,e){var r=n(e),i=this.items.filter((function(e){return-1!==r.indexOf(o(e,t))}));return new this.constructor(i)}},"UH+N":function(t,e,r){"use strict";t.exports=function(t){var e=this,r=JSON.parse(JSON.stringify(this.items));return Object.keys(t).forEach((function(n){void 0===e.items[n]&&(r[n]=t[n])})),new this.constructor(r)}},URgk:function(t,e,r){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(n,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))},r("YBdB"),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,r("yLpj"))},UY0H:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){return new this.constructor(n(this.items))}},UgDP:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("0tQ4");t.exports=function(t,e){var r=n(e),i=this.items.filter((function(e){return-1===r.indexOf(o(e,t))}));return new this.constructor(i)}},UnNl:function(t,e,r){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"===",null)}},Ww0C:function(t,e,r){"use strict";t.exports=function(){return this.sort().reverse()}},XuX8:function(t,e,r){t.exports=r("INkZ")},YBdB:function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var n,o,i,s,a,c=1,u={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},n=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,n=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):n=function(t){setTimeout(h,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&h(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),n=function(e){t.postMessage(s+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r2&&void 0!==r[2]?r[2]:"POST",s=r.length>3&&void 0!==r[3]&&r[3],c=a,s&&(c["Content-Type"]="multipart/form-data"),u={method:i,headers:c},e&&(u.body=s?e:JSON.stringify(e)),n.next=8,fetch(t,u);case 8:return l=n.sent,n.prev=9,n.next=12,l.json();case 12:return f=n.sent,n.abrupt("return",f);case 16:return n.prev=16,n.t0=n.catch(9),n.abrupt("return",l);case 19:case"end":return n.stop()}}),n,null,[[9,16]])})))()},get:function(t){var e=this;return s(o.a.mark((function r(){return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",e.send(t,null,"GET"));case 1:case"end":return r.stop()}}),r)})))()},post:function(t,e){var r=arguments,n=this;return s(o.a.mark((function i(){var s;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=r.length>2&&void 0!==r[2]&&r[2],o.abrupt("return",n.send(t,e,"POST",s));case 2:case"end":return o.stop()}}),i)})))()},put:function(t,e){var r=this;return s(o.a.mark((function n(){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.send(t,e,"PUT"));case 1:case"end":return n.stop()}}),n)})))()},delete:function(t,e){var r=this;return s(o.a.mark((function n(){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.send(t,e,"DELETE"));case 1:case"end":return n.stop()}}),n)})))()}};window.Vue=r("XuX8"),window.collect=r("j5l6"),window.api=c,r("zhh1")},c993:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("a",{staticClass:"button info ml-2",attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),r("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[r("div",{domProps:{innerHTML:t._s(t.feedItem.content?t.feedItem.content:t.feedItem.description)}}),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("URL")))]),t._v(" "),r("dd",[r("a",{attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[t._v(t._s(t.feedItem.url))])]),t._v(" "),r("dt",[t._v(t._s(t.__("Date of item's creation")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.feedItem.created_at,calendar:!0}})],1),t._v(" "),r("dt",[t._v(t._s(t.__("Date of item's publication")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.feedItem.published_at,calendar:!0}})],1),t._v(" "),r("dt",[t._v(t._s(t.__("Published in")))]),t._v(" "),r("dd",t._l(t.feedItem.feeds,(function(e){return r("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500"},[r("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),r("div",{staticClass:"py-0.5"},[t._v(t._s(e.title))])])})),0)])])])}),[],!1,null,null,null);e.default=u.exports},cZbx:function(t,e,r){"use strict";var n="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.exports=function(t){return t instanceof this.constructor?t:"object"===(void 0===t?"undefined":n(t))?new this.constructor(t):new this.constructor([t])}},clGK:function(t,e,r){"use strict";t.exports=function(t,e,r){t?r(this):e(this)}},dydJ:function(t,e,r){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o="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.exports=function(t){var e=this,r=t;r instanceof this.constructor&&(r=t.all());var i={};if(Array.isArray(this.items)&&Array.isArray(r))this.items.forEach((function(t,e){i[t]=r[e]}));else if("object"===o(this.items)&&"object"===(void 0===r?"undefined":o(r)))Object.keys(this.items).forEach((function(t,n){i[e.items[t]]=r[Object.keys(r)[n]]}));else if(Array.isArray(this.items))i[this.items[0]]=r;else if("string"==typeof this.items&&Array.isArray(r)){var s=n(r,1);i[this.items]=s[0]}else"string"==typeof this.items&&(i[this.items]=r);return new this.constructor(i)}},epP6:function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?r("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]),t._v(" "),t.folder.feed_item_states_count>0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e()]),t._v(" "),r("div",{staticClass:"body"},["folder"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("folder.update",t.folder)},on:{submit:function(e){return e.preventDefault(),t.onUpdateFolder(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{attrs:{type:"text",name:"title"},domProps:{value:t.folder.title},on:{input:function(e){t.updateFolderTitle=e.target.value}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("update")}})]),t._v("\n "+t._s(t.__("Update folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("folder.store")},on:{submit:function(e){return e.preventDefault(),t.onAddFolder(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.addFolderTitle,expression:"addFolderTitle"}],attrs:{type:"text"},domProps:{value:t.addFolderTitle},on:{input:function(e){e.target.composing||(t.addFolderTitle=e.target.value)}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("document.store")},on:{submit:function(e){return e.preventDefault(),t.onAddDocument(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.addDocumentUrl,expression:"addDocumentUrl"}],attrs:{type:"url"},domProps:{value:t.addDocumentUrl},on:{input:function(e){e.target.composing||(t.addDocumentUrl=e.target.value)}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add document"))+"\n ")])])]),t._v(" "),"folder"===t.folder.type?r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteFolder}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])]):t._e()])])}),[],!1,null,null,null);e.default=u.exports},l9N6:function(t,e,r){"use strict";var n="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 o(t){if(Array.isArray(t)){if(t.length)return!1}else if(null!=t&&"object"===(void 0===t?"undefined":n(t))){if(Object.keys(t).length)return!1}else if(t)return!1;return!0}t.exports=function(t){var e=t||!1,r=null;return r=Array.isArray(this.items)?function(t,e){if(t)return e.filter(t);for(var r=[],n=0;n":return o(e,t)!==Number(s)&&o(e,t)!==s.toString();case"!==":return o(e,t)!==s;case"<":return o(e,t)":return o(e,t)>s;case">=":return o(e,t)>=s}}));return new this.constructor(c)}},lfA6:function(t,e,r){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var e=this,r={};return Array.isArray(this.items)?this.items.forEach((function(e){var o=t(e),i=n(o,2),s=i[0],a=i[1];r[s]=a})):Object.keys(this.items).forEach((function(o){var i=t(e.items[o]),s=n(i,2),a=s[0],c=s[1];r[a]=c})),new this.constructor(r)}},lflG:function(t,e,r){"use strict";t.exports=function(){return!this.isEmpty()}},lpfs:function(t,e,r){"use strict";t.exports=function(t){return t(this),this}},ls82:function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function a(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),s=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var a=_(s,r);if(a){if(a===l)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,s),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function f(){}function d(){}function p(){}var h={};h[o]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(k([])));v&&v!==e&&r.call(v,o)&&(h=v);var y=p.prototype=f.prototype=Object.create(h);function g(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var n;this._invoke=function(o,i){function s(){return new e((function(n,s){!function n(o,i,s,a){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,a)}))}a(c.arg)}(o,i,n,s)}))}return n=n?n.then(s,s):s()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(a&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},lwQh:function(t,e,r){"use strict";t.exports=function(){var t=0;return Array.isArray(this.items)&&(t=this.items.length),Math.max(Object.keys(this.items).length,t)}},mNb9:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=n(this.items),r=new this.constructor(e).shuffle();return t!==parseInt(t,10)?r.first():r.take(t)}},nHqO:function(t,e,r){"use strict";var n=r("OxKB");t.exports=function(){for(var t=this,e=arguments.length,r=Array(e),o=0;o=0;--o){var i,s=t[o];if("[]"===s&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(a,10);r.parseArrays||""!==a?!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[a]=n:i={0:n}}n=i}return n}(c,e,r)}};t.exports=function(t,e){var r=function(t){if(!t)return i;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?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth?t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var r,a={},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,u=e.parameterLimit===1/0?void 0:e.parameterLimit,l=c.split(e.delimiter,u),f=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(h=h.split(",")),o.call(a,p)?a[p]=n.combine(a[p],h):a[p]=h}return a}(t,r):t,u=r.plainObjects?Object.create(null):{},l=Object.keys(c),f=0;f0?r("div",[r("h2",[t._v(t._s(t.__("Community themes")))]),t._v(" "),r("p",[t._v(t._s(t.__("These themes were hand-picked by Cyca's author.")))]),t._v(" "),r("div",{staticClass:"themes-category"},t._l(t.themes.community,(function(e,n){return r("theme-card",{key:n,attrs:{repository_url:e,name:n,is_selected:n===t.selected},on:{selected:function(e){return t.useTheme(n)}}})})),1)]):t._e()])}),[],!1,null,null,null);e.default=l.exports},qBwO:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s={data:function(){return{selectedFeeds:[]}},computed:function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return new this.constructor(this.items).groupBy(t).map((function(t){return t.count()}))}},qigg:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e=t.target.scrollHeight&&this.canLoadMore&&this.loadMoreFeedItems()}})},c=r("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"feeditems-list"},on:{"&scroll":function(e){return t.onScroll(e)}}},t._l(t.sortedList,(function(e){return r("feed-item",{key:e.id,attrs:{feedItem:e},on:{"selected-feeditems-changed":t.onSelectedFeedItemsChanged}})})),1)}),[],!1,null,null,null);e.default=u.exports},qj89:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("SIfw").isFunction;t.exports=function(t,e){if(void 0!==e)return Array.isArray(this.items)?this.items.filter((function(r){return void 0!==r[t]&&r[t]===e})).length>0:void 0!==this.items[t]&&this.items[t]===e;if(o(t))return this.items.filter((function(e,r){return t(e,r)})).length>0;if(Array.isArray(this.items))return-1!==this.items.indexOf(t);var r=n(this.items);return r.push.apply(r,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);er&&(r=i)}else void 0!==t?e.push({key:n[t],count:1}):e.push({key:n,count:1})})),e.filter((function(t){return t.count===r})).map((function(t){return t.key}))):null}},t9qg:function(t,e,r){"use strict";t.exports=function(t,e){var r=this,n={};return Array.isArray(this.items)?n=this.items.slice(t*e-e,t*e):Object.keys(this.items).slice(t*e-e,t*e).forEach((function(t){n[t]=r.items[t]})),new this.constructor(n)}},tNWF:function(t,e,r){"use strict";t.exports=function(t,e){var r=this,n=null;return void 0!==e&&(n=e),Array.isArray(this.items)?this.items.forEach((function(e){n=t(n,e)})):Object.keys(this.items).forEach((function(e){n=t(n,r.items[e],e)})),n}},tiHo:function(t,e,r){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new this.constructor(t)}},tpAN:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0?r("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()]),t._v(" "),r("div",{staticClass:"flex items-center"},[t.document.feed_item_states_count>0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("a",{staticClass:"button info ml-2",attrs:{href:t.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))},mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})}}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),r("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[t.document.description?r("div",{domProps:{innerHTML:t._s(t.document.description)}}):t._e(),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),r("dd",[r("a",{attrs:{href:t.document.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))}}},[t._v(t._s(t.document.url))])]),t._v(" "),t.document.bookmark.visits?r("dt",[t._v(t._s(t.__("Visits")))]):t._e(),t._v(" "),t.document.bookmark.visits?r("dd",[t._v(t._s(t.document.bookmark.visits))]):t._e(),t._v(" "),r("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.document.checked_at,calendar:!0}})],1),t._v(" "),t.dupplicateInFolders.length>0?r("dt",[t._v(t._s(t.__("Also exists in")))]):t._e(),t._v(" "),t.dupplicateInFolders.length>0?r("dd",t._l(t.dupplicateInFolders,(function(e){return r("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500",on:{click:function(r){return t.$emit("folder-selected",e)}}},[r("svg",{staticClass:"favicon",class:e.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon(e.icon)}})]),t._v(" "),r("span",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(e.title))])])})),0):t._e()]),t._v(" "),t.document.feeds&&t.document.feeds.length>0?r("h2",[t._v(t._s(t.__("Feeds")))]):t._e(),t._v(" "),t._l(t.document.feeds,(function(e){return r("div",{key:e.id,staticClass:"rounded bg-gray-600 mb-2 p-2"},[r("div",{staticClass:"flex justify-between items-center"},[r("div",{staticClass:"flex items-center my-0 py-0"},[r("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),r("div",[t._v(t._s(e.title))])]),t._v(" "),e.is_ignored?r("button",{staticClass:"button success",on:{click:function(r){return t.follow(e)}}},[t._v(t._s(t.__("Follow")))]):t._e(),t._v(" "),e.is_ignored?t._e():r("button",{staticClass:"button danger",on:{click:function(r){return t.ignore(e)}}},[t._v(t._s(t.__("Ignore")))])]),t._v(" "),e.description?r("div",{domProps:{innerHTML:t._s(e.description)}}):t._e(),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),r("dd",[r("div",[t._v(t._s(e.url))])]),t._v(" "),r("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:e.checked_at,calendar:!0}})],1)])])})),t._v(" "),r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},u4XC:function(t,e,r){"use strict";var n="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.exports=function(t){var e=this,r=[],o=0;if(Array.isArray(this.items))do{var i=this.items.slice(o,o+t),s=new this.constructor(i);r.push(s),o+=t}while(o1&&void 0!==arguments[1]?arguments[1]:0,r=n(this.items),o=r.slice(e).filter((function(e,r){return r%t==0}));return new this.constructor(o)}},"x+iC":function(t,e,r){"use strict";t.exports=function(t,e){var r=this.values();if(void 0===e)return r.implode(t);var n=r.count();if(0===n)return"";if(1===n)return r.last();var o=r.pop();return r.implode(t)+e+o}},xA6t:function(t,e,r){"use strict";var n=r("0tQ4");t.exports=function(t,e){return this.filter((function(r){return n(r,t)e[e.length-1]}))}},xWoM:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Array.isArray(this.items)?Object.keys(this.items).forEach((function(r){e[t.items[r]]=Number(r)})):Object.keys(this.items).forEach((function(r){e[t.items[r]]=r})),new this.constructor(e)}},xazZ:function(t,e,r){"use strict";t.exports=function(t){return this.filter((function(e){return e instanceof t}))}},xgus:function(t,e,r){"use strict";var n=r("SIfw").isObject;t.exports=function(t){var e=this;return n(this.items)?new this.constructor(Object.keys(this.items).reduce((function(r,n,o){return o+1>t&&(r[n]=e.items[n]),r}),{})):new this.constructor(this.items.slice(t))}},xi9Z:function(t,e,r){"use strict";t.exports=function(t,e){return void 0===e?this.items.join(t):new this.constructor(this.items).pluck(t).all().join(e)}},yLpj:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},ysnW:function(t,e,r){var n={"./DateTime.vue":"YrHs","./Details/DetailsDocument.vue":"tpAN","./Details/DetailsDocuments.vue":"2FZ/","./Details/DetailsFeedItem.vue":"c993","./Details/DetailsFolder.vue":"l2C0","./DocumentItem.vue":"IfUw","./DocumentsList.vue":"qBwO","./FeedItem.vue":"+CwO","./FeedItemsList.vue":"qigg","./FolderItem.vue":"4VNc","./FoldersTree.vue":"RB6r","./Highlight.vue":"AmQ0","./Highlights.vue":"T3CM","./Importer.vue":"gDOT","./Importers/ImportFromCyca.vue":"wT45","./ThemeCard.vue":"CV10","./ThemesBrowser.vue":"pKhy"};function o(t){var e=i(t);return r(e)}function i(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}o.keys=function(){return Object.keys(n)},o.resolve=i,t.exports=o,o.id="ysnW"},ytFn:function(t,e,r){"use strict";t.exports=function(t){var e,r=void 0;Array.isArray(t)?(e=r=[]).push.apply(e,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e3&&void 0!==arguments[3]?arguments[3]:null;return a(this,v),(n=m.call(this)).name=t,n.absolute=r,n.ziggy=i||Ziggy,n.urlBuilder=n.name?new o(t,r,n.ziggy):null,n.template=n.urlBuilder?n.urlBuilder.construct():"",n.urlParams=n.normalizeParams(e),n.queryParams={},n.hydrated="",n}return n=v,(l=[{key:"normalizeParams",value:function(t){return void 0===t?{}:((t="object"!==s(t)?[t]:t).hasOwnProperty("id")&&-1==this.template.indexOf("{id}")&&(t=[t.id]),this.numericParamIndices=Array.isArray(t),Object.assign({},t))}},{key:"with",value:function(t){return this.urlParams=this.normalizeParams(t),this}},{key:"withQuery",value:function(t){return Object.assign(this.queryParams,t),this}},{key:"hydrateUrl",value:function(){var t=this;if(this.hydrated)return this.hydrated;var e=this.template.replace(/{([^}]+)}/gi,(function(e,r){var n,o,i=t.trimParam(e);if(t.ziggy.defaultParameters.hasOwnProperty(i)&&(n=t.ziggy.defaultParameters[i]),n&&!t.urlParams[i])return delete t.urlParams[i],n;if(t.numericParamIndices?(t.urlParams=Object.values(t.urlParams),o=t.urlParams.shift()):(o=t.urlParams[i],delete t.urlParams[i]),null==o){if(-1===e.indexOf("?"))throw new Error("Ziggy Error: '"+i+"' key is required for route '"+t.name+"'");return""}return o.id?encodeURIComponent(o.id):encodeURIComponent(o)}));return null!=this.urlBuilder&&""!==this.urlBuilder.path&&(e=e.replace(/\/+$/,"")),this.hydrated=e,this.hydrated}},{key:"matchUrl",value:function(){var t=window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname,e=this.template.replace(/(\/\{[^\}]*\?\})/g,"/").replace(/(\{[^\}]*\})/gi,"[^/?]+").replace(/\/?$/,"").split("://")[1],r=this.template.replace(/(\{[^\}]*\})/gi,"[^/?]+").split("://")[1],n=t.replace(/\/?$/,"/"),o=new RegExp("^"+r+"/$").test(n),i=new RegExp("^"+e+"/$").test(n);return o||i}},{key:"constructQuery",value:function(){if(0===Object.keys(this.queryParams).length&&0===Object.keys(this.urlParams).length)return"";var t=Object.assign(this.urlParams,this.queryParams);return Object(i.stringify)(t,{encodeValuesOnly:!0,skipNulls:!0,addQueryPrefix:!0,arrayFormat:"indices"})}},{key:"current",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=Object.keys(this.ziggy.namedRoutes),n=r.filter((function(e){return-1!==t.ziggy.namedRoutes[e].methods.indexOf("GET")&&new v(e,void 0,void 0,t.ziggy).matchUrl()}))[0];if(e){var o=new RegExp("^"+e.replace(".","\\.").replace("*",".*")+"$","i");return o.test(n)}return n}},{key:"check",value:function(t){return Object.keys(this.ziggy.namedRoutes).includes(t)}},{key:"extractParams",value:function(t,e,r){var n=this,o=t.split(r);return e.split(r).reduce((function(t,e,r){return 0===e.indexOf("{")&&-1!==e.indexOf("}")&&o[r]?Object.assign(t,(i={},s=n.trimParam(e),a=o[r],s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i)):t;var i,s,a}),{})}},{key:"parse",value:function(){this.return=this.hydrateUrl()+this.constructQuery()}},{key:"url",value:function(){return this.parse(),this.return}},{key:"toString",value:function(){return this.url()}},{key:"trimParam",value:function(t){return t.replace(/{|}|\?/g,"")}},{key:"valueOf",value:function(){return this.url()}},{key:"params",get:function(){var t=this.ziggy.namedRoutes[this.current()];return Object.assign(this.extractParams(window.location.hostname,t.domain||"","."),this.extractParams(window.location.pathname.slice(1),t.uri,"/"))}}])&&c(n.prototype,l),f&&c(n,f),v}(l(String));function v(t,e,r,n){return new m(t,e,r,n)}var y={namedRoutes:{account:{uri:"account",methods:["GET","HEAD"],domain:null},home:{uri:"/",methods:["GET","HEAD"],domain:null},"account.password":{uri:"account/password",methods:["GET","HEAD"],domain:null},"account.theme":{uri:"account/theme",methods:["GET","HEAD"],domain:null},"account.setTheme":{uri:"account/theme",methods:["POST"],domain:null},"account.theme.details":{uri:"account/theme/details/{name}",methods:["GET","HEAD"],domain:null},"account.getThemes":{uri:"account/theme/themes",methods:["GET","HEAD"],domain:null},"account.import.form":{uri:"account/import",methods:["GET","HEAD"],domain:null},"account.import":{uri:"account/import",methods:["POST"],domain:null},"account.export":{uri:"account/export",methods:["GET","HEAD"],domain:null},"document.move":{uri:"document/move/{sourceFolder}/{targetFolder}",methods:["POST"],domain:null},"document.destroy_bookmarks":{uri:"document/delete_bookmarks/{folder}",methods:["POST"],domain:null},"document.visit":{uri:"document/{document}/visit/{folder}",methods:["POST"],domain:null},"feed_item.mark_as_read":{uri:"feed_item/mark_as_read",methods:["POST"],domain:null},"feed.ignore":{uri:"feed/{feed}/ignore",methods:["POST"],domain:null},"feed.follow":{uri:"feed/{feed}/follow",methods:["POST"],domain:null},"folder.index":{uri:"folder",methods:["GET","HEAD"],domain:null},"folder.store":{uri:"folder",methods:["POST"],domain:null},"folder.show":{uri:"folder/{folder}",methods:["GET","HEAD"],domain:null},"folder.update":{uri:"folder/{folder}",methods:["PUT","PATCH"],domain:null},"folder.destroy":{uri:"folder/{folder}",methods:["DELETE"],domain:null},"document.index":{uri:"document",methods:["GET","HEAD"],domain:null},"document.store":{uri:"document",methods:["POST"],domain:null},"document.show":{uri:"document/{document}",methods:["GET","HEAD"],domain:null},"feed_item.index":{uri:"feed_item",methods:["GET","HEAD"],domain:null},"feed_item.show":{uri:"feed_item/{feed_item}",methods:["GET","HEAD"],domain:null},"highlight.index":{uri:"highlight",methods:["GET","HEAD"],domain:null},"highlight.store":{uri:"highlight",methods:["POST"],domain:null},"highlight.show":{uri:"highlight/{highlight}",methods:["GET","HEAD"],domain:null},"highlight.update":{uri:"highlight/{highlight}",methods:["PUT","PATCH"],domain:null},"highlight.destroy":{uri:"highlight/{highlight}",methods:["DELETE"],domain:null}},baseUrl:"https://cyca.athaliasoft.com/",baseProtocol:"https",baseDomain:"cyca.athaliasoft.com",basePort:!1,defaultParameters:[]};if("undefined"!=typeof window&&void 0!==window.Ziggy)for(var g in window.Ziggy.namedRoutes)y.namedRoutes[g]=window.Ziggy.namedRoutes[g];window.route=v,window.Ziggy=y,Vue.mixin({methods:{route:function(t,e,r){return v(t,e,r,y)},icon:function(t){return document.querySelector('meta[name="icons-file-url"]').getAttribute("content")+"#"+t},__:function(t){var e=lang[t];return e||t}}})}}); \ No newline at end of file diff --git a/public/js/themes-browser.js b/public/js/themes-browser.js index 31b7631..6b410a8 100644 --- a/public/js/themes-browser.js +++ b/public/js/themes-browser.js @@ -1,2 +1,2 @@ /*! For license information please see themes-browser.js.LICENSE.txt */ -!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r(r.s=1)}({"+CwO":function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1;){var e=t.pop(),r=e.obj[e.prop];if(o(r)){for(var n=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(s):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(s)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},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,r,i){if(!r)return e;if("object"!=typeof r){if(o(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return o(e)&&!o(r)&&(a=s(e,i)),o(e)&&o(r)?(r.forEach((function(r,o){if(n.call(e,o)){var s=e[o];s&&"object"==typeof s&&r&&"object"==typeof r?e[o]=t(s,r,i):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var s=r[o];return n.call(e,o)?e[o]=t(e[o],s,i):e[o]=s,e}),a)}}},"0k4l":function(t,e,r){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))return new this.constructor(this.items.map(t));var r={};return Object.keys(this.items).forEach((function(n){r[n]=t(e.items[n],n)})),new this.constructor(r)}},"0on8":function(t,e,r){"use strict";var n="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.exports=function(){return"object"!==n(this.items)||Array.isArray(this.items)?JSON.stringify(this.toArray()):JSON.stringify(this.all())}},"0qqO":function(t,e,r){"use strict";t.exports=function(t){return this.each((function(e,r){t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("button",{staticClass:"info ml-2",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.onOpenClicked(e))}}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[t._l(t.documents,(function(t){return r("img",{key:t.id,staticClass:"favicon inline mr-1 mb-1",attrs:{title:t.title,src:t.favicon}})})),t._v(" "),r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},"2YvH":function(t,e,r){"use strict";var n=r("SIfw"),o=n.isArray,i=n.isObject;t.exports=function(t){var e=t||1/0,r=!1,n=[],s=function(t){n=[],o(t)?t.forEach((function(t){o(t)?n=n.concat(t):i(t)?Object.keys(t).forEach((function(e){n=n.concat(t[e])})):n.push(t)})):Object.keys(t).forEach((function(e){o(t[e])?n=n.concat(t[e]):i(t[e])?Object.keys(t[e]).forEach((function(r){n=n.concat(t[e][r])})):n.push(t[e])})),r=0===(r=n.filter((function(t){return i(t)}))).length,e-=1};for(s(this.items);!r&&e>0;)s(n);return new this.constructor(n)}},"3wPk":function(t,e,r){"use strict";t.exports=function(t){return this.map((function(e,r){return t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?t:0,t+"rem"},isDraggable:function(){return!this.folder.deleted_at&&"folder"===this.folder.type},canDrop:function(){return!this.folder.deleted_at&&("folder"===this.folder.type||"root"===this.folder.type)},branchIsExpanded:function(){var t=this.folder.parent_id;if(!t||!this.folders)return!0;for(;null!=t;){var e=this.folders.find((function(e){return e.id===t}));if(e&&!e.is_expanded)return!1;t=e.parent_id}return!0},expanderIcon:function(){return this.folder.is_expanded?"expanded":"collapsed"}}),methods:i(i({},Object(n.b)({startDraggingFolder:"folders/startDraggingFolder",stopDraggingFolder:"folders/stopDraggingFolder",dropIntoFolder:"folders/dropIntoFolder",toggleExpanded:"folders/toggleExpanded"})),{},{onDragStart:function(t){this.startDraggingFolder(this.folder)},onDragEnd:function(){this.stopDraggingFolder(),this.is_dragged_over=!1},onDrop:function(){this.is_dragged_over=!1,this.$emit("item-dropped",this.folder)},onDragLeave:function(){this.is_dragged_over=!1},onDragOver:function(t){this.is_dragged_over=!0,this.canDrop?(t.preventDefault(),this.cannot_drop=!1):this.cannot_drop=!0},onClick:function(){switch(this.folder.type){case"account":window.location.href=route("account");break;case"logout":document.getElementById("logout-form").submit();break;default:this.$emit("selected-folder-changed",this.folder)}}})},c=r("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.branchIsExpanded?r("button",{staticClass:"list-item",class:{selected:t.folder.is_selected,"dragged-over":t.is_dragged_over,"cannot-drop":t.cannot_drop,deleted:t.folder.deleted_at},attrs:{draggable:t.isDraggable},on:{click:function(e){return e.preventDefault(),t.onClick(e)},dragstart:t.onDragStart,dragend:t.onDragEnd,drop:t.onDrop,dragleave:t.onDragLeave,dragover:t.onDragOver}},[r("div",{staticClass:"list-item-label",style:{"padding-left":t.indent}},["folder"===t.folder.type?r("span",{staticClass:"caret"},["folder"===t.folder.type&&t.folder.children_count>0?r("svg",{attrs:{fill:"currentColor",width:"16",height:"16"},on:{"!click":function(e){return e.stopPropagation(),t.toggleExpanded(t.folder)}}},[r("use",{attrs:{"xlink:href":t.icon(t.expanderIcon)}})]):t._e()]):t._e(),t._v(" "),r("svg",{staticClass:"favicon",class:t.folder.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon(t.folder.icon)}})]),t._v(" "),r("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.folder.title))])]),t._v(" "),t.folder.feed_item_states_count>0?r("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]):t._e()}),[],!1,null,null,null);e.default=u.exports},"4s1B":function(t,e,r){"use strict";t.exports=function(){var t=[].concat(this.items).reverse();return new this.constructor(t)}},"5Cq2":function(t,e,r){"use strict";var n="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.exports=function(t){var e=function t(e,r){var o={};return Object.keys(Object.assign({},e,r)).forEach((function(i){void 0===e[i]&&void 0!==r[i]?o[i]=r[i]:void 0!==e[i]&&void 0===r[i]?o[i]=e[i]:void 0!==e[i]&&void 0!==r[i]&&(e[i]===r[i]?o[i]=e[i]:Array.isArray(e[i])||"object"!==n(e[i])||Array.isArray(r[i])||"object"!==n(r[i])?o[i]=[].concat(e[i],r[i]):o[i]=t(e[i],r[i]))})),o};return t?"Collection"===t.constructor.name?new this.constructor(e(this.items,t.all())):new this.constructor(e(this.items,t)):this}},"6y7s":function(t,e,r){"use strict";t.exports=function(){var t;return(t=this.items).push.apply(t,arguments),this}},"7zD/":function(t,e,r){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))this.items=this.items.map(t);else{var r={};Object.keys(this.items).forEach((function(n){r[n]=t(e.items[n],n)})),this.items=r}return this}},"8oxB":function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var t=a(d);l=!0;for(var e=u.length;e;){for(c=u,u=[];++f1)for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==this.items[t]?this.items[t]:n(e)?e():null!==e?e:null}},Aoxg:function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e=t.items.length}}}}},DMgR:function(t,e,r){"use strict";var n=r("SIfw").isFunction;t.exports=function(t,e){var r=this.items[t]||null;return r||void 0===e||(r=n(e)?e():e),delete this.items[t],r}},Dv6Q:function(t,e,r){"use strict";t.exports=function(t,e){for(var r=1;r<=t;r+=1)this.items.push(e(r));return this}},"EBS+":function(t,e,r){"use strict";t.exports=function(t){if(!t)return this;if(Array.isArray(t)){var e=this.items.map((function(e,r){return t[r]||e}));return new this.constructor(e)}if("Collection"===t.constructor.name){var r=Object.assign({},this.items,t.all());return new this.constructor(r)}var n=Object.assign({},this.items,t);return new this.constructor(n)}},ET5h:function(t,e,r){"use strict";t.exports=function(t,e){return void 0!==e?this.put(e,t):(this.items.unshift(t),this)}},ErmX:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("SIfw").isFunction;t.exports=function(t){var e=n(this.items),r=0;if(void 0===t)for(var i=0,s=e.length;i0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"!==",null)}},HZ3i:function(t,e,r){"use strict";t.exports=function(){function t(e,r,n){var o=n[0];o instanceof r&&(o=o.all());for(var i=n.slice(1),s=!i.length,a=[],c=0;c=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var r=Object.create(null),n=t.split(","),o=0;o-1)return t.splice(r,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function w(t){var e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}var O=/-(\w)/g,x=w((function(t){return t.replace(O,(function(t,e){return e?e.toUpperCase():""}))})),k=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),j=/\B([A-Z])/g,A=w((function(t){return t.replace(j,"-$1").toLowerCase()})),C=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function r(r){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return r._length=t.length,r};function S(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function $(t,e){for(var r in e)t[r]=e[r];return t}function E(t){for(var e={},r=0;r0,X=Z&&Z.indexOf("edge/")>0,Y=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),tt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),et={}.watch,rt=!1;if(V)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){rt=!0}}),window.addEventListener("test-passive",null,nt)}catch(n){}var ot=function(){return void 0===K&&(K=!V&&!G&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),K},it=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,ct="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);at="undefined"!=typeof Set&&st(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 ut=D,lt=0,ft=function(){this.id=lt++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){g(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,r=t.length;e-1)if(i&&!_(o,"default"))s=!1;else if(""===s||s===A(t)){var c=Ut(String,o.type);(c<0||a0&&(le((c=t(c,(r||"")+"_"+n))[0])&&le(l)&&(f[u]=gt(l.text+c[0].text),c.shift()),f.push.apply(f,c)):a(c)?le(l)?f[u]=gt(l.text+c):""!==c&&f.push(gt(c)):le(c)&&le(l)?f[u]=gt(l.text+c.text):(s(e._isVList)&&i(c.tag)&&o(c.key)&&i(r)&&(c.key="__vlist"+r+"_"+n+"__"),f.push(c)));return f}(t):void 0}function le(t){return i(t)&&i(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var r=Object.create(null),n=ct?Reflect.ownKeys(t):Object.keys(t),o=0;o0,s=t?!!t.$stable:!i,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&r&&r!==n&&a===r.$key&&!i&&!r.$hasNormal)return r;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=me(e,c,t[c]))}else o={};for(var u in e)u in o||(o[u]=ve(e,u));return t&&Object.isExtensible(t)&&(t._normalized=o),B(o,"$stable",s),B(o,"$key",a),B(o,"$hasNormal",i),o}function me(t,e,r){var n=function(){var t=arguments.length?r.apply(null,arguments):r({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return r.proxy&&Object.defineProperty(t,e,{get:n,enumerable:!0,configurable:!0}),n}function ve(t,e){return function(){return t[e]}}function ye(t,e){var r,n,o,s,a;if(Array.isArray(t)||"string"==typeof t)for(r=new Array(t.length),n=0,o=t.length;ndocument.createEvent("Event").timeStamp&&(ar=function(){return cr.now()})}function ur(){var t,e;for(sr=ar(),or=!0,tr.sort((function(t,e){return t.id-e.id})),ir=0;irir&&tr[r].id>t.id;)r--;tr.splice(r+1,0,t)}else tr.push(t);nr||(nr=!0,ee(ur))}}(this)},fr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Bt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},fr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fr.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},fr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var dr={enumerable:!0,configurable:!0,get:D,set:D};function pr(t,e,r){dr.get=function(){return this[e][r]},dr.set=function(t){this[e][r]=t},Object.defineProperty(t,r,dr)}var hr={lazy:!0};function mr(t,e,r){var n=!ot();"function"==typeof r?(dr.get=n?vr(e):yr(r),dr.set=D):(dr.get=r.get?n&&!1!==r.cache?vr(e):yr(r.get):D,dr.set=r.set||D),Object.defineProperty(t,e,dr)}function vr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function yr(t){return function(){return t.call(this,this)}}function gr(t,e,r,n){return l(r)&&(n=r,r=r.handler),"string"==typeof r&&(r=t[r]),t.$watch(e,r,n)}var br=0;function _r(t){var e=t.options;if(t.super){var r=_r(t.super);if(r!==t.superOptions){t.superOptions=r;var n=function(t){var e,r=t.options,n=t.sealedOptions;for(var o in r)r[o]!==n[o]&&(e||(e={}),e[o]=r[o]);return e}(t);n&&$(t.extendOptions,n),(e=t.options=Lt(r,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function wr(t){this._init(t)}function Or(t){return t&&(t.Ctor.options.name||t.tag)}function xr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(r=t,"[object RegExp]"===u.call(r)&&t.test(e));var r}function kr(t,e){var r=t.cache,n=t.keys,o=t._vnode;for(var i in r){var s=r[i];if(s){var a=Or(s.componentOptions);a&&!e(a)&&jr(r,i,n,o)}}}function jr(t,e,r,n){var o=t[e];!o||n&&o.tag===n.tag||o.componentInstance.$destroy(),t[e]=null,g(r,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=br++,e._isVue=!0,t&&t._isComponent?function(t,e){var r=t.$options=Object.create(t.constructor.options),n=e._parentVnode;r.parent=e.parent,r._parentVnode=n;var o=n.componentOptions;r.propsData=o.propsData,r._parentListeners=o.listeners,r._renderChildren=o.children,r._componentTag=o.tag,e.render&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Lt(_r(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,r=e.parent;if(r&&!e.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(t)}t.$parent=r,t.$root=r?r.$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&&Je(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,o=r&&r.context;t.$slots=de(e._renderChildren,o),t.$scopedSlots=n,t._c=function(e,r,n,o){return Re(t,e,r,n,o,!1)},t.$createElement=function(e,r,n,o){return Re(t,e,r,n,o,!0)};var i=r&&r.data;Ct(t,"$attrs",i&&i.attrs||n,null,!0),Ct(t,"$listeners",e._parentListeners||n,null,!0)}(e),Ye(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(kt(!1),Object.keys(e).forEach((function(r){Ct(t,r,e[r])})),kt(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var r=t.$options.propsData||{},n=t._props={},o=t.$options._propKeys=[];t.$parent&&kt(!1);var i=function(i){o.push(i);var s=Mt(i,e,r,t);Ct(n,i,s),i in t||pr(t,"_props",i)};for(var s in e)i(s);kt(!0)}(t,e.props),e.methods&&function(t,e){for(var r in t.$options.props,e)t[r]="function"!=typeof e[r]?D:C(e[r],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;l(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return Bt(t,e,"data()"),{}}finally{ht()}}(e,t):e||{})||(e={});for(var r,n=Object.keys(e),o=t.$options.props,i=(t.$options.methods,n.length);i--;){var s=n[i];o&&_(o,s)||(void 0,36!==(r=(s+"").charCodeAt(0))&&95!==r&&pr(t,"_data",s))}At(e,!0)}(t):At(t._data={},!0),e.computed&&function(t,e){var r=t._computedWatchers=Object.create(null),n=ot();for(var o in e){var i=e[o],s="function"==typeof i?i:i.get;n||(r[o]=new fr(t,s||D,D,hr)),o in t||mr(t,o,i)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var r in e){var n=e[r];if(Array.isArray(n))for(var o=0;o1?S(e):e;for(var r=S(arguments,1),n='event handler for "'+t+'"',o=0,i=e.length;oparseInt(this.max)&&jr(s,a[0],a,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:$,mergeOptions:Lt,defineReactive:Ct},t.set=St,t.delete=$t,t.nextTick=ee,t.observable=function(t){return At(t),t},t.options=Object.create(null),M.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,$(t.options.components,Cr),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var r=S(arguments,1);return r.unshift(this),"function"==typeof t.install?t.install.apply(t,r):"function"==typeof t&&t.apply(null,r),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Lt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var r=this,n=r.cid,o=t._Ctor||(t._Ctor={});if(o[n])return o[n];var i=t.name||r.options.name,s=function(t){this._init(t)};return(s.prototype=Object.create(r.prototype)).constructor=s,s.cid=e++,s.options=Lt(r.options,t),s.super=r,s.options.props&&function(t){var e=t.options.props;for(var r in e)pr(t.prototype,"_props",r)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var r in e)mr(t.prototype,r,e[r])}(s),s.extend=r.extend,s.mixin=r.mixin,s.use=r.use,M.forEach((function(t){s[t]=r[t]})),i&&(s.options.components[i]=s),s.superOptions=r.options,s.extendOptions=t,s.sealedOptions=$({},s.options),o[n]=s,s}}(t),function(t){M.forEach((function(e){t[e]=function(t,r){return r?("component"===e&&l(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===e&&"function"==typeof r&&(r={bind:r,update:r}),this.options[e+"s"][t]=r,r):this.options[e+"s"][t]}}))}(t)}(wr),Object.defineProperty(wr.prototype,"$isServer",{get:ot}),Object.defineProperty(wr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wr,"FunctionalRenderContext",{value:Te}),wr.version="2.6.12";var Sr=m("style,class"),$r=m("input,textarea,option,select,progress"),Er=function(t,e,r){return"value"===r&&$r(t)&&"button"!==e||"selected"===r&&"option"===t||"checked"===r&&"input"===t||"muted"===r&&"video"===t},Dr=m("contenteditable,draggable,spellcheck"),Tr=m("events,caret,typing,plaintext-only"),Pr=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"),Ir="http://www.w3.org/1999/xlink",Fr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Lr=function(t){return Fr(t)?t.slice(6,t.length):""},Nr=function(t){return null==t||!1===t};function Mr(t,e){return{staticClass:Rr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Rr(t,e){return t?e?t+" "+e:t:e||""}function Hr(t){return Array.isArray(t)?function(t){for(var e,r="",n=0,o=t.length;n-1?dn(t,e,r):Pr(e)?Nr(r)?t.removeAttribute(e):(r="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,r)):Dr(e)?t.setAttribute(e,function(t,e){return Nr(e)||"false"===e?"false":"contenteditable"===t&&Tr(e)?e:"true"}(e,r)):Fr(e)?Nr(r)?t.removeAttributeNS(Ir,Lr(e)):t.setAttributeNS(Ir,e,r):dn(t,e,r)}function dn(t,e,r){if(Nr(r))t.removeAttribute(e);else{if(W&&!Q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==r&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,r)}}var pn={create:ln,update:ln};function hn(t,e){var r=e.elm,n=e.data,s=t.data;if(!(o(n.staticClass)&&o(n.class)&&(o(s)||o(s.staticClass)&&o(s.class)))){var a=function(t){for(var e=t.data,r=t,n=t;i(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(e=Mr(n.data,e));for(;i(r=r.parent);)r&&r.data&&(e=Mr(e,r.data));return function(t,e){return i(t)||i(e)?Rr(t,Hr(e)):""}(e.staticClass,e.class)}(e),c=r._transitionClasses;i(c)&&(a=Rr(a,Hr(c))),a!==r._prevClass&&(r.setAttribute("class",a),r._prevClass=a)}}var mn,vn,yn,gn,bn,_n,wn={create:hn,update:hn},On=/[\w).+\-_$\]]/;function xn(t){var e,r,n,o,i,s=!1,a=!1,c=!1,u=!1,l=0,f=0,d=0,p=0;for(n=0;n=0&&" "===(m=t.charAt(h));h--);m&&On.test(m)||(u=!0)}}else void 0===o?(p=n+1,o=t.slice(0,n).trim()):v();function v(){(i||(i=[])).push(t.slice(p,n).trim()),p=n+1}if(void 0===o?o=t.slice(0,n).trim():0!==p&&v(),i)for(n=0;n-1?{exp:t.slice(0,gn),key:'"'+t.slice(gn+1)+'"'}:{exp:t,key:null};for(vn=t,gn=bn=_n=0;!Hn();)Un(yn=Rn())?Kn(yn):91===yn&&Bn(yn);return{exp:t.slice(0,bn),key:t.slice(bn+1,_n)}}(t);return null===r.key?t+"="+e:"$set("+r.exp+", "+r.key+", "+e+")"}function Rn(){return vn.charCodeAt(++gn)}function Hn(){return gn>=mn}function Un(t){return 34===t||39===t}function Bn(t){var e=1;for(bn=gn;!Hn();)if(Un(t=Rn()))Kn(t);else if(91===t&&e++,93===t&&e--,0===e){_n=gn;break}}function Kn(t){for(var e=t;!Hn()&&(t=Rn())!==e;);}var zn,qn="__r";function Vn(t,e,r){var n=zn;return function o(){null!==e.apply(null,arguments)&&Zn(t,o,r,n)}}var Gn=Gt&&!(tt&&Number(tt[1])<=53);function Jn(t,e,r,n){if(Gn){var o=sr,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}zn.addEventListener(t,e,rt?{capture:r,passive:n}:r)}function Zn(t,e,r,n){(n||zn).removeEventListener(t,e._wrapper||e,r)}function Wn(t,e){if(!o(t.data.on)||!o(e.data.on)){var r=e.data.on||{},n=t.data.on||{};zn=e.elm,function(t){if(i(t.__r)){var e=W?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}i(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(r),se(r,n,Jn,Zn,Vn,e.context),zn=void 0}}var Qn,Xn={create:Wn,update:Wn};function Yn(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var r,n,s=e.elm,a=t.data.domProps||{},c=e.data.domProps||{};for(r in i(c.__ob__)&&(c=e.data.domProps=$({},c)),a)r in c||(s[r]="");for(r in c){if(n=c[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),n===a[r])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===r&&"PROGRESS"!==s.tagName){s._value=n;var u=o(n)?"":String(n);to(s,u)&&(s.value=u)}else if("innerHTML"===r&&Kr(s.tagName)&&o(s.innerHTML)){(Qn=Qn||document.createElement("div")).innerHTML=""+n+"";for(var l=Qn.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;l.firstChild;)s.appendChild(l.firstChild)}else if(n!==a[r])try{s[r]=n}catch(t){}}}}function to(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var r=!0;try{r=document.activeElement!==t}catch(t){}return r&&t.value!==e}(t,e)||function(t,e){var r=t.value,n=t._vModifiers;if(i(n)){if(n.number)return h(r)!==h(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}(t,e))}var eo={create:Yn,update:Yn},ro=w((function(t){var e={},r=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function no(t){var e=oo(t.style);return t.staticStyle?$(t.staticStyle,e):e}function oo(t){return Array.isArray(t)?E(t):"string"==typeof t?ro(t):t}var io,so=/^--/,ao=/\s*!important$/,co=function(t,e,r){if(so.test(e))t.style.setProperty(e,r);else if(ao.test(r))t.style.setProperty(A(e),r.replace(ao,""),"important");else{var n=lo(e);if(Array.isArray(r))for(var o=0,i=r.length;o-1?e.split(ho).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var r=" "+(t.getAttribute("class")||"")+" ";r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function vo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(ho).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var r=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?t.setAttribute("class",r):t.removeAttribute("class")}}function yo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&$(e,go(t.name||"v")),$(e,t),e}return"string"==typeof t?go(t):void 0}}var go=w((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"}})),bo=V&&!Q,_o="transition",wo="animation",Oo="transition",xo="transitionend",ko="animation",jo="animationend";bo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Oo="WebkitTransition",xo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ko="WebkitAnimation",jo="webkitAnimationEnd"));var Ao=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Co(t){Ao((function(){Ao(t)}))}function So(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),mo(t,e))}function $o(t,e){t._transitionClasses&&g(t._transitionClasses,e),vo(t,e)}function Eo(t,e,r){var n=To(t,e),o=n.type,i=n.timeout,s=n.propCount;if(!o)return r();var a=o===_o?xo:jo,c=0,u=function(){t.removeEventListener(a,l),r()},l=function(e){e.target===t&&++c>=s&&u()};setTimeout((function(){c0&&(r=_o,l=s,f=i.length):e===wo?u>0&&(r=wo,l=u,f=c.length):f=(r=(l=Math.max(s,u))>0?s>u?_o:wo:null)?r===_o?i.length:c.length:0,{type:r,timeout:l,propCount:f,hasTransform:r===_o&&Do.test(n[Oo+"Property"])}}function Po(t,e){for(;t.length1}function Ro(t,e){!0!==e.data.show&&Fo(e)}var Ho=function(t){var e,r,n={},c=t.modules,u=t.nodeOps;for(e=0;eh?b(t,o(r[y+1])?null:r[y+1].elm,r,p,y,n):p>y&&w(e,d,h)}(d,m,y,r,l):i(y)?(i(t.text)&&u.setTextContent(d,""),b(d,null,y,0,y.length-1,r)):i(m)?w(m,0,m.length-1):i(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),i(h)&&i(p=h.hook)&&i(p=p.postpatch)&&p(t,e)}}}function j(t,e,r){if(s(r)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var n=0;n-1,s.selected!==i&&(s.selected=i);else if(I(qo(s),n))return void(t.selectedIndex!==a&&(t.selectedIndex=a));o||(t.selectedIndex=-1)}}function zo(t,e){return e.every((function(e){return!I(e,t)}))}function qo(t){return"_value"in t?t._value:t.value}function Vo(t){t.target.composing=!0}function Go(t){t.target.composing&&(t.target.composing=!1,Jo(t.target,"input"))}function Jo(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function Zo(t){return!t.componentInstance||t.data&&t.data.transition?t:Zo(t.componentInstance._vnode)}var Wo={model:Uo,show:{bind:function(t,e,r){var n=e.value,o=(r=Zo(r)).data&&r.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&o?(r.data.show=!0,Fo(r,(function(){t.style.display=i}))):t.style.display=n?i:"none"},update:function(t,e,r){var n=e.value;!n!=!e.oldValue&&((r=Zo(r)).data&&r.data.transition?(r.data.show=!0,n?Fo(r,(function(){t.style.display=t.__vOriginalDisplay})):Lo(r,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,r,n,o){o||(t.style.display=t.__vOriginalDisplay)}}},Qo={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 Xo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Xo(ze(e.children)):t}function Yo(t){var e={},r=t.$options;for(var n in r.propsData)e[n]=t[n];var o=r._parentListeners;for(var i in o)e[x(i)]=o[i];return e}function ti(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var ei=function(t){return t.tag||Ke(t)},ri=function(t){return"show"===t.name},ni={name:"transition",props:Qo,abstract:!0,render:function(t){var e=this,r=this.$slots.default;if(r&&(r=r.filter(ei)).length){var n=this.mode,o=r[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=Xo(o);if(!i)return o;if(this._leaving)return ti(t,o);var s="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?s+"comment":s+i.tag:a(i.key)?0===String(i.key).indexOf(s)?i.key:s+i.key:i.key;var c=(i.data||(i.data={})).transition=Yo(this),u=this._vnode,l=Xo(u);if(i.data.directives&&i.data.directives.some(ri)&&(i.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(i,l)&&!Ke(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=$({},c);if("out-in"===n)return this._leaving=!0,ae(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ti(t,o);if("in-out"===n){if(Ke(i))return u;var d,p=function(){d()};ae(c,"afterEnter",p),ae(c,"enterCancelled",p),ae(f,"delayLeave",(function(t){d=t}))}}return o}}},oi=$({tag:String,moveClass:String},Qo);function ii(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function si(t){t.data.newPos=t.elm.getBoundingClientRect()}function ai(t){var e=t.data.pos,r=t.data.newPos,n=e.left-r.left,o=e.top-r.top;if(n||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+n+"px,"+o+"px)",i.transitionDuration="0s"}}delete oi.mode;var ci={Transition:ni,TransitionGroup:{props:oi,beforeMount:function(){var t=this,e=this._update;this._update=function(r,n){var o=We(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,r,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],s=Yo(this),a=0;a-1?Vr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Vr[t]=/HTMLUnknownElement/.test(e.toString())},$(wr.options.directives,Wo),$(wr.options.components,ci),wr.prototype.__patch__=V?Ho:D,wr.prototype.$mount=function(t,e){return function(t,e,r){var n;return t.$el=e,t.$options.render||(t.$options.render=yt),Ye(t,"beforeMount"),n=function(){t._update(t._render(),r)},new fr(t,n,D,{before:function(){t._isMounted&&!t._isDestroyed&&Ye(t,"beforeUpdate")}},!0),r=!1,null==t.$vnode&&(t._isMounted=!0,Ye(t,"mounted")),t}(this,t=t&&V?Jr(t):void 0,e)},V&&setTimeout((function(){H.devtools&&it&&it.emit("init",wr)}),0);var ui,li=/\{\{((?:.|\r?\n)+?)\}\}/g,fi=/[-.*+?^${}()|[\]\/\\]/g,di=w((function(t){var e=t[0].replace(fi,"\\$&"),r=t[1].replace(fi,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+r,"g")})),pi={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var r=In(t,"class");r&&(t.staticClass=JSON.stringify(r));var n=Pn(t,"class",!1);n&&(t.classBinding=n)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},hi={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var r=In(t,"style");r&&(t.staticStyle=JSON.stringify(ro(r)));var n=Pn(t,"style",!1);n&&(t.styleBinding=n)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},mi=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),vi=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),yi=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"),gi=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,bi=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,_i="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",wi="((?:"+_i+"\\:)?"+_i+")",Oi=new RegExp("^<"+wi),xi=/^\s*(\/?)>/,ki=new RegExp("^<\\/"+wi+"[^>]*>"),ji=/^]+>/i,Ai=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Di=/&(?:lt|gt|quot|amp|#39);/g,Ti=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Pi=m("pre,textarea",!0),Ii=function(t,e){return t&&Pi(t)&&"\n"===e[0]};function Fi(t,e){var r=e?Ti:Di;return t.replace(r,(function(t){return Ei[t]}))}var Li,Ni,Mi,Ri,Hi,Ui,Bi,Ki,zi=/^@|^v-on:/,qi=/^v-|^@|^:|^#/,Vi=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Gi=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ji=/^\(|\)$/g,Zi=/^\[.*\]$/,Wi=/:(.*)$/,Qi=/^:|^\.|^v-bind:/,Xi=/\.[^.\]]+(?=[^\]]*$)/g,Yi=/^v-slot(:|$)|^#/,ts=/[\r\n]/,es=/\s+/g,rs=w((function(t){return(ui=ui||document.createElement("div")).innerHTML=t,ui.textContent})),ns="_empty_";function os(t,e,r){return{type:1,tag:t,attrsList:e,attrsMap:ls(e),rawAttrsMap:{},parent:r,children:[]}}function is(t,e){var r,n;(n=Pn(r=t,"key"))&&(r.key=n),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Pn(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=In(t,"scope"),t.slotScope=e||In(t,"slot-scope")):(e=In(t,"slot-scope"))&&(t.slotScope=e);var r=Pn(t,"slot");if(r&&(t.slotTarget='""'===r?'"default"':r,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Sn(t,"slot",r,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var n=Fn(t,Yi);if(n){var o=cs(n),i=o.name,s=o.dynamic;t.slotTarget=i,t.slotTargetDynamic=s,t.slotScope=n.value||ns}}else{var a=Fn(t,Yi);if(a){var c=t.scopedSlots||(t.scopedSlots={}),u=cs(a),l=u.name,f=u.dynamic,d=c[l]=os("template",[],t);d.slotTarget=l,d.slotTargetDynamic=f,d.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=d,!0})),d.slotScope=a.value||ns,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Pn(t,"name"))}(t),function(t){var e;(e=Pn(t,"is"))&&(t.component=e),null!=In(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var o=0;o-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),Tn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+s+");if(Array.isArray($$a)){var $$v="+(n?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Mn(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Mn(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Mn(e,"$$c")+"}",null,!0)}(t,n,o);else if("input"===i&&"radio"===s)!function(t,e,r){var n=r&&r.number,o=Pn(t,"value")||"null";Cn(t,"checked","_q("+e+","+(o=n?"_n("+o+")":o)+")"),Tn(t,"change",Mn(e,o),null,!0)}(t,n,o);else if("input"===i||"textarea"===i)!function(t,e,r){var n=t.attrsMap.type,o=r||{},i=o.lazy,s=o.number,a=o.trim,c=!i&&"range"!==n,u=i?"change":"range"===n?qn:"input",l="$event.target.value";a&&(l="$event.target.value.trim()"),s&&(l="_n("+l+")");var f=Mn(e,l);c&&(f="if($event.target.composing)return;"+f),Cn(t,"value","("+e+")"),Tn(t,u,f,null,!0),(a||s)&&Tn(t,"blur","$forceUpdate()")}(t,n,o);else if(!H.isReservedTag(i))return Nn(t,n,o),!1;return!0},text:function(t,e){e.value&&Cn(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&Cn(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:mi,mustUseProp:Er,canBeLeftOpenTag:vi,isReservedTag:zr,getTagNamespace:qr,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(vs)},gs=w((function(t){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var bs=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,_s=/\([^)]*?\);*$/,ws=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Os={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},xs={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"]},ks=function(t){return"if("+t+")return null;"},js={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ks("$event.target !== $event.currentTarget"),ctrl:ks("!$event.ctrlKey"),shift:ks("!$event.shiftKey"),alt:ks("!$event.altKey"),meta:ks("!$event.metaKey"),left:ks("'button' in $event && $event.button !== 0"),middle:ks("'button' in $event && $event.button !== 1"),right:ks("'button' in $event && $event.button !== 2")};function As(t,e){var r=e?"nativeOn:":"on:",n="",o="";for(var i in t){var s=Cs(t[i]);t[i]&&t[i].dynamic?o+=i+","+s+",":n+='"'+i+'":'+s+","}return n="{"+n.slice(0,-1)+"}",o?r+"_d("+n+",["+o.slice(0,-1)+"])":r+n}function Cs(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return Cs(t)})).join(",")+"]";var e=ws.test(t.value),r=bs.test(t.value),n=ws.test(t.value.replace(_s,""));if(t.modifiers){var o="",i="",s=[];for(var a in t.modifiers)if(js[a])i+=js[a],Os[a]&&s.push(a);else if("exact"===a){var c=t.modifiers;i+=ks(["ctrl","shift","alt","meta"].filter((function(t){return!c[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else s.push(a);return s.length&&(o+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Ss).join("&&")+")return null;"}(s)),i&&(o+=i),"function($event){"+o+(e?"return "+t.value+"($event)":r?"return ("+t.value+")($event)":n?"return "+t.value:t.value)+"}"}return e||r?t.value:"function($event){"+(n?"return "+t.value:t.value)+"}"}function Ss(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var r=Os[t],n=xs[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(r)+",$event.key,"+JSON.stringify(n)+")"}var $s={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(r){return"_b("+r+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:D},Es=function(t){this.options=t,this.warn=t.warn||jn,this.transforms=An(t.modules,"transformCode"),this.dataGenFns=An(t.modules,"genData"),this.directives=$($({},$s),t.directives);var e=t.isReservedTag||T;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ds(t,e){var r=new Es(e);return{render:"with(this){return "+(t?Ts(t,r):'_c("div")')+"}",staticRenderFns:r.staticRenderFns}}function Ts(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ps(t,e);if(t.once&&!t.onceProcessed)return Is(t,e);if(t.for&&!t.forProcessed)return Ls(t,e);if(t.if&&!t.ifProcessed)return Fs(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var r=t.slotName||'"default"',n=Hs(t,e),o="_t("+r+(n?","+n:""),i=t.attrs||t.dynamicAttrs?Ks((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:x(t.name),value:t.value,dynamic:t.dynamic}}))):null,s=t.attrsMap["v-bind"];return!i&&!s||n||(o+=",null"),i&&(o+=","+i),s&&(o+=(i?"":",null")+","+s),o+")"}(t,e);var r;if(t.component)r=function(t,e,r){var n=e.inlineTemplate?null:Hs(e,r,!0);return"_c("+t+","+Ns(e,r)+(n?","+n:"")+")"}(t.component,t,e);else{var n;(!t.plain||t.pre&&e.maybeComponent(t))&&(n=Ns(t,e));var o=t.inlineTemplate?null:Hs(t,e,!0);r="_c('"+t.tag+"'"+(n?","+n:"")+(o?","+o:"")+")"}for(var i=0;i>>0}(s):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(r+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var i=function(t,e){var r=t.children[0];if(r&&1===r.type){var n=Ds(r,e.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);i&&(r+=i+",")}return r=r.replace(/,$/,"")+"}",t.dynamicAttrs&&(r="_b("+r+',"'+t.tag+'",'+Ks(t.dynamicAttrs)+")"),t.wrapData&&(r=t.wrapData(r)),t.wrapListeners&&(r=t.wrapListeners(r)),r}function Ms(t){return 1===t.type&&("slot"===t.tag||t.children.some(Ms))}function Rs(t,e){var r=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!r)return Fs(t,e,Rs,"null");if(t.for&&!t.forProcessed)return Ls(t,e,Rs);var n=t.slotScope===ns?"":String(t.slotScope),o="function("+n+"){return "+("template"===t.tag?t.if&&r?"("+t.if+")?"+(Hs(t,e)||"undefined")+":undefined":Hs(t,e)||"undefined":Ts(t,e))+"}",i=n?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+o+i+"}"}function Hs(t,e,r,n,o){var i=t.children;if(i.length){var s=i[0];if(1===i.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var a=r?e.maybeComponent(s)?",1":",0":"";return""+(n||Ts)(s,e)+a}var c=r?function(t,e){for(var r=0,n=0;n]*>)","i")),d=t.replace(f,(function(t,r,n){return u=n.length,Si(l)||"noscript"===l||(r=r.replace(//g,"$1").replace(//g,"$1")),Ii(l,r)&&(r=r.slice(1)),e.chars&&e.chars(r),""}));c+=t.length-d.length,t=d,A(l,c-u,c)}else{var p=t.indexOf("<");if(0===p){if(Ai.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h),c,c+h+3),x(h+3);continue}}if(Ci.test(t)){var m=t.indexOf("]>");if(m>=0){x(m+2);continue}}var v=t.match(ji);if(v){x(v[0].length);continue}var y=t.match(ki);if(y){var g=c;x(y[0].length),A(y[1],g,c);continue}var b=k();if(b){j(b),Ii(b.tagName,t)&&x(1);continue}}var _=void 0,w=void 0,O=void 0;if(p>=0){for(w=t.slice(p);!(ki.test(w)||Oi.test(w)||Ai.test(w)||Ci.test(w)||(O=w.indexOf("<",1))<0);)p+=O,w=t.slice(p);_=t.substring(0,p)}p<0&&(_=t),_&&x(_.length),e.chars&&_&&e.chars(_,c-_.length,c)}if(t===r){e.chars&&e.chars(t);break}}function x(e){c+=e,t=t.substring(e)}function k(){var e=t.match(Oi);if(e){var r,n,o={tagName:e[1],attrs:[],start:c};for(x(e[0].length);!(r=t.match(xi))&&(n=t.match(bi)||t.match(gi));)n.start=c,x(n[0].length),n.end=c,o.attrs.push(n);if(r)return o.unarySlash=r[1],x(r[0].length),o.end=c,o}}function j(t){var r=t.tagName,c=t.unarySlash;i&&("p"===n&&yi(r)&&A(n),a(r)&&n===r&&A(r));for(var u=s(r)||!!c,l=t.attrs.length,f=new Array(l),d=0;d=0&&o[s].lowerCasedTag!==a;s--);else s=0;if(s>=0){for(var u=o.length-1;u>=s;u--)e.end&&e.end(o[u].tag,r,i);o.length=s,n=s&&o[s-1].tag}else"br"===a?e.start&&e.start(t,[],!0,r,i):"p"===a&&(e.start&&e.start(t,[],!1,r,i),e.end&&e.end(t,r,i))}A()}(t,{warn:Li,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,i,s,l,f){var d=n&&n.ns||Ki(t);W&&"svg"===d&&(i=function(t){for(var e=[],r=0;rc&&(a.push(i=t.slice(c,o)),s.push(JSON.stringify(i)));var u=xn(n[1].trim());s.push("_s("+u+")"),a.push({"@binding":u}),c=o+n[0].length}return c':'
',Js.innerHTML.indexOf(" ")>0}var Xs=!!V&&Qs(!1),Ys=!!V&&Qs(!0),ta=w((function(t){var e=Jr(t);return e&&e.innerHTML})),ea=wr.prototype.$mount;wr.prototype.$mount=function(t,e){if((t=t&&Jr(t))===document.body||t===document.documentElement)return this;var r=this.$options;if(!r.render){var n=r.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=ta(n));else{if(!n.nodeType)return this;n=n.innerHTML}else t&&(n=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(n){var o=Ws(n,{outputSourceRange:!1,shouldDecodeNewlines:Xs,shouldDecodeNewlinesForHref:Ys,delimiters:r.delimiters,comments:r.comments},this),i=o.render,s=o.staticRenderFns;r.render=i,r.staticRenderFns=s}}return ea.call(this,t,e)},wr.compile=Ws,t.exports=wr}).call(this,r("yLpj"),r("URgk").setImmediate)},IfUw:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(t=this.selectedDocuments),this.startDraggingDocuments(t)},onDragEnd:function(){this.stopDraggingDocuments()}})},l=r("KHd+"),f=Object(l.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a",{staticClass:"list-item",class:{selected:t.is_selected},attrs:{draggable:!0,href:t.url,rel:"noopener noreferrer"},on:{click:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?null:e.metaKey?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey?null:(e.stopPropagation(),e.preventDefault(),t.onAddToSelection(e)):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),e.preventDefault(),t.onClicked(e))}],mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})},dblclick:function(e){return t.openDocument({document:t.document,folder:t.selectedFolder})},dragstart:t.onDragStart,dragend:t.onDragEnd}},[r("div",{staticClass:"list-item-label"},[r("img",{staticClass:"favicon",attrs:{src:t.document.favicon}}),t._v(" "),r("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.document.title))])]),t._v(" "),t.document.feed_item_states_count>0?r("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()])}),[],!1,null,null,null);e.default=f.exports},IvC5:function(t,e,r){r("c58/"),r("qq0i")("themesBrowser");new Vue({el:"#app"})},K93l:function(t,e,r){"use strict";t.exports=function(t){var e=!1;if(Array.isArray(this.items))for(var r=this.items.length,n=0;n-1&&e.splice(r,1)}}function h(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;v(t,r,[],t._modules.root,!0),m(t,r,e)}function m(t,e,r){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,s={};i(o,(function(e,r){s[r]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,r,{get:function(){return t._vm[r]},enumerable:!0})}));var a=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:s}),l.config.silent=a,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),n&&(r&&t._withCommit((function(){n._data.$$state=null})),l.nextTick((function(){return n.$destroy()})))}function v(t,e,r,n,o){var i=!r.length,s=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=n),!i&&!o){var a=y(e,r.slice(0,-1)),c=r[r.length-1];t._withCommit((function(){l.set(a,c,n.state)}))}var u=n.context=function(t,e,r){var n=""===e,o={dispatch:n?t.dispatch:function(r,n,o){var i=g(r,n,o),s=i.payload,a=i.options,c=i.type;return a&&a.root||(c=e+c),t.dispatch(c,s)},commit:n?t.commit:function(r,n,o){var i=g(r,n,o),s=i.payload,a=i.options,c=i.type;a&&a.root||(c=e+c),t.commit(c,s,a)}};return Object.defineProperties(o,{getters:{get:n?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,n)===e){var i=o.slice(n);Object.defineProperty(r,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return y(t.state,r)}}}),o}(t,s,r);n.forEachMutation((function(e,r){!function(t,e,r,n){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){r.call(t,n.state,e)}))}(t,s+r,e,u)})),n.forEachAction((function(e,r){var n=e.root?r:s+r,o=e.handler||e;!function(t,e,r,n){(t._actions[e]||(t._actions[e]=[])).push((function(e){var o,i=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,n,o,u)})),n.forEachGetter((function(e,r){!function(t,e,r,n){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return r(n.state,n.getters,t.state,t.getters)}}(t,s+r,e,u)})),n.forEachChild((function(n,i){v(t,e,r.concat(i),n,o)}))}function y(t,e){return e.reduce((function(t,e){return t[e]}),t)}function g(t,e,r){return s(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}function b(t){l&&t===l||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:r});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,e.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l=t)}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,r){var n=this,o=g(t,e,r),i=o.type,s=o.payload,a=(o.options,{type:i,payload:s}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(a,n.state)})))},f.prototype.dispatch=function(t,e){var r=this,n=g(t,e),o=n.type,i=n.payload,s={type:o,payload:i},a=this._actions[o];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,r.state)}))}catch(t){0}var c=a.length>1?Promise.all(a.map((function(t){return t(i)}))):a[0](i);return new Promise((function(t,e){c.then((function(e){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,r.state)}))}catch(t){0}t(e)}),(function(t){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,r.state,t)}))}catch(t){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){return p("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},f.prototype.watch=function(t,e,r){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,r)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,r){void 0===r&&(r={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),r.preserveState),m(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var r=y(e.state,t.slice(0,-1));l.delete(r,t[t.length-1])})),h(this)},f.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype.hotUpdate=function(t){this._modules.update(t),h(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var _=j((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){var e=this.$store.state,r=this.$store.getters;if(t){var n=A(this.$store,"mapState",t);if(!n)return;e=n.context.state,r=n.context.getters}return"function"==typeof o?o.call(this,e,r):e[o]},r[n].vuex=!0})),r})),w=j((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.commit;if(t){var i=A(this.$store,"mapMutations",t);if(!i)return;n=i.context.commit}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r})),O=j((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;o=t+o,r[n]=function(){if(!t||A(this.$store,"mapGetters",t))return this.$store.getters[o]},r[n].vuex=!0})),r})),x=j((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.dispatch;if(t){var i=A(this.$store,"mapActions",t);if(!i)return;n=i.context.dispatch}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r}));function k(t){return function(t){return Array.isArray(t)||s(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function j(t){return function(e,r){return"string"!=typeof e?(r=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,r)}}function A(t,e,r){return t._modulesNamespaceMap[r]}function C(t,e,r){var n=r?t.groupCollapsed:t.group;try{n.call(t,e)}catch(r){t.log(e)}}function S(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function $(){var t=new Date;return" @ "+E(t.getHours(),2)+":"+E(t.getMinutes(),2)+":"+E(t.getSeconds(),2)+"."+E(t.getMilliseconds(),3)}function E(t,e){return r="0",n=e-t.toString().length,new Array(n+1).join(r)+t;var r,n}var D={Store:f,install:b,version:"3.5.1",mapState:_,mapMutations:w,mapGetters:O,mapActions:x,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:O.bind(null,t),mapMutations:w.bind(null,t),mapActions:x.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var r=t.filter;void 0===r&&(r=function(t,e,r){return!0});var n=t.transformer;void 0===n&&(n=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var s=t.actionFilter;void 0===s&&(s=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=o(t.state);void 0!==l&&(c&&t.subscribe((function(t,s){var a=o(s);if(r(t,f,a)){var c=$(),u=i(t),d="mutation "+t.type+c;C(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",n(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",n(a)),S(l)}f=a})),u&&t.subscribeAction((function(t,r){if(s(t,r)){var n=$(),o=a(t),i="action "+t.type+n;C(l,i,e),l.log("%c action","color: #03A9F4; font-weight: bold",o),S(l)}})))}}};e.a=D}).call(this,r("yLpj"))},Lcjm:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){var t=n(this.items),e=void 0,r=void 0,o=void 0;for(o=t.length;o;o-=1)e=Math.floor(Math.random()*o),r=t[o-1],t[o-1]=t[e],t[e]=r;return this.items=t,this}},LlWW:function(t,e,r){"use strict";t.exports=function(t){return this.sortBy(t).reverse()}},LpLF:function(t,e,r){"use strict";t.exports=function(t){var e=this,r=t;r instanceof this.constructor&&(r=r.all());var n=this.items.map((function(t,n){return new e.constructor([t,r[n]])}));return new this.constructor(n)}},Lzbe:function(t,e,r){"use strict";t.exports=function(t,e){var r=this.items.slice(t);return void 0!==e&&(r=r.slice(0,e)),new this.constructor(r)}},M1FP:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().forEach((function(r){e[r]=t.items[r]})),new this.constructor(e)}},MIHw:function(t,e,r){"use strict";t.exports=function(t,e){return this.where(t,">=",e[0]).where(t,"<=",e[e.length-1])}},MSmq:function(t,e,r){"use strict";t.exports=function(t){var e=this,r=t;t instanceof this.constructor&&(r=t.all());var n={};return Object.keys(this.items).forEach((function(t){void 0!==r[t]&&r[t]===e.items[t]||(n[t]=e.items[t])})),new this.constructor(n)}},NAvP:function(t,e,r){"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var r=Object.keys(e),n=Object.keys(this.items).filter((function(t){return-1===r.indexOf(t)}));return new this.constructor(this.items).only(n)}},OKMW:function(t,e,r){"use strict";t.exports=function(t,e,r){return this.where(t,e,r).first()||null}},Ob7M:function(t,e,r){"use strict";t.exports=function(t){return new this.constructor(this.items).filter((function(e){return!t(e)}))}},OxKB:function(t,e,r){"use strict";t.exports=function(t){return Array.isArray(t[0])?t[0]:t}},Pu7b:function(t,e,r){"use strict";var n=r("0tQ4"),o=r("SIfw").isFunction;t.exports=function(t){var e=this,r={};return this.items.forEach((function(i,s){var a=void 0;a=o(t)?t(i,s):n(i,t)||0===n(i,t)?n(i,t):"",void 0===r[a]&&(r[a]=new e.constructor([])),r[a].push(i)})),new this.constructor(r)}},QSc6:function(t,e,r){"use strict";var n=r("0jNN"),o=r("sxOR"),i=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Array.isArray,c=Array.prototype.push,u=function(t,e){c.apply(t,a(e)?e:[e])},l=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,r,o,i,s,c,l,d,p,h,m,v,y){var g=e;if("function"==typeof l?g=l(r,g):g instanceof Date?g=h(g):"comma"===o&&a(g)&&(g=g.join(",")),null===g){if(i)return c&&!v?c(r,f.encoder,y):r;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||n.isBuffer(g))return c?[m(v?r:c(r,f.encoder,y))+"="+m(c(g,f.encoder,y))]:[m(r)+"="+m(String(g))];var b,_=[];if(void 0===g)return _;if(a(l))b=l;else{var w=Object.keys(g);b=d?w.sort(d):w}for(var O=0;O0?g+y:""}},Qyje:function(t,e,r){"use strict";var n=r("QSc6"),o=r("nmq7"),i=r("sxOR");t.exports={formats:i,parse:o,stringify:n}},RB6r:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;eo?1:0})),new this.constructor(e)}},RR3J:function(t,e,r){"use strict";t.exports=function(t){var e=t;t instanceof this.constructor&&(e=t.all());var r=this.items.filter((function(t){return-1!==e.indexOf(t)}));return new this.constructor(r)}},RVo9:function(t,e,r){"use strict";t.exports=function(t,e){if(Array.isArray(this.items)&&this.items.length)return t(this);if(Object.keys(this.items).length)return t(this);if(void 0!==e){if(Array.isArray(this.items)&&!this.items.length)return e(this);if(!Object.keys(this.items).length)return e(this)}return this}},RtnH:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().reverse().forEach((function(r){e[r]=t.items[r]})),new this.constructor(e)}},Rx9r:function(t,e,r){"use strict";var n="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=r("ytFn");t.exports=function(t){var e=t;t instanceof this.constructor?e=t.all():"object"===(void 0===t?"undefined":n(t))&&(e=[],Object.keys(t).forEach((function(r){e.push(t[r])})));var r=o(this.items);return e.forEach((function(t){"object"===(void 0===t?"undefined":n(t))?Object.keys(t).forEach((function(e){return r.push(t[e])})):r.push(t)})),new this.constructor(r)}},SIfw:function(t,e,r){"use strict";var n="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.exports={isArray:function(t){return Array.isArray(t)},isObject:function(t){return"object"===(void 0===t?"undefined":n(t))&&!1===Array.isArray(t)&&null!==t},isFunction:function(t){return"function"==typeof t}}},TWr4:function(t,e,r){"use strict";var n=r("SIfw"),o=n.isArray,i=n.isObject,s=n.isFunction;t.exports=function(t){var e=this,r=null,n=void 0,a=function(e){return e===t};return s(t)&&(a=t),o(this.items)&&(n=this.items.filter((function(t){return!0!==r&&(r=!a(t)),r}))),i(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!0!==r&&(r=!a(e.items[n])),!1!==r&&(t[n]=e.items[n]),t}),{})),new this.constructor(n)}},TZAN:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("0tQ4");t.exports=function(t,e){var r=n(e),i=this.items.filter((function(e){return-1!==r.indexOf(o(e,t))}));return new this.constructor(i)}},"UH+N":function(t,e,r){"use strict";t.exports=function(t){var e=this,r=JSON.parse(JSON.stringify(this.items));return Object.keys(t).forEach((function(n){void 0===e.items[n]&&(r[n]=t[n])})),new this.constructor(r)}},URgk:function(t,e,r){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(n,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))},r("YBdB"),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,r("yLpj"))},UY0H:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){return new this.constructor(n(this.items))}},UgDP:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("0tQ4");t.exports=function(t,e){var r=n(e),i=this.items.filter((function(e){return-1===r.indexOf(o(e,t))}));return new this.constructor(i)}},UnNl:function(t,e,r){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"===",null)}},Ww0C:function(t,e,r){"use strict";t.exports=function(){return this.sort().reverse()}},XuX8:function(t,e,r){t.exports=r("INkZ")},YBdB:function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var n,o,i,s,a,c=1,u={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},n=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,n=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):n=function(t){setTimeout(h,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&h(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),n=function(e){t.postMessage(s+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r2&&void 0!==r[2]?r[2]:"POST",s=r.length>3&&void 0!==r[3]&&r[3],c=a,s&&(c["Content-Type"]="multipart/form-data"),u={method:i,headers:c},e&&(u.body=s?e:JSON.stringify(e)),n.next=8,fetch(t,u);case 8:return l=n.sent,n.prev=9,n.next=12,l.json();case 12:return f=n.sent,n.abrupt("return",f);case 16:return n.prev=16,n.t0=n.catch(9),n.abrupt("return",l);case 19:case"end":return n.stop()}}),n,null,[[9,16]])})))()},get:function(t){var e=this;return s(o.a.mark((function r(){return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",e.send(t,null,"GET"));case 1:case"end":return r.stop()}}),r)})))()},post:function(t,e){var r=arguments,n=this;return s(o.a.mark((function i(){var s;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=r.length>2&&void 0!==r[2]&&r[2],o.abrupt("return",n.send(t,e,"POST",s));case 2:case"end":return o.stop()}}),i)})))()},put:function(t,e){var r=this;return s(o.a.mark((function n(){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.send(t,e,"PUT"));case 1:case"end":return n.stop()}}),n)})))()},delete:function(t,e){var r=this;return s(o.a.mark((function n(){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.send(t,e,"DELETE"));case 1:case"end":return n.stop()}}),n)})))()}};window.Vue=r("XuX8"),window.collect=r("j5l6"),window.api=c,r("zhh1")},c993:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("a",{staticClass:"button info ml-2",attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),r("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[r("div",{domProps:{innerHTML:t._s(t.feedItem.content?t.feedItem.content:t.feedItem.description)}}),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("URL")))]),t._v(" "),r("dd",[r("a",{attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[t._v(t._s(t.feedItem.url))])]),t._v(" "),r("dt",[t._v(t._s(t.__("Date of item's creation")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.feedItem.created_at,calendar:!0}})],1),t._v(" "),r("dt",[t._v(t._s(t.__("Date of item's publication")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.feedItem.published_at,calendar:!0}})],1),t._v(" "),r("dt",[t._v(t._s(t.__("Published in")))]),t._v(" "),r("dd",t._l(t.feedItem.feeds,(function(e){return r("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500"},[r("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),r("div",{staticClass:"py-0.5"},[t._v(t._s(e.title))])])})),0)])])])}),[],!1,null,null,null);e.default=u.exports},cZbx:function(t,e,r){"use strict";var n="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.exports=function(t){return t instanceof this.constructor?t:"object"===(void 0===t?"undefined":n(t))?new this.constructor(t):new this.constructor([t])}},clGK:function(t,e,r){"use strict";t.exports=function(t,e,r){t?r(this):e(this)}},dydJ:function(t,e,r){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o="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.exports=function(t){var e=this,r=t;r instanceof this.constructor&&(r=t.all());var i={};if(Array.isArray(this.items)&&Array.isArray(r))this.items.forEach((function(t,e){i[t]=r[e]}));else if("object"===o(this.items)&&"object"===(void 0===r?"undefined":o(r)))Object.keys(this.items).forEach((function(t,n){i[e.items[t]]=r[Object.keys(r)[n]]}));else if(Array.isArray(this.items))i[this.items[0]]=r;else if("string"==typeof this.items&&Array.isArray(r)){var s=n(r,1);i[this.items]=s[0]}else"string"==typeof this.items&&(i[this.items]=r);return new this.constructor(i)}},epP6:function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?r("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]),t._v(" "),t.folder.feed_item_states_count>0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e()]),t._v(" "),r("div",{staticClass:"body"},["folder"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("folder.update",t.folder)},on:{submit:function(e){return e.preventDefault(),t.onUpdateFolder(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{attrs:{type:"text",name:"title"},domProps:{value:t.folder.title},on:{input:function(e){t.updateFolderTitle=e.target.value}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("update")}})]),t._v("\n "+t._s(t.__("Update folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("folder.store")},on:{submit:function(e){return e.preventDefault(),t.onAddFolder(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.addFolderTitle,expression:"addFolderTitle"}],attrs:{type:"text"},domProps:{value:t.addFolderTitle},on:{input:function(e){e.target.composing||(t.addFolderTitle=e.target.value)}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("document.store")},on:{submit:function(e){return e.preventDefault(),t.onAddDocument(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.addDocumentUrl,expression:"addDocumentUrl"}],attrs:{type:"url"},domProps:{value:t.addDocumentUrl},on:{input:function(e){e.target.composing||(t.addDocumentUrl=e.target.value)}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add document"))+"\n ")])])]),t._v(" "),"folder"===t.folder.type?r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteFolder}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])]):t._e()])])}),[],!1,null,null,null);e.default=u.exports},l9N6:function(t,e,r){"use strict";var n="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 o(t){if(Array.isArray(t)){if(t.length)return!1}else if(null!=t&&"object"===(void 0===t?"undefined":n(t))){if(Object.keys(t).length)return!1}else if(t)return!1;return!0}t.exports=function(t){var e=t||!1,r=null;return r=Array.isArray(this.items)?function(t,e){if(t)return e.filter(t);for(var r=[],n=0;n":return o(e,t)!==Number(s)&&o(e,t)!==s.toString();case"!==":return o(e,t)!==s;case"<":return o(e,t)":return o(e,t)>s;case">=":return o(e,t)>=s}}));return new this.constructor(c)}},lfA6:function(t,e,r){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var e=this,r={};return Array.isArray(this.items)?this.items.forEach((function(e){var o=t(e),i=n(o,2),s=i[0],a=i[1];r[s]=a})):Object.keys(this.items).forEach((function(o){var i=t(e.items[o]),s=n(i,2),a=s[0],c=s[1];r[a]=c})),new this.constructor(r)}},lflG:function(t,e,r){"use strict";t.exports=function(){return!this.isEmpty()}},lpfs:function(t,e,r){"use strict";t.exports=function(t){return t(this),this}},ls82:function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function a(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),s=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var a=_(s,r);if(a){if(a===l)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,s),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function f(){}function d(){}function p(){}var h={};h[o]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(k([])));v&&v!==e&&r.call(v,o)&&(h=v);var y=p.prototype=f.prototype=Object.create(h);function g(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var n;this._invoke=function(o,i){function s(){return new e((function(n,s){!function n(o,i,s,a){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,a)}))}a(c.arg)}(o,i,n,s)}))}return n=n?n.then(s,s):s()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(a&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},lwQh:function(t,e,r){"use strict";t.exports=function(){var t=0;return Array.isArray(this.items)&&(t=this.items.length),Math.max(Object.keys(this.items).length,t)}},mNb9:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=n(this.items),r=new this.constructor(e).shuffle();return t!==parseInt(t,10)?r.first():r.take(t)}},nHqO:function(t,e,r){"use strict";var n=r("OxKB");t.exports=function(){for(var t=this,e=arguments.length,r=Array(e),o=0;o=0;--o){var i,s=t[o];if("[]"===s&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(a,10);r.parseArrays||""!==a?!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[a]=n:i={0:n}}n=i}return n}(c,e,r)}};t.exports=function(t,e){var r=function(t){if(!t)return i;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?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth?t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var r,a={},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,u=e.parameterLimit===1/0?void 0:e.parameterLimit,l=c.split(e.delimiter,u),f=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(h=h.split(",")),o.call(a,p)?a[p]=n.combine(a[p],h):a[p]=h}return a}(t,r):t,u=r.plainObjects?Object.create(null):{},l=Object.keys(c),f=0;f0?r("div",[r("h2",[t._v(t._s(t.__("Community themes")))]),t._v(" "),r("p",[t._v(t._s(t.__("These themes were hand-picked by Cyca's author.")))]),t._v(" "),r("div",{staticClass:"themes-category"},t._l(t.themes.community,(function(e,n){return r("theme-card",{key:n,attrs:{repository_url:e,name:n,is_selected:n===t.selected},on:{selected:function(e){return t.useTheme(n)}}})})),1)]):t._e()])}),[],!1,null,null,null);e.default=l.exports},qBwO:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s={data:function(){return{selectedFeeds:[]}},computed:function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return new this.constructor(this.items).groupBy(t).map((function(t){return t.count()}))}},qigg:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e=t.target.scrollHeight&&this.canLoadMore&&this.loadMoreFeedItems()}})},c=r("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"feeditems-list"},on:{"&scroll":function(e){return t.onScroll(e)}}},t._l(t.sortedList,(function(e){return r("feed-item",{key:e.id,attrs:{feedItem:e},on:{"selected-feeditems-changed":t.onSelectedFeedItemsChanged}})})),1)}),[],!1,null,null,null);e.default=u.exports},qj89:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("SIfw").isFunction;t.exports=function(t,e){if(void 0!==e)return Array.isArray(this.items)?this.items.filter((function(r){return void 0!==r[t]&&r[t]===e})).length>0:void 0!==this.items[t]&&this.items[t]===e;if(o(t))return this.items.filter((function(e,r){return t(e,r)})).length>0;if(Array.isArray(this.items))return-1!==this.items.indexOf(t);var r=n(this.items);return r.push.apply(r,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);er&&(r=i)}else void 0!==t?e.push({key:n[t],count:1}):e.push({key:n,count:1})})),e.filter((function(t){return t.count===r})).map((function(t){return t.key}))):null}},t9qg:function(t,e,r){"use strict";t.exports=function(t,e){var r=this,n={};return Array.isArray(this.items)?n=this.items.slice(t*e-e,t*e):Object.keys(this.items).slice(t*e-e,t*e).forEach((function(t){n[t]=r.items[t]})),new this.constructor(n)}},tNWF:function(t,e,r){"use strict";t.exports=function(t,e){var r=this,n=null;return void 0!==e&&(n=e),Array.isArray(this.items)?this.items.forEach((function(e){n=t(n,e)})):Object.keys(this.items).forEach((function(e){n=t(n,r.items[e],e)})),n}},tiHo:function(t,e,r){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new this.constructor(t)}},tpAN:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0?r("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()]),t._v(" "),r("div",{staticClass:"flex items-center"},[t.document.feed_item_states_count>0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("a",{staticClass:"button info ml-2",attrs:{href:t.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))},mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})}}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),r("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[t.document.description?r("div",{domProps:{innerHTML:t._s(t.document.description)}}):t._e(),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),r("dd",[r("a",{attrs:{href:t.document.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))}}},[t._v(t._s(t.document.url))])]),t._v(" "),t.document.bookmark.visits?r("dt",[t._v(t._s(t.__("Visits")))]):t._e(),t._v(" "),t.document.bookmark.visits?r("dd",[t._v(t._s(t.document.bookmark.visits))]):t._e(),t._v(" "),r("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.document.checked_at,calendar:!0}})],1),t._v(" "),t.dupplicateInFolders.length>0?r("dt",[t._v(t._s(t.__("Also exists in")))]):t._e(),t._v(" "),t.dupplicateInFolders.length>0?r("dd",t._l(t.dupplicateInFolders,(function(e){return r("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500",on:{click:function(r){return t.$emit("folder-selected",e)}}},[r("svg",{staticClass:"favicon",class:e.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon(e.icon)}})]),t._v(" "),r("span",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(e.title))])])})),0):t._e()]),t._v(" "),t.document.feeds&&t.document.feeds.length>0?r("h2",[t._v(t._s(t.__("Feeds")))]):t._e(),t._v(" "),t._l(t.document.feeds,(function(e){return r("div",{key:e.id,staticClass:"rounded bg-gray-600 mb-2 p-2"},[r("div",{staticClass:"flex justify-between items-center"},[r("div",{staticClass:"flex items-center my-0 py-0"},[r("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),r("div",[t._v(t._s(e.title))])]),t._v(" "),e.is_ignored?r("button",{staticClass:"button success",on:{click:function(r){return t.follow(e)}}},[t._v(t._s(t.__("Follow")))]):t._e(),t._v(" "),e.is_ignored?t._e():r("button",{staticClass:"button danger",on:{click:function(r){return t.ignore(e)}}},[t._v(t._s(t.__("Ignore")))])]),t._v(" "),e.description?r("div",{domProps:{innerHTML:t._s(e.description)}}):t._e(),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),r("dd",[r("div",[t._v(t._s(e.url))])]),t._v(" "),r("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:e.checked_at,calendar:!0}})],1)])])})),t._v(" "),r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},u4XC:function(t,e,r){"use strict";var n="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.exports=function(t){var e=this,r=[],o=0;if(Array.isArray(this.items))do{var i=this.items.slice(o,o+t),s=new this.constructor(i);r.push(s),o+=t}while(o1&&void 0!==arguments[1]?arguments[1]:0,r=n(this.items),o=r.slice(e).filter((function(e,r){return r%t==0}));return new this.constructor(o)}},"x+iC":function(t,e,r){"use strict";t.exports=function(t,e){var r=this.values();if(void 0===e)return r.implode(t);var n=r.count();if(0===n)return"";if(1===n)return r.last();var o=r.pop();return r.implode(t)+e+o}},xA6t:function(t,e,r){"use strict";var n=r("0tQ4");t.exports=function(t,e){return this.filter((function(r){return n(r,t)e[e.length-1]}))}},xWoM:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Array.isArray(this.items)?Object.keys(this.items).forEach((function(r){e[t.items[r]]=Number(r)})):Object.keys(this.items).forEach((function(r){e[t.items[r]]=r})),new this.constructor(e)}},xazZ:function(t,e,r){"use strict";t.exports=function(t){return this.filter((function(e){return e instanceof t}))}},xgus:function(t,e,r){"use strict";var n=r("SIfw").isObject;t.exports=function(t){var e=this;return n(this.items)?new this.constructor(Object.keys(this.items).reduce((function(r,n,o){return o+1>t&&(r[n]=e.items[n]),r}),{})):new this.constructor(this.items.slice(t))}},xi9Z:function(t,e,r){"use strict";t.exports=function(t,e){return void 0===e?this.items.join(t):new this.constructor(this.items).pluck(t).all().join(e)}},yLpj:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},ysnW:function(t,e,r){var n={"./DateTime.vue":"YrHs","./Details/DetailsDocument.vue":"tpAN","./Details/DetailsDocuments.vue":"2FZ/","./Details/DetailsFeedItem.vue":"c993","./Details/DetailsFolder.vue":"l2C0","./DocumentItem.vue":"IfUw","./DocumentsList.vue":"qBwO","./FeedItem.vue":"+CwO","./FeedItemsList.vue":"qigg","./FolderItem.vue":"4VNc","./FoldersTree.vue":"RB6r","./Importer.vue":"gDOT","./Importers/ImportFromCyca.vue":"wT45","./ThemeCard.vue":"CV10","./ThemesBrowser.vue":"pKhy"};function o(t){var e=i(t);return r(e)}function i(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}o.keys=function(){return Object.keys(n)},o.resolve=i,t.exports=o,o.id="ysnW"},ytFn:function(t,e,r){"use strict";t.exports=function(t){var e,r=void 0;Array.isArray(t)?(e=r=[]).push.apply(e,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e3&&void 0!==arguments[3]?arguments[3]:null;return a(this,v),(n=m.call(this)).name=t,n.absolute=r,n.ziggy=i||Ziggy,n.urlBuilder=n.name?new o(t,r,n.ziggy):null,n.template=n.urlBuilder?n.urlBuilder.construct():"",n.urlParams=n.normalizeParams(e),n.queryParams={},n.hydrated="",n}return n=v,(l=[{key:"normalizeParams",value:function(t){return void 0===t?{}:((t="object"!==s(t)?[t]:t).hasOwnProperty("id")&&-1==this.template.indexOf("{id}")&&(t=[t.id]),this.numericParamIndices=Array.isArray(t),Object.assign({},t))}},{key:"with",value:function(t){return this.urlParams=this.normalizeParams(t),this}},{key:"withQuery",value:function(t){return Object.assign(this.queryParams,t),this}},{key:"hydrateUrl",value:function(){var t=this;if(this.hydrated)return this.hydrated;var e=this.template.replace(/{([^}]+)}/gi,(function(e,r){var n,o,i=t.trimParam(e);if(t.ziggy.defaultParameters.hasOwnProperty(i)&&(n=t.ziggy.defaultParameters[i]),n&&!t.urlParams[i])return delete t.urlParams[i],n;if(t.numericParamIndices?(t.urlParams=Object.values(t.urlParams),o=t.urlParams.shift()):(o=t.urlParams[i],delete t.urlParams[i]),null==o){if(-1===e.indexOf("?"))throw new Error("Ziggy Error: '"+i+"' key is required for route '"+t.name+"'");return""}return o.id?encodeURIComponent(o.id):encodeURIComponent(o)}));return null!=this.urlBuilder&&""!==this.urlBuilder.path&&(e=e.replace(/\/+$/,"")),this.hydrated=e,this.hydrated}},{key:"matchUrl",value:function(){var t=window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname,e=this.template.replace(/(\/\{[^\}]*\?\})/g,"/").replace(/(\{[^\}]*\})/gi,"[^/?]+").replace(/\/?$/,"").split("://")[1],r=this.template.replace(/(\{[^\}]*\})/gi,"[^/?]+").split("://")[1],n=t.replace(/\/?$/,"/"),o=new RegExp("^"+r+"/$").test(n),i=new RegExp("^"+e+"/$").test(n);return o||i}},{key:"constructQuery",value:function(){if(0===Object.keys(this.queryParams).length&&0===Object.keys(this.urlParams).length)return"";var t=Object.assign(this.urlParams,this.queryParams);return Object(i.stringify)(t,{encodeValuesOnly:!0,skipNulls:!0,addQueryPrefix:!0,arrayFormat:"indices"})}},{key:"current",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=Object.keys(this.ziggy.namedRoutes),n=r.filter((function(e){return-1!==t.ziggy.namedRoutes[e].methods.indexOf("GET")&&new v(e,void 0,void 0,t.ziggy).matchUrl()}))[0];if(e){var o=new RegExp("^"+e.replace(".","\\.").replace("*",".*")+"$","i");return o.test(n)}return n}},{key:"check",value:function(t){return Object.keys(this.ziggy.namedRoutes).includes(t)}},{key:"extractParams",value:function(t,e,r){var n=this,o=t.split(r);return e.split(r).reduce((function(t,e,r){return 0===e.indexOf("{")&&-1!==e.indexOf("}")&&o[r]?Object.assign(t,(i={},s=n.trimParam(e),a=o[r],s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i)):t;var i,s,a}),{})}},{key:"parse",value:function(){this.return=this.hydrateUrl()+this.constructQuery()}},{key:"url",value:function(){return this.parse(),this.return}},{key:"toString",value:function(){return this.url()}},{key:"trimParam",value:function(t){return t.replace(/{|}|\?/g,"")}},{key:"valueOf",value:function(){return this.url()}},{key:"params",get:function(){var t=this.ziggy.namedRoutes[this.current()];return Object.assign(this.extractParams(window.location.hostname,t.domain||"","."),this.extractParams(window.location.pathname.slice(1),t.uri,"/"))}}])&&c(n.prototype,l),f&&c(n,f),v}(l(String));function v(t,e,r,n){return new m(t,e,r,n)}var y={namedRoutes:{account:{uri:"account",methods:["GET","HEAD"],domain:null},home:{uri:"/",methods:["GET","HEAD"],domain:null},"account.password":{uri:"account/password",methods:["GET","HEAD"],domain:null},"account.theme":{uri:"account/theme",methods:["GET","HEAD"],domain:null},"account.setTheme":{uri:"account/theme",methods:["POST"],domain:null},"account.theme.details":{uri:"account/theme/details/{name}",methods:["GET","HEAD"],domain:null},"account.getThemes":{uri:"account/theme/themes",methods:["GET","HEAD"],domain:null},"account.import.form":{uri:"account/import",methods:["GET","HEAD"],domain:null},"account.import":{uri:"account/import",methods:["POST"],domain:null},"account.export":{uri:"account/export",methods:["GET","HEAD"],domain:null},"document.move":{uri:"document/move/{sourceFolder}/{targetFolder}",methods:["POST"],domain:null},"document.destroy_bookmarks":{uri:"document/delete_bookmarks/{folder}",methods:["POST"],domain:null},"document.visit":{uri:"document/{document}/visit/{folder}",methods:["POST"],domain:null},"feed_item.mark_as_read":{uri:"feed_item/mark_as_read",methods:["POST"],domain:null},"feed.ignore":{uri:"feed/{feed}/ignore",methods:["POST"],domain:null},"feed.follow":{uri:"feed/{feed}/follow",methods:["POST"],domain:null},"folder.index":{uri:"folder",methods:["GET","HEAD"],domain:null},"folder.store":{uri:"folder",methods:["POST"],domain:null},"folder.show":{uri:"folder/{folder}",methods:["GET","HEAD"],domain:null},"folder.update":{uri:"folder/{folder}",methods:["PUT","PATCH"],domain:null},"folder.destroy":{uri:"folder/{folder}",methods:["DELETE"],domain:null},"document.index":{uri:"document",methods:["GET","HEAD"],domain:null},"document.store":{uri:"document",methods:["POST"],domain:null},"document.show":{uri:"document/{document}",methods:["GET","HEAD"],domain:null},"feed_item.index":{uri:"feed_item",methods:["GET","HEAD"],domain:null},"feed_item.show":{uri:"feed_item/{feed_item}",methods:["GET","HEAD"],domain:null}},baseUrl:"https://cyca.athaliasoft.com/",baseProtocol:"https",baseDomain:"cyca.athaliasoft.com",basePort:!1,defaultParameters:[]};if("undefined"!=typeof window&&void 0!==window.Ziggy)for(var g in window.Ziggy.namedRoutes)y.namedRoutes[g]=window.Ziggy.namedRoutes[g];window.route=v,window.Ziggy=y,Vue.mixin({methods:{route:function(t,e,r){return v(t,e,r,y)},icon:function(t){return document.querySelector('meta[name="icons-file-url"]').getAttribute("content")+"#"+t},__:function(t){var e=lang[t];return e||t}}})}}); \ No newline at end of file +!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/",r(r.s=1)}({"+CwO":function(t,e,r){"use strict";r.r(e);var n=r("L0RC"),o=r.n(n),i=r("L2JU");function s(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(t,e)}(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 a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r|[^<>]*$1')})),t}})},d=r("KHd+"),p=Object(d.a)(f,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a",{staticClass:"feed-item",class:{selected:t.is_selected,read:0===t.feedItem.feed_item_states_count},attrs:{href:t.feedItem.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),e.preventDefault(),t.onClicked(e))}}},[r("div",{staticClass:"feed-item-label",domProps:{innerHTML:t._s(t.highlight(t.feedItem.title))}}),t._v(" "),r("div",{staticClass:"feed-item-meta"},[r("date-time",{staticClass:"flex-none mr-4 w-2/12",attrs:{datetime:t.feedItem.published_at,calendar:!0}}),t._v(" "),r("img",{staticClass:"favicon",attrs:{src:t.feedItem.feeds[0].favicon}}),t._v(" "),r("div",{staticClass:"truncate"},[t._v(t._s(t.feedItem.feeds[0].title))])],1)])}),[],!1,null,null,null);e.default=p.exports},"+hMf":function(t,e,r){"use strict";t.exports=function(t,e){return this.items[t]=e,this}},"+p9u":function(t,e,r){"use strict";var n=r("SIfw"),o=n.isArray,i=n.isObject,s=n.isFunction;t.exports=function(t){var e=this,r=null,n=void 0,a=function(e){return e===t};return s(t)&&(a=t),o(this.items)&&(n=this.items.filter((function(t){return!0!==r&&(r=a(t)),r}))),i(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!0!==r&&(r=a(e.items[n])),!1!==r&&(t[n]=e.items[n]),t}),{})),new this.constructor(n)}},"/c+j":function(t,e,r){"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var r=this.items.filter((function(t){return-1===e.indexOf(t)}));return new this.constructor(r)}},"/dWu":function(t,e,r){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var e={};return this.items.forEach((function(r,o){var i=t(r,o),s=n(i,2),a=s[0],c=s[1];void 0===e[a]?e[a]=[c]:e[a].push(c)})),new this.constructor(e)}},"/jPX":function(t,e,r){"use strict";t.exports=function(t){var e=this,r=void 0;return Array.isArray(this.items)?(r=[new this.constructor([]),new this.constructor([])],this.items.forEach((function(e){!0===t(e)?r[0].push(e):r[1].push(e)}))):(r=[new this.constructor({}),new this.constructor({})],Object.keys(this.items).forEach((function(n){var o=e.items[n];!0===t(o)?r[0].put(n,o):r[1].put(n,o)}))),new this.constructor(r)}},"/n9D":function(t,e,r){"use strict";t.exports=function(t,e,r){var n=this.slice(t,e);if(this.items=this.diff(n.all()).all(),Array.isArray(r))for(var o=0,i=r.length;o1;){var e=t.pop(),r=e.obj[e.prop];if(o(r)){for(var n=[],i=0;i=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?o+=n.charAt(s):a<128?o+=i[a]:a<2048?o+=i[192|a>>6]+i[128|63&a]:a<55296||a>=57344?o+=i[224|a>>12]+i[128|a>>6&63]+i[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&n.charCodeAt(s)),o+=i[240|a>>18]+i[128|a>>12&63]+i[128|a>>6&63]+i[128|63&a])}return o},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,r,i){if(!r)return e;if("object"!=typeof r){if(o(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(i&&(i.plainObjects||i.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return o(e)&&!o(r)&&(a=s(e,i)),o(e)&&o(r)?(r.forEach((function(r,o){if(n.call(e,o)){var s=e[o];s&&"object"==typeof s&&r&&"object"==typeof r?e[o]=t(s,r,i):e.push(r)}else e[o]=r})),e):Object.keys(r).reduce((function(e,o){var s=r[o];return n.call(e,o)?e[o]=t(e[o],s,i):e[o]=s,e}),a)}}},"0k4l":function(t,e,r){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))return new this.constructor(this.items.map(t));var r={};return Object.keys(this.items).forEach((function(n){r[n]=t(e.items[n],n)})),new this.constructor(r)}},"0on8":function(t,e,r){"use strict";var n="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.exports=function(){return"object"!==n(this.items)||Array.isArray(this.items)?JSON.stringify(this.toArray()):JSON.stringify(this.all())}},"0qqO":function(t,e,r){"use strict";t.exports=function(t){return this.each((function(e,r){t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("button",{staticClass:"info ml-2",on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.onOpenClicked(e))}}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[t._l(t.documents,(function(t){return r("img",{key:t.id,staticClass:"favicon inline mr-1 mb-1",attrs:{title:t.title,src:t.favicon}})})),t._v(" "),r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},"2YvH":function(t,e,r){"use strict";var n=r("SIfw"),o=n.isArray,i=n.isObject;t.exports=function(t){var e=t||1/0,r=!1,n=[],s=function(t){n=[],o(t)?t.forEach((function(t){o(t)?n=n.concat(t):i(t)?Object.keys(t).forEach((function(e){n=n.concat(t[e])})):n.push(t)})):Object.keys(t).forEach((function(e){o(t[e])?n=n.concat(t[e]):i(t[e])?Object.keys(t[e]).forEach((function(r){n=n.concat(t[e][r])})):n.push(t[e])})),r=0===(r=n.filter((function(t){return i(t)}))).length,e-=1};for(s(this.items);!r&&e>0;)s(n);return new this.constructor(n)}},"3wPk":function(t,e,r){"use strict";t.exports=function(t){return this.map((function(e,r){return t.apply(void 0,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?t:0,t+"rem"},isDraggable:function(){return!this.folder.deleted_at&&"folder"===this.folder.type},canDrop:function(){return!this.folder.deleted_at&&("folder"===this.folder.type||"root"===this.folder.type)},branchIsExpanded:function(){var t=this.folder.parent_id;if(!t||!this.folders)return!0;for(;null!=t;){var e=this.folders.find((function(e){return e.id===t}));if(e&&!e.is_expanded)return!1;t=e.parent_id}return!0},expanderIcon:function(){return this.folder.is_expanded?"expanded":"collapsed"}}),methods:i(i({},Object(n.b)({startDraggingFolder:"folders/startDraggingFolder",stopDraggingFolder:"folders/stopDraggingFolder",dropIntoFolder:"folders/dropIntoFolder",toggleExpanded:"folders/toggleExpanded"})),{},{onDragStart:function(t){this.startDraggingFolder(this.folder)},onDragEnd:function(){this.stopDraggingFolder(),this.is_dragged_over=!1},onDrop:function(){this.is_dragged_over=!1,this.$emit("item-dropped",this.folder)},onDragLeave:function(){this.is_dragged_over=!1},onDragOver:function(t){this.is_dragged_over=!0,this.canDrop?(t.preventDefault(),this.cannot_drop=!1):this.cannot_drop=!0},onClick:function(){switch(this.folder.type){case"account":window.location.href=route("account");break;case"logout":document.getElementById("logout-form").submit();break;default:this.$emit("selected-folder-changed",this.folder)}}})},c=r("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return t.branchIsExpanded?r("button",{staticClass:"list-item",class:{selected:t.folder.is_selected,"dragged-over":t.is_dragged_over,"cannot-drop":t.cannot_drop,deleted:t.folder.deleted_at},attrs:{draggable:t.isDraggable},on:{click:function(e){return e.preventDefault(),t.onClick(e)},dragstart:t.onDragStart,dragend:t.onDragEnd,drop:t.onDrop,dragleave:t.onDragLeave,dragover:t.onDragOver}},[r("div",{staticClass:"list-item-label",style:{"padding-left":t.indent}},["folder"===t.folder.type?r("span",{staticClass:"caret"},["folder"===t.folder.type&&t.folder.children_count>0?r("svg",{attrs:{fill:"currentColor",width:"16",height:"16"},on:{"!click":function(e){return e.stopPropagation(),t.toggleExpanded(t.folder)}}},[r("use",{attrs:{"xlink:href":t.icon(t.expanderIcon)}})]):t._e()]):t._e(),t._v(" "),r("svg",{staticClass:"favicon",class:t.folder.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon(t.folder.icon)}})]),t._v(" "),r("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.folder.title))])]),t._v(" "),t.folder.feed_item_states_count>0?r("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]):t._e()}),[],!1,null,null,null);e.default=u.exports},"4s1B":function(t,e,r){"use strict";t.exports=function(){var t=[].concat(this.items).reverse();return new this.constructor(t)}},"5Cq2":function(t,e,r){"use strict";var n="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.exports=function(t){var e=function t(e,r){var o={};return Object.keys(Object.assign({},e,r)).forEach((function(i){void 0===e[i]&&void 0!==r[i]?o[i]=r[i]:void 0!==e[i]&&void 0===r[i]?o[i]=e[i]:void 0!==e[i]&&void 0!==r[i]&&(e[i]===r[i]?o[i]=e[i]:Array.isArray(e[i])||"object"!==n(e[i])||Array.isArray(r[i])||"object"!==n(r[i])?o[i]=[].concat(e[i],r[i]):o[i]=t(e[i],r[i]))})),o};return t?"Collection"===t.constructor.name?new this.constructor(e(this.items,t.all())):new this.constructor(e(this.items,t)):this}},"6y7s":function(t,e,r){"use strict";t.exports=function(){var t;return(t=this.items).push.apply(t,arguments),this}},"7zD/":function(t,e,r){"use strict";t.exports=function(t){var e=this;if(Array.isArray(this.items))this.items=this.items.map(t);else{var r={};Object.keys(this.items).forEach((function(n){r[n]=t(e.items[n],n)})),this.items=r}return this}},"8oxB":function(t,e){var r,n,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(t){r=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var t=a(d);l=!0;for(var e=u.length;e;){for(c=u,u=[];++f1)for(var r=1;r1&&void 0!==arguments[1]?arguments[1]:null;return void 0!==this.items[t]?this.items[t]:n(e)?e():null!==e?e:null}},AmQ0:function(t,e,r){"use strict";r.r(e);var n=r("o0o1"),o=r.n(n);function i(t,e,r,n,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}var s,a,c={props:["highlight"],mounted:function(){this.$watch("highlight.expression",this.updateHighlight)},methods:{updateHighlight:(s=o.a.mark((function t(){var e;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this,t.next=3,api.put(route("highlight.update",e.highlight),{expression:e.highlight.expression,color:e.highlight.color});case 3:t.sent;case 4:case"end":return t.stop()}}),t,this)})),a=function(){var t=this,e=arguments;return new Promise((function(r,n){var o=s.apply(t,e);function a(t){i(o,r,n,a,c,"next",t)}function c(t){i(o,r,n,a,c,"throw",t)}a(void 0)}))},function(){return a.apply(this,arguments)}),removeHighlight:function(t){this.$emit("destroy",t)}}},u=r("KHd+"),l=Object(u.a)(c,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("tr",[r("td",{staticClass:"w-1/2"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.highlight.expression,expression:"highlight.expression"}],staticClass:"w-full",attrs:{type:"text","aria-label":t.__("Expression")},domProps:{value:t.highlight.expression},on:{input:function(e){e.target.composing||t.$set(t.highlight,"expression",e.target.value)}}})]),t._v(" "),r("td",{staticClass:"w-1/4"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.highlight.color,expression:"highlight.color"}],staticClass:"w-full",attrs:{type:"color","aria-label":t.__("Color")},domProps:{value:t.highlight.color},on:{input:function(e){e.target.composing||t.$set(t.highlight,"color",e.target.value)}}})]),t._v(" "),r("td",[r("button",{staticClass:"danger",attrs:{type:"button",title:t.__("Remove highlight")},on:{click:function(e){return t.removeHighlight(t.highlight.id)}}},[r("svg",{attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})])])])])}),[],!1,null,null,null);e.default=l.exports},Aoxg:function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e=t.items.length}}}}},DMgR:function(t,e,r){"use strict";var n=r("SIfw").isFunction;t.exports=function(t,e){var r=this.items[t]||null;return r||void 0===e||(r=n(e)?e():e),delete this.items[t],r}},Dv6Q:function(t,e,r){"use strict";t.exports=function(t,e){for(var r=1;r<=t;r+=1)this.items.push(e(r));return this}},"EBS+":function(t,e,r){"use strict";t.exports=function(t){if(!t)return this;if(Array.isArray(t)){var e=this.items.map((function(e,r){return t[r]||e}));return new this.constructor(e)}if("Collection"===t.constructor.name){var r=Object.assign({},this.items,t.all());return new this.constructor(r)}var n=Object.assign({},this.items,t);return new this.constructor(n)}},ET5h:function(t,e,r){"use strict";t.exports=function(t,e){return void 0!==e?this.put(e,t):(this.items.unshift(t),this)}},ErmX:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("SIfw").isFunction;t.exports=function(t){var e=n(this.items),r=0;if(void 0===t)for(var i=0,s=e.length;i0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"!==",null)}},HZ3i:function(t,e,r){"use strict";t.exports=function(){function t(e,r,n){var o=n[0];o instanceof r&&(o=o.all());for(var i=n.slice(1),s=!i.length,a=[],c=0;c=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return i(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||l(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function h(t){var e=parseFloat(t);return isNaN(e)?t:e}function m(t,e){for(var r=Object.create(null),n=t.split(","),o=0;o-1)return t.splice(r,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function w(t){var e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}var O=/-(\w)/g,x=w((function(t){return t.replace(O,(function(t,e){return e?e.toUpperCase():""}))})),k=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,j=w((function(t){return t.replace(C,"-$1").toLowerCase()})),A=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function r(r){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return r._length=t.length,r};function S(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function $(t,e){for(var r in e)t[r]=e[r];return t}function E(t){for(var e={},r=0;r0,X=Z&&Z.indexOf("edge/")>0,Y=(Z&&Z.indexOf("android"),Z&&/iphone|ipad|ipod|ios/.test(Z)||"ios"===J),tt=(Z&&/chrome\/\d+/.test(Z),Z&&/phantomjs/.test(Z),Z&&Z.match(/firefox\/(\d+)/)),et={}.watch,rt=!1;if(V)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){rt=!0}}),window.addEventListener("test-passive",null,nt)}catch(n){}var ot=function(){return void 0===K&&(K=!V&&!G&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),K},it=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,ct="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);at="undefined"!=typeof Set&&st(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 ut=D,lt=0,ft=function(){this.id=lt++,this.subs=[]};ft.prototype.addSub=function(t){this.subs.push(t)},ft.prototype.removeSub=function(t){g(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,r=t.length;e-1)if(i&&!_(o,"default"))s=!1;else if(""===s||s===j(t)){var c=Ut(String,o.type);(c<0||a0&&(le((c=t(c,(r||"")+"_"+n))[0])&&le(l)&&(f[u]=gt(l.text+c[0].text),c.shift()),f.push.apply(f,c)):a(c)?le(l)?f[u]=gt(l.text+c):""!==c&&f.push(gt(c)):le(c)&&le(l)?f[u]=gt(l.text+c.text):(s(e._isVList)&&i(c.tag)&&o(c.key)&&i(r)&&(c.key="__vlist"+r+"_"+n+"__"),f.push(c)));return f}(t):void 0}function le(t){return i(t)&&i(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var r=Object.create(null),n=ct?Reflect.ownKeys(t):Object.keys(t),o=0;o0,s=t?!!t.$stable:!i,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&r&&r!==n&&a===r.$key&&!i&&!r.$hasNormal)return r;for(var c in o={},t)t[c]&&"$"!==c[0]&&(o[c]=me(e,c,t[c]))}else o={};for(var u in e)u in o||(o[u]=ve(e,u));return t&&Object.isExtensible(t)&&(t._normalized=o),B(o,"$stable",s),B(o,"$key",a),B(o,"$hasNormal",i),o}function me(t,e,r){var n=function(){var t=arguments.length?r.apply(null,arguments):r({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return r.proxy&&Object.defineProperty(t,e,{get:n,enumerable:!0,configurable:!0}),n}function ve(t,e){return function(){return t[e]}}function ye(t,e){var r,n,o,s,a;if(Array.isArray(t)||"string"==typeof t)for(r=new Array(t.length),n=0,o=t.length;ndocument.createEvent("Event").timeStamp&&(ar=function(){return cr.now()})}function ur(){var t,e;for(sr=ar(),or=!0,tr.sort((function(t,e){return t.id-e.id})),ir=0;irir&&tr[r].id>t.id;)r--;tr.splice(r+1,0,t)}else tr.push(t);nr||(nr=!0,ee(ur))}}(this)},fr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||c(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Bt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},fr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fr.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},fr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var dr={enumerable:!0,configurable:!0,get:D,set:D};function pr(t,e,r){dr.get=function(){return this[e][r]},dr.set=function(t){this[e][r]=t},Object.defineProperty(t,r,dr)}var hr={lazy:!0};function mr(t,e,r){var n=!ot();"function"==typeof r?(dr.get=n?vr(e):yr(r),dr.set=D):(dr.get=r.get?n&&!1!==r.cache?vr(e):yr(r.get):D,dr.set=r.set||D),Object.defineProperty(t,e,dr)}function vr(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ft.target&&e.depend(),e.value}}function yr(t){return function(){return t.call(this,this)}}function gr(t,e,r,n){return l(r)&&(n=r,r=r.handler),"string"==typeof r&&(r=t[r]),t.$watch(e,r,n)}var br=0;function _r(t){var e=t.options;if(t.super){var r=_r(t.super);if(r!==t.superOptions){t.superOptions=r;var n=function(t){var e,r=t.options,n=t.sealedOptions;for(var o in r)r[o]!==n[o]&&(e||(e={}),e[o]=r[o]);return e}(t);n&&$(t.extendOptions,n),(e=t.options=Lt(r,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function wr(t){this._init(t)}function Or(t){return t&&(t.Ctor.options.name||t.tag)}function xr(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(r=t,"[object RegExp]"===u.call(r)&&t.test(e));var r}function kr(t,e){var r=t.cache,n=t.keys,o=t._vnode;for(var i in r){var s=r[i];if(s){var a=Or(s.componentOptions);a&&!e(a)&&Cr(r,i,n,o)}}}function Cr(t,e,r,n){var o=t[e];!o||n&&o.tag===n.tag||o.componentInstance.$destroy(),t[e]=null,g(r,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=br++,e._isVue=!0,t&&t._isComponent?function(t,e){var r=t.$options=Object.create(t.constructor.options),n=e._parentVnode;r.parent=e.parent,r._parentVnode=n;var o=n.componentOptions;r.propsData=o.propsData,r._parentListeners=o.listeners,r._renderChildren=o.children,r._componentTag=o.tag,e.render&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Lt(_r(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,r=e.parent;if(r&&!e.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(t)}t.$parent=r,t.$root=r?r.$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&&Je(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,o=r&&r.context;t.$slots=de(e._renderChildren,o),t.$scopedSlots=n,t._c=function(e,r,n,o){return Re(t,e,r,n,o,!1)},t.$createElement=function(e,r,n,o){return Re(t,e,r,n,o,!0)};var i=r&&r.data;At(t,"$attrs",i&&i.attrs||n,null,!0),At(t,"$listeners",e._parentListeners||n,null,!0)}(e),Ye(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(kt(!1),Object.keys(e).forEach((function(r){At(t,r,e[r])})),kt(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var r=t.$options.propsData||{},n=t._props={},o=t.$options._propKeys=[];t.$parent&&kt(!1);var i=function(i){o.push(i);var s=Mt(i,e,r,t);At(n,i,s),i in t||pr(t,"_props",i)};for(var s in e)i(s);kt(!0)}(t,e.props),e.methods&&function(t,e){for(var r in t.$options.props,e)t[r]="function"!=typeof e[r]?D:A(e[r],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;l(e=t._data="function"==typeof e?function(t,e){pt();try{return t.call(e,e)}catch(t){return Bt(t,e,"data()"),{}}finally{ht()}}(e,t):e||{})||(e={});for(var r,n=Object.keys(e),o=t.$options.props,i=(t.$options.methods,n.length);i--;){var s=n[i];o&&_(o,s)||(void 0,36!==(r=(s+"").charCodeAt(0))&&95!==r&&pr(t,"_data",s))}jt(e,!0)}(t):jt(t._data={},!0),e.computed&&function(t,e){var r=t._computedWatchers=Object.create(null),n=ot();for(var o in e){var i=e[o],s="function"==typeof i?i:i.get;n||(r[o]=new fr(t,s||D,D,hr)),o in t||mr(t,o,i)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var r in e){var n=e[r];if(Array.isArray(n))for(var o=0;o1?S(e):e;for(var r=S(arguments,1),n='event handler for "'+t+'"',o=0,i=e.length;oparseInt(this.max)&&Cr(s,a[0],a,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return H}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:$,mergeOptions:Lt,defineReactive:At},t.set=St,t.delete=$t,t.nextTick=ee,t.observable=function(t){return jt(t),t},t.options=Object.create(null),M.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,$(t.options.components,Ar),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var r=S(arguments,1);return r.unshift(this),"function"==typeof t.install?t.install.apply(t,r):"function"==typeof t&&t.apply(null,r),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Lt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var r=this,n=r.cid,o=t._Ctor||(t._Ctor={});if(o[n])return o[n];var i=t.name||r.options.name,s=function(t){this._init(t)};return(s.prototype=Object.create(r.prototype)).constructor=s,s.cid=e++,s.options=Lt(r.options,t),s.super=r,s.options.props&&function(t){var e=t.options.props;for(var r in e)pr(t.prototype,"_props",r)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var r in e)mr(t.prototype,r,e[r])}(s),s.extend=r.extend,s.mixin=r.mixin,s.use=r.use,M.forEach((function(t){s[t]=r[t]})),i&&(s.options.components[i]=s),s.superOptions=r.options,s.extendOptions=t,s.sealedOptions=$({},s.options),o[n]=s,s}}(t),function(t){M.forEach((function(e){t[e]=function(t,r){return r?("component"===e&&l(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===e&&"function"==typeof r&&(r={bind:r,update:r}),this.options[e+"s"][t]=r,r):this.options[e+"s"][t]}}))}(t)}(wr),Object.defineProperty(wr.prototype,"$isServer",{get:ot}),Object.defineProperty(wr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wr,"FunctionalRenderContext",{value:Te}),wr.version="2.6.12";var Sr=m("style,class"),$r=m("input,textarea,option,select,progress"),Er=function(t,e,r){return"value"===r&&$r(t)&&"button"!==e||"selected"===r&&"option"===t||"checked"===r&&"input"===t||"muted"===r&&"video"===t},Dr=m("contenteditable,draggable,spellcheck"),Tr=m("events,caret,typing,plaintext-only"),Pr=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"),Ir="http://www.w3.org/1999/xlink",Fr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Lr=function(t){return Fr(t)?t.slice(6,t.length):""},Nr=function(t){return null==t||!1===t};function Mr(t,e){return{staticClass:Rr(t.staticClass,e.staticClass),class:i(t.class)?[t.class,e.class]:e.class}}function Rr(t,e){return t?e?t+" "+e:t:e||""}function Hr(t){return Array.isArray(t)?function(t){for(var e,r="",n=0,o=t.length;n-1?dn(t,e,r):Pr(e)?Nr(r)?t.removeAttribute(e):(r="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,r)):Dr(e)?t.setAttribute(e,function(t,e){return Nr(e)||"false"===e?"false":"contenteditable"===t&&Tr(e)?e:"true"}(e,r)):Fr(e)?Nr(r)?t.removeAttributeNS(Ir,Lr(e)):t.setAttributeNS(Ir,e,r):dn(t,e,r)}function dn(t,e,r){if(Nr(r))t.removeAttribute(e);else{if(W&&!Q&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==r&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,r)}}var pn={create:ln,update:ln};function hn(t,e){var r=e.elm,n=e.data,s=t.data;if(!(o(n.staticClass)&&o(n.class)&&(o(s)||o(s.staticClass)&&o(s.class)))){var a=function(t){for(var e=t.data,r=t,n=t;i(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(e=Mr(n.data,e));for(;i(r=r.parent);)r&&r.data&&(e=Mr(e,r.data));return function(t,e){return i(t)||i(e)?Rr(t,Hr(e)):""}(e.staticClass,e.class)}(e),c=r._transitionClasses;i(c)&&(a=Rr(a,Hr(c))),a!==r._prevClass&&(r.setAttribute("class",a),r._prevClass=a)}}var mn,vn,yn,gn,bn,_n,wn={create:hn,update:hn},On=/[\w).+\-_$\]]/;function xn(t){var e,r,n,o,i,s=!1,a=!1,c=!1,u=!1,l=0,f=0,d=0,p=0;for(n=0;n=0&&" "===(m=t.charAt(h));h--);m&&On.test(m)||(u=!0)}}else void 0===o?(p=n+1,o=t.slice(0,n).trim()):v();function v(){(i||(i=[])).push(t.slice(p,n).trim()),p=n+1}if(void 0===o?o=t.slice(0,n).trim():0!==p&&v(),i)for(n=0;n-1?{exp:t.slice(0,gn),key:'"'+t.slice(gn+1)+'"'}:{exp:t,key:null};for(vn=t,gn=bn=_n=0;!Hn();)Un(yn=Rn())?Kn(yn):91===yn&&Bn(yn);return{exp:t.slice(0,bn),key:t.slice(bn+1,_n)}}(t);return null===r.key?t+"="+e:"$set("+r.exp+", "+r.key+", "+e+")"}function Rn(){return vn.charCodeAt(++gn)}function Hn(){return gn>=mn}function Un(t){return 34===t||39===t}function Bn(t){var e=1;for(bn=gn;!Hn();)if(Un(t=Rn()))Kn(t);else if(91===t&&e++,93===t&&e--,0===e){_n=gn;break}}function Kn(t){for(var e=t;!Hn()&&(t=Rn())!==e;);}var zn,qn="__r";function Vn(t,e,r){var n=zn;return function o(){null!==e.apply(null,arguments)&&Zn(t,o,r,n)}}var Gn=Gt&&!(tt&&Number(tt[1])<=53);function Jn(t,e,r,n){if(Gn){var o=sr,i=e;e=i._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=o||t.timeStamp<=0||t.target.ownerDocument!==document)return i.apply(this,arguments)}}zn.addEventListener(t,e,rt?{capture:r,passive:n}:r)}function Zn(t,e,r,n){(n||zn).removeEventListener(t,e._wrapper||e,r)}function Wn(t,e){if(!o(t.data.on)||!o(e.data.on)){var r=e.data.on||{},n=t.data.on||{};zn=e.elm,function(t){if(i(t.__r)){var e=W?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}i(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(r),se(r,n,Jn,Zn,Vn,e.context),zn=void 0}}var Qn,Xn={create:Wn,update:Wn};function Yn(t,e){if(!o(t.data.domProps)||!o(e.data.domProps)){var r,n,s=e.elm,a=t.data.domProps||{},c=e.data.domProps||{};for(r in i(c.__ob__)&&(c=e.data.domProps=$({},c)),a)r in c||(s[r]="");for(r in c){if(n=c[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),n===a[r])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===r&&"PROGRESS"!==s.tagName){s._value=n;var u=o(n)?"":String(n);to(s,u)&&(s.value=u)}else if("innerHTML"===r&&Kr(s.tagName)&&o(s.innerHTML)){(Qn=Qn||document.createElement("div")).innerHTML=""+n+"";for(var l=Qn.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;l.firstChild;)s.appendChild(l.firstChild)}else if(n!==a[r])try{s[r]=n}catch(t){}}}}function to(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var r=!0;try{r=document.activeElement!==t}catch(t){}return r&&t.value!==e}(t,e)||function(t,e){var r=t.value,n=t._vModifiers;if(i(n)){if(n.number)return h(r)!==h(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}(t,e))}var eo={create:Yn,update:Yn},ro=w((function(t){var e={},r=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function no(t){var e=oo(t.style);return t.staticStyle?$(t.staticStyle,e):e}function oo(t){return Array.isArray(t)?E(t):"string"==typeof t?ro(t):t}var io,so=/^--/,ao=/\s*!important$/,co=function(t,e,r){if(so.test(e))t.style.setProperty(e,r);else if(ao.test(r))t.style.setProperty(j(e),r.replace(ao,""),"important");else{var n=lo(e);if(Array.isArray(r))for(var o=0,i=r.length;o-1?e.split(ho).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var r=" "+(t.getAttribute("class")||"")+" ";r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function vo(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(ho).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var r=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?t.setAttribute("class",r):t.removeAttribute("class")}}function yo(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&$(e,go(t.name||"v")),$(e,t),e}return"string"==typeof t?go(t):void 0}}var go=w((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"}})),bo=V&&!Q,_o="transition",wo="animation",Oo="transition",xo="transitionend",ko="animation",Co="animationend";bo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Oo="WebkitTransition",xo="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ko="WebkitAnimation",Co="webkitAnimationEnd"));var jo=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Ao(t){jo((function(){jo(t)}))}function So(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),mo(t,e))}function $o(t,e){t._transitionClasses&&g(t._transitionClasses,e),vo(t,e)}function Eo(t,e,r){var n=To(t,e),o=n.type,i=n.timeout,s=n.propCount;if(!o)return r();var a=o===_o?xo:Co,c=0,u=function(){t.removeEventListener(a,l),r()},l=function(e){e.target===t&&++c>=s&&u()};setTimeout((function(){c0&&(r=_o,l=s,f=i.length):e===wo?u>0&&(r=wo,l=u,f=c.length):f=(r=(l=Math.max(s,u))>0?s>u?_o:wo:null)?r===_o?i.length:c.length:0,{type:r,timeout:l,propCount:f,hasTransform:r===_o&&Do.test(n[Oo+"Property"])}}function Po(t,e){for(;t.length1}function Ro(t,e){!0!==e.data.show&&Fo(e)}var Ho=function(t){var e,r,n={},c=t.modules,u=t.nodeOps;for(e=0;eh?b(t,o(r[y+1])?null:r[y+1].elm,r,p,y,n):p>y&&w(e,d,h)}(d,m,y,r,l):i(y)?(i(t.text)&&u.setTextContent(d,""),b(d,null,y,0,y.length-1,r)):i(m)?w(m,0,m.length-1):i(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),i(h)&&i(p=h.hook)&&i(p=p.postpatch)&&p(t,e)}}}function C(t,e,r){if(s(r)&&i(t.parent))t.parent.data.pendingInsert=e;else for(var n=0;n-1,s.selected!==i&&(s.selected=i);else if(I(qo(s),n))return void(t.selectedIndex!==a&&(t.selectedIndex=a));o||(t.selectedIndex=-1)}}function zo(t,e){return e.every((function(e){return!I(e,t)}))}function qo(t){return"_value"in t?t._value:t.value}function Vo(t){t.target.composing=!0}function Go(t){t.target.composing&&(t.target.composing=!1,Jo(t.target,"input"))}function Jo(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function Zo(t){return!t.componentInstance||t.data&&t.data.transition?t:Zo(t.componentInstance._vnode)}var Wo={model:Uo,show:{bind:function(t,e,r){var n=e.value,o=(r=Zo(r)).data&&r.data.transition,i=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&o?(r.data.show=!0,Fo(r,(function(){t.style.display=i}))):t.style.display=n?i:"none"},update:function(t,e,r){var n=e.value;!n!=!e.oldValue&&((r=Zo(r)).data&&r.data.transition?(r.data.show=!0,n?Fo(r,(function(){t.style.display=t.__vOriginalDisplay})):Lo(r,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,r,n,o){o||(t.style.display=t.__vOriginalDisplay)}}},Qo={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 Xo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Xo(ze(e.children)):t}function Yo(t){var e={},r=t.$options;for(var n in r.propsData)e[n]=t[n];var o=r._parentListeners;for(var i in o)e[x(i)]=o[i];return e}function ti(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var ei=function(t){return t.tag||Ke(t)},ri=function(t){return"show"===t.name},ni={name:"transition",props:Qo,abstract:!0,render:function(t){var e=this,r=this.$slots.default;if(r&&(r=r.filter(ei)).length){var n=this.mode,o=r[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return o;var i=Xo(o);if(!i)return o;if(this._leaving)return ti(t,o);var s="__transition-"+this._uid+"-";i.key=null==i.key?i.isComment?s+"comment":s+i.tag:a(i.key)?0===String(i.key).indexOf(s)?i.key:s+i.key:i.key;var c=(i.data||(i.data={})).transition=Yo(this),u=this._vnode,l=Xo(u);if(i.data.directives&&i.data.directives.some(ri)&&(i.data.show=!0),l&&l.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(i,l)&&!Ke(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=$({},c);if("out-in"===n)return this._leaving=!0,ae(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),ti(t,o);if("in-out"===n){if(Ke(i))return u;var d,p=function(){d()};ae(c,"afterEnter",p),ae(c,"enterCancelled",p),ae(f,"delayLeave",(function(t){d=t}))}}return o}}},oi=$({tag:String,moveClass:String},Qo);function ii(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function si(t){t.data.newPos=t.elm.getBoundingClientRect()}function ai(t){var e=t.data.pos,r=t.data.newPos,n=e.left-r.left,o=e.top-r.top;if(n||o){t.data.moved=!0;var i=t.elm.style;i.transform=i.WebkitTransform="translate("+n+"px,"+o+"px)",i.transitionDuration="0s"}}delete oi.mode;var ci={Transition:ni,TransitionGroup:{props:oi,beforeMount:function(){var t=this,e=this._update;this._update=function(r,n){var o=We(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,o(),e.call(t,r,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],s=Yo(this),a=0;a-1?Vr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Vr[t]=/HTMLUnknownElement/.test(e.toString())},$(wr.options.directives,Wo),$(wr.options.components,ci),wr.prototype.__patch__=V?Ho:D,wr.prototype.$mount=function(t,e){return function(t,e,r){var n;return t.$el=e,t.$options.render||(t.$options.render=yt),Ye(t,"beforeMount"),n=function(){t._update(t._render(),r)},new fr(t,n,D,{before:function(){t._isMounted&&!t._isDestroyed&&Ye(t,"beforeUpdate")}},!0),r=!1,null==t.$vnode&&(t._isMounted=!0,Ye(t,"mounted")),t}(this,t=t&&V?Jr(t):void 0,e)},V&&setTimeout((function(){H.devtools&&it&&it.emit("init",wr)}),0);var ui,li=/\{\{((?:.|\r?\n)+?)\}\}/g,fi=/[-.*+?^${}()|[\]\/\\]/g,di=w((function(t){var e=t[0].replace(fi,"\\$&"),r=t[1].replace(fi,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+r,"g")})),pi={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var r=In(t,"class");r&&(t.staticClass=JSON.stringify(r));var n=Pn(t,"class",!1);n&&(t.classBinding=n)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},hi={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var r=In(t,"style");r&&(t.staticStyle=JSON.stringify(ro(r)));var n=Pn(t,"style",!1);n&&(t.styleBinding=n)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},mi=m("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),vi=m("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),yi=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"),gi=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,bi=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,_i="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",wi="((?:"+_i+"\\:)?"+_i+")",Oi=new RegExp("^<"+wi),xi=/^\s*(\/?)>/,ki=new RegExp("^<\\/"+wi+"[^>]*>"),Ci=/^]+>/i,ji=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Di=/&(?:lt|gt|quot|amp|#39);/g,Ti=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Pi=m("pre,textarea",!0),Ii=function(t,e){return t&&Pi(t)&&"\n"===e[0]};function Fi(t,e){var r=e?Ti:Di;return t.replace(r,(function(t){return Ei[t]}))}var Li,Ni,Mi,Ri,Hi,Ui,Bi,Ki,zi=/^@|^v-on:/,qi=/^v-|^@|^:|^#/,Vi=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Gi=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ji=/^\(|\)$/g,Zi=/^\[.*\]$/,Wi=/:(.*)$/,Qi=/^:|^\.|^v-bind:/,Xi=/\.[^.\]]+(?=[^\]]*$)/g,Yi=/^v-slot(:|$)|^#/,ts=/[\r\n]/,es=/\s+/g,rs=w((function(t){return(ui=ui||document.createElement("div")).innerHTML=t,ui.textContent})),ns="_empty_";function os(t,e,r){return{type:1,tag:t,attrsList:e,attrsMap:ls(e),rawAttrsMap:{},parent:r,children:[]}}function is(t,e){var r,n;(n=Pn(r=t,"key"))&&(r.key=n),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Pn(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=In(t,"scope"),t.slotScope=e||In(t,"slot-scope")):(e=In(t,"slot-scope"))&&(t.slotScope=e);var r=Pn(t,"slot");if(r&&(t.slotTarget='""'===r?'"default"':r,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||Sn(t,"slot",r,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var n=Fn(t,Yi);if(n){var o=cs(n),i=o.name,s=o.dynamic;t.slotTarget=i,t.slotTargetDynamic=s,t.slotScope=n.value||ns}}else{var a=Fn(t,Yi);if(a){var c=t.scopedSlots||(t.scopedSlots={}),u=cs(a),l=u.name,f=u.dynamic,d=c[l]=os("template",[],t);d.slotTarget=l,d.slotTargetDynamic=f,d.children=t.children.filter((function(t){if(!t.slotScope)return t.parent=d,!0})),d.slotScope=a.value||ns,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Pn(t,"name"))}(t),function(t){var e;(e=Pn(t,"is"))&&(t.component=e),null!=In(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var o=0;o-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),Tn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+s+");if(Array.isArray($$a)){var $$v="+(n?"_n("+o+")":o)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Mn(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Mn(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Mn(e,"$$c")+"}",null,!0)}(t,n,o);else if("input"===i&&"radio"===s)!function(t,e,r){var n=r&&r.number,o=Pn(t,"value")||"null";An(t,"checked","_q("+e+","+(o=n?"_n("+o+")":o)+")"),Tn(t,"change",Mn(e,o),null,!0)}(t,n,o);else if("input"===i||"textarea"===i)!function(t,e,r){var n=t.attrsMap.type,o=r||{},i=o.lazy,s=o.number,a=o.trim,c=!i&&"range"!==n,u=i?"change":"range"===n?qn:"input",l="$event.target.value";a&&(l="$event.target.value.trim()"),s&&(l="_n("+l+")");var f=Mn(e,l);c&&(f="if($event.target.composing)return;"+f),An(t,"value","("+e+")"),Tn(t,u,f,null,!0),(a||s)&&Tn(t,"blur","$forceUpdate()")}(t,n,o);else if(!H.isReservedTag(i))return Nn(t,n,o),!1;return!0},text:function(t,e){e.value&&An(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&An(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:mi,mustUseProp:Er,canBeLeftOpenTag:vi,isReservedTag:zr,getTagNamespace:qr,staticKeys:function(t){return t.reduce((function(t,e){return t.concat(e.staticKeys||[])}),[]).join(",")}(vs)},gs=w((function(t){return m("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))}));var bs=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,_s=/\([^)]*?\);*$/,ws=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Os={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},xs={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"]},ks=function(t){return"if("+t+")return null;"},Cs={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ks("$event.target !== $event.currentTarget"),ctrl:ks("!$event.ctrlKey"),shift:ks("!$event.shiftKey"),alt:ks("!$event.altKey"),meta:ks("!$event.metaKey"),left:ks("'button' in $event && $event.button !== 0"),middle:ks("'button' in $event && $event.button !== 1"),right:ks("'button' in $event && $event.button !== 2")};function js(t,e){var r=e?"nativeOn:":"on:",n="",o="";for(var i in t){var s=As(t[i]);t[i]&&t[i].dynamic?o+=i+","+s+",":n+='"'+i+'":'+s+","}return n="{"+n.slice(0,-1)+"}",o?r+"_d("+n+",["+o.slice(0,-1)+"])":r+n}function As(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map((function(t){return As(t)})).join(",")+"]";var e=ws.test(t.value),r=bs.test(t.value),n=ws.test(t.value.replace(_s,""));if(t.modifiers){var o="",i="",s=[];for(var a in t.modifiers)if(Cs[a])i+=Cs[a],Os[a]&&s.push(a);else if("exact"===a){var c=t.modifiers;i+=ks(["ctrl","shift","alt","meta"].filter((function(t){return!c[t]})).map((function(t){return"$event."+t+"Key"})).join("||"))}else s.push(a);return s.length&&(o+=function(t){return"if(!$event.type.indexOf('key')&&"+t.map(Ss).join("&&")+")return null;"}(s)),i&&(o+=i),"function($event){"+o+(e?"return "+t.value+"($event)":r?"return ("+t.value+")($event)":n?"return "+t.value:t.value)+"}"}return e||r?t.value:"function($event){"+(n?"return "+t.value:t.value)+"}"}function Ss(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var r=Os[t],n=xs[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(r)+",$event.key,"+JSON.stringify(n)+")"}var $s={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(r){return"_b("+r+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:D},Es=function(t){this.options=t,this.warn=t.warn||Cn,this.transforms=jn(t.modules,"transformCode"),this.dataGenFns=jn(t.modules,"genData"),this.directives=$($({},$s),t.directives);var e=t.isReservedTag||T;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Ds(t,e){var r=new Es(e);return{render:"with(this){return "+(t?Ts(t,r):'_c("div")')+"}",staticRenderFns:r.staticRenderFns}}function Ts(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ps(t,e);if(t.once&&!t.onceProcessed)return Is(t,e);if(t.for&&!t.forProcessed)return Ls(t,e);if(t.if&&!t.ifProcessed)return Fs(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var r=t.slotName||'"default"',n=Hs(t,e),o="_t("+r+(n?","+n:""),i=t.attrs||t.dynamicAttrs?Ks((t.attrs||[]).concat(t.dynamicAttrs||[]).map((function(t){return{name:x(t.name),value:t.value,dynamic:t.dynamic}}))):null,s=t.attrsMap["v-bind"];return!i&&!s||n||(o+=",null"),i&&(o+=","+i),s&&(o+=(i?"":",null")+","+s),o+")"}(t,e);var r;if(t.component)r=function(t,e,r){var n=e.inlineTemplate?null:Hs(e,r,!0);return"_c("+t+","+Ns(e,r)+(n?","+n:"")+")"}(t.component,t,e);else{var n;(!t.plain||t.pre&&e.maybeComponent(t))&&(n=Ns(t,e));var o=t.inlineTemplate?null:Hs(t,e,!0);r="_c('"+t.tag+"'"+(n?","+n:"")+(o?","+o:"")+")"}for(var i=0;i>>0}(s):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(r+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var i=function(t,e){var r=t.children[0];if(r&&1===r.type){var n=Ds(r,e.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map((function(t){return"function(){"+t+"}"})).join(",")+"]}"}}(t,e);i&&(r+=i+",")}return r=r.replace(/,$/,"")+"}",t.dynamicAttrs&&(r="_b("+r+',"'+t.tag+'",'+Ks(t.dynamicAttrs)+")"),t.wrapData&&(r=t.wrapData(r)),t.wrapListeners&&(r=t.wrapListeners(r)),r}function Ms(t){return 1===t.type&&("slot"===t.tag||t.children.some(Ms))}function Rs(t,e){var r=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!r)return Fs(t,e,Rs,"null");if(t.for&&!t.forProcessed)return Ls(t,e,Rs);var n=t.slotScope===ns?"":String(t.slotScope),o="function("+n+"){return "+("template"===t.tag?t.if&&r?"("+t.if+")?"+(Hs(t,e)||"undefined")+":undefined":Hs(t,e)||"undefined":Ts(t,e))+"}",i=n?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+o+i+"}"}function Hs(t,e,r,n,o){var i=t.children;if(i.length){var s=i[0];if(1===i.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var a=r?e.maybeComponent(s)?",1":",0":"";return""+(n||Ts)(s,e)+a}var c=r?function(t,e){for(var r=0,n=0;n]*>)","i")),d=t.replace(f,(function(t,r,n){return u=n.length,Si(l)||"noscript"===l||(r=r.replace(//g,"$1").replace(//g,"$1")),Ii(l,r)&&(r=r.slice(1)),e.chars&&e.chars(r),""}));c+=t.length-d.length,t=d,j(l,c-u,c)}else{var p=t.indexOf("<");if(0===p){if(ji.test(t)){var h=t.indexOf("--\x3e");if(h>=0){e.shouldKeepComment&&e.comment(t.substring(4,h),c,c+h+3),x(h+3);continue}}if(Ai.test(t)){var m=t.indexOf("]>");if(m>=0){x(m+2);continue}}var v=t.match(Ci);if(v){x(v[0].length);continue}var y=t.match(ki);if(y){var g=c;x(y[0].length),j(y[1],g,c);continue}var b=k();if(b){C(b),Ii(b.tagName,t)&&x(1);continue}}var _=void 0,w=void 0,O=void 0;if(p>=0){for(w=t.slice(p);!(ki.test(w)||Oi.test(w)||ji.test(w)||Ai.test(w)||(O=w.indexOf("<",1))<0);)p+=O,w=t.slice(p);_=t.substring(0,p)}p<0&&(_=t),_&&x(_.length),e.chars&&_&&e.chars(_,c-_.length,c)}if(t===r){e.chars&&e.chars(t);break}}function x(e){c+=e,t=t.substring(e)}function k(){var e=t.match(Oi);if(e){var r,n,o={tagName:e[1],attrs:[],start:c};for(x(e[0].length);!(r=t.match(xi))&&(n=t.match(bi)||t.match(gi));)n.start=c,x(n[0].length),n.end=c,o.attrs.push(n);if(r)return o.unarySlash=r[1],x(r[0].length),o.end=c,o}}function C(t){var r=t.tagName,c=t.unarySlash;i&&("p"===n&&yi(r)&&j(n),a(r)&&n===r&&j(r));for(var u=s(r)||!!c,l=t.attrs.length,f=new Array(l),d=0;d=0&&o[s].lowerCasedTag!==a;s--);else s=0;if(s>=0){for(var u=o.length-1;u>=s;u--)e.end&&e.end(o[u].tag,r,i);o.length=s,n=s&&o[s-1].tag}else"br"===a?e.start&&e.start(t,[],!0,r,i):"p"===a&&(e.start&&e.start(t,[],!1,r,i),e.end&&e.end(t,r,i))}j()}(t,{warn:Li,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,i,s,l,f){var d=n&&n.ns||Ki(t);W&&"svg"===d&&(i=function(t){for(var e=[],r=0;rc&&(a.push(i=t.slice(c,o)),s.push(JSON.stringify(i)));var u=xn(n[1].trim());s.push("_s("+u+")"),a.push({"@binding":u}),c=o+n[0].length}return c':'
',Js.innerHTML.indexOf(" ")>0}var Xs=!!V&&Qs(!1),Ys=!!V&&Qs(!0),ta=w((function(t){var e=Jr(t);return e&&e.innerHTML})),ea=wr.prototype.$mount;wr.prototype.$mount=function(t,e){if((t=t&&Jr(t))===document.body||t===document.documentElement)return this;var r=this.$options;if(!r.render){var n=r.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=ta(n));else{if(!n.nodeType)return this;n=n.innerHTML}else t&&(n=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(n){var o=Ws(n,{outputSourceRange:!1,shouldDecodeNewlines:Xs,shouldDecodeNewlinesForHref:Ys,delimiters:r.delimiters,comments:r.comments},this),i=o.render,s=o.staticRenderFns;r.render=i,r.staticRenderFns=s}}return ea.call(this,t,e)},wr.compile=Ws,t.exports=wr}).call(this,r("yLpj"),r("URgk").setImmediate)},IfUw:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}(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 i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(t=this.selectedDocuments),this.startDraggingDocuments(t)},onDragEnd:function(){this.stopDraggingDocuments()}})},l=r("KHd+"),f=Object(l.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("a",{staticClass:"list-item",class:{selected:t.is_selected},attrs:{draggable:!0,href:t.url,rel:"noopener noreferrer"},on:{click:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])?null:e.metaKey?"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey?null:(e.stopPropagation(),e.preventDefault(),t.onAddToSelection(e)):null},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:(e.stopPropagation(),e.preventDefault(),t.onClicked(e))}],mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})},dblclick:function(e){return t.openDocument({document:t.document,folder:t.selectedFolder})},dragstart:t.onDragStart,dragend:t.onDragEnd}},[r("div",{staticClass:"list-item-label"},[r("img",{staticClass:"favicon",attrs:{src:t.document.favicon}}),t._v(" "),r("div",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(t.document.title))])]),t._v(" "),t.document.feed_item_states_count>0?r("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()])}),[],!1,null,null,null);e.default=f.exports},IvC5:function(t,e,r){r("c58/"),r("qq0i")("themesBrowser");new Vue({el:"#app"})},K93l:function(t,e,r){"use strict";t.exports=function(t){var e=!1;if(Array.isArray(this.items))for(var r=this.items.length,n=0;n127.5?"#000000":"#ffffff"}t.exports&&(e=t.exports=r),e.TEXTColor=r,r.findTextColor=function(t){const e=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;var r=t;if(/^(rgb|RGB)/.test(r))return o(r.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","));if(e.test(r)){var n=t.toLowerCase();if(n&&e.test(n)){if(4===n.length){for(var i="#",s=1;s<4;s+=1)i+=n.slice(s,s+1).concat(n.slice(s,s+1));n=i}var a=[];for(s=1;s<7;s+=2)a.push(parseInt("0x"+n.slice(s,s+2)));return o(a)}return!1}return!1},void 0===(n=function(){return r}.apply(e,[]))||(t.exports=n)}()},L2JU:function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return x})),r.d(e,"c",(function(){return O}));var n=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var r,n=(r=function(e){return e.original===t},e.filter(r)[0]);if(n)return n.copy;var i=Array.isArray(t)?[]:{};return e.push({original:t,copy:i}),Object.keys(t).forEach((function(r){i[r]=o(t[r],e)})),i}function i(t,e){Object.keys(t).forEach((function(r){return e(t[r],r)}))}function s(t){return null!==t&&"object"==typeof t}var a=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=("function"==typeof r?r():r)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(t,e){this._children[t]=e},a.prototype.removeChild=function(t){delete this._children[t]},a.prototype.getChild=function(t){return this._children[t]},a.prototype.hasChild=function(t){return t in this._children},a.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},a.prototype.forEachChild=function(t){i(this._children,t)},a.prototype.forEachGetter=function(t){this._rawModule.getters&&i(this._rawModule.getters,t)},a.prototype.forEachAction=function(t){this._rawModule.actions&&i(this._rawModule.actions,t)},a.prototype.forEachMutation=function(t){this._rawModule.mutations&&i(this._rawModule.mutations,t)},Object.defineProperties(a.prototype,c);var u=function(t){this.register([],t,!1)};u.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},u.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,r){return t+((e=e.getChild(r)).namespaced?r+"/":"")}),"")},u.prototype.update=function(t){!function t(e,r,n){0;if(r.update(n),n.modules)for(var o in n.modules){if(!r.getChild(o))return void 0;t(e.concat(o),r.getChild(o),n.modules[o])}}([],this.root,t)},u.prototype.register=function(t,e,r){var n=this;void 0===r&&(r=!0);var o=new a(e,r);0===t.length?this.root=o:this.get(t.slice(0,-1)).addChild(t[t.length-1],o);e.modules&&i(e.modules,(function(e,o){n.register(t.concat(o),e,r)}))},u.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1],n=e.getChild(r);n&&n.runtime&&e.removeChild(r)},u.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1];return e.hasChild(r)};var l;var f=function(t){var e=this;void 0===t&&(t={}),!l&&"undefined"!=typeof window&&window.Vue&&b(window.Vue);var r=t.plugins;void 0===r&&(r=[]);var o=t.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new u(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new l,this._makeLocalGettersCache=Object.create(null);var i=this,s=this.dispatch,a=this.commit;this.dispatch=function(t,e){return s.call(i,t,e)},this.commit=function(t,e,r){return a.call(i,t,e,r)},this.strict=o;var c=this._modules.root.state;v(this,c,[],this._modules.root),m(this,c),r.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:l.config.devtools)&&function(t){n&&(t._devtoolHook=n,n.emit("vuex:init",t),n.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){n.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){n.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},d={state:{configurable:!0}};function p(t,e,r){return e.indexOf(t)<0&&(r&&r.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function h(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;v(t,r,[],t._modules.root,!0),m(t,r,e)}function m(t,e,r){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,s={};i(o,(function(e,r){s[r]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,r,{get:function(){return t._vm[r]},enumerable:!0})}));var a=l.config.silent;l.config.silent=!0,t._vm=new l({data:{$$state:e},computed:s}),l.config.silent=a,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),n&&(r&&t._withCommit((function(){n._data.$$state=null})),l.nextTick((function(){return n.$destroy()})))}function v(t,e,r,n,o){var i=!r.length,s=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=n),!i&&!o){var a=y(e,r.slice(0,-1)),c=r[r.length-1];t._withCommit((function(){l.set(a,c,n.state)}))}var u=n.context=function(t,e,r){var n=""===e,o={dispatch:n?t.dispatch:function(r,n,o){var i=g(r,n,o),s=i.payload,a=i.options,c=i.type;return a&&a.root||(c=e+c),t.dispatch(c,s)},commit:n?t.commit:function(r,n,o){var i=g(r,n,o),s=i.payload,a=i.options,c=i.type;a&&a.root||(c=e+c),t.commit(c,s,a)}};return Object.defineProperties(o,{getters:{get:n?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach((function(o){if(o.slice(0,n)===e){var i=o.slice(n);Object.defineProperty(r,i,{get:function(){return t.getters[o]},enumerable:!0})}})),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return y(t.state,r)}}}),o}(t,s,r);n.forEachMutation((function(e,r){!function(t,e,r,n){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){r.call(t,n.state,e)}))}(t,s+r,e,u)})),n.forEachAction((function(e,r){var n=e.root?r:s+r,o=e.handler||e;!function(t,e,r,n){(t._actions[e]||(t._actions[e]=[])).push((function(e){var o,i=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),t._devtoolHook?i.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):i}))}(t,n,o,u)})),n.forEachGetter((function(e,r){!function(t,e,r,n){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return r(n.state,n.getters,t.state,t.getters)}}(t,s+r,e,u)})),n.forEachChild((function(n,i){v(t,e,r.concat(i),n,o)}))}function y(t,e){return e.reduce((function(t,e){return t[e]}),t)}function g(t,e,r){return s(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}function b(t){l&&t===l||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:r});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,e.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(l=t)}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},f.prototype.commit=function(t,e,r){var n=this,o=g(t,e,r),i=o.type,s=o.payload,a=(o.options,{type:i,payload:s}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(t){t(s)}))})),this._subscribers.slice().forEach((function(t){return t(a,n.state)})))},f.prototype.dispatch=function(t,e){var r=this,n=g(t,e),o=n.type,i=n.payload,s={type:o,payload:i},a=this._actions[o];if(a){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(s,r.state)}))}catch(t){0}var c=a.length>1?Promise.all(a.map((function(t){return t(i)}))):a[0](i);return new Promise((function(t,e){c.then((function(e){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(s,r.state)}))}catch(t){0}t(e)}),(function(t){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(s,r.state,t)}))}catch(t){0}e(t)}))}))}},f.prototype.subscribe=function(t,e){return p(t,this._subscribers,e)},f.prototype.subscribeAction=function(t,e){return p("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},f.prototype.watch=function(t,e,r){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,r)},f.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},f.prototype.registerModule=function(t,e,r){void 0===r&&(r={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),v(this,this.state,t,this._modules.get(t),r.preserveState),m(this,this.state)},f.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var r=y(e.state,t.slice(0,-1));l.delete(r,t[t.length-1])})),h(this)},f.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},f.prototype.hotUpdate=function(t){this._modules.update(t),h(this,!0)},f.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(f.prototype,d);var _=C((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){var e=this.$store.state,r=this.$store.getters;if(t){var n=j(this.$store,"mapState",t);if(!n)return;e=n.context.state,r=n.context.getters}return"function"==typeof o?o.call(this,e,r):e[o]},r[n].vuex=!0})),r})),w=C((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.commit;if(t){var i=j(this.$store,"mapMutations",t);if(!i)return;n=i.context.commit}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r})),O=C((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;o=t+o,r[n]=function(){if(!t||j(this.$store,"mapGetters",t))return this.$store.getters[o]},r[n].vuex=!0})),r})),x=C((function(t,e){var r={};return k(e).forEach((function(e){var n=e.key,o=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.dispatch;if(t){var i=j(this.$store,"mapActions",t);if(!i)return;n=i.context.dispatch}return"function"==typeof o?o.apply(this,[n].concat(e)):n.apply(this.$store,[o].concat(e))}})),r}));function k(t){return function(t){return Array.isArray(t)||s(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function C(t){return function(e,r){return"string"!=typeof e?(r=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,r)}}function j(t,e,r){return t._modulesNamespaceMap[r]}function A(t,e,r){var n=r?t.groupCollapsed:t.group;try{n.call(t,e)}catch(r){t.log(e)}}function S(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function $(){var t=new Date;return" @ "+E(t.getHours(),2)+":"+E(t.getMinutes(),2)+":"+E(t.getSeconds(),2)+"."+E(t.getMilliseconds(),3)}function E(t,e){return r="0",n=e-t.toString().length,new Array(n+1).join(r)+t;var r,n}var D={Store:f,install:b,version:"3.5.1",mapState:_,mapMutations:w,mapGetters:O,mapActions:x,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:O.bind(null,t),mapMutations:w.bind(null,t),mapActions:x.bind(null,t)}},createLogger:function(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var r=t.filter;void 0===r&&(r=function(t,e,r){return!0});var n=t.transformer;void 0===n&&(n=function(t){return t});var i=t.mutationTransformer;void 0===i&&(i=function(t){return t});var s=t.actionFilter;void 0===s&&(s=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var c=t.logMutations;void 0===c&&(c=!0);var u=t.logActions;void 0===u&&(u=!0);var l=t.logger;return void 0===l&&(l=console),function(t){var f=o(t.state);void 0!==l&&(c&&t.subscribe((function(t,s){var a=o(s);if(r(t,f,a)){var c=$(),u=i(t),d="mutation "+t.type+c;A(l,d,e),l.log("%c prev state","color: #9E9E9E; font-weight: bold",n(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",n(a)),S(l)}f=a})),u&&t.subscribeAction((function(t,r){if(s(t,r)){var n=$(),o=a(t),i="action "+t.type+n;A(l,i,e),l.log("%c action","color: #03A9F4; font-weight: bold",o),S(l)}})))}}};e.a=D}).call(this,r("yLpj"))},Lcjm:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){var t=n(this.items),e=void 0,r=void 0,o=void 0;for(o=t.length;o;o-=1)e=Math.floor(Math.random()*o),r=t[o-1],t[o-1]=t[e],t[e]=r;return this.items=t,this}},LlWW:function(t,e,r){"use strict";t.exports=function(t){return this.sortBy(t).reverse()}},LpLF:function(t,e,r){"use strict";t.exports=function(t){var e=this,r=t;r instanceof this.constructor&&(r=r.all());var n=this.items.map((function(t,n){return new e.constructor([t,r[n]])}));return new this.constructor(n)}},Lzbe:function(t,e,r){"use strict";t.exports=function(t,e){var r=this.items.slice(t);return void 0!==e&&(r=r.slice(0,e)),new this.constructor(r)}},M1FP:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().forEach((function(r){e[r]=t.items[r]})),new this.constructor(e)}},MIHw:function(t,e,r){"use strict";t.exports=function(t,e){return this.where(t,">=",e[0]).where(t,"<=",e[e.length-1])}},MSmq:function(t,e,r){"use strict";t.exports=function(t){var e=this,r=t;t instanceof this.constructor&&(r=t.all());var n={};return Object.keys(this.items).forEach((function(t){void 0!==r[t]&&r[t]===e.items[t]||(n[t]=e.items[t])})),new this.constructor(n)}},NAvP:function(t,e,r){"use strict";t.exports=function(t){var e=void 0;e=t instanceof this.constructor?t.all():t;var r=Object.keys(e),n=Object.keys(this.items).filter((function(t){return-1===r.indexOf(t)}));return new this.constructor(this.items).only(n)}},OKMW:function(t,e,r){"use strict";t.exports=function(t,e,r){return this.where(t,e,r).first()||null}},Ob7M:function(t,e,r){"use strict";t.exports=function(t){return new this.constructor(this.items).filter((function(e){return!t(e)}))}},OxKB:function(t,e,r){"use strict";t.exports=function(t){return Array.isArray(t[0])?t[0]:t}},Pu7b:function(t,e,r){"use strict";var n=r("0tQ4"),o=r("SIfw").isFunction;t.exports=function(t){var e=this,r={};return this.items.forEach((function(i,s){var a=void 0;a=o(t)?t(i,s):n(i,t)||0===n(i,t)?n(i,t):"",void 0===r[a]&&(r[a]=new e.constructor([])),r[a].push(i)})),new this.constructor(r)}},QSc6:function(t,e,r){"use strict";var n=r("0jNN"),o=r("sxOR"),i=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Array.isArray,c=Array.prototype.push,u=function(t,e){c.apply(t,a(e)?e:[e])},l=Date.prototype.toISOString,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:n.encode,encodeValuesOnly:!1,formatter:o.formatters[o.default],indices:!1,serializeDate:function(t){return l.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,r,o,i,s,c,l,d,p,h,m,v,y){var g=e;if("function"==typeof l?g=l(r,g):g instanceof Date?g=h(g):"comma"===o&&a(g)&&(g=g.join(",")),null===g){if(i)return c&&!v?c(r,f.encoder,y):r;g=""}if("string"==typeof g||"number"==typeof g||"boolean"==typeof g||n.isBuffer(g))return c?[m(v?r:c(r,f.encoder,y))+"="+m(c(g,f.encoder,y))]:[m(r)+"="+m(String(g))];var b,_=[];if(void 0===g)return _;if(a(l))b=l;else{var w=Object.keys(g);b=d?w.sort(d):w}for(var O=0;O0?g+y:""}},Qyje:function(t,e,r){"use strict";var n=r("QSc6"),o=r("nmq7"),i=r("sxOR");t.exports={formats:i,parse:o,stringify:n}},RB6r:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;eo?1:0})),new this.constructor(e)}},RR3J:function(t,e,r){"use strict";t.exports=function(t){var e=t;t instanceof this.constructor&&(e=t.all());var r=this.items.filter((function(t){return-1!==e.indexOf(t)}));return new this.constructor(r)}},RVo9:function(t,e,r){"use strict";t.exports=function(t,e){if(Array.isArray(this.items)&&this.items.length)return t(this);if(Object.keys(this.items).length)return t(this);if(void 0!==e){if(Array.isArray(this.items)&&!this.items.length)return e(this);if(!Object.keys(this.items).length)return e(this)}return this}},RtnH:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Object.keys(this.items).sort().reverse().forEach((function(r){e[r]=t.items[r]})),new this.constructor(e)}},Rx9r:function(t,e,r){"use strict";var n="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=r("ytFn");t.exports=function(t){var e=t;t instanceof this.constructor?e=t.all():"object"===(void 0===t?"undefined":n(t))&&(e=[],Object.keys(t).forEach((function(r){e.push(t[r])})));var r=o(this.items);return e.forEach((function(t){"object"===(void 0===t?"undefined":n(t))?Object.keys(t).forEach((function(e){return r.push(t[e])})):r.push(t)})),new this.constructor(r)}},SIfw:function(t,e,r){"use strict";var n="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.exports={isArray:function(t){return Array.isArray(t)},isObject:function(t){return"object"===(void 0===t?"undefined":n(t))&&!1===Array.isArray(t)&&null!==t},isFunction:function(t){return"function"==typeof t}}},T3CM:function(t,e,r){"use strict";r.r(e);var n=r("o0o1"),o=r.n(n);function i(t,e,r,n,o,i,s){try{var a=t[i](s),c=a.value}catch(t){return void r(t)}a.done?e(c):Promise.resolve(c).then(n,o)}function s(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var s=t.apply(e,r);function a(t){i(s,n,o,a,c,"next",t)}function c(t){i(s,n,o,a,c,"throw",t)}a(void 0)}))}}var a,c,u={data:function(){return{highlights:highlights,newExpression:null,newColor:null}},computed:{sortedHighlights:function(){return collect(this.highlights).sortBy("expression")}},methods:{addHighlight:(c=s(o.a.mark((function t(){var e;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((e=this).newExpression){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,api.post(route("highlight.store"),{expression:e.newExpression,color:e.newColor});case 5:e.highlights=t.sent,e.newExpression=null,e.newColor=null;case 8:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)}),onDestroy:(a=s(o.a.mark((function t(e){var r;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this,t.next=3,api.delete(route("highlight.destroy",e));case 3:r.highlights=t.sent;case 4:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})}},l=r("KHd+"),f=Object(l.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("table",{staticClass:"w-full"},[r("thead",[r("tr",[r("th",{staticClass:"w-1/2"},[t._v(t._s(t.__("Expression")))]),t._v(" "),r("th",{staticClass:"w-1/4"},[t._v(t._s(t.__("Color")))]),t._v(" "),r("th")]),t._v(" "),r("tr",[r("td",{staticClass:"w-1/2"},[r("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.newExpression,expression:"newExpression",modifiers:{lazy:!0}}],staticClass:"w-full",attrs:{type:"text","aria-label":t.__("Expression")},domProps:{value:t.newExpression},on:{change:function(e){t.newExpression=e.target.value}}})]),t._v(" "),r("td",{staticClass:"w-1/4"},[r("input",{directives:[{name:"model",rawName:"v-model.lazy",value:t.newColor,expression:"newColor",modifiers:{lazy:!0}}],staticClass:"w-full",attrs:{type:"color","aria-label":t.__("Color")},domProps:{value:t.newColor},on:{change:function(e){t.newColor=e.target.value}}})]),t._v(" "),r("td",[r("button",{staticClass:"success",attrs:{type:"submit",title:t.__("Add highlight")},on:{click:t.addHighlight}},[r("svg",{attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("add")}})])])])])]),t._v(" "),r("tbody",t._l(t.sortedHighlights,(function(e){return r("highlight",{key:e.id,attrs:{highlight:e},on:{destroy:t.onDestroy}})})),1)])}),[],!1,null,null,null);e.default=f.exports},TWr4:function(t,e,r){"use strict";var n=r("SIfw"),o=n.isArray,i=n.isObject,s=n.isFunction;t.exports=function(t){var e=this,r=null,n=void 0,a=function(e){return e===t};return s(t)&&(a=t),o(this.items)&&(n=this.items.filter((function(t){return!0!==r&&(r=!a(t)),r}))),i(this.items)&&(n=Object.keys(this.items).reduce((function(t,n){return!0!==r&&(r=!a(e.items[n])),!1!==r&&(t[n]=e.items[n]),t}),{})),new this.constructor(n)}},TZAN:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("0tQ4");t.exports=function(t,e){var r=n(e),i=this.items.filter((function(e){return-1!==r.indexOf(o(e,t))}));return new this.constructor(i)}},"UH+N":function(t,e,r){"use strict";t.exports=function(t){var e=this,r=JSON.parse(JSON.stringify(this.items));return Object.keys(t).forEach((function(n){void 0===e.items[n]&&(r[n]=t[n])})),new this.constructor(r)}},URgk:function(t,e,r){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(o.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new i(o.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(n,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))},r("YBdB"),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,r("yLpj"))},UY0H:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){return new this.constructor(n(this.items))}},UgDP:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("0tQ4");t.exports=function(t,e){var r=n(e),i=this.items.filter((function(e){return-1===r.indexOf(o(e,t))}));return new this.constructor(i)}},UnNl:function(t,e,r){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.where(t,"===",null)}},Ww0C:function(t,e,r){"use strict";t.exports=function(){return this.sort().reverse()}},XuX8:function(t,e,r){t.exports=r("INkZ")},YBdB:function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var n,o,i,s,a,c=1,u={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){h(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){h(t.data)},n=function(t){i.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,n=function(t){var e=f.createElement("script");e.onreadystatechange=function(){h(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):n=function(t){setTimeout(h,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&h(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),n=function(e){t.postMessage(s+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r2&&void 0!==r[2]?r[2]:"POST",s=r.length>3&&void 0!==r[3]&&r[3],c=a,s&&(c["Content-Type"]="multipart/form-data"),u={method:i,headers:c},e&&(u.body=s?e:JSON.stringify(e)),n.next=8,fetch(t,u);case 8:return l=n.sent,n.prev=9,n.next=12,l.json();case 12:return f=n.sent,n.abrupt("return",f);case 16:return n.prev=16,n.t0=n.catch(9),n.abrupt("return",l);case 19:case"end":return n.stop()}}),n,null,[[9,16]])})))()},get:function(t){var e=this;return s(o.a.mark((function r(){return o.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",e.send(t,null,"GET"));case 1:case"end":return r.stop()}}),r)})))()},post:function(t,e){var r=arguments,n=this;return s(o.a.mark((function i(){var s;return o.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=r.length>2&&void 0!==r[2]&&r[2],o.abrupt("return",n.send(t,e,"POST",s));case 2:case"end":return o.stop()}}),i)})))()},put:function(t,e){var r=this;return s(o.a.mark((function n(){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.send(t,e,"PUT"));case 1:case"end":return n.stop()}}),n)})))()},delete:function(t,e){var r=this;return s(o.a.mark((function n(){return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.send(t,e,"DELETE"));case 1:case"end":return n.stop()}}),n)})))()}};window.Vue=r("XuX8"),window.collect=r("j5l6"),window.api=c,r("zhh1")},c993:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("a",{staticClass:"button info ml-2",attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),r("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[r("div",{domProps:{innerHTML:t._s(t.feedItem.content?t.feedItem.content:t.feedItem.description)}}),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("URL")))]),t._v(" "),r("dd",[r("a",{attrs:{href:t.feedItem.url,rel:"noopener noreferrer"}},[t._v(t._s(t.feedItem.url))])]),t._v(" "),r("dt",[t._v(t._s(t.__("Date of item's creation")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.feedItem.created_at,calendar:!0}})],1),t._v(" "),r("dt",[t._v(t._s(t.__("Date of item's publication")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.feedItem.published_at,calendar:!0}})],1),t._v(" "),r("dt",[t._v(t._s(t.__("Published in")))]),t._v(" "),r("dd",t._l(t.feedItem.feeds,(function(e){return r("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500"},[r("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),r("div",{staticClass:"py-0.5"},[t._v(t._s(e.title))])])})),0)])])])}),[],!1,null,null,null);e.default=u.exports},cZbx:function(t,e,r){"use strict";var n="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.exports=function(t){return t instanceof this.constructor?t:"object"===(void 0===t?"undefined":n(t))?new this.constructor(t):new this.constructor([t])}},clGK:function(t,e,r){"use strict";t.exports=function(t,e,r){t?r(this):e(this)}},dydJ:function(t,e,r){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o="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.exports=function(t){var e=this,r=t;r instanceof this.constructor&&(r=t.all());var i={};if(Array.isArray(this.items)&&Array.isArray(r))this.items.forEach((function(t,e){i[t]=r[e]}));else if("object"===o(this.items)&&"object"===(void 0===r?"undefined":o(r)))Object.keys(this.items).forEach((function(t,n){i[e.items[t]]=r[Object.keys(r)[n]]}));else if(Array.isArray(this.items))i[this.items[0]]=r;else if("string"==typeof this.items&&Array.isArray(r)){var s=n(r,1);i[this.items]=s[0]}else"string"==typeof this.items&&(i[this.items]=r);return new this.constructor(i)}},epP6:function(t,e,r){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e0?r("div",{staticClass:"badge"},[t._v(t._s(t.folder.feed_item_states_count))]):t._e()]),t._v(" "),t.folder.feed_item_states_count>0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e()]),t._v(" "),r("div",{staticClass:"body"},["folder"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("folder.update",t.folder)},on:{submit:function(e){return e.preventDefault(),t.onUpdateFolder(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{attrs:{type:"text",name:"title"},domProps:{value:t.folder.title},on:{input:function(e){t.updateFolderTitle=e.target.value}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("update")}})]),t._v("\n "+t._s(t.__("Update folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("folder.store")},on:{submit:function(e){return e.preventDefault(),t.onAddFolder(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.addFolderTitle,expression:"addFolderTitle"}],attrs:{type:"text"},domProps:{value:t.addFolderTitle},on:{input:function(e){e.target.composing||(t.addFolderTitle=e.target.value)}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add folder"))+"\n ")])])]),t._v(" "),"folder"!==t.folder.type&&"root"!==t.folder.type||t.folder.deleted_at?t._e():r("form",{attrs:{action:t.route("document.store")},on:{submit:function(e){return e.preventDefault(),t.onAddDocument(e)}}},[r("div",{staticClass:"form-group items-stretched"},[r("input",{directives:[{name:"model",rawName:"v-model",value:t.addDocumentUrl,expression:"addDocumentUrl"}],attrs:{type:"url"},domProps:{value:t.addDocumentUrl},on:{input:function(e){e.target.composing||(t.addDocumentUrl=e.target.value)}}}),t._v(" "),r("button",{staticClass:"success ml-2",attrs:{type:"submit"}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("add")}})]),t._v("\n "+t._s(t.__("Add document"))+"\n ")])])]),t._v(" "),"folder"===t.folder.type?r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteFolder}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])]):t._e()])])}),[],!1,null,null,null);e.default=u.exports},l9N6:function(t,e,r){"use strict";var n="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 o(t){if(Array.isArray(t)){if(t.length)return!1}else if(null!=t&&"object"===(void 0===t?"undefined":n(t))){if(Object.keys(t).length)return!1}else if(t)return!1;return!0}t.exports=function(t){var e=t||!1,r=null;return r=Array.isArray(this.items)?function(t,e){if(t)return e.filter(t);for(var r=[],n=0;n":return o(e,t)!==Number(s)&&o(e,t)!==s.toString();case"!==":return o(e,t)!==s;case"<":return o(e,t)":return o(e,t)>s;case">=":return o(e,t)>=s}}));return new this.constructor(c)}},lfA6:function(t,e,r){"use strict";var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!e||r.length!==e);n=!0);}catch(t){o=!0,i=t}finally{try{!n&&a.return&&a.return()}finally{if(o)throw i}}return r}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.exports=function(t){var e=this,r={};return Array.isArray(this.items)?this.items.forEach((function(e){var o=t(e),i=n(o,2),s=i[0],a=i[1];r[s]=a})):Object.keys(this.items).forEach((function(o){var i=t(e.items[o]),s=n(i,2),a=s[0],c=s[1];r[a]=c})),new this.constructor(r)}},lflG:function(t,e,r){"use strict";t.exports=function(){return!this.isEmpty()}},lpfs:function(t,e,r){"use strict";t.exports=function(t){return t(this),this}},ls82:function(t,e,r){var n=function(t){"use strict";var e=Object.prototype,r=e.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function a(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{a({},"")}catch(t){a=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof f?e:f,i=Object.create(o.prototype),s=new x(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var s=r.delegate;if(s){var a=_(s,r);if(a){if(a===l)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=u(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,s),i}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l={};function f(){}function d(){}function p(){}var h={};h[o]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(k([])));v&&v!==e&&r.call(v,o)&&(h=v);var y=p.prototype=f.prototype=Object.create(h);function g(t){["next","throw","return"].forEach((function(e){a(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var n;this._invoke=function(o,i){function s(){return new e((function(n,s){!function n(o,i,s,a){var c=u(t[o],t,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):e.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,a)}))}a(c.arg)}(o,i,n,s)}))}return n=n?n.then(s,s):s()}}function _(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,_(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=u(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function w(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 O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function k(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--o){var i=this.tryEntries[o],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(a&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},lwQh:function(t,e,r){"use strict";t.exports=function(){var t=0;return Array.isArray(this.items)&&(t=this.items.length),Math.max(Object.keys(this.items).length,t)}},mNb9:function(t,e,r){"use strict";var n=r("Aoxg");t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=n(this.items),r=new this.constructor(e).shuffle();return t!==parseInt(t,10)?r.first():r.take(t)}},nHqO:function(t,e,r){"use strict";var n=r("OxKB");t.exports=function(){for(var t=this,e=arguments.length,r=Array(e),o=0;o=0;--o){var i,s=t[o];if("[]"===s&&r.parseArrays)i=[].concat(n);else{i=r.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(a,10);r.parseArrays||""!==a?!isNaN(c)&&s!==a&&String(c)===a&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[])[c]=n:i[a]=n:i={0:n}}n=i}return n}(c,e,r)}};t.exports=function(t,e){var r=function(t){if(!t)return i;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?i.charset:t.charset;return{allowDots:void 0===t.allowDots?i.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:i.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:i.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:i.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:i.comma,decoder:"function"==typeof t.decoder?t.decoder:i.decoder,delimiter:"string"==typeof t.delimiter||n.isRegExp(t.delimiter)?t.delimiter:i.delimiter,depth:"number"==typeof t.depth?t.depth:i.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:i.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:i.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:i.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:i.strictNullHandling}}(e);if(""===t||null==t)return r.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var r,a={},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,u=e.parameterLimit===1/0?void 0:e.parameterLimit,l=c.split(e.delimiter,u),f=-1,d=e.charset;if(e.charsetSentinel)for(r=0;r-1&&(h=h.split(",")),o.call(a,p)?a[p]=n.combine(a[p],h):a[p]=h}return a}(t,r):t,u=r.plainObjects?Object.create(null):{},l=Object.keys(c),f=0;f0?r("div",[r("h2",[t._v(t._s(t.__("Community themes")))]),t._v(" "),r("p",[t._v(t._s(t.__("These themes were hand-picked by Cyca's author.")))]),t._v(" "),r("div",{staticClass:"themes-category"},t._l(t.themes.community,(function(e,n){return r("theme-card",{key:n,attrs:{repository_url:e,name:n,is_selected:n===t.selected},on:{selected:function(e){return t.useTheme(n)}}})})),1)]):t._e()])}),[],!1,null,null,null);e.default=l.exports},qBwO:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s={data:function(){return{selectedFeeds:[]}},computed:function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:function(t){return t};return new this.constructor(this.items).groupBy(t).map((function(t){return t.count()}))}},qigg:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e=t.target.scrollHeight&&this.canLoadMore&&this.loadMoreFeedItems()}})},c=r("KHd+"),u=Object(c.a)(a,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"feeditems-list"},on:{"&scroll":function(e){return t.onScroll(e)}}},t._l(t.sortedList,(function(e){return r("feed-item",{key:e.id,attrs:{feedItem:e},on:{"selected-feeditems-changed":t.onSelectedFeedItemsChanged}})})),1)}),[],!1,null,null,null);e.default=u.exports},qj89:function(t,e,r){"use strict";var n=r("Aoxg"),o=r("SIfw").isFunction;t.exports=function(t,e){if(void 0!==e)return Array.isArray(this.items)?this.items.filter((function(r){return void 0!==r[t]&&r[t]===e})).length>0:void 0!==this.items[t]&&this.items[t]===e;if(o(t))return this.items.filter((function(e,r){return t(e,r)})).length>0;if(Array.isArray(this.items))return-1!==this.items.indexOf(t);var r=n(this.items);return r.push.apply(r,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);er&&(r=i)}else void 0!==t?e.push({key:n[t],count:1}):e.push({key:n,count:1})})),e.filter((function(t){return t.count===r})).map((function(t){return t.key}))):null}},t9qg:function(t,e,r){"use strict";t.exports=function(t,e){var r=this,n={};return Array.isArray(this.items)?n=this.items.slice(t*e-e,t*e):Object.keys(this.items).slice(t*e-e,t*e).forEach((function(t){n[t]=r.items[t]})),new this.constructor(n)}},tNWF:function(t,e,r){"use strict";t.exports=function(t,e){var r=this,n=null;return void 0!==e&&(n=e),Array.isArray(this.items)?this.items.forEach((function(e){n=t(n,e)})):Object.keys(this.items).forEach((function(e){n=t(n,r.items[e],e)})),n}},tiHo:function(t,e,r){"use strict";t.exports=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new this.constructor(t)}},tpAN:function(t,e,r){"use strict";r.r(e);var n=r("L2JU");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e0?r("div",{staticClass:"badge"},[t._v(t._s(t.document.feed_item_states_count))]):t._e()]),t._v(" "),r("div",{staticClass:"flex items-center"},[t.document.feed_item_states_count>0?r("button",{staticClass:"button info",on:{click:t.onMarkAsReadClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("unread_items")}})]),t._v("\n "+t._s(t.__("Mark as read"))+"\n ")]):t._e(),t._v(" "),r("a",{staticClass:"button info ml-2",attrs:{href:t.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))},mouseup:function(e){return"button"in e&&1!==e.button||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey?null:t.incrementVisits({document:t.document,folder:t.selectedFolder})}}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("open")}})]),t._v("\n "+t._s(t.__("Open"))+"\n ")]),t._v(" "),r("button",{staticClass:"button info ml-2",on:{click:t.onShareClicked}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("share")}})]),t._v("\n "+t._s(t.__("Share"))+"\n ")])])]),t._v(" "),r("div",{staticClass:"body"},[t.document.description?r("div",{domProps:{innerHTML:t._s(t.document.description)}}):t._e(),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),r("dd",[r("a",{attrs:{href:t.document.url,rel:"noopener noreferrer"},on:{click:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.stopPropagation(),e.preventDefault(),t.openDocument({document:t.document,folder:t.selectedFolder}))}}},[t._v(t._s(t.document.url))])]),t._v(" "),t.document.bookmark.visits?r("dt",[t._v(t._s(t.__("Visits")))]):t._e(),t._v(" "),t.document.bookmark.visits?r("dd",[t._v(t._s(t.document.bookmark.visits))]):t._e(),t._v(" "),r("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:t.document.checked_at,calendar:!0}})],1),t._v(" "),t.dupplicateInFolders.length>0?r("dt",[t._v(t._s(t.__("Also exists in")))]):t._e(),t._v(" "),t.dupplicateInFolders.length>0?r("dd",t._l(t.dupplicateInFolders,(function(e){return r("button",{key:e.id,staticClass:"bg-gray-400 hover:bg-gray-500",on:{click:function(r){return t.$emit("folder-selected",e)}}},[r("svg",{staticClass:"favicon",class:e.iconColor,attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon(e.icon)}})]),t._v(" "),r("span",{staticClass:"truncate flex-grow py-0.5"},[t._v(t._s(e.title))])])})),0):t._e()]),t._v(" "),t.document.feeds&&t.document.feeds.length>0?r("h2",[t._v(t._s(t.__("Feeds")))]):t._e(),t._v(" "),t._l(t.document.feeds,(function(e){return r("div",{key:e.id,staticClass:"rounded bg-gray-600 mb-2 p-2"},[r("div",{staticClass:"flex justify-between items-center"},[r("div",{staticClass:"flex items-center my-0 py-0"},[r("img",{staticClass:"favicon",attrs:{src:e.favicon}}),t._v(" "),r("div",[t._v(t._s(e.title))])]),t._v(" "),e.is_ignored?r("button",{staticClass:"button success",on:{click:function(r){return t.follow(e)}}},[t._v(t._s(t.__("Follow")))]):t._e(),t._v(" "),e.is_ignored?t._e():r("button",{staticClass:"button danger",on:{click:function(r){return t.ignore(e)}}},[t._v(t._s(t.__("Ignore")))])]),t._v(" "),e.description?r("div",{domProps:{innerHTML:t._s(e.description)}}):t._e(),t._v(" "),r("dl",[r("dt",[t._v(t._s(t.__("Real URL")))]),t._v(" "),r("dd",[r("div",[t._v(t._s(e.url))])]),t._v(" "),r("dt",[t._v(t._s(t.__("Date of document's last check")))]),t._v(" "),r("dd",[r("date-time",{attrs:{datetime:e.checked_at,calendar:!0}})],1)])])})),t._v(" "),r("div",{staticClass:"mt-6"},[r("button",{staticClass:"danger",on:{click:t.onDeleteDocument}},[r("svg",{staticClass:"mr-1",attrs:{fill:"currentColor",width:"16",height:"16"}},[r("use",{attrs:{"xlink:href":t.icon("trash")}})]),t._v("\n "+t._s(t.__("Delete"))+"\n ")])])],2)])}),[],!1,null,null,null);e.default=u.exports},u4XC:function(t,e,r){"use strict";var n="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.exports=function(t){var e=this,r=[],o=0;if(Array.isArray(this.items))do{var i=this.items.slice(o,o+t),s=new this.constructor(i);r.push(s),o+=t}while(o1&&void 0!==arguments[1]?arguments[1]:0,r=n(this.items),o=r.slice(e).filter((function(e,r){return r%t==0}));return new this.constructor(o)}},"x+iC":function(t,e,r){"use strict";t.exports=function(t,e){var r=this.values();if(void 0===e)return r.implode(t);var n=r.count();if(0===n)return"";if(1===n)return r.last();var o=r.pop();return r.implode(t)+e+o}},xA6t:function(t,e,r){"use strict";var n=r("0tQ4");t.exports=function(t,e){return this.filter((function(r){return n(r,t)e[e.length-1]}))}},xWoM:function(t,e,r){"use strict";t.exports=function(){var t=this,e={};return Array.isArray(this.items)?Object.keys(this.items).forEach((function(r){e[t.items[r]]=Number(r)})):Object.keys(this.items).forEach((function(r){e[t.items[r]]=r})),new this.constructor(e)}},xazZ:function(t,e,r){"use strict";t.exports=function(t){return this.filter((function(e){return e instanceof t}))}},xgus:function(t,e,r){"use strict";var n=r("SIfw").isObject;t.exports=function(t){var e=this;return n(this.items)?new this.constructor(Object.keys(this.items).reduce((function(r,n,o){return o+1>t&&(r[n]=e.items[n]),r}),{})):new this.constructor(this.items.slice(t))}},xi9Z:function(t,e,r){"use strict";t.exports=function(t,e){return void 0===e?this.items.join(t):new this.constructor(this.items).pluck(t).all().join(e)}},yLpj:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},ysnW:function(t,e,r){var n={"./DateTime.vue":"YrHs","./Details/DetailsDocument.vue":"tpAN","./Details/DetailsDocuments.vue":"2FZ/","./Details/DetailsFeedItem.vue":"c993","./Details/DetailsFolder.vue":"l2C0","./DocumentItem.vue":"IfUw","./DocumentsList.vue":"qBwO","./FeedItem.vue":"+CwO","./FeedItemsList.vue":"qigg","./FolderItem.vue":"4VNc","./FoldersTree.vue":"RB6r","./Highlight.vue":"AmQ0","./Highlights.vue":"T3CM","./Importer.vue":"gDOT","./Importers/ImportFromCyca.vue":"wT45","./ThemeCard.vue":"CV10","./ThemesBrowser.vue":"pKhy"};function o(t){var e=i(t);return r(e)}function i(t){if(!r.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}o.keys=function(){return Object.keys(n)},o.resolve=i,t.exports=o,o.id="ysnW"},ytFn:function(t,e,r){"use strict";t.exports=function(t){var e,r=void 0;Array.isArray(t)?(e=r=[]).push.apply(e,function(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e3&&void 0!==arguments[3]?arguments[3]:null;return a(this,v),(n=m.call(this)).name=t,n.absolute=r,n.ziggy=i||Ziggy,n.urlBuilder=n.name?new o(t,r,n.ziggy):null,n.template=n.urlBuilder?n.urlBuilder.construct():"",n.urlParams=n.normalizeParams(e),n.queryParams={},n.hydrated="",n}return n=v,(l=[{key:"normalizeParams",value:function(t){return void 0===t?{}:((t="object"!==s(t)?[t]:t).hasOwnProperty("id")&&-1==this.template.indexOf("{id}")&&(t=[t.id]),this.numericParamIndices=Array.isArray(t),Object.assign({},t))}},{key:"with",value:function(t){return this.urlParams=this.normalizeParams(t),this}},{key:"withQuery",value:function(t){return Object.assign(this.queryParams,t),this}},{key:"hydrateUrl",value:function(){var t=this;if(this.hydrated)return this.hydrated;var e=this.template.replace(/{([^}]+)}/gi,(function(e,r){var n,o,i=t.trimParam(e);if(t.ziggy.defaultParameters.hasOwnProperty(i)&&(n=t.ziggy.defaultParameters[i]),n&&!t.urlParams[i])return delete t.urlParams[i],n;if(t.numericParamIndices?(t.urlParams=Object.values(t.urlParams),o=t.urlParams.shift()):(o=t.urlParams[i],delete t.urlParams[i]),null==o){if(-1===e.indexOf("?"))throw new Error("Ziggy Error: '"+i+"' key is required for route '"+t.name+"'");return""}return o.id?encodeURIComponent(o.id):encodeURIComponent(o)}));return null!=this.urlBuilder&&""!==this.urlBuilder.path&&(e=e.replace(/\/+$/,"")),this.hydrated=e,this.hydrated}},{key:"matchUrl",value:function(){var t=window.location.hostname+(window.location.port?":"+window.location.port:"")+window.location.pathname,e=this.template.replace(/(\/\{[^\}]*\?\})/g,"/").replace(/(\{[^\}]*\})/gi,"[^/?]+").replace(/\/?$/,"").split("://")[1],r=this.template.replace(/(\{[^\}]*\})/gi,"[^/?]+").split("://")[1],n=t.replace(/\/?$/,"/"),o=new RegExp("^"+r+"/$").test(n),i=new RegExp("^"+e+"/$").test(n);return o||i}},{key:"constructQuery",value:function(){if(0===Object.keys(this.queryParams).length&&0===Object.keys(this.urlParams).length)return"";var t=Object.assign(this.urlParams,this.queryParams);return Object(i.stringify)(t,{encodeValuesOnly:!0,skipNulls:!0,addQueryPrefix:!0,arrayFormat:"indices"})}},{key:"current",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=Object.keys(this.ziggy.namedRoutes),n=r.filter((function(e){return-1!==t.ziggy.namedRoutes[e].methods.indexOf("GET")&&new v(e,void 0,void 0,t.ziggy).matchUrl()}))[0];if(e){var o=new RegExp("^"+e.replace(".","\\.").replace("*",".*")+"$","i");return o.test(n)}return n}},{key:"check",value:function(t){return Object.keys(this.ziggy.namedRoutes).includes(t)}},{key:"extractParams",value:function(t,e,r){var n=this,o=t.split(r);return e.split(r).reduce((function(t,e,r){return 0===e.indexOf("{")&&-1!==e.indexOf("}")&&o[r]?Object.assign(t,(i={},s=n.trimParam(e),a=o[r],s in i?Object.defineProperty(i,s,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[s]=a,i)):t;var i,s,a}),{})}},{key:"parse",value:function(){this.return=this.hydrateUrl()+this.constructQuery()}},{key:"url",value:function(){return this.parse(),this.return}},{key:"toString",value:function(){return this.url()}},{key:"trimParam",value:function(t){return t.replace(/{|}|\?/g,"")}},{key:"valueOf",value:function(){return this.url()}},{key:"params",get:function(){var t=this.ziggy.namedRoutes[this.current()];return Object.assign(this.extractParams(window.location.hostname,t.domain||"","."),this.extractParams(window.location.pathname.slice(1),t.uri,"/"))}}])&&c(n.prototype,l),f&&c(n,f),v}(l(String));function v(t,e,r,n){return new m(t,e,r,n)}var y={namedRoutes:{account:{uri:"account",methods:["GET","HEAD"],domain:null},home:{uri:"/",methods:["GET","HEAD"],domain:null},"account.password":{uri:"account/password",methods:["GET","HEAD"],domain:null},"account.theme":{uri:"account/theme",methods:["GET","HEAD"],domain:null},"account.setTheme":{uri:"account/theme",methods:["POST"],domain:null},"account.theme.details":{uri:"account/theme/details/{name}",methods:["GET","HEAD"],domain:null},"account.getThemes":{uri:"account/theme/themes",methods:["GET","HEAD"],domain:null},"account.import.form":{uri:"account/import",methods:["GET","HEAD"],domain:null},"account.import":{uri:"account/import",methods:["POST"],domain:null},"account.export":{uri:"account/export",methods:["GET","HEAD"],domain:null},"document.move":{uri:"document/move/{sourceFolder}/{targetFolder}",methods:["POST"],domain:null},"document.destroy_bookmarks":{uri:"document/delete_bookmarks/{folder}",methods:["POST"],domain:null},"document.visit":{uri:"document/{document}/visit/{folder}",methods:["POST"],domain:null},"feed_item.mark_as_read":{uri:"feed_item/mark_as_read",methods:["POST"],domain:null},"feed.ignore":{uri:"feed/{feed}/ignore",methods:["POST"],domain:null},"feed.follow":{uri:"feed/{feed}/follow",methods:["POST"],domain:null},"folder.index":{uri:"folder",methods:["GET","HEAD"],domain:null},"folder.store":{uri:"folder",methods:["POST"],domain:null},"folder.show":{uri:"folder/{folder}",methods:["GET","HEAD"],domain:null},"folder.update":{uri:"folder/{folder}",methods:["PUT","PATCH"],domain:null},"folder.destroy":{uri:"folder/{folder}",methods:["DELETE"],domain:null},"document.index":{uri:"document",methods:["GET","HEAD"],domain:null},"document.store":{uri:"document",methods:["POST"],domain:null},"document.show":{uri:"document/{document}",methods:["GET","HEAD"],domain:null},"feed_item.index":{uri:"feed_item",methods:["GET","HEAD"],domain:null},"feed_item.show":{uri:"feed_item/{feed_item}",methods:["GET","HEAD"],domain:null},"highlight.index":{uri:"highlight",methods:["GET","HEAD"],domain:null},"highlight.store":{uri:"highlight",methods:["POST"],domain:null},"highlight.show":{uri:"highlight/{highlight}",methods:["GET","HEAD"],domain:null},"highlight.update":{uri:"highlight/{highlight}",methods:["PUT","PATCH"],domain:null},"highlight.destroy":{uri:"highlight/{highlight}",methods:["DELETE"],domain:null}},baseUrl:"https://cyca.athaliasoft.com/",baseProtocol:"https",baseDomain:"cyca.athaliasoft.com",basePort:!1,defaultParameters:[]};if("undefined"!=typeof window&&void 0!==window.Ziggy)for(var g in window.Ziggy.namedRoutes)y.namedRoutes[g]=window.Ziggy.namedRoutes[g];window.route=v,window.Ziggy=y,Vue.mixin({methods:{route:function(t,e,r){return v(t,e,r,y)},icon:function(t){return document.querySelector('meta[name="icons-file-url"]').getAttribute("content")+"#"+t},__:function(t){var e=lang[t];return e||t}}})}}); \ No newline at end of file diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 59da742..868e472 100644 --- a/public/mix-manifest.json +++ b/public/mix-manifest.json @@ -1,9 +1,10 @@ { - "/js/app.js": "/js/app.js?id=a60b304e941732617ba9", - "/themes/cyca-dark/theme.css": "/themes/cyca-dark/theme.css?id=413c81b3aca59764179f", - "/themes/cyca-light/theme.css": "/themes/cyca-light/theme.css?id=fdac9b3775b2e876b310", - "/js/import.js": "/js/import.js?id=ae7efb211c07b0292933", - "/js/themes-browser.js": "/js/themes-browser.js?id=62022c1fe5d200aad9b6", + "/js/app.js": "/js/app.js?id=00a40eda576f46e93f37", + "/themes/cyca-dark/theme.css": "/themes/cyca-dark/theme.css?id=f95a8b57b8bf8c8993a9", + "/themes/cyca-light/theme.css": "/themes/cyca-light/theme.css?id=ddebef2fd3bdf5569cbc", + "/js/highlights.js": "/js/highlights.js?id=7d434ae3e4e2f88330f7", + "/js/import.js": "/js/import.js?id=a22d9f4a7e1f9bb440f3", + "/js/themes-browser.js": "/js/themes-browser.js?id=952525d10bea2b418aef", "/themes/cyca-dark/theme.json": "/themes/cyca-dark/theme.json?id=e6af9f523b70bc467aa4", "/themes/cyca-light/theme.json": "/themes/cyca-light/theme.json?id=bb59033be8f29999311e" } diff --git a/resources/css/components/layout.css b/resources/css/components/layout.css index f0ba74e..546d515 100644 --- a/resources/css/components/layout.css +++ b/resources/css/components/layout.css @@ -53,3 +53,13 @@ #account-content-wrapper { @apply w-1/4 pl-6; } + +/* Right part of account-related pages - Large wrapper */ +#account-content-wrapper.large { + @apply w-1/2; +} + +/* Right part of account-related pages - Title */ +#account-content-wrapper h2 { + @apply text-4xl my-4; +} diff --git a/resources/css/components/list-items.css b/resources/css/components/list-items.css index 2d63ae7..4a7e6db 100644 --- a/resources/css/components/list-items.css +++ b/resources/css/components/list-items.css @@ -61,3 +61,7 @@ color: theme("colors.feed-item.meta"); } + +.highlight { + @apply rounded px-1; +} diff --git a/resources/js/components/FeedItem.vue b/resources/js/components/FeedItem.vue index f49cc3b..76374c3 100644 --- a/resources/js/components/FeedItem.vue +++ b/resources/js/components/FeedItem.vue @@ -6,7 +6,7 @@ rel="noopener noreferrer" v-on:click.left.exact.stop.prevent="onClicked" > -
+
diff --git a/resources/js/components/Highlight.vue b/resources/js/components/Highlight.vue new file mode 100644 index 0000000..4356e15 --- /dev/null +++ b/resources/js/components/Highlight.vue @@ -0,0 +1,36 @@ + + + diff --git a/resources/js/components/Highlights.vue b/resources/js/components/Highlights.vue new file mode 100644 index 0000000..2ed1a06 --- /dev/null +++ b/resources/js/components/Highlights.vue @@ -0,0 +1,63 @@ + + + diff --git a/resources/js/highlights.js b/resources/js/highlights.js new file mode 100644 index 0000000..5964c2e --- /dev/null +++ b/resources/js/highlights.js @@ -0,0 +1,6 @@ +require("./modules/bootstrap"); +require("./modules/components")("highlights"); + +const app = new Vue({ + el: "#app" +}); diff --git a/resources/js/modules/components.js b/resources/js/modules/components.js index 400fdf9..ac87f3d 100644 --- a/resources/js/modules/components.js +++ b/resources/js/modules/components.js @@ -19,6 +19,10 @@ const sets = { "themesBrowser": [ "ThemeCard", "ThemesBrowser" + ], + "highlights": [ + "Highlights", + "Highlight" ] } diff --git a/resources/js/modules/routes.js b/resources/js/modules/routes.js index e950ff9..8bd84b6 100644 --- a/resources/js/modules/routes.js +++ b/resources/js/modules/routes.js @@ -1,5 +1,5 @@ var Ziggy = { - namedRoutes: {"account":{"uri":"account","methods":["GET","HEAD"],"domain":null},"home":{"uri":"\/","methods":["GET","HEAD"],"domain":null},"account.password":{"uri":"account\/password","methods":["GET","HEAD"],"domain":null},"account.theme":{"uri":"account\/theme","methods":["GET","HEAD"],"domain":null},"account.setTheme":{"uri":"account\/theme","methods":["POST"],"domain":null},"account.theme.details":{"uri":"account\/theme\/details\/{name}","methods":["GET","HEAD"],"domain":null},"account.getThemes":{"uri":"account\/theme\/themes","methods":["GET","HEAD"],"domain":null},"account.import.form":{"uri":"account\/import","methods":["GET","HEAD"],"domain":null},"account.import":{"uri":"account\/import","methods":["POST"],"domain":null},"account.export":{"uri":"account\/export","methods":["GET","HEAD"],"domain":null},"document.move":{"uri":"document\/move\/{sourceFolder}\/{targetFolder}","methods":["POST"],"domain":null},"document.destroy_bookmarks":{"uri":"document\/delete_bookmarks\/{folder}","methods":["POST"],"domain":null},"document.visit":{"uri":"document\/{document}\/visit\/{folder}","methods":["POST"],"domain":null},"feed_item.mark_as_read":{"uri":"feed_item\/mark_as_read","methods":["POST"],"domain":null},"feed.ignore":{"uri":"feed\/{feed}\/ignore","methods":["POST"],"domain":null},"feed.follow":{"uri":"feed\/{feed}\/follow","methods":["POST"],"domain":null},"folder.index":{"uri":"folder","methods":["GET","HEAD"],"domain":null},"folder.store":{"uri":"folder","methods":["POST"],"domain":null},"folder.show":{"uri":"folder\/{folder}","methods":["GET","HEAD"],"domain":null},"folder.update":{"uri":"folder\/{folder}","methods":["PUT","PATCH"],"domain":null},"folder.destroy":{"uri":"folder\/{folder}","methods":["DELETE"],"domain":null},"document.index":{"uri":"document","methods":["GET","HEAD"],"domain":null},"document.store":{"uri":"document","methods":["POST"],"domain":null},"document.show":{"uri":"document\/{document}","methods":["GET","HEAD"],"domain":null},"feed_item.index":{"uri":"feed_item","methods":["GET","HEAD"],"domain":null},"feed_item.show":{"uri":"feed_item\/{feed_item}","methods":["GET","HEAD"],"domain":null}}, + namedRoutes: {"account":{"uri":"account","methods":["GET","HEAD"],"domain":null},"home":{"uri":"\/","methods":["GET","HEAD"],"domain":null},"account.password":{"uri":"account\/password","methods":["GET","HEAD"],"domain":null},"account.theme":{"uri":"account\/theme","methods":["GET","HEAD"],"domain":null},"account.setTheme":{"uri":"account\/theme","methods":["POST"],"domain":null},"account.theme.details":{"uri":"account\/theme\/details\/{name}","methods":["GET","HEAD"],"domain":null},"account.getThemes":{"uri":"account\/theme\/themes","methods":["GET","HEAD"],"domain":null},"account.import.form":{"uri":"account\/import","methods":["GET","HEAD"],"domain":null},"account.import":{"uri":"account\/import","methods":["POST"],"domain":null},"account.export":{"uri":"account\/export","methods":["GET","HEAD"],"domain":null},"document.move":{"uri":"document\/move\/{sourceFolder}\/{targetFolder}","methods":["POST"],"domain":null},"document.destroy_bookmarks":{"uri":"document\/delete_bookmarks\/{folder}","methods":["POST"],"domain":null},"document.visit":{"uri":"document\/{document}\/visit\/{folder}","methods":["POST"],"domain":null},"feed_item.mark_as_read":{"uri":"feed_item\/mark_as_read","methods":["POST"],"domain":null},"feed.ignore":{"uri":"feed\/{feed}\/ignore","methods":["POST"],"domain":null},"feed.follow":{"uri":"feed\/{feed}\/follow","methods":["POST"],"domain":null},"folder.index":{"uri":"folder","methods":["GET","HEAD"],"domain":null},"folder.store":{"uri":"folder","methods":["POST"],"domain":null},"folder.show":{"uri":"folder\/{folder}","methods":["GET","HEAD"],"domain":null},"folder.update":{"uri":"folder\/{folder}","methods":["PUT","PATCH"],"domain":null},"folder.destroy":{"uri":"folder\/{folder}","methods":["DELETE"],"domain":null},"document.index":{"uri":"document","methods":["GET","HEAD"],"domain":null},"document.store":{"uri":"document","methods":["POST"],"domain":null},"document.show":{"uri":"document\/{document}","methods":["GET","HEAD"],"domain":null},"feed_item.index":{"uri":"feed_item","methods":["GET","HEAD"],"domain":null},"feed_item.show":{"uri":"feed_item\/{feed_item}","methods":["GET","HEAD"],"domain":null},"highlight.index":{"uri":"highlight","methods":["GET","HEAD"],"domain":null},"highlight.store":{"uri":"highlight","methods":["POST"],"domain":null},"highlight.show":{"uri":"highlight\/{highlight}","methods":["GET","HEAD"],"domain":null},"highlight.update":{"uri":"highlight\/{highlight}","methods":["PUT","PATCH"],"domain":null},"highlight.destroy":{"uri":"highlight\/{highlight}","methods":["DELETE"],"domain":null}}, baseUrl: 'https://cyca.athaliasoft.com/', baseProtocol: 'https', baseDomain: 'cyca.athaliasoft.com', diff --git a/resources/lang/fr.json b/resources/lang/fr.json index 01e9a74..7ad15b2 100644 --- a/resources/lang/fr.json +++ b/resources/lang/fr.json @@ -2,9 +2,11 @@ "About Cyca": "À propos de Cyca", "Add document": "Nouveau document", "Add folder": "Nouveau dossier", + "Add highlight": "Ajouter une mise en surbrillance", "Also exists in": "Existe aussi dans", "Awaiting e-mail address confirmation": "En attente de confirmation de votre adresse e-mail", "Back": "Retour", + "Color": "Couleur", "Community themes": "Thèmes de la communauté", "Confirm Password": "Confirmation du mot de passe", "Created by": "Créé par", @@ -24,10 +26,12 @@ "E-Mail Address": "Adresse e-mail", "E-mail address verified on :email_verified_at": "Adresse e-mail vérifiée le :email_verified_at", "Export my data": "Exporter mes données", + "Expression": "Expression", "Feeds": "Flux", "File to import": "Fichier à importer", "Follow": "Suivre", "GitHub repository": "Dépôt GitHub", + "Highlights": "Mises en surbrillance", "If you like Cyca, maybe you could consider donating": "Si vous aimez Cyca, peut-être pourriez-vous considérer faire un don", "Ignore": "Ignorer", "Import": "Importer", @@ -54,6 +58,7 @@ "Real URL": "URL réel", "Register": "Créer un compte", "Remember Me": "Se souvenir de moi", + "Remove highlight": "Supprimer une mise en surbrillance", "Reset Password": "Réinitialiser le mot de passe", "Response code": "Code de réponse HTTP", "Restore": "Restaurer", @@ -69,12 +74,12 @@ "Unread items": "Éléments non-lus", "Update folder": "Mettre à jour le dossier", "Update password": "Mettre à jour le mot de passe", + "Use this theme": "Utiliser ce thème", "User Name": "Nom d'utilisateur", "Via Buy me a coffee": "Par Buy me a coffee", "Via PayPal": "Par PayPal", "Visits": "Visites", "We have emailed your password reset link!": "Nous vous avons envoyé un lien de réinitialisation par email!", "You can import the following types of file": "Vous pouvez importer des fichiers de type", - "Your profile has been updated": "Votre profil a été mis à jour", - "Use this theme": "Utiliser ce thème" + "Your profile has been updated": "Votre profil a été mis à jour" } diff --git a/resources/views/account/highlights.blade.php b/resources/views/account/highlights.blade.php new file mode 100644 index 0000000..d67e477 --- /dev/null +++ b/resources/views/account/highlights.blade.php @@ -0,0 +1,12 @@ +@extends('layouts.account') + +@push('scripts') + +@endpush + +@section('content') +
+

{{ __("Highlights") }}

+ +
+@endsection diff --git a/resources/views/layouts/account.blade.php b/resources/views/layouts/account.blade.php index bba63dd..f226dbe 100644 --- a/resources/views/layouts/account.blade.php +++ b/resources/views/layouts/account.blade.php @@ -5,6 +5,7 @@ {{ __('My account') }} {{ __('Update password') }} {{ __('Theme') }} + {{ __('Highlights') }} {{ __('Import data') }} {{ __('Export my data') }} {{ __('About Cyca') }} diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index cb19388..d17cd08 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -25,8 +25,12 @@ + @auth + + @endauth @stack('scripts') diff --git a/routes/web.php b/routes/web.php index a739fac..d8a1150 100644 --- a/routes/web.php +++ b/routes/web.php @@ -21,6 +21,8 @@ Route::get('/themes', 'ThemeController@index')->name('account.getThemes'); }); + Route::get('/highlights', 'HomeController@highlights')->name('account.highlights'); + Route::get('/import', 'HomeController@showImportForm')->name('account.import.form'); Route::post('/import', 'HomeController@import')->name('account.import'); @@ -54,5 +56,13 @@ 'index', 'show' ]); + + Route::resource('highlight', 'HighlightController')->only([ + 'destroy', + 'index', + 'store', + 'show', + 'update' + ]); }); }); diff --git a/webpack.mix.js b/webpack.mix.js index b6ed56f..bea3089 100644 --- a/webpack.mix.js +++ b/webpack.mix.js @@ -44,6 +44,7 @@ themes.forEach(theme => { mix.js("resources/js/app.js", "public/js"); mix.js("resources/js/themes-browser.js", "public/js"); mix.js("resources/js/import.js", "public/js"); +mix.js("resources/js/highlights.js", "public/js"); if (mix.inProduction()) { mix.version();