Welcome to mirror list, hosted at ThFree Co, Russian Federation.

viewer.js « js - github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e6cf3a403ce4d3966c52a28d565aeb74c8c2fffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
!function(e){function t(t){for(var i,a,c=t[0],r=t[1],n=0,l=[];n<c.length;n++)a=c[n],Object.prototype.hasOwnProperty.call(h,a)&&h[a]&&l.push(h[a][0]),h[a]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);for(d&&d(t);l.length;)l.shift()()}var i={},h={200:0};function a(t){if(i[t])return i[t].exports;var h=i[t]={i:t,l:!1,exports:{}};return e[t].call(h.exports,h,h.exports,a),h.l=!0,h.exports}a.e=function(e){var t=[],i=h[e];if(0!==i)if(i)t.push(i[2]);else{var c=new Promise((function(t,a){i=h[e]=[t,a]}));t.push(i[2]=c);var r,n=document.createElement("script");n.charset="utf-8",n.timeout=120,a.nc&&n.setAttribute("nonce",a.nc),n.src=function(e){return a.p+""+({0:"vendor",1:"vendors~editor-collab~editor-guest~editor-rich~files-modal",2:"highlight/1c",3:"highlight/abnf",4:"highlight/accesslog",5:"highlight/actionscript",6:"highlight/ada",7:"highlight/angelscript",8:"highlight/apache",9:"highlight/applescript",10:"highlight/arcade",11:"highlight/arduino",12:"highlight/armasm",13:"highlight/asciidoc",14:"highlight/aspectj",15:"highlight/autohotkey",16:"highlight/autoit",17:"highlight/avrasm",18:"highlight/awk",19:"highlight/axapta",20:"highlight/bash",21:"highlight/basic",22:"highlight/bnf",23:"highlight/brainfuck",24:"highlight/cal",25:"highlight/capnproto",26:"highlight/ceylon",27:"highlight/clean",28:"highlight/clojure",29:"highlight/clojure-repl",30:"highlight/cmake",31:"highlight/coffeescript",32:"highlight/coq",33:"highlight/cos",34:"highlight/cpp",35:"highlight/crmsh",36:"highlight/crystal",37:"highlight/cs",38:"highlight/csp",39:"highlight/css",40:"highlight/d",41:"highlight/dart",42:"highlight/delphi",43:"highlight/diff",44:"highlight/django",45:"highlight/dns",46:"highlight/dockerfile",47:"highlight/dos",48:"highlight/dsconfig",49:"highlight/dts",50:"highlight/dust",51:"highlight/ebnf",52:"highlight/elixir",53:"highlight/elm",54:"highlight/erb",55:"highlight/erlang",56:"highlight/erlang-repl",57:"highlight/excel",58:"highlight/fix",59:"highlight/flix",60:"highlight/fortran",61:"highlight/fsharp",62:"highlight/gams",63:"highlight/gauss",64:"highlight/gcode",65:"highlight/gherkin",66:"highlight/glsl",67:"highlight/gml",68:"highlight/go",69:"highlight/golo",70:"highlight/gradle",71:"highlight/groovy",72:"highlight/haml",73:"highlight/handlebars",74:"highlight/haskell",75:"highlight/haxe",76:"highlight/hsp",77:"highlight/htmlbars",78:"highlight/http",79:"highlight/hy",80:"highlight/inform7",81:"highlight/ini",82:"highlight/irpf90",83:"highlight/isbl",84:"highlight/java",85:"highlight/javascript",86:"highlight/jboss-cli",87:"highlight/json",88:"highlight/julia",89:"highlight/julia-repl",90:"highlight/kotlin",91:"highlight/lasso",92:"highlight/ldif",93:"highlight/leaf",94:"highlight/less",95:"highlight/lisp",96:"highlight/livecodeserver",97:"highlight/livescript",98:"highlight/llvm",99:"highlight/lsl",100:"highlight/lua",101:"highlight/makefile",102:"highlight/markdown",103:"highlight/mathematica",104:"highlight/matlab",105:"highlight/maxima",106:"highlight/mel",107:"highlight/mercury",108:"highlight/mipsasm",109:"highlight/mizar",110:"highlight/mojolicious",111:"highlight/monkey",112:"highlight/moonscript",113:"highlight/n1ql",114:"highlight/nginx",115:"highlight/nimrod",116:"highlight/nix",117:"highlight/nsis",118:"highlight/objectivec",119:"highlight/ocaml",120:"highlight/openscad",121:"highlight/oxygene",122:"highlight/parser3",123:"highlight/perl",124:"highlight/pf",125:"highlight/pgsql",126:"highlight/php",127:"highlight/plaintext",128:"highlight/pony",129:"highlight/powershell",130:"highlight/processing",131:"highlight/profile",132:"highlight/prolog",133:"highlight/properties",134:"highlight/protobuf",135:"highlight/puppet",136:"highlight/purebasic",137:"highlight/python",138:"highlight/q",139:"highlight/qml",140:"highlight/r",141:"highlight/reasonml",142:"highlight/rib",143:"highlight/roboconf",144:"highlight/routeros",145:"highlight/rsl",146:"highlight/ruby",147:"highlight/ruleslanguage",148:"highlight/rust",149:"highlight/sas",150:"highlight/scala",151:"highlight/scheme",152:"highlight/scilab",153:"highlight/scss",154:"highlight/shell",155:"highlight/smali",156:"highlight/smalltalk",157:"highlight/sml",158:"highlight/sqf",159:"highlight/sql",160:"highlight/stan",161:"highlight/stata",162:"highlight/step21",163:"highlight/stylus",164:"highlight/subunit",165:"highlight/swift",166:"highlight/taggerscript",167:"highlight/tap",168:"highlight/tcl",169:"highlight/tex",170:"highlight/thrift",171:"highlight/tp",172:"highlight/twig",173:"highlight/typescript",174:"highlight/vala",175:"highlight/vbnet",176:"highlight/vbscript",177:"highlight/vbscript-html",178:"highlight/verilog",179:"highlight/vhdl",180:"highlight/vim",181:"highlight/x86asm",182:"highlight/xl",183:"highlight/xml",184:"highlight/xquery",185:"highlight/yaml",186:"highlight/zephir",187:"vendors~editor-collab~editor-guest",188:"vendors~editor-rich~files-modal",189:"vendors~editor~files-modal",190:"editor",191:"editor-collab",192:"editor-guest",193:"editor-rich",195:"files-modal",198:"vendors~editor",199:"vendors~editor-rich"}[e]||e)+".js?v="+{0:"36248677afa2503d88e9",1:"2e81dc1ad1521cd79660",2:"b88c630d1fd8e1251429",3:"8d91477bb91fb2199bc8",4:"f9b92c593850f4152946",5:"1629f32641171b113eb8",6:"4798ee39e4d283b873a8",7:"fe220bab69751736ef20",8:"4ce137ea65979cc6079a",9:"32a6c5378237fa3370a9",10:"d17e043e5b5a148c35e5",11:"59fa30f62da0440cdec7",12:"c346e6a8e0dd57dc2c44",13:"f3f7bc4d61ffcbe7a975",14:"6b76f47b6d413b5b8439",15:"fc9023ffba0d62628c10",16:"91553ddb2a6717a126d7",17:"e7b9a0a053c932a78340",18:"d696a40e853acbe2b631",19:"48e5d562ffa4320db022",20:"f48f55525654e2318056",21:"e6fd865170ccaac83b13",22:"2028f6324d07f6ddd88e",23:"c4f79446f8071395c8e8",24:"b480ae213b946453d957",25:"48fb447cccc2dc11a281",26:"3c55e89196d86b382e5e",27:"0863b5a0195c7bb1d00f",28:"b26bc630f7e286e4e5aa",29:"6461943576e68c8cfa4e",30:"0b73684e74135124be92",31:"a1fc5b97044e4d095c6e",32:"81491e06ce0a555e2d90",33:"d7f96b9cc68faab60d9b",34:"c6f15c0c521244c145db",35:"92fd02c1f8bffe2aa87e",36:"fb0ccd5e7253dfff9d55",37:"a72e52e1a720eecc83ed",38:"7c4cbe5a2d62f9072169",39:"f092f8d5154d9c9b4679",40:"2faca426fb87a93f8706",41:"757296bcee8bb97eed87",42:"de707c033b5042d91ded",43:"ebbc84e47c1a90f4ef8c",44:"4add38c09fa5711abb6d",45:"e98286d0c41fd0bd3278",46:"07ad65895641e06416e3",47:"74d03a09e9d65b5cb96b",48:"618ab5c6c05d3ef25d92",49:"868ba05773d3e7349cec",50:"2ff9df9b5bdcc57ff6d9",51:"85bf8a87089925018ade",52:"c4e287d996d7ae96f9d9",53:"bed78bf9ec8d94a7f081",54:"d2dfe9b228ea94d2f48b",55:"0c37a969a971c04d528c",56:"dafe6dfdfc388ef39f41",57:"c629efe083777629c3aa",58:"8a8d735845111067181c",59:"02ccff94b0d6fe33b221",60:"ddff4125e73c7d4aa12f",61:"30cea4385c4c40781794",62:"aa0ec73adb9515e8d09d",63:"f7d0f50d5373caad2dd8",64:"3b8854f459f2a17c6da3",65:"f981313abc1df095586a",66:"4e3f2d2e2098a28903b3",67:"1c93061cebb3e9bac2d9",68:"964f547847e62eb57a18",69:"9b7ff45c1b2ca81b8205",70:"adb3dbdaf921b9f74322",71:"84a45dee9056b59f808f",72:"6b6290742ba6afc7d2bc",73:"4b740b4e97e8e7a8a93e",74:"b64da18cbf5d3730329a",75:"eecbabab20d0d86eb91f",76:"1d4723f683551d80c6b9",77:"ac06ce4edb06d1e9e643",78:"1a3204af295754decfb0",79:"ab18efc74e57be03ed8c",80:"c87d940d1c68583f4c43",81:"4b277cc8fa3758c602cb",82:"8ddd7ec3a3287f57e785",83:"ef13da0de4e2ef9db078",84:"dbd6824df7f218ba45f6",85:"d98d3ff6e45eb4dcdb03",86:"a587b97cbd1f7dc31b24",87:"073b01ef3a66ecdafe78",88:"ab5fc2b7951d6c08655e",89:"d119d0bd240f9d5a65cb",90:"f110f5eab8d103413a88",91:"f2f6a125d10d827f258e",92:"3eede9d8f9300c8fd71b",93:"8a5f7cb6c3cade83287a",94:"f327ff5b0dfc769eaa69",95:"f64a1615f22f3655de22",96:"4789b7ffeb03176192be",97:"75f4a8f78c39fdd5d3aa",98:"1a1b7a0f58c78ffc6d58",99:"f6bdaf95684550b8b091",100:"e7ed7e918eb507c26e27",101:"d96073b7f5e9adf89495",102:"319a5a3fa84f6caf10c6",103:"bfe96ef4a497cc79572f",104:"8f6d0e58ce01ab449006",105:"274d696436be63646cc3",106:"64f5c24260f2678a4513",107:"d2eedd80110cd6e5becd",108:"e420af0768ce50dc635f",109:"e1de1cc84362753d3dfa",110:"c76ba7b2bafbeaf1d2eb",111:"2af9cad243cda26d209c",112:"7ed7f3dc32866f3b41d5",113:"b31116d6dc33d900f6b3",114:"8262b4b8ea807eb67585",115:"6d1c7eb739f2f3163cbf",116:"5b29cfeb908348b5d67e",117:"1070e832713f892fb0dc",118:"f4d4cf0059577bf0d471",119:"e13c270a4ca43281536f",120:"e83d0921901ada51d4a3",121:"360c4900b9d49bd84553",122:"547ff5e9024748dafa03",123:"b3f8bbb0185a0878579f",124:"6e44dadebd4aa190a3a3",125:"12688e8ce034bbbf9d8d",126:"3dafded9d93c6437a4d7",127:"d3023489207885fdd879",128:"71be810cef519bd810bc",129:"65560815bcb50c7f7291",130:"056f84af54ecd9178694",131:"162cf5ef44aedd9d81b7",132:"1ec3abbe8631fc98d537",133:"23800c43821898620c82",134:"6a55821c85e77a52ee0a",135:"fb17d94231fa2d2b817a",136:"a1a3316b65ecf4d16cba",137:"e43b5cd8691f1b6a6bba",138:"fa67a9db0f75b07c24d0",139:"ef803a0b876e6a749e29",140:"38dbfb1d53f4406a521d",141:"63524b1271e13b56a6dc",142:"4a8db7e11eeb1279e437",143:"d54b376892dad89cead8",144:"a70c6de6ff68de2ead21",145:"af5385f2bf89aaa1cd39",146:"83ad4d208b676915bd7d",147:"d8cceb6d3fc7287cea16",148:"005eed1ef4948a3a3497",149:"5a9428cab479bb279cc6",150:"9f067bb0bb914db82f9f",151:"79e3a432873059e74143",152:"035ad28a5eaefa0e337b",153:"cf0d5857d8a8fcc38b97",154:"8100c18d07642168cfa3",155:"4dfa25b0023007b6dca3",156:"6abef5492e2e9e33f33c",157:"d1ffcca8d705da221aaa",158:"fa789516814b868eb121",159:"93335488199ca9f43888",160:"a55f759ba13dc2d13761",161:"c61a1cbba34b4d2d2f8a",162:"4bd5701a54574e9e6a61",163:"51c47162ede554ede878",164:"d99d53846fde673be095",165:"bdd224805ee514dbb2dc",166:"205e1a9c3ead2eaa2cbc",167:"012f41fcc1add17b43a5",168:"0ff37ca33dff68191ea2",169:"4fe5451576a11dbacf88",170:"f775b5e7c91b6f49b2da",171:"927fed643f3b91050312",172:"675f2731a56bc6cc546d",173:"cb732c7aaa4899460834",174:"21933878f4fbb8400ecf",175:"634afb86b6a9321374cd",176:"501a2ed62e1cee5575c1",177:"1c175c294e725722f77a",178:"c662f0ace5a69b742ccc",179:"1370b73be12b3f45438b",180:"4f163f2a7cd77cb24282",181:"dd103d8e001d556b957d",182:"c81e1e9adce8b99af03d",183:"bd329b9e2710085cb979",184:"a072d7e920ed99f7769e",185:"2a8702f7b1198ecfa50c",186:"36725754089026e626e0",187:"80e2295493b792662bb9",188:"f704e5dcdab066d5d0d7",189:"594bb9941aa79ec5eb29",190:"0077abfd82c0f63f4e07",191:"8819c9682777621b41f0",192:"11da10c78b2a4a1a0548",193:"1fca7bd26bb8372f55ca",195:"0a53bf85074b03faeb99",198:"f0b331e33ce3b10cde75",199:"715d6dec5441649e874d"}[e]}(e);var d=new Error;r=function(t){n.onerror=n.onload=null,clearTimeout(l);var i=h[e];if(0!==i){if(i){var a=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+a+": "+c+")",d.name="ChunkLoadError",d.type=a,d.request=c,i[1](d)}h[e]=void 0}};var l=setTimeout((function(){r({type:"timeout",target:n})}),12e4);n.onerror=n.onload=r,document.head.appendChild(n)}return Promise.all(t)},a.m=e,a.c=i,a.d=function(e,t,i){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(a.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var h in e)a.d(i,h,function(t){return e[t]}.bind(null,h));return i},a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/js/",a.oe=function(e){throw console.error(e),e};var c=window.textWebpackJsonp=window.textWebpackJsonp||[],r=c.push.bind(c);c.push=t,c=c.slice();for(var n=0;n<c.length;n++)t(c[n]);var d=r;a(a.s=175)}({12:function(e,t,i){"use strict";i.d(t,"a",(function(){return c})),i.d(t,"b",(function(){return h})),i.d(t,"c",(function(){return a}));
/*
 * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */
var h=["text/markdown"],a=["text/plain","application/cmd","application/x-empty","application/x-msdos-program","application/epub+zip","application/javascript","application/json","application/x-perl","application/x-php","application/x-tex","application/xml","application/yaml","text/css","text/csv","text/html","text/x-c","text/x-c++src","text/x-h","text/x-java-source","text/x-ldif","text/x-python","text/x-shellscript"],c=[].concat(h,a)},167:function(e,t,i){var h=i(173);"string"==typeof h&&(h=[[e.i,h,""]]),h.locals&&(e.exports=h.locals);(0,i(50).default)("4861ac69",h,!0,{})},172:function(e,t,i){"use strict";i(167)},173:function(e,t,i){(t=i(49)(!1)).push([e.i,"\n#editor-container {\n\theight: calc(100% - 50px);\n\ttop: 50px;\n}\n",""]),e.exports=t},175:function(e,t,i){"use strict";i.r(t);var h={name:"ViewerComponent",components:{EditorWrapper:function(){return Promise.all([i.e(0),i.e(189),i.e(198),i.e(190)]).then(i.bind(null,176))}},props:{filename:{type:String,default:null},fileid:{type:Number,default:null},active:{type:Boolean,default:!1},shareToken:{type:String,default:null},mime:{type:String,default:null}},beforeMount:function(){void 0!==this.$parent.$parent&&this.$parent.$parent.onResize&&window.removeEventListener("resize",this.$parent.$parent.onResize)}},a=(i(172),i(19)),c=Object(a.a)(h,(function(){var e=this.$createElement;return(this._self._c||e)("EditorWrapper",{attrs:{"file-id":this.fileid,"relative-path":this.filename,active:this.active,"share-token":this.shareToken,mime:this.mime}})}),[],!1,null,null,null).exports,r=i(12);function n(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);"Object"===i&&e.constructor&&(i=e.constructor.name);if("Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,h=new Array(t);i<t;i++)h[i]=e[i];return h}
/*
 * @copyright Copyright (c) 2019 Julius Härtl <jus@bitgrid.net>
 *
 * @author Julius Härtl <jus@bitgrid.net>
 *
 * @license GNU AGPL version 3 or any later version
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *
 */i.nc=btoa(OC.requestToken),i.p=OC.linkTo("text","js/"),document.addEventListener("DOMContentLoaded",(function(){void 0!==OCA.Viewer?OCA.Viewer.registerHandler({id:"text",mimes:[].concat(n(r.b),n(r.c)),component:c,group:null}):console.error("Viewer app is not installed")}))},19:function(e,t,i){"use strict";function h(e,t,i,h,a,c,r,n){var d,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=i,l._compiled=!0),h&&(l.functional=!0),c&&(l._scopeId="data-v-"+c),r?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},l._ssrRegister=d):a&&(d=n?function(){a.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:a),d)if(l.functional){l._injectStyles=d;var g=l.render;l.render=function(e,t){return d.call(t),g(e,t)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,d):[d]}return{exports:e,options:l}}i.d(t,"a",(function(){return h}))},49:function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",h=e[3];if(!h)return i;if(t&&"function"==typeof btoa){var a=(r=h,n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),d="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(d," */")),c=h.sources.map((function(e){return"/*# sourceURL=".concat(h.sourceRoot||"").concat(e," */")}));return[i].concat(c).concat([a]).join("\n")}var r,n,d;return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(i,"}"):i})).join("")},t.i=function(e,i,h){"string"==typeof e&&(e=[[null,e,""]]);var a={};if(h)for(var c=0;c<this.length;c++){var r=this[c][0];null!=r&&(a[r]=!0)}for(var n=0;n<e.length;n++){var d=[].concat(e[n]);h&&a[d[0]]||(i&&(d[2]?d[2]="".concat(i," and ").concat(d[2]):d[2]=i),t.push(d))}},t}},50:function(e,t,i){"use strict";function h(e,t){for(var i=[],h={},a=0;a<t.length;a++){var c=t[a],r=c[0],n={id:e+":"+a,css:c[1],media:c[2],sourceMap:c[3]};h[r]?h[r].parts.push(n):i.push(h[r]={id:r,parts:[n]})}return i}i.r(t),i.d(t,"default",(function(){return s}));var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c={},r=a&&(document.head||document.getElementsByTagName("head")[0]),n=null,d=0,l=!1,g=function(){},f=null,o="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function s(e,t,i,a){l=i,f=a||{};var r=h(e,t);return b(r),function(t){for(var i=[],a=0;a<r.length;a++){var n=r[a];(d=c[n.id]).refs--,i.push(d)}t?b(r=h(e,t)):r=[];for(a=0;a<i.length;a++){var d;if(0===(d=i[a]).refs){for(var l=0;l<d.parts.length;l++)d.parts[l]();delete c[d.id]}}}}function b(e){for(var t=0;t<e.length;t++){var i=e[t],h=c[i.id];if(h){h.refs++;for(var a=0;a<h.parts.length;a++)h.parts[a](i.parts[a]);for(;a<i.parts.length;a++)h.parts.push(p(i.parts[a]));h.parts.length>i.parts.length&&(h.parts.length=i.parts.length)}else{var r=[];for(a=0;a<i.parts.length;a++)r.push(p(i.parts[a]));c[i.id]={id:i.id,refs:1,parts:r}}}}function u(){var e=document.createElement("style");return e.type="text/css",r.appendChild(e),e}function p(e){var t,i,h=document.querySelector('style[data-vue-ssr-id~="'+e.id+'"]');if(h){if(l)return g;h.parentNode.removeChild(h)}if(o){var a=d++;h=n||(n=u()),t=y.bind(null,h,a,!1),i=y.bind(null,h,a,!0)}else h=u(),t=x.bind(null,h),i=function(){h.parentNode.removeChild(h)};return t(e),function(h){if(h){if(h.css===e.css&&h.media===e.media&&h.sourceMap===e.sourceMap)return;t(e=h)}else i()}}var m,v=(m=[],function(e,t){return m[e]=t,m.filter(Boolean).join("\n")});function y(e,t,i,h){var a=i?"":h.css;if(e.styleSheet)e.styleSheet.cssText=v(t,a);else{var c=document.createTextNode(a),r=e.childNodes;r[t]&&e.removeChild(r[t]),r.length?e.insertBefore(c,r[t]):e.appendChild(c)}}function x(e,t){var i=t.css,h=t.media,a=t.sourceMap;if(h&&e.setAttribute("media",h),f.ssrId&&e.setAttribute("data-vue-ssr-id",t.id),a&&(i+="\n/*# sourceURL="+a.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}}});
//# sourceMappingURL=viewer.js.map